-
Equivalent of Linux's wget: $ curl "http://127.0.0.1:8000" -o "outfile" curl in OS X Mavericks expects quotation marks for URL and for output filename, especially if the URL has parameters.
-
Suprimir: Fn + Borrar
-
How can I see my home folder in the finder? Shift+Command+H takes you to your home folder Command+UpArrow takes you one folder up
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Check mods installed ok using "pear list" and "php -m" | |
| === php5 === | |
| # PDO drivers (mandatory for Propel and Doctrine) | |
| $ apt-get install php5-sqlite | |
| $ php --ini | |
| === php7 === | |
| $ apt-get install libapache2-mod-php7.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| === Symfony 1.3.0 === | |
| * Comprueba que Symfony se ha instalado correctamente usando la línea de comandos para mostrar la versión: | |
| $ php lib/vendor/symfony/data/bin/symfony -V | |
| * Ver una lista de las opciones y las tareas disponibles: | |
| $ php symfony | |
| * Creacion del proyecto | |
| $ php lib/vendor/symfony/data/bin/symfony generate:project jobeet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| define("URI_FLIGHTS", "http://10.0.0.1:80/flightsService/flights?wsdl"); | |
| $nusoap_client = new nusoap_client(URI_FLIGHTS, true); | |
| $nusoap_client->soap_defencoding = 'utf-8'; | |
| $nusoap_client->useHTTPPersistentConnection(); | |
| if( $nusoap_client->getError() ) { | |
| $nusoap_client->getError(); | |
| } else { | |
| $request = ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ==== Formato de Registro Combinado (Combined Log Format) ==== | |
| LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined | |
| CustomLog log/access_log combined | |
| Ejemplo: | |
| 190.239.139.73 v - - [14/Nov/2016:09:20:50 -0500] "GET /js/plugins/fileupload/bootstrap-fileupload.min.js HTTP/1.1"200 1911 "http://admin.costamaragencias.com/es/user/panel""Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393" | |
| 190.239.139.73 ==> (%h): ip cliente | |
| - ==> (%l): Un "guión" siginifica que la información que debería ir en ese lugar no está disponible. | |
| En este caso, esa información es la identidad RFC 1413 del cliente determinada por identd en la | |
| máquina del cliente. Esta información es muy poco fiable y no debería ser usada nunca excepto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ZF1 | |
| - All resources for all modules were initialized on each request, and bootstrapping modules was an onerous task. | |
| - Due to the difficulties, modules were never truly "plug-and-play", and thus no ecosystem ever evolved for sharing modules. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ==== REPOSITORIES ==== | |
| In Fedora - su nano /etc/yum.repos.d | |
| To check your hostname run: | |
| $ hostname | |
| $ hostname -f | |
| The first command should show your short hostname, | |
| and the second should show your fully qualified domain name (FQDN). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Create new project | |
| $ symfony new my-project 2.8.0 | |
| or | |
| $ symfony new my-project lts | |
| or | |
| $ composer create-project symfony/framework-standard-edition my_project_name "2.8.*" | |
| Check version Symfony | |
| $ php app/console --version | |
| or |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $datetime = new \DateTime('2012-10-10'); | |
| $date = new DateTime('2000-01-01'); | |
| echo $date->format('Y-m-d H:i:s'); | |
| /*Get number of day */ | |
| $numberDay = date('N'); | |
| // Get current time in timestamp |