Page 1 of 1

import doesnt work

Posted: Mon Jul 06, 2009 4:32 pm
by uncleunvoid
I have a php script imported into some html code.

the script works fine by itself, yet when imported into the html part. it stops working.

I am including it like this:

Code: Select all

<?php
 include "../../../cgi/php/80days/getAutoLogin.php";
 ?>

anything wrong with this?

Re: import doesnt work

Posted: Mon Jul 06, 2009 5:01 pm
by requinix
Nope. That one line, that tiny bit of code you posted, the code that we're supposed to use to diagnose your problem, doesn't have any mistakes.

Remember that include paths are relative to the current working directory - this is not always the same as the directory containing the PHP file that's doing the include.