_
_ Handy PHP
_
_
Tutorials, Scripts, Information And Other Resources arrow Forum
Saturday, 06 September 2008
_

Refer A Friend using Revolution Money Exchange
Resource Menu
Handy PHP Store
Free Domain Name
PHP Functions
PHP Downloads
PHP Newsfeeds
PHP Tutorials
Webmaster Tools
User Login
TalkPHP
Get friendly help with your PHP problems for free.
www.talkphp.com
The PHP Resource Index
Handy PHP
Free PHP Help!

FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
Why is PHP converting links to relative links? (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Why is PHP converting links to relative links?
#212
vujsa (Admin)
Admin
Posts: 138
graph
User Online Now Click here to see the profile of this user
Why is PHP converting links to relative links? 1 Year ago Karma: 4  
QUOTE:
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=http://www.handyphp.com]My Website[/url] is a absolute link whereas,
[ url=www.handyphp.com]My Website[/url] is a relative link
See below:
[url=http://www.handyphp.com]My Website[/url] - Absolute
[url=www.handyphp.cive links</blockquote>

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 &quot;http&quot;, it assumes that the link is relative.

[ url=http://www.handyphp.com]My Website[/url] is a absolute link whereas,
[ url=www.handyphp.com]My Website[/url] is a relative link
See below:
[url=http://www.handyphp.com]My Website[/url] - Absolute
[url=www.handyphp.com]My Website[/url] - 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&lt;br&gt;&lt;br&gt;Post edited b 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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

_
 
_
_
© 2008 Handy PHP