View previous topic :: View next topic |
Author |
Message |
raj000 -
Joined: 02 Dec 2003 Posts: 7
|
Posted: Mon Jan 26, 2004 10:06 am Post subject: relative paths not recognized |
|
|
i am using Abyss on a windows 2000 machine.
I have used an include funtion in a PHP script. When i open and run the php script it fails to include the file because it does not recognize the relative path.
Warning: main(/actions/buttons.php): failed to open stream: No such file or directory in d:\Program Files\Abyss Web Server\htdocs\stock\new_warehouse.php on line 42
However, when i enter the full and exact path i.e d:\Program Files\Abyss Web Server\ etc. for the include file, it recognizes it and runs fine.
Please help |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Jan 28, 2004 2:50 pm Post subject: Re: relative paths not recognized |
|
|
raj000;
It seems that your included file path begins with /. This isn't a relative path. A relative path never begins with /.
So instead of Code: | include "/actions/buttons.php" | use Code: | include "actions/buttons.php" | . _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
jasjmorris -
Joined: 28 Jan 2004 Posts: 7 Location: Jacksonvile, Florida
|
Posted: Thu Jan 29, 2004 11:47 pm Post subject: |
|
|
Code: | FULL server path to your albums folder.
Use single quotes ( ' ) for Windows servers and double quotes ( " ) for Unix servers
$album_path = '/albums'; |
The directory is located in the htdoc under "abyss web server" so what is wrong? any help would be appreciated |
|
Back to top |
|
|
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Fri Jan 30, 2004 1:42 am Post subject: |
|
|
Remove the / before albums... |
|
Back to top |
|
|
jasjmorris -
Joined: 28 Jan 2004 Posts: 7 Location: Jacksonvile, Florida
|
Posted: Fri Jan 30, 2004 3:34 am Post subject: nope |
|
|
that wasn't it either effidently I had to put C:/Program Files/..... on to directory
so now i know for futher reference.. Thanks for the help :) |
|
Back to top |
|
|
raj000 -
Joined: 02 Dec 2003 Posts: 7
|
Posted: Mon Feb 02, 2004 7:07 am Post subject: didn't work |
|
|
I tried to remove / , but it still doesn't work.
Actually , i was using these scripts on a Windows 98 system and they seemed to be working fine. Now i have upgraded to 2000 .
There is little reason for these scripts to work in Windows 98 and not in 2000, unless there is some settings issue as i have re-installed Abyss.
Thanks |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Feb 02, 2004 7:15 pm Post subject: Re: didn't work |
|
|
raj000,
It has nothing to do with Abyss. But the include_path setting in php.ini may be in cause. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
raj000 -
Joined: 02 Dec 2003 Posts: 7
|
Posted: Thu Feb 05, 2004 12:13 pm Post subject: |
|
|
I tried that, it didn't really help.
Thanks anyway |
|
Back to top |
|
|
mtbiking -
Joined: 18 Mar 2004 Posts: 66
|
Posted: Sun Apr 11, 2004 1:17 pm Post subject: |
|
|
if your using windows you dont put d: and instead of \ put /
so it should look like this
/Program Files/Abyss Web Server/etc/etc |
|
Back to top |
|
|
|