•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 426,590 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,677 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1478 | Replies: 2
![]() |
•
•
Join Date: Nov 2004
Posts: 2
Reputation:
Rep Power: 0
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!
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,908
Reputation:
Rep Power: 32
Solved Threads: 118
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
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Questions about building a system (was: newbie) (Troubleshooting Dead Machines)
- As a newbie, where i should start from in linux? (Getting Started and Choosing a Distro)
- 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?



Linear Mode