|
Posted by igorp on 04/08/07 18:08
Hi,
can anyone tell me what's wrong with the following code:
==================================================
<?php
echo "Hello this is a test file on my server Seen: ${_POST['seen']} </
br>";
if(!isset($_POST['seen']) )
{
echo "HERE..."; $_POST['seen'] = 'yes';
require $_SERVER['SCRIPT_FILENAME'];
}
else{
echo "Not here...";
}echo "At the end of script ";
?>
==================================================
Basically, the idea was that the script should include/require
itself
at some condition, at the end of the script.
While it works fine on my home server and prints out
Hello this is a test file on my server Seen:
HERE...Hello this is a test file on my server Seen: yes
Not here...At the end of script At the end of script
on my hosting provider server it does not work as expected, i.e. the
include does not happen. The output will be:
Hello this is a test file on my server Seen:
HERE...
Any help would be greatly appreciated,
Igor.
Navigation:
[Reply to this message]
|