Re: [PHP] Really strange

2006-10-06 Thread J?rgen Wind



Deckard wrote:
 
 Hi,
 
 I have this line of code:
 include_once('../config.inc.php');
 
 I'm 100% sure that the file config.inc.php is a directory up.
 
 config.inc.php is in /var/www/html
 and the file that calls it is in
 /var/www/html/classes
 
 nevertheless, i'm getting the error:
 Warning: main(../config.inc): failed to open stream: No such file or
 directory in /var/www/html/classes/dBInsert.php on line 10
 
 Warning: main(): Failed opening '../config.inc' for inclusion
 (include_path='.:/usr/share/pear') in /var/www/html/classes/dBInsert.php
 on line 10
 
 I'm boggled!
 
 Any help would be appreciated.
 
 Best Regards,
 Deckard
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
if you are using IIS read this:
http://support.microsoft.com/kb/332117/EN-US/


-- 
View this message in context: 
http://www.nabble.com/Really--strange-tf2385857.html#a6682604
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Really strange

2006-10-06 Thread J?rgen Wind





if you are using IIS read this:
http://support.microsoft.com/kb/332117/EN-US/



sorry , i overlooked '/var/www/html'
maybe the info is useful for someone else.
-- 
View this message in context: 
http://www.nabble.com/Really--strange-tf2385857.html#a6682765
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Really strange

2006-10-06 Thread Richard Lynch
On Fri, October 6, 2006 11:26 am, J?rgen Wind wrote:
 if you are using IIS read this:
 http://support.microsoft.com/kb/332117/EN-US/

Only MS would re-title confusing erroneous non-specific error
messages as FRIENDLY! :-v

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Really strange

2006-10-05 Thread Richard Lynch
On Wed, October 4, 2006 7:32 pm, Deckard wrote:
 I have this line of code:
 include_once('../config.inc.php');

DON'T DO THAT!

Sooner or later, you're gonna need to move/copy this file somewhere
else, and ../ ain't gonna be right.

 Warning: main(): Failed opening '../config.inc' for inclusion
 (include_path='.:/usr/share/pear') in

Here is your ANSWER.

*CHANGE* your include_path to have:
/var/www/html
in it.


All that said, also make sure the file is readable to PHP, as it
should have worked I think...

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Really strange

2006-10-04 Thread Deckard
Hi,

I have this line of code:
include_once('../config.inc.php');

I'm 100% sure that the file config.inc.php is a directory up.

config.inc.php is in /var/www/html
and the file that calls it is in
/var/www/html/classes

nevertheless, i'm getting the error:
Warning: main(../config.inc): failed to open stream: No such file or
directory in /var/www/html/classes/dBInsert.php on line 10

Warning: main(): Failed opening '../config.inc' for inclusion
(include_path='.:/usr/share/pear') in /var/www/html/classes/dBInsert.php
on line 10

I'm boggled!

Any help would be appreciated.

Best Regards,
Deckard

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php