FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Smart File Downloader - simple script on xampp
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Smart File Downloader - simple script on xampp [message #175988 is a reply to message #175982] Mon, 14 November 2011 12:35 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 11/14/2011 4:48 AM, ddk wrote:
> On Nov 12, 7:58 pm, Jerry Stuckle<jstuck...@attglobal.net> wrote:
>> On 11/10/2011 12:38 PM, ddk wrote:
>>
>>> hello all,
>>
>>> i'm new in php. and i need to apply simple script from this link.
>>> http://www.zubrag.com/scripts/download.php
>>
>>> i use xampp 1.7.7 in windows 2000 server with public IP
>>
>>> What would be my BASE_DIR location if my files that i want downloading
>>> are stored in C:\xampp\htdocs\test123
>>
>> 'C:/xampp/htdocs/test123/'
>>
>> But you should keep the files outside of your website directory -
>> otherwise people can download them directly if they figure out the path.
>>
>
> got this, i use xammp in other PC without IP public and successful
> with BASE_DIR 'C:/xampp/htdocs/test123/files'
> and download files in "files" folder under folder "test123"
>
>
> but when i set the same configuration with my xammp with IP public ,
> it's still get error page below :
>
>
>
> Warning: opendir(C:\xampp\htdocs\test123\files) [function.opendir]:
> failed to open dir: No such file or directory in E:\xampp\htdocs
> \test123\download.php on line 98
>
> Warning: readdir() expects parameter 1 to be resource, boolean given
> in E:\xampp\htdocs\test123\download.php on line 100
> File does not exist. Make sure you specified correct file name.
>
>
> it's there any security that i should be allow to access the
> directory.
>
> thank you and appreciate for your help.

Yes, Windows security could be stopping it - you need to check that out
in a Windows administration newsgroup.

But it looks like you're files are on an entirely different drive (E:)
on your public server.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: Embedding HTML Within a PHP Statement
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 01 01:49:35 GMT 2024

Total time taken to generate the page: 0.04439 seconds