|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-07-20 15:54 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 16:00:01 2025 UTC |
Description: ------------ when i load a page with a url like this "test.php/ciao/ciao/ciao" i want to execute the script test.php and store the content of $_SERVER['REQUEST_URI'] in a the session array or in a file... the problem is that the browser execute a new request for the favicon and the url is saved in the file or in the session but if i print the $_SERVER['REQUEST_URI'] to screen it shoe the right value Reproduce code: --------------- <?php session_start(); ?> <html><head> <link rel="shortcut icon" href="./favicons.ico"/> </head><body> <? $string = $_SERVER['REQUEST_URI']; $f=fopen("temp",'w'); fwrite($f,$string); fclose($f); $_SESSION['variabile']=$string; echo "<b>variabile:</b> ".$_SESSION['variabile']; ?> </body></html> this is the url that generate the bug: test.php/ciao/ciao/ciao Expected result: ---------------- test.php/ciao/ciao/ciao in the file test.php/ciao/ciao/ciao to screen Actual result: -------------- test.php/favicons.ico in the file test.php/ciao/ciao/ciao to screen