Direct Path Question

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
Digitalmike
-


Joined: 09 Aug 2006
Posts: 22

PostPosted: Sun Oct 01, 2006 7:39 pm    Post subject: Direct Path Question Reply with quote

I am trying to figure out my direct path for a php script I'm using. Any ways I can figure this out?

I have my project/site folder in the htdocs folder. So would my path be

/htdocs/foldername/ ?

Thanks
Back to top View user's profile Send private message
Mikor
-


Joined: 21 Aug 2006
Posts: 144
Location: Hull, England

PostPosted: Sun Oct 01, 2006 8:07 pm    Post subject: Reply with quote

You dont need the /htdocs/, so just /folder/

so it would be:

www.your-domain-name.tld/folder/script.php
_________________
Yarrt.com - Free Arcade
RypNet.co.uk - Online Game

MSN:
michael_walker_2004 <at> hotmail <dot> com
Back to top View user's profile Send private message Send e-mail MSN Messenger
pkSML
-


Joined: 29 May 2006
Posts: 952
Location: Michigan, USA

PostPosted: Sun Oct 01, 2006 9:35 pm    Post subject: Reply with quote

Make a PHP file and the contents will be this:
Code:
<?php phpinfo(); ?>


Scroll down the page to the Environment section.
You'll see SCRIPT_FILENAME. This is the disk path to your script. Use it for includes or anytime the real path is needed.
You'll also see SCRIPT_NAME. This is the path relative to the server. Use it for links.

BTW, inside your script, these variables exist as $_ENV[SCRIPT_FILENAME] and $_ENV[SCRIPT_NAME] or $_SERVER[SCRIPT_FILENAME] and $_SERVER[SCRIPT_NAME].
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group