import doesnt work

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
uncleunvoid
Forum Newbie
Posts: 4
Joined: Tue Jul 03, 2007 8:29 am

import doesnt work

Post 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?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: import doesnt work

Post 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.
Post Reply