Current location: Hot Scripts Forums » Programming Languages » PHP » Absolute URL in place of Absolute Path?


Absolute URL in place of Absolute Path?

Reply
  #1 (permalink)  
Old 08-28-08, 11:38 PM
d00d d00d is offline
New Member
 
Join Date: Aug 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Absolute URL in place of Absolute Path?

A script calls for an absolute path.

Code:
#--------------------------------------------------------------------------
# Path to downloads.  This path can be outside of the server path insuring no leaching!
# Must use a trailing slash "/"
#
# Here are some examples.
# $path = "./"; Downloads live where this file (index.php) lives (Default)
# $path = "../../";  Up 2 directories (relative to index.php)
# $path = "c:/downloads/public/applications/";  Absolute location.
#--------------------------------------------------------------------------

$path = "/home/www/domain.com/scripts/files/";
I have to use a remote directory to house my files. Is there any way I can use an absolute URL for $path?
Reply With Quote
  #2 (permalink)  
Old 08-29-08, 02:11 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
is this remote directory on the same server? If so, it is possible if you have rights to access that directory. If it's on another server, it isn't possible
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #3 (permalink)  
Old 08-29-08, 10:12 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with absolute path and relative path samot PHP 4 11-13-08 10:12 PM
URL Mapping of file locations GB Networks Web Servers 0 12-07-07 12:23 PM
Need help: Html script- url linking nyjumpman23 HTML/XHTML/XML 5 09-28-05 09:19 PM
The Reasons Why do you Need URL Rewriting MODULE to Enchance your Web? handry PHP 11 08-05-05 07:32 AM
totaling numbers from a dtabase matching a personns name lppa2004 PHP 19 07-31-05 01:59 PM


All times are GMT -5. The time now is 07:54 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.