Jump to content

Archived

This topic is now archived and is closed to further replies.

xyn

Warning: [function.include] :/

Recommended Posts

Hii,
I have just got the below error, I ahve never come accross thiss before
I used this the other day but now it doesn't seem to work :/

error:
Warning: include(register.php?terms=accept&register=true) [function.include]: failed to open stream: No such file or directory in /home/eumod/public_html/en/index.php on line 105

Warning: include() [function.include]: Failed opening 'register.php?terms=accept&register=true' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in public_html/en/index.php on line 105

Share this post


Link to post
Share on other sites
it means exactly what it says...

When you use include, it opens the file and reads the contents...the php intrepreter reads them just the same as if you had typed them in the including script...as opposed to the file functions which allow you to manipulate the data retrieved.

What the error is saying is that php can not open the file...which isn't a file at all in your usage...it's a url.  So, if that url doesn't exist, then it can't open it.

Share this post


Link to post
Share on other sites
try...
$terms = accept;
$register = true;
include('register.php');

and make sure that in register php that $terms and $register are exactly that NOT $_GET['terms'] etc....

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.