note 34466 rejected from function.fopen by didou

From: Date: Mon, 28 Jul 2003 14:29:21 +0000
Subject: note 34466 rejected from function.fopen by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-52845@lists.php.net to get a copy of this message
Note Submitter: gnicholas@newsquest.co.uk ---- 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

« previous php.notes (#52845) next »