note 34466 added to function.fopen
| From: | gnicholas at newsquest dot co dot uk | Date: | Mon, 28 Jul 2003 14:29:05 +0000 |
| Subject: | note 34466 added to function.fopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52843@lists.php.net to get a copy of this message | ||
I am trying to create a scheduler that will create a php page that when fired off creates a PDF from
info in a database.
I have created the script that generates the PDF and have also managed to get the scheduler part
working, however I have an issue where I need the PDF script to be created on the fly as so I am
trying to use fopen. The problem is that all of the variables dissapear from the script when the
file is written. eg below.
<?
text = "
$somevariable
blah blah blah ";
$fp=fopen('../propupload/wycombe/JNP/123_.php', 'w');
fwrite($fp, sprintf($text));
fclose($fp);
?>
Any ideas..???
Thanks
Gareth
----
Manual Page -- http://www.php.net/manual/en/function.fopen.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34466
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34466&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34466&report=yes