note 6391 deleted from fdf_create by ronabop

From: Date: Sat, 02 Sep 2000 22:02:08 +0000
Subject: note 6391 deleted from fdf_create by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-3964@lists.php.net to get a copy of this message
I am trying thissample 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> $outfdf = fdf_create(); <br> fdf_set_value($outfdf, "project_title", $project_title, 0);<br> fdf_set_file($outfdf, "http:/fest.withoutabox.com/upload/FDF/lashortfest.pdf");<br> fdf_save($outfdf, "/home/web-content/fest.withoutabox.com/PDF/outtest.fdf");<br> fdf_close($outfdf);<br> /* Header("Content-type: application/vnd.fdf"); */<br> Header("Content-type: text/plain");<br> $fp = fopen("/home/web-content/fest.withoutabox.com/PDF/outtest.fdf", "r");<br> fpassthru($fp); <br> unlink("/home/web-content/fest.withoutabox.com/PDF/outtest.fdf");<br> </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 (#3964) next »