Handy PHP
Wordtracker
Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Why is PHP converting links to relative links?
(1 viewing) 1 Guest
Go to bottom
TOPIC: Why is PHP converting links to relative links?
#212
vujsa
Moderator
Posts: 143
graph
User Offline Click here to see the profile of this user
Why is PHP converting links to relative links? 5 Years, 9 Months ago Karma: 5
why is my php code converting links to relative links

The reason is most likely that you left the HTTP off of the url. If you are using some type of script that you insert a link onto your website with and don't include the "http", it assumes that the link is relative.

[ url=www.handyphp.com]My Website[/url] is a absolute link whereas,
[ url=www.handyphp.com]My Website[/url] is a relative link
See below:
My Website - Absolute
My Website - Relative

The http:// actually tells the script that that is the beginning of the link and without it, it is assumed that the link should be relative.


I hope this helps,
vujsa<br><br>Post edited by: vujsa, at: 2007/08/17 21:37
 
Logged Logged
 
Do not post small or one line posts.
Do not post unsolicited links or any referal links.
Do not post copied content.
Do not use foul language.
Always be respectful to the other posters.
  The administrator has disabled public write access.
Go to top
Wordtracker
Wordtracker