#PHP
http://www.codecademy.com/en/tracks/php
http://www.phptherightway.com/
###Servers
MAC
https://bitnami.com/stack/mamp
Windows
Portable: http://www.usbwebserver.net/en/
https://github.com/zmwebdev/php-examples/blob/master/ubuntu-server-setup.txt
Start PHP server:
http://php.net/manual/en/features.commandline.webserver.php
$ php -S localhost:8000
$ php -S localhost:8000 -t foo/
You can make the web server accessible on port 8000 to any interface with:
$ php -S 0.0.0.0:8000
Access using:
http://localhost:8000/filename.php
With Apache:
http://localhost/.../.../filename.php
logs in Apache:
$ tail -f /var/log/apache2/error.log
php.ini:
/etc/php5/apache2/php.ini
###HTTP request
curl, postman, ...
##IDE
SublimeText
https://www.jetbrains.com/phpstorm/
##Errors
http://www.phptherightway.com/#error_reporting
With Aptana:
http://php.tutorialhorizon.com/how-to-debug-php-in-aptana-studio-for-linux-part-1/
With SublimeText:
http://stackoverflow.com/questions/5504152/is-it-possible-to-use-xdebug-on-ubuntu
http://askubuntu.com/questions/503751/configure-xdebug-ubuntu-14-04
http://www.youtube.com/watch?v=Zk87LSbxLtw
https://github.com/martomo/SublimeTextXdebug
http://www.sitepoint.com/debugging-xdebug-sublime-text-3/
Install:
$ sudo apt-get install php5-xdebug
you should change your /etc/php5/apache2/conf.d/20-xdebug.iniand add this line:
zend_extension=/path/to/your/xdebug.so
xdebug.remote_enable = 1
then
$ sudo service apache2 restart
Install xdebug in sublimetext using package manager
in sublime text, project -> save project as, and save in the root. Add this:
{
"folders":
[
{
"follow_symlinks": true,
"path": "/home/../workspace"
}
],
"settings": {
"xdebug": {
"url": "http://localhost/",
}
}
}