PHP Development Environment
Moderator: General Moderators
PHP Development Environment
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?
Re: PHP Development Environment
Well... If it does, then not to me.The Ninja Space Goat wrote:Does that question even make sense?
What do you mean? A local server maybe?
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
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.
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.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: PHP Development Environment
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.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?
(#10850)
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
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.
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
By server I am not sure what you mean...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.
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
The application would become both the server and the client...yes...Oren wrote:Correct me if I'm wrong, but wouldn't this "program" be a server?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.
The embedded HTMl rendering engine would be the client and the PHP CLI would be the server...