Including a file on a public server
Posted: Fri Jun 25, 2004 3:43 am
Hi!
I have uploaded my site to lets say, http://www.myserver.com. As I tested the site on my own computer, the site worked perfectly, but because of the new adress, none of the included files can be found.
The error:
Warning: main(smarty/libs/smarty_setup.php): failed to open stream: No such file or directory in /usr/local/psa/home/vhosts/myserver.com/httpdocs/main/main.php on line 2
The file returning the error is placed in myserver.com/httpdocs/classes.
The problem, as I see it is, that the file which is including the smarty-file, is placed in a directory a level under the directory in which the including file is placed. Or am I wrong?
Now, how can I included the missing file? I've tried the '/' in the main-file, but I get a error saying that the action is beyond my restrictions...?
I have uploaded my site to lets say, http://www.myserver.com. As I tested the site on my own computer, the site worked perfectly, but because of the new adress, none of the included files can be found.
The error:
Warning: main(smarty/libs/smarty_setup.php): failed to open stream: No such file or directory in /usr/local/psa/home/vhosts/myserver.com/httpdocs/main/main.php on line 2
The file returning the error is placed in myserver.com/httpdocs/classes.
The problem, as I see it is, that the file which is including the smarty-file, is placed in a directory a level under the directory in which the including file is placed. Or am I wrong?
Now, how can I included the missing file? I've tried the '/' in the main-file, but I get a error saying that the action is beyond my restrictions...?