LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-19-2006, 08:43 PM   #1
computer_tom
Member
 
Registered: Dec 2005
Location: usa
Distribution: arch
Posts: 43

Rep: Reputation: 15
Question php trouble...


i love html, soo easy, and i want to learn php now. i downloaded the installer ran it. i got some simple code saved it as new.php, than nothing i get a sligtly different FF icon but just a blank page. i also got MYSQL in the hopes it would work then, but no such luck. any ideas??!!!?!?!?!?!?!!! thanks- computer_tom
 
Old 04-19-2006, 10:14 PM   #2
crewblunts
Member
 
Registered: Jan 2004
Location: Connecticut, USA
Distribution: Slackware & Ubuntu
Posts: 53

Rep: Reputation: 15
php differs from HTML in that when you try to open a php page you cannot just double click and open it. It must be opened from a browser pointing at it as a URL...ie http://localhost/test.php Just make sure it is in a directory on your webserver and you should be fine.

hth,

Phil
 
Old 04-20-2006, 02:17 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
You also need a webserver (e.g. apache, available for linux, windows and possibly other OSes).
Next you have to tell the webserver to parse php files. For apache, you have to add a few lines to httpd.conf to do this.

I assume above requirements are satisfied as you get a blank page and not a page with source code; I mentioned the above to make sure.

Apache writes errors to a log file. You can find the location of the logfiles in the httpd.conf file. Under linux the logfile is probably /var/log/apache/error.log. Under windows it will probably be in something like C:\Apache Group\Apache2\logs.

Last edited by Wim Sturkenboom; 04-20-2006 at 02:19 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
having trouble with apache and php mohtasham1983 Linux - Networking 0 04-18-2006 06:01 PM
PHP Trouble to get Array Gerardoj Programming 5 03-28-2005 07:14 AM
PHP Array Trouble Gerardoj Programming 2 05-30-2004 09:53 PM
PHP Trouble Syntax Gerardoj Programming 2 03-30-2004 09:10 PM
Apache + PHP = Trouble??? craddy Linux - General 5 01-26-2004 05:18 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration