Linking PHP PAGES

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fionaom87
Forum Commoner
Posts: 43
Joined: Mon Feb 02, 2009 10:44 am

Linking PHP PAGES

Post by fionaom87 »

Hey i know this may seem to be a basic question but i am having a slight problem linking my pages

i think its better i use an examples

I have a folder called test and inside test an index.php file...I want to link index.php to outside the folder to update.html

how would i say this would it be

http://localhost/www/update.html this doesnt seem to work for me. Update.html is not in a folder only my www folder in my wampserver.
THanks
F :D
User avatar
Bill H
DevNet Resident
Posts: 1136
Joined: Sat Jun 01, 2002 10:16 am
Location: San Diego CA
Contact:

Re: Linking PHP PAGES

Post by Bill H »

Folders not in the www folder are not available through the "public" url, that is the link beginning with "http://" etc. You can link to it with relative address such as "../folder/update.html" or whatever the routing is, or you can use your "server root" if you know what that is.
Post Reply