...

View Full Version : Link to pages...



martynball
02-24-2010, 12:00 AM
I having problems linking my pages... I was hoping there was a script someone know I can use...

If I link to a page using the FULL url, it does not work... well includes don't anyway.


http://martynleeball.x10hosting.com/website/includes/menu.php
http://martynleeball.x10hosting.com/website/folder1/file1.php
http://martynleeball.x10hosting.com/website/index.php

^ Does not work...



/website/includes/menu.php
/website/folder1/file1.php
/website/index.php

^ Does not work...



includes/menu.php
folder1/file1.php
index.php

^ Does work... But have to use ../ to go back directories which can be anoying to type in all files as ../../ may be needed.

if you get what I mean...

Fumigator
02-24-2010, 12:05 AM
When you refer to a full URL, PHP goes into URL wrapper mode, which is going to limit what you can do with that file. For example, you can't delete a file by referring to it with a full URL.

http://us2.php.net/manual/en/wrappers.http.php



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum