relative paths not recognized

 
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI
View previous topic :: View next topic  
Author Message
raj000
-


Joined: 02 Dec 2003
Posts: 7

PostPosted: Mon Jan 26, 2004 10:06 am    Post subject: relative paths not recognized Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Jan 28, 2004 2:50 pm    Post subject: Re: relative paths not recognized Reply with quote

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 View user's profile Send private message Send e-mail
jasjmorris
-


Joined: 28 Jan 2004
Posts: 7
Location: Jacksonvile, Florida

PostPosted: Thu Jan 29, 2004 11:47 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail AIM Address
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Fri Jan 30, 2004 1:42 am    Post subject: Reply with quote

Remove the / before albums...
Back to top View user's profile Send private message
jasjmorris
-


Joined: 28 Jan 2004
Posts: 7
Location: Jacksonvile, Florida

PostPosted: Fri Jan 30, 2004 3:34 am    Post subject: nope Reply with quote

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 View user's profile Send private message Send e-mail AIM Address
raj000
-


Joined: 02 Dec 2003
Posts: 7

PostPosted: Mon Feb 02, 2004 7:07 am    Post subject: didn't work Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Feb 02, 2004 7:15 pm    Post subject: Re: didn't work Reply with quote

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 View user's profile Send private message Send e-mail
raj000
-


Joined: 02 Dec 2003
Posts: 7

PostPosted: Thu Feb 05, 2004 12:13 pm    Post subject: Reply with quote

I tried that, it didn't really help.

Thanks anyway
Back to top View user's profile Send private message
mtbiking
-


Joined: 18 Mar 2004
Posts: 66

PostPosted: Sun Apr 11, 2004 1:17 pm    Post subject: Reply with quote

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 View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group