Hello guys,
I've searched but was unable to find an existing regex function. Has anybody done this before?
I wish to add a port number, or remove a potantially existing one from a url in php. To use in some functions which translate a given url to the secure one, unsecure one, etc.
Now I need a second SSL secured site on the server so I need to dynamically add a port number while converting http to https, and remove any port number while converting from https to http.
Thanks, Duck