I am very, very new to this whole php thing, so i am sorry for being so dumb, i am trying to learn, and i am going crazy! I am trying to get several scripts working but keep getting similar errors for them.. looks something like this

Warning: Division by zero in /usr/local/psa/home/vhosts/darrenthomas.net/httpdocs/test.php on line 7

Warning: Division by zero in /usr/local/psa/home/vhosts/darrenthomas.net/httpdocs/test.php on line 7

Warning: main(php): failed to open stream: No such file or directory in /usr/local/psa/home/vhosts/darrenthomas.net/httpdocs/test.php on line 7

Warning: main(): Failed opening 'php' for inclusion (include_path='.:/usr/local/psa/apache/lib/php') in /usr/local/psa/home/vhosts/darrenthomas.net/httpdocs/test.php on line 7

Now, i would like to note, they work if i put the page file in where the scripts are (same dir) but i get this error when i try to call them from the site root.. i have all the php files in a folder names /php/foldername <-- hope that makes sense.. I dont get what i need to do, thanks a ton in advance!

I'm confused what you mean. What does test.php look like? When does test.php work and when doesn't it? When test.php is in the site root, you can run it just fine?

Well, I scrapped that script, and got another one.. and got those working so, thanks for the attempt to help though!! :mrgreen: