note 6390 deleted from fdf_save by ronabop

From: Date: Sat, 02 Sep 2000 22:02:30 +0000
Subject: note 6390 deleted from fdf_save by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-3966@lists.php.net to get a copy of this message
I am trying some sample code from the fdf_create() page. But outtest.fdf is never written to disk. DOes anyone have any clues?<p> ----------------------------<p> This is the code<br> <pre> &lt;?php $outfdf = fdf_create(); fdf_set_value($outfdf, "project_title", $project_title, 0); fdf_set_file($outfdf, "http:/fest.withoutabox.com/upload/FDF/lashortfest.pdf"); fdf_save($outfdf, "/home/web-content/fest.withoutabox.com/PDF/outtest.fdf"); fdf_close($outfdf); /* Header("Content-type: application/vnd.fdf"); */ Header("Content-type: text/plain"); $fp = fopen("/home/web-content/fest.withoutabox.com/PDF/outtest.fdf", "r"); fpassthru($fp); unlink("/home/web-content/fest.withoutabox.com/PDF/outtest.fdf"); ?> </pre> ---------------<p> Here is the output <br> <b>Warning</b>: fopen("/home/web-content/fest.withoutabox.com/PDF/outtest.fdf","r") - No such file or directory in <b>/home/web-content/fest.withoutabox.com/PDF/pdftest.php</b> on line <b>10</b><br> <br> <b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/web-content/fest.withoutabox.com/PDF/pdftest.php</b> on line <b>11</b><br> <br> <b>Warning</b>: Unlink failed (No such file or directory) in <b>/home/web-content/fest.withoutabox.com/PDF/pdftest.php</b> on line <b>12</b><br>

« previous php.notes (#3966) next »