- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2011 04:02 PM
Hi, since i got the version 5.4.2 i can't use blob.get of php automation client to open files, it shows me 'Error Server is not set', is there another way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2011 01:54 PM
maybe what was posted on this forum would solve your problem: http://forum.nuxeo.com/t/5537/
Quote: "Hello Thanks a lot for your response, i had a mistake configuration on the remote server, after enable the "allow_url_fopen" directive in the php.ini file now it works fine"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2011 04:08 AM
Hi,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2011 06:09 AM
Hi, i'm using the php automatin client with version 5.4.2, my example:
include ('../NuxeoAutomationClient/NuxeoAutomationAPI.php');
$path="/path/..."; //valid path
$client = new PhpAutomationClient('http://ip:8080/nuxeo/site/automation');
$session = $client->GetSession('Administrator','Administrator');
$answer = $session->NewRequest("Blob.Get")->Set('input', 'doc: ' . $path)->SendRequest();
if (!isset($answer) OR $answer == false)
echo $answer.' is not set';
else{
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.$filename.'.pdf');
readfile('tempstream');
}
It returns me "Error Server is not set"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2011 01:54 PM
maybe what was posted on this forum would solve your problem: http://forum.nuxeo.com/t/5537/
Quote: "Hello Thanks a lot for your response, i had a mistake configuration on the remote server, after enable the "allow_url_fopen" directive in the php.ini file now it works fine"
