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 #175982 is a reply to message #175977] Mon, 14 November 2011 09:48 Go to previous messageGo to previous message
ddk is currently offline  ddk
Messages: 3
Registered: November 2011
Karma:
Junior Member
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.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================


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.
[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: Sat Oct 19 22:21:25 GMT 2024

Total time taken to generate the page: 0.05973 seconds