| | |
uber newbie :(
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2004
Posts: 2
Reputation:
Solved Threads: 0
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!
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?
Dani the Computer Science Gal 
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds

Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
![]() |
Similar Threads
- As a newbie, where i should start from in linux? (Getting Started and Choosing a Distro)
- Questions about building a system (was: newbie) (Troubleshooting Dead Machines)
- Form not sending email (PHP)
- PHP newbie, project feasibility (PHP)
- Uber-N00B question (C++)
- How to network two Win98 machines (Networking Hardware Configuration)
Other Threads in the PHP Forum
- Previous Thread: Problems with first php file
- Next Thread: Reading from USB port using php?
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date development directory display download dynamic echo email error file files filter folder form forms function functions gc_maxlifetime google host href htaccess html image include insert integration ip java javascript joomla limit link login loop mail memmory memory menu mlm mod_rewrite multiple mysql navigation oop parse parsing paypal pdf php problem query radio random recursion regex remote script search server sessions sms snippet soap source space sql structure syntax system table thesishelp tutorial update upload url validation validator variable video web xml youtube






