My dear friend, Darwin who is hated mostly by religion leaders, is dying from an unknown and incurable disease. I may know what that disease is but I am no one but a historian who like to dig into…
Blog
Articles and updates about anything.
It is worthwhile to check with phpinfo() function if sever variables are all available for your server to implement the code as below. $pos = strpos($_SERVER['HTTP_REFERER'],$_SERVER['HTTP_HOST']);…
The glob() function is used to get an array of filenames or directories. Then, array_multisort() function is sorting filenames according to the file's created time. Lastly, it can be presented as…
It is needed to select some records randomly to take sample data from a table. MySQL can accomplish this task by using rand() function in order by clause as below. In case selecting 20 users…
Not like any other post variables, file element information is posted as two dimensional array. So, getting post data for a file element can be accomplished as below. <?php…
As a time patroller, we are supposed to carry this collection of keys all the time. This collection contains all of keys used on every computer on Earth and we call it Janitor's key box. After patrol…
"Father! I crafted the Universe but I am not able to hang it in space." "Son! Ask your mom for a help." "Mom! How to hang the Universe in space." "Son! Use one or two of push pins. They are in the…
The problem I had was that email with French subject was sent with no subject. Because subject field is one part of header in email, accented characters in header seemed to cause problem. First…
First of all, make sure if API access passcode under "administration -> account settings -> order settings" is generated and obtainable. Payment reports are retrieved by transaction dates. So, it…
For me, it was required to send a uploaded file on application server to web server So, I googled, tested and implemented this solution. Basically, this is not purely my work as usual as. First, make…
It is common to store numeric values on Varchar or non-numeric field for developer's convenience. However, it can cause a problem when sorting. For example, 10 comes prior to 9 when sorted. Here are…
First, try to go to the link as below. [code] http://localhost:631/printers/ [/code] If the link does not work, open terminal and type the command as below. [code] $sudo cupsctl WebInterface=yes…
A SELECT statement may include a LIMIT clause to restrict the number of rows the server returns to the client. In some cases, it is desirable to know how many rows the statement would have returned…
What is Strict Mode? Strict mode controls how MySQL handles invalid or missing values in data-change statements such as INSERT or UPDATE. A value can be invalid for several reasons. Why to Disable?…