I am parsing a file and using some of the information culled from it as the title of file that is being created. However, when I view the file in the browser, I see something like...
%0d%0aFile_title%0d%0a.php.
Is %0d%0a a special character of some sort? I tried
str_replace("%0d%0a", "", string)
but it does nothing. Now the strange thing is that when I view the file name through a terminal or in Midnight Commander (I'm using Linux) I see...
??File_title??.php.
So as a result, I also tried
str_replace("?", "", string)
and
str_replace("??", "", string)
to no avail. Now the File_title was culled using ereg() like this;
ereg("<!-- title -->(.*)<!-- end title -->", string, $content1).
Should I have retrieved the title in some other way? Is .* (which I barely understand anyways) grabbing more info than I am aware of?
Thanx in advance,
Terrence