Ask about general coding issues or problems here.
Moderators: macek, egami, gesf
This is driving me nuts
If I use this URL - http://www.dtbt.com/contact.php
everything works fine.
However if I add a '/' character after the URL like this -
it falls to pieces. Why??
Comments, suggestions, clues all gratefully accepted
- New php-forum User
- Posts: 10
- Joined: Tue Oct 07, 2003 5:04 am
Because when you add a / to the end of something, the browser assumes it's a directory, so all your paths (particularly the one to your stylesheet) get screwed up. The solution: don't add a / at the end of a filename. Or just use absolute paths for everything.
- Posts: 2272
- Joined: Sat Jul 05, 2003 1:18 pm
- Location: A bunk in the back
Return to PHP coding => General
Who is online
Users browsing this forum: Majestic-12 [Bot] and 1 guest