SolveErrors
PHP

How to cut down the size of a URL?

96 views

I would like to be able to take a url from a MySQL database like www.domain.com/folder1/folder2/folder3/folder4/folder5/etc (that may have the www or not) and make it so it it will just be www.domain.com or domain.com. Can somebody tell me how to accomplish this?

Any help would be greatly appreciated.

More PHP fixes

PHP-General - Header tag not directing to specified pageindex.php wont load index.html will loadWarning: oci_free_statement(): 3 is not a valid oci8 statement resourcePage 2 - str_replacePHP-General - Variabses wont loadSyntax help - $random_name