pages work only somtimes with PHP binary

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
swprine
Forum Newbie
Posts: 1
Joined: Thu Dec 05, 2002 2:48 pm

pages work only somtimes with PHP binary

Post by swprine »

Directing browser to phpinfo.php, or any other php file, in a valid include directory with...

#!/usr/local/bin/php

at the beginning of the file sometimes works. It usually works the first time I go to a page and sporadically thereafter. When it does work the #!/usr/local/bin/php shows up in the window, which seems odd. When it doesn't I get a...

Warning: Failed opening '/u/web/home/www/somepath/php/phpinfo.php' for inclusion (include_path='.:/usr/local/php/includes:/www/somepath/php:/www/somepath/php/admin') in Unknown on line 0

... as if it can't find the file.


I've installed php as a binary on SunOS 5.8

Configure Command
--prefix=/usr/local
--with-oci8=/u/ora/app/oracle/product/9.0.1 --with-nsapi=/u/web/netscape/iplanet/
--enable-cli
--enable-sysvsem
--enable-sysvshm
--enable-discard-path
--enable-inline-optimization
--enable-libgcc
--enable-magic-quotes
--enable-memory-limit
--enable-sigchild
--enable-track-vars
--enable-trans-sid
--enable-versioning

I'm using iPlanet

Incidentally, from the command line there are not problems.

Ideas anyone :?:
Post Reply