SHOW:
|
|
- or go back to the newest paste.
| 1 | $user_url = 'http://example.com/bla/bla/bla/file.ext'; | |
| 2 | ||
| 3 | if (stripos($user_url, 'https://') === 0) {
| |
| 4 | - | if (stripos($user_url, 'http') === 0) {
|
| 4 | + | |
| 5 | } elseif (stripos($user_url, 'http://') === 0) {
| |
| 6 | - | } elseif (stripos($user_url, 'https') === 0) {
|
| 6 | + | |
| 7 | } |