bgzee
07-09-2005, 05:30 PM
i was wondering if there is an efficient way to return a string that is file-name safe through mysql. I know i could use the replace function a million times on a string, but that would not be efficient. maybe something similar to php's preg_replace.
What im trying to do here is take the title of a page (for example "bgzees Home Page") and turn it into a string that could be used in a unix file system. (formatted to bgzees_home_page).
What im trying to do here is take the title of a page (for example "bgzees Home Page") and turn it into a string that could be used in a unix file system. (formatted to bgzees_home_page).
