Hey guys , what is the best IDE to develope and most importantly DEBUG PHP ??
Please give me your recommendation and tell me what you personally use.
suppose i wanna check the output of rtrim() , i don't want to have to upload the file to the server or run xampp. I have heard about xdebugg.
Best IDE to develope and DEBUG PHP
Moderator: General Moderators
Re: Best IDE to develope and DEBUG PHP
You have to execute the file. Somewhere.
a) Upload it to your server and execute it there - very bad
b) Use XAMPP or another similar thing so that you can run your stuff through a web server
c) Use PHP's built-in web server for development but keeping in mind that it's not the same as a regular web server
d) Run your stuff from the command-line which is completely different from running it in a web server
As for editors, PhpStorm is popular. I still use NetBeans.
a) Upload it to your server and execute it there - very bad
b) Use XAMPP or another similar thing so that you can run your stuff through a web server
c) Use PHP's built-in web server for development but keeping in mind that it's not the same as a regular web server
d) Run your stuff from the command-line which is completely different from running it in a web server
As for editors, PhpStorm is popular. I still use NetBeans.
Re: Best IDE to develope and DEBUG PHP
never knew these 2 options existed. By testing , i just meants something for quick and dirty testing , for eg. if i want to see te output of rtrim() , i don't want to be uploading the file to my server to check the output , i would rather just see it in my IDE.c) Use PHP's built-in web server for development but keeping in mind that it's not the same as a regular web server
d) Run your stuff from the command-line which is completely different from running it in a web server
Btw, i am familier with https://eclipse.org/pdt/ , ver tried this one ? is it popular ? i might probably end up with netbeans , PHPstorm is commercial
Re: Best IDE to develope and DEBUG PHP
Do you not have a local server? How do you develop locally?if i want to see te output of rtrim() , i don't want to be uploading the file to my server to check the output
Also, for real quick and dirty, there's always PHP's REPL
I haven't heard much good about Eclipse, to be honest. NetBeans is OK, PHPStorm is excellent. They are all able to interface with XDebug.
Re: Best IDE to develope and DEBUG PHP
good morning guys.
I use xampp.
After reading online a bit .. i'll probably go for netbeans.
Did't know something called REPL existed , will probably get a PHP repl installed , found one, https://github.com/facebookarchive/phpsh .
Thank you for your suggestions celauran , requinix ...
I use xampp.
After reading online a bit .. i'll probably go for netbeans.
Did't know something called REPL existed , will probably get a PHP repl installed , found one, https://github.com/facebookarchive/phpsh .
Thank you for your suggestions celauran , requinix ...
Re: Best IDE to develope and DEBUG PHP
I'm confused. XAMPP comes with Apache and PHP, so you have a local server, which brings me back to having no idea why you'd need to upload anything anywhere to test it.
You don't need to download a REPL, you can just [text]php -a[/text]
You don't need to download a REPL, you can just [text]php -a[/text]
Re: Best IDE to develope and DEBUG PHP
Yes i can run it on xampp too ! i don't need to uplaod to my server .
i just wanted something like scratchpad(in mozilla , used for JS) , to evaluate PHP only methods etc. ofcourse if a database is involved , i would obviously need a server or run on xampp.
i just wanted something like scratchpad(in mozilla , used for JS) , to evaluate PHP only methods etc. ofcourse if a database is involved , i would obviously need a server or run on xampp.