tried several methods and this seems almost impossible??? help... please.... $website_url = str_replace('\', '/', $website_url); PHP: the above code does not work... have tried '\"\"\' weird stuff no luck! anyone know how to do this?
your example has $website_url before and after, not that im 100% sure how to do it but if your trying to remove the / then i think it should be done like this... $website_url = str_replace('/', '', $stripped_url); PHP:
Thank you so much sastro... if GAS was cheaper i'd pay you for the solution! good luck with your ventures!
Well, I have the habit of reading titles and glazing over code in posts. But yeah you're right. Removing slashes you'd use stripslashes, for replaceing backslashes with forward slashes, you'd use sastros :S
To ammend Sastros code, You should use 'DIRECTORY_SEPERATOR' for true portability $website_url = str_replace('\\', DIRECTORY_SEPERATOR, $website_url); PHP: