Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Programming & Scripting
Reload this Page PHP Development Environment Setup
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Programming & Scripting C, Perl, PHP, Bash Scripts, anything programming or script related post in here!

Reply
 
Thread Tools Display Modes
Old 06-26-2008   #1 (permalink)
usamamuneeb
Linux User
 
usamamuneeb's Avatar
 
Join Date: Jun 2007
Location: Karachi, PAKISTAN
Posts: 411
Send a message via MSN to usamamuneeb
PHP Development Environment Setup

Hello all, don't laugh at my newbie question.

I want to set up a PHP development environment. What would Apache do for me? Can't I just inject it into HTML and view using Firefox while offline?
__________________
"You can complain that roses have thorns, or you can rejoice because thorns have roses."
usamamuneeb is offline   Reply With Quote
Old 06-26-2008   #2 (permalink)
GNU-Fan
Linux Newbie
 
Join Date: Mar 2008
Posts: 143
Basically, what a PHP interpreter does is to read a textfile (usually ending with .php) and then doing the appropriate actions. When this involves giving back any output (e.g. a text string) the PHP program usually returns it on the standard output.

A HTTP server can catch this output and sends it right to the browser of the viewer.

You could also invoke the PHP processor on the command line, feeding it the .php and redirecting the output to a file. e.g. output.html
This can then be opened with any web browser.

Apache has also a built-in PHP module or alternatively it can be configured to invoke the extern PHP interpreter via CGI as any http server.

For playing around a bit you might want to check out XAMPP.
GNU-Fan is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 06:07 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0