So how does one go about forcing a script to stay alive infinitely until it eventually finishes its job?
Also posted in Tutorials Tagged infinite execution, maximum execution time, PHP, set time limit, timeout 1 Comment
Taking Andrew Walker's previously mentioned handy little UTF-16 to UTF-8 string converter function, we now have in our means a particularly easy way in which to craft a simple UTF-16 to UTF-8 file converter.
Also posted in Tutorials Tagged andrew walker, convert, encoding, file convert, PHP, string, string encoding, utf-16, utf-8 Leave a comment
Sometimes you need to store things like file paths into a database table during your PHP script's execution. However, on going back to the database after running your script, you might come across your path with all of its backslashes (\) missing!
Andrew Walker crafted this handy little PHP function which can convert a UTF-16 encoded string into a more PHP-friendly UTF-8 encoded string.
Posted in Technology & Code Tagged andrew walker, byte order mark, convert, function, PHP, string, utf-16, utf-8 1 Comment
If for instance you have just used a jQuery selector to grab a whole lot of objects and now realize that in actual fact you only want to effect the first object that the selector returned to you, you can rest easy in the knowledge that jQuery as per usual has you covered.
Also posted in Tutorials Tagged :first, eq(0), first element, jQuery, selector, tutorial Leave a comment
I have all the ID values for wildlife parks but instead of displaying the ID values I want to display the park names. These are stored in a table that has two fields, namely ID and the corresponding display name.
Also posted in Tutorials Tagged in, sets, single select, sql, sql statement, tutorial Leave a comment

AutoComplete Country Selection using jQuery