[PHP] Newb PHP Question

2004-08-13 Thread Andy Moore
I'm getting an error... And I have no idea how to fix it. I've never been able to get PHP to work. --- Warning: Unknown(/var/www/test.php): failed to open stream: Permission denied in Unknown on line 0 Warning: (null)(): Failed opening '/var/www/test.php' for inclusion

Re: [PHP] Newb PHP Question

2004-08-13 Thread Andy Moore
Andy do a small page with only this in it and see if it will load. ?php phpinfo(); ? That churned out a rather long page with all sorts of information... so now I'm assuming that PHP is parsing correctly, but I have some sort of configuration error? What that would be, I'm unsure... -Andy --

Re: [PHP] Newb PHP Question

2004-08-13 Thread Andy Moore
Can we see some of the code throwing the error? PHP is working correctly if you got the page above (a handy thing to keep around BTW). I assumed it was a configuration error because the error occured on line 0. But in any case, here's some lowdown. main.php - the file everyone will be seeing,

[PHP] Yet another Newb Question - error

2004-08-13 Thread Andy Moore
Thanks to this newsgroup I finally overcame one of my biggest errors in PHP. But it still doesn't work completely. :) --- Fatal error: Call to undefined function: pg_connect() in /var/www/include/db.php on line 30 --- Undefined function? Isn't it a standard command? - Andy Moore -- PHP General

Re: [PHP] Newb PHP Question

2004-08-13 Thread Andy Moore
httpd got access to all the files? Ah! I fixed it now. Ok, this problem is solved, thanks all :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Yet another Newb Question - error

2004-08-13 Thread Andy Moore
or something? I don't know where library files are stored... - Andy Moore -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php