Web/Database Development
Moderator: Moderators
Web/Database Development
I have, up to this point, been primarily experienced with ASP.NET development against an MSSQLServer. I would like to play around with PHP, and was wondering what the best way to do this is. The glitch I'm seeing is that with ASP.NET in a Visual Studio I can run my server is "debug" mode when I need to run it and not have it running at all in the background the rest of the time, but the PHP installer is for running on an existing web-server.
So, is there something like a IDE for writing and testing PHP code that runs it's own server on execution instead of running in the background all the time.
So, is there something like a IDE for writing and testing PHP code that runs it's own server on execution instead of running in the background all the time.
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Web/Database Development
http://us2.php.net/manual/en/function.echo.phpSinbadEV wrote:testing PHP code
Re: Web/Database Development
Either you mis-understood me or you are being a douche. Any non-moron/asshats want to answer?CarRepairer wrote:http://us2.php.net/manual/en/function.echo.phpSinbadEV wrote:testing PHP code
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Web/Database Development
Trying to help. The best thing about php development is it's so quick and easy that you don't need an IDE. You drive an electric vehicle right? Wouldn't you find it weird if someone wanted to put a turbocharger in it?
But to answer your question, Dreamweaver can probably debug php. Never used it though.
But to answer your question, Dreamweaver can probably debug php. Never used it though.
Re: Web/Database Development
It's not so much the IDE as the not having to run a server... I just installed a really tiny server instead...CarRepairer wrote:Trying to help. The best thing about php development is it's so quick and easy that you don't need an IDE. You drive an electric vehicle right? Wouldn't you find it weird if someone wanted to put a turbocharger in it?
But to answer your question, Dreamweaver can probably debug php. Never used it though.
Wait, nevermind I couldn't figure out how to make PHP work with XITAMI
Re: Web/Database Development
XAMPP or WAMPP ftw
if php crashes, it tells you when you load the page why and what line and character and in what file.
If you need to know values, use echo.
Php is a lot simpler and easier in most cases from what I know of ASP .Net.
if php crashes, it tells you when you load the page why and what line and character and in what file.
If you need to know values, use echo.
Php is a lot simpler and easier in most cases from what I know of ASP .Net.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Web/Database Development
Dreamweaver can and will debug php, but I don't trust it any farther than I can throw it... notepad4lyfeyo!
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Web/Database Development
Oh noes, that's what I said in the second post and was then called a moron/asshat.AF wrote:If you need to know values, use echo.
Re: Web/Database Development
install xampp. Start apache/mysql. Stop apache/mysql when done - 4 clicks total.
- Spawn_Retard
- Posts: 1248
- Joined: 21 Dec 2006, 14:36
Re: Web/Database Development
dreamweaver ftw.
i could set you up with a good version of it... unless you already have one?
i could set you up with a good version of it... unless you already have one?
Re: Web/Database Development
notepad++ ftw
Re: Web/Database Development
Every windows has built in IIS and PHP can run in IIS.
To debug/step you can use specialized tools like zend studio - which is basically what you want PHP IDE
To debug/step you can use specialized tools like zend studio - which is basically what you want PHP IDE
Re: Web/Database Development
++1 to notepad++AF wrote:notepad++ ftw
Re: Web/Database Development
Ahh, the cold-water shock of finding out that most OSS stuff is developed outside of an IDE and debugger, and most of the debugging is done with brute-force "printline" approaches rather than fighting with GDB-like debuggers.
A few years ago I would have agreed with you about picking up PHP.... ASP.Net webcontrols are a friggin' abomination against everything sane and reasonable in software.
However, MVC allows you to use ASP.Net in a PHP or Ruby-like fashion, so it might be worth sticking with what you know and just picking up the new MVC stuff.
A few years ago I would have agreed with you about picking up PHP.... ASP.Net webcontrols are a friggin' abomination against everything sane and reasonable in software.
However, MVC allows you to use ASP.Net in a PHP or Ruby-like fashion, so it might be worth sticking with what you know and just picking up the new MVC stuff.
Re: Web/Database Development
What I really want is something like this:Pxtl wrote:Ahh, the cold-water shock of finding out that most OSS stuff is developed outside of an IDE and debugger, and most of the debugging is done with brute-force "printline" approaches rather than fighting with GDB-like debuggers.
A few years ago I would have agreed with you about picking up PHP.... ASP.Net webcontrols are a friggin' abomination against everything sane and reasonable in software.
However, MVC allows you to use ASP.Net in a PHP or Ruby-like fashion, so it might be worth sticking with what you know and just picking up the new MVC stuff.
Write page in Notepad++
Press F5, WebServer Starts, Browser Opens to Page I'm editing, close browser- web-server stops.
Re: Web/Database Development
You can do that with any tool - including notepad++ - it supports custom tools execution etc.
But zend has advantage of actually allowing you to put breakpoints, watch variable values etc without need to echo everything.
And regarding asp.net - you can get used to webcontrols system, its not so bad, problem is you need to know about how its done internally to make really advanced things. MVC is certainly cleaner.
But both of these are advanced and I would not recommend it to newbie web developer. I guess its best to start php/perl/python to understand how stuff works on low level, like its imo good to start on C/C++ before moving to more powerful languages.
But zend has advantage of actually allowing you to put breakpoints, watch variable values etc without need to echo everything.
And regarding asp.net - you can get used to webcontrols system, its not so bad, problem is you need to know about how its done internally to make really advanced things. MVC is certainly cleaner.
But both of these are advanced and I would not recommend it to newbie web developer. I guess its best to start php/perl/python to understand how stuff works on low level, like its imo good to start on C/C++ before moving to more powerful languages.
Re: Web/Database Development
Wait, what?Licho wrote:I guess its best to start php/perl/python to understand how stuff works on low level
Re: Web/Database Development
You can make simple python script and run it through CGI interface to understand how arguments are passed etc. Believe me, python is still very close to low level compared to those heavy asp.net frameworks where you can be completely clueless about web things like get parameters, cookies, etc..
Re: Web/Database Development
+1SinbadEV wrote:++1 to notepad++AF wrote:notepad++ ftw
I LOVE that tool :)
I believe there was a PHP debug plugin for notepad++, but I have never tried it.
For debugging: I agree to the echo funciton. but in addition:
print_r() useful for printing arrays
var_dump() also prints arrays, but in a slightly different way. might be more useful for bigger arrays.
not sure if it is possible to get full stacktraces in some way, though..
but for me, these are often enough to find what is causing the problems.
edit: I guess it is known, but who cares