![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Moderator/Fedora Amb.
|
[SOLVED] Help with PHP
Hi,
I am having a problem with php. I am just starting to learn it, but I can't see any of the scripts that I have written. Every time I try to see one of my pages I write in the url: localhost/test.php:8080. But then I get a Failed to Connect error. I just figured out my apache problem but I feel like I am just spinning my wheels. Cheers!
__________________
![]() Linux Forever!
|
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Design Team Member
Join Date: Feb 2008
Location: Deming, NM
Posts: 312
OS: XP SP2 & Vista
|
Not great on home server side of things, but shouldn't it read localhost:8080/test.php?
Perhaps the server guys would have better luck helping you with this issue? Any other issues accessing .html, .jpg, or any other type of file?
__________________
|
|
|
|
|
|
#3 (permalink) |
|
Design Team Member
|
Re: Help with PHP
PHP Code:
__________________
Free Resources PC Protection - Comodo Firewall | AVG Anti-Virus | WinPatrol | Ad-Aware | Spybot S&D | SpywareBlaster |Web Design/Programming - KompoZer (Editor) | Paint.NET (Graphic) | GIMP+GIMPShop (Graphic) | FileZilla (FTP Client) | Free Hosting | |
|
|
|
|
|
#4 (permalink) |
|
Moderator/Fedora Amb.
|
Re: Help with PHP
Hi,
Sorry it has taken me so long to get back to you. I re-installed apache and php but I am still having the problems. I have moved the file to my home folder but that didn't work. I don't know what else to try at this point. Cheers!
__________________
![]() Linux Forever!
|
|
|
|
|
|
#5 (permalink) |
|
Moderator: Design
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,465
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 Ultimate (MSDNAA I <3 you)
|
Re: Help with PHP
Erm, this may seem like a silly question, but is PHP installed and enabled on your Apache install?
Does your ISP block port 80? Try a very-high-numbered port and see if this makes any difference.
__________________
![]() Validate your Markup Validate your CSS Notepad++ Please use [html], [php], and [code] when posting code or markup. I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message. |
|
|
|
|
|
#6 (permalink) | |
|
Registered User
Join Date: Jan 2009
Location: Belgium, Ranst
Posts: 3
OS: Windows XP SP3
|
Re: Help with PHP
Quote:
Now back on the problem: in the config file of apache (httpd.conf) there's a line that's starting with the word 'Listen'. It should be this: Listen 127.0.0.1:80 to be able to connect to your localhost from your own computer. When you want to be able to connect from another pc you'll have to change 127.0.0.1 (ip) to the ip you received from your isp (not 192.168.... <== router). Although I think this wouldn't be the problem. Maybe you should install Xampp, it's php, mysql and apache in one :) |
|
|
|
|
|
|
#7 (permalink) |
|
Moderator/Fedora Amb.
|
Re: Help with PHP
Hi,
I don't need Xampp. I run linux I can just set up a LAMP if I wanted. I may need to do that in the end. You don't need to worry about what ip your apache server is listen to, if you are only worried about your localhost. EDIT: I have made some progress. I have gotten to get a WSOD, from the phpinfo. I know that this isn't much but it is progress. Cheers!
__________________
![]() Linux Forever!
Last edited by wmorri; 01-25-2009 at 09:16 PM. |
|
|
|
|
|
#8 (permalink) |
|
Moderator: Design
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,465
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 Ultimate (MSDNAA I <3 you)
|
Re: Help with PHP
Sometimes it does matter, especially if your server puked. When I was getting Apache and ColdFusion to work together, I had to use a switchback from my ISP to get to the installs.
N.B.: do not try to get two or more servers to work on the same machine if you would like to keep your sanity and do not know what you are doing. Even if they are not processing the same data at the same time, they will screw each other up. In extreme cases, they may decide to mess with your regular traffic.
__________________
![]() Validate your Markup Validate your CSS Notepad++ Please use [html], [php], and [code] when posting code or markup. I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message. |
|
|
|
|
|
#9 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,886
OS: Vista, various linux distros
|
Re: Help with PHP
If it's just for learning PHP i'd suggest uninstalling your current set up and installing LAMP instead. I used LAMP when learning PHP, it takes your concentration away from having to re-learn your server's config etc.
As DM01 said, don't run more than one server. Cheers, Jamey |
|
|
|
|
|
#10 (permalink) |
|
Registered User
Join Date: Jan 2009
Location: Belgium, Ranst
Posts: 3
OS: Windows XP SP3
|
Re: Help with PHP
My opinion:
The best way to learn php is on a free webhost. Sometimes it's hard to find one. But the one I like the most (for testing only) is www.funpic.de! Too bad it's german ... But if you can speak a little bit German you should be able to do whatever you like. |
|
|
|
|
|
#11 (permalink) |
|
Moderator/Fedora Amb.
|
Re: Help with PHP
Hi,
So it took me about an hour but I decided that I would install ubuntu for the time being. I was done fussing with fedora for the moment. I got my LAMP Set up and it is all good. Thanks all for your help. Cheers!
__________________
![]() Linux Forever!
|
|
|
|
![]() |
| Thread Tools | |
|
|