mort Posted June 19, 2007 Share Posted June 19, 2007 Hey all Basically am making an interactive CD ROM, and have ripped a load of my sites using WGET in linux to parse them all as html. What is the problem you ask? Well I use an index.php?view=pagename linking system, and i cant have html files with ? in the filename, as the OS wont allow it. Anyways i have written a script to rename all the files with _ instead of ? which is all fine. Now I have made a script to go through the directory and parse the files, and tryign to replace all link names with the new filenames, ie remove all ?´s and replace them with _´s. strstr() and str_replace() work fine until i put a ? into the criteria. I have tried /? and \? which dont work, i am stuck can anyone offer any idea as to what i am doing wrong? cheers! Quote Link to comment https://forums.phpfreaks.com/topic/56281-strstr-and-str_replace-with-s/ Share on other sites More sharing options...
Corona4456 Posted June 19, 2007 Share Posted June 19, 2007 Can you show us your script? Or at least the part of the script where the problem could be? Quote Link to comment https://forums.phpfreaks.com/topic/56281-strstr-and-str_replace-with-s/#findComment-278027 Share on other sites More sharing options...
thefortrees Posted June 19, 2007 Share Posted June 19, 2007 Show the part of the code that is giving you the problem. Quote Link to comment https://forums.phpfreaks.com/topic/56281-strstr-and-str_replace-with-s/#findComment-278030 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.