Why does my page do this?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

User avatar
MaxDax
New php-forum User
New php-forum User
Posts: 10
Joined: Tue Oct 07, 2003 5:04 am

Why does my page do this?

Postby MaxDax » Tue Dec 02, 2003 12:40 pm

Hi

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 -
http://www.dtbt.com/contact.php/ it falls to pieces. Why??

Comments, suggestions, clues all gratefully accepted

Cheers
MaxDax

User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Postby swirlee » Tue Dec 02, 2003 12:58 pm

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.


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 2 guests

cron