How do I use PHP to convert a single character into a string of characters?
I want to use PHP to find any / that is in a variable which can be called via $_GET. This variable is the end part of a document URL. The URL will be fed into Google Document Viewer. However, the embedded document URL should use %2F instead of /. Is it possible to use PHP to say "every time I see /, I replace it with %2F"?
Online Deals India
The action you want is called "URL encoding".
Any information beyond the URL filename and internal document # anchor following the filename which can then be followed by ?formname=... and one more obscurity that is generally only found in specialist web servers http call syntax method to screen unique server platform idiosynchratic commands appended to a url
must be URL encoded.
In php with normal web server operation variables returned by php are automatically URL decoded.
|All times are GMT +2. The time now is 08:17.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.