How to Auto Post on Twitter with PHP
Manually post to social networks is probably better than to use an automated method. But, if you post many new topics every day, automated post is practically inevitable. Twitter, as…
Manually post to social networks is probably better than to use an automated method. But, if you post many new topics every day, automated post is practically inevitable. Twitter, as…
In most cases you can distinguish if a PHP script was invoked from the command line (or Cron) or by the web server, using php_sapi_name(). php_sapi_name() will return cli on…
Sometimes you need to replace accented characters with non accented, for example when you want to perform an accent insensitive search. A solution could be the following function: <?php /**…
PHP DateTime class, available with PHP versions greater than 5.2 is very powerful. As an example, it ts very easy to check if a string represents a valid date or…
How can you create a reference to a DOM element using jquery? In other words, what is the jquery equivalent of document.frm.element_name or document.getElementById("element_id") Someone could say: $("#element_id") Wrong, as…