Try this:

<?
if ($viewsystem == 1)
        $Str = "d:\\htdocs\\somewhere\\editexemptfiles.php?every=1";

require($Str);
?>


Niklas


-----Original Message-----
From: Andy Whittlestone [mailto:[EMAIL PROTECTED]] 
Sent: 26. kesäkuuta 2002 15:37
To: [EMAIL PROTECTED]
Subject: [PHP] Require()


 I want to use require to send some post information to a page.


Code:

if ($viewsystem = = 1)
    $Str = "editexemptfiles.php?every = 1";

require($Str);


I've tried what it says in the online documentation, but it doesn't
work,

Tried:
    $Str = "d:\htdocs\somewhere\editexemptfiles.php?every = 1";


getting the following error:

Fatal error: Failed opening required
'd:/htdocs/somewhere/anotherpage.php?every = 1'
(include_path='.;d:\php\includes') in d:\htdocs\somewhere\thispage.php
on line 48






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

###########################################
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/

###########################################
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to