Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $user_url = 'http://example.com/bla/bla/bla/file.ext';
- if (stripos($user_url, 'http') === 0) {
- $user_url = substr($user_url, 5);
- } elseif (stripos($user_url, 'https') === 0) {
- $user_url = substr($user_url, 6);
- }
Advertisement
Add Comment
Please, Sign In to add comment