note 58188 deleted from faq.html by betz

From: Date: Thu, 27 Oct 2005 08:06:45 +0000
Subject: note 58188 deleted from faq.html by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-97660@lists.php.net to get a copy of this message
Note Submitter: medley ---- another wacky insert with javascript: in your main file you write: <SCRIPT type="text/javascript" src="files.php?name=plik.txt"></SCRIPT> and in files.php: <?php echo("document.write('"); echo(ereg_replace(" // this line break is really nesessary - for some reason PHP doesn't pay attention to '\n' while interpreting a file "," ",file_get_contents($_GET['name']))); echo("');");?> which inserts file name (here plik.txt) into your main file using javascript. The file is parsed (all \n are converted into ' ') in files.php and then put into with document.write to your main file.

« previous php.notes (#97660) next »