note 58188 added to faq.html

From: Date: Thu, 27 Oct 2005 00:44:45 +0000
Subject: note 58188 added to faq.html
Groups: php.notes 
Request: Send a blank email to php-notes+get-97647@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/faq.html.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58188 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58188&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58188&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58188&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58188&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58188&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58188&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58188&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58188&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#97647) next »