Blogspot - phpprogrammingguide.blogspot.com - PHP

Latest News:

Using ltrim is not the right answer sometimes. 11 Mar 2006 | 03:34 pm

In a PHP application I was debugging today for a company I found them using ltrim to remove a substring from the start of a string which was producing weird results such as "tal" after invoking with "...

php regular expressions start of line: Removing a substring from the start of a string 11 Mar 2006 | 03:26 pm

When using regular expressions with PHP one must take care of a few minute details. For instance, today I received a request to debug an application. $patterns[0] = "/^Top/"; $replacements[0] = 'bea...

Adding a button to toolbar in Nucleus. 3 Dec 2005 | 06:00 pm

Edit the file PAGEFACTORY.php Add $this->_jsbutton('blockquote',"blockquoteThis()",_ADD_BLOCKQUOTE_TT ." (Ctrl + Shift + Q)"); And $this->_jsbutton('blockquote',"blockquoteThis()",''); Upload ima...

PHP Header 301 Redirect - Moved Permanently 11 Nov 2005 | 12:15 pm

From time to time, pages change location. At times like these, one can use PHP header function with 301 redirect to notify website visitors that the page has moved, assuming the $location contains the...

Recently parsed news:

Recent searches: