Category Archives: developer’s Guide

developer’s tools & references

date() error in php 5.3

ShareAfter reinstalling my local machine and updating the php version to 5.3 I’m getting this error: Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the … Continue reading

More Galleries | Leave a comment

htdocs folders in vista not showing

Share After reinstalling apache, php in vista I got trouble displaying my htdocs folders on browser. Some were there and some were not. I double checked my apache settings if I missed something but so far I did not. I … Continue reading

Posted in apache | Tagged , , | Leave a comment

mysql string replace

ShareYou can check the mysql function string_replace here http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_replace Ex: mysql> SELECT REPLACE(‘www.mysql.com‘, ‘w’, ‘Wo’); output:  ‘WoWoWo.mysql.com’ Or you can also do it on UPDATE statements like this UPDATE table SET table_field=REPLACE(table_field, search_string, replace_value_here)  

More Galleries | Leave a comment

TAR command

Sharecreate: tar -cvf mystuff.tar mystuff/ tar -czvf mystuff.tgz mystuff/ extracting: tar -xvf mystuff.tar tar -xzvf mystuff.tgz testing/viewing: tar -tvf mystuff.tar tar -tzvf mystuff.tgz Note that .tgz is the same thing as .tar.gz Tar “tars up” a bunch of files into … Continue reading

Posted in apache, linux, server, ssh | Tagged , , , | Leave a comment

regex cheat sheet

ShareSpecial Sequences \w - Any “word” character (a-z 0-9 _) \W - Any non “word” character \s - Whitespace (space, tab CRLF) \S - Any non whitepsace character \d - Digits (0-9) \D - Any non digit character . - (Period) – Any character except newline Meta … Continue reading

Posted in regex | Tagged , , | 1 Comment