PDA

View Full Version : lil SSI php help...



thediablo
January 21st, 2003, 12:10 PM
heres the error:

"Warning: Failed opening '/tx/inc/arriba.inc' for inclusion (include_path='.:/usr/local/lib/php') in /home/httpd/html/barrio/tx/index.php on line 1"

the include file just has plain html...

the code:


<? include("/tx/inc/arriba.inc") ?>

You know what is causing the prob?

the server supports php... maybe i gotta use anoter include code?

lostinbeta
January 21st, 2003, 12:23 PM
I am new with PHP so I don't know for sure... but I don't think you can include a file in a different directory.

Jubba
January 21st, 2003, 12:26 PM
Are you sure that the path is correct? That may be what is causing the problem.

thediablo
January 21st, 2003, 12:27 PM
i can do it with ASP... (inc in dif directory)

but im having this prob with php... maybe is something in the server?...

maybe its something with the

include_path='.:/usr/local/lib/php'

Jubba
January 21st, 2003, 12:30 PM
you could try 'require();" instead of include... that may work. I'm nto sure. it sounds like there is a problem with your path.

thediablo
January 21st, 2003, 12:32 PM
<? require("/tx/inc/arriba.inc") ?>

you mean that?

Jubba
January 21st, 2003, 12:33 PM
yeah.

thediablo
January 21st, 2003, 12:33 PM
Fatal error: Failed opening required '/tx/inc/arriba.inc' (include_path='.:/usr/local/lib/php') in /home/httpd/html/barrio/tx/index.php on line 1

hehe that was not the prob :P

Jubba
January 21st, 2003, 12:34 PM
I think its your path then. :) Make sure that its 100% accurate. Then if that doesn't work... find a PHP board and post there. :P

Sorry I can't help more... :)

thediablo
January 21st, 2003, 12:35 PM
yeah i think is the path also, gonna cal the hosting company and see what the F, is wrong with the path, im 100% is like that...

ill tell u in a min what they said.

Jubba
January 21st, 2003, 12:36 PM
awesome. I would like to know what is up as well...

thediablo
January 21st, 2003, 12:39 PM
hehe.

maybe they gonna send me to a php board or something :P

they are a bit dumb...

the other day they said "we(support team) dont help with programming problems in our servers"

:P... and i said WTF!?

n00b!

they got me on hold....

maybe they checking the manual..

thediablo
January 21st, 2003, 12:45 PM
OH MAN!!!!

i hate these kind of errorS!"#!"#

you kknow what the error was!?

a damn ; at the end of the include...



ERROR
<? require("/tx/inc/arriba.inc") ?>

GOOD
<? require("/tx/inc/arriba.inc"); ?>



DAMN the DEVIL!

THANKS DUDES!!! be sure to look out for these kind of errors, they are the worst error in programming you could get...

you dont know what the error is... or where it is... and u end up deleting the file lol!, and the only error was a unclosed bracket!

i hate those!

THANKS!

lostinbeta
January 21st, 2003, 12:47 PM
LOL!!!!

I hate them too man. I had a problem with an include like that too, but I knew it right off the bat so I didn't read the message it outputted.

DAMN SEMI-COLONS!!!!

Jubba
January 21st, 2003, 12:47 PM
wow...can't believe we all missed that. It happens tho.

Macromedia took it too easy on us by letting the whole ";" thing slide in Flash.

PHP is not so forgiving. :evil:

lostinbeta
January 21st, 2003, 12:48 PM
Javascript is not so forgiving with it either. Luckily it comes naturally for me to add it... sorta :-\