|
Posted by bob.chatman@gmail.com on 04/10/07 00:31
On Apr 8, 11:06 am, "igorp" <igor.pole...@gmail.com> wrote:
> 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 this 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 host's 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.
What are you trying to do here? I have heard of a setting that blocks
setting $_POST, but ive never seen it in action. Give using a regular
variable a try or something in the globals array.
$GLOBALS['seen'] = 1;
[Back to original message]
|