I’m trying to include PEAR’s Net_IPv4 module in a web PHP script I’m
coding. Using PHP v4.4.0.
Other scripts on this web server (not personal user scripts, but main
site ones) call it with:
and it works.
My script is under my public_html directory and if I use that same line
I get a “Fatal error: Call to undefined function: validateip() in
/home/james/public_html/test/srt/srt-0_3.php on line 258”.
I thought that maybe PHP safe mode was on (theoretically it’s not, but
since I don’t own that IPv4.php file…), so I placed my own copy of
IPv4.php in my own public_html, then in the same dir as the script,
then under Net directories in each of the two previous ones, always
with the same error message.
This server’s include path is set to:
include_path = “.:/usr/lib/php”
According to my interpretation of the documentation, if I use
“require_once(“./IPv4.php”);” and include IPv4.php in the script’s same
directory it should work… what am I missing here?
Thanks for your help! 🙂