Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Why does my page do this?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Why does my page do this?

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


This is driving me nuts

If I use this URL - 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

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

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.
User avatar
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: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.