ID:               38082
 Updated by:       [EMAIL PROTECTED]
 Reported By:      antonio dot riva at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Output Control
 Operating System: Linux
 PHP Version:      4.4.2
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

This is expected since Apache redirects all requests to the PHP file
when you use such URLs.


Previous Comments:
------------------------------------------------------------------------

[2006-07-12 16:38:02] antonio dot riva at gmail dot com

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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38082&edit=1

Reply via email to