if the windows machine is the "host machine" ie for your internet http://localhost/ will only be for the windows machine so if you are tring to get to that address from your linux machine you won't be able to ... however if your machines ip was say 123.123.123.123(windows machine) then from your linux machine go http://123.123.123.123/ and you should be able to see the pages -----Original Message----- From: mike cullerton [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 3:29 PM To: php-general Subject: Re: [PHP] newbie has include path error & new problem i'm guessing your problems are unrelated. for your network problem, it seems that you didn't really achieve 'networking linux box to windows host' correctly. can you currently ping localhost? what does your route table look like? as for the php problem. it's definitely a problem with your path. in your error message >> Warning: Failed opening '/etc/httpd/php/prepend.php' for >> inclusion (include_path=") in unknown in line 0. php thinks your include_path is ''. that means you have no include path, not even '.' mine is something like .:/var/www/php:/var/www/docs/include:/usr/local/lib/php this is defined in php.ini what's really interesting, is that you call prepend.php with an absolute path. you shouldn't even need the include path. i'd look in php.ini. where do you actually store prepend.php? mike on 7/1/01 11:00 PM, Daniel Goldin (E-mail) at [EMAIL PROTECTED] wrote: > Thanks for your help. The server document root is: /etc/httpd/htdocs. > Perhaps I need to point to this document in root in php.ini file? > > Anyway, I cannot try that now as I have finally achieved networking linux > box to windows host that acts as our internet server. Now when I try to > connect to: http://localhost I get this error > > "425 HTTP ERROR > > Unable to connect to remote host" > > I tried stopping the network, but that only caused Netscape to choke. Hmm. > (help?) > > Best, > > Daniel > > -----Original Message----- > From: Justin French [mailto:[EMAIL PROTECTED]] > Sent: Saturday, June 30, 2001 12:36 AM > To: [EMAIL PROTECTED] > Cc: php > Subject: Re: [PHP] newbie has include path error > > > Hi, > > If you can "surf" local host for standard HTML pages and other php pages > (without includes in them) eg: > > http://localhost/file.html > > Then the problem isn't the server really, it seems to me that the server > document root for your files should be something like: > > /usr/local/apache/ not /etc/httpd/php/prepend.php > > Can you ftp into your server? What's the path to your document root for > all your html / php files? I doubt it's /etc/httpd/php/file.html, if it > isn't this, then the problem is somewhere in your php cnfig to indicate > where the document root is. > > Eh, it's kidna hard to explain... maybe someone else can explain it > better :) > > > Justin French > Creative Director > Indent.com.au > > > > Daniel Goldin wrote: > >> I had php/apache/mysql working perfectly for awhile on my redaht 7.1 box. >> Compiled them all from source and was very proud, as I am at best an > amateur >> programmer. In other words, I love this stuff, but it doen't come > naturally. >> >> Recently I've been fiddling with networking (to little avail), installed a >> new ethernet card and did some other stuff... Anyway, now when I go into >> http://localhost (apache is running), I get this error: >> >> Warning: Failed opening '/etc/httpd/php/prepend.php' for >> inclusion (include_path=") in unknown in line 0. >> >> I've tried putting in this include path in my php.ini file to no effect. >> Please help. I have several projects I'm working on that require php and I >> have no way of working on them on my development box. >> >> Any help gratefully appreciated. Also, I apologize for being too chatty. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] newbie has include path error & new problem
Peter Houchin - SunRentals Australia Sun, 01 Jul 2001 23:13:08 -0700
- [PHP] newbie has include path error Daniel Goldin
- Re: [PHP] newbie has include pat... CC Zona
- Re: [PHP] newbie has include pat... Justin French
- RE: [PHP] newbie has include... Daniel Goldin \(E-mail\)
- Re: [PHP] newbie has inc... mike cullerton
- RE: [PHP] newbie has... Peter Houchin - SunRentals Australia
- RE: [PHP] newbi... Daniel Goldin \(E-mail\)
- RE: [PHP] newbie has... Daniel Goldin \(E-mail\)
- Re: [PHP] newbi... mike cullerton
- RE: [PHP] n... Daniel Goldin \(E-mail\)
- RE: [PH... scott [gts]
- Re: [PH... mike cullerton
- RE: [PH... Daniel Goldin \(E-mail\)
- Re: [PH... mike cullerton
- RE: [PH... Daniel Goldin