If you perform an insert into a mysql database table containing an AUTO_INCREMENT field, you can retrive the ID of the last inserted record without execute any query.
Some days ago I switched my php application to another hosting.
All seemed to work properly, but one thing no. Just a little thing……
The Authorization header was not picked by the apache_request_headers() function.
The problem comes from the use of PHP and FastCGI over Apache2.
While I’m developing a new website in php I put all the source code into a directory and then to deploy the site I move the source code into the webhosting .
This way I can host different releases of the same site at the same time.
If you haven’t a GUI to run your preferred email client or a browser, and you need to check if you have received new mails in your gmail account, you can use your favourite shell in conjuction with the CURL application.
CURL is a swiss knife for the internet protocols.
Imagine you have a text file (txt.txt in the example) containing the following few lines:
and you want to extract the lines containing duplicate characters. The result will be the following:
While porting programs from linux to .Net architecture you could face the gettimeofday function…
Tree is a recursive directory listing program that produces a depth indented listing of files. With no arguments, tree lists the files in the current directory.
It has a simple problem….
it is not present on Mac OS X Mavericks…..