PHP Development Environment

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

PHP Development Environment

Post by Luke »

Is there any good PHP environments that do not need you to be connected to any sort of server or run a server within themselves? Does that question even make sense? If so, how could I acquire such an environment?
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Re: PHP Development Environment

Post by Oren »

The Ninja Space Goat wrote:Does that question even make sense?
Well... If it does, then not to me.
What do you mean? A local server maybe?
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

Are you saying run PHP files on a machine with no server?

I think it would be pretty hard to take the 'server' out of 'server side scripting'

There was a desktop vs created sometime last year but I believe even that required the machine to be running the server...
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I didn't think a server-side, pre-processed scripting language could process without a server?

I know that Zend Studio can debug a script by running it through the php.exe file on a Windows system. So in that case, even without a server, it can still run, but it is not getting processed, just evaluated to static HTML. In order to see it, you have to choose to view the output in a browser.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

it just seems to me that it would be possible to build a program that emulates a server to develop php inside of.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I'm sure it's possible. It's just easier for most people to download Apache, install it and start parsing. At least I am of that opinion.
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

The Ninja Space Goat wrote:it just seems to me that it would be possible to build a program that emulates a server to develop php inside of.
Correct me if I'm wrong, but wouldn't this "program" be a server?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I think a server (like httpd) serves up pages. A processing app (like PHP) processes code. The processor works on the server to serve up processed files. So what Ninja is talking about is an app to simulate the interaction between the processor and the server by way of the processor only. I think. :?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: PHP Development Environment

Post by Christopher »

The Ninja Space Goat wrote:Is there any good PHP environments that do not need you to be connected to any sort of server or run a server within themselves?
Do you have Apache/PHP installed on your local machine? If not that is the way to do it. Other programs then use the CLI PHP to do things like error checking. I know that PHPEclipse does error checking in the editor which is very handy to find the stupid missing parens and semi-colons type errors.
(#10850)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

There are a lot of editors that will do debugging by passing your script through php.exe (or whatever version of the executable you have on your machine). I know tsEditor does it, of course Zend Studio does it, PHPEdit (from waterproof software) does it. I think even notepad++ offers some form of debugging also. They don't use the server, they use the executable to process your script.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

Ninja, you might want to take a look at NuSoap phpEd. It cames bundled with tiny http server just for debugging purposes. It's a decent IDE (yet I prefer vim + denwer, myself)
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

The Ninja Space Goat wrote:it just seems to me that it would be possible to build a program that emulates a server to develop php inside of.
By server I am not sure what you mean...

Run PHP scripts without Apache?

Year it's easy...you pass your scripts to PHP CLI and it returns your output...

Your editor would then need to capture that CLI output (not difficult, but not trivial either) and send it to a web browser.

When I say web browser I don't mean an actual web browser, but rather the engine which drives a web browser...at the very least.

ie:
1) IE's IWebBrowser2/3
2) Mozilla's Gecko

In this sense, your application emulates a web server...and it becomes the direct responsibility of you application to determine which scripts get loaded and supply those scripts with GET/POST, etc data...

Are you building an IDE?

Cheers :)
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Oren wrote:
The Ninja Space Goat wrote:it just seems to me that it would be possible to build a program that emulates a server to develop php inside of.
Correct me if I'm wrong, but wouldn't this "program" be a server?
The application would become both the server and the client...yes...

The embedded HTMl rendering engine would be the client and the PHP CLI would be the server...
Post Reply