On Thursday 12 August 2004 01:06, Aaron Todd wrote:

> I am trying to dowload a file using readfile(), but PHP still cant seem to
> get to the file.  

And what exactly does that mean? Any error messages?

> Here is my code:
>
> <?php
> $file = "/home/lgxdlr/test/".$_GET['file']."";
> if (file_exists(basename($file))) {

Lookup what basename() does to see why using it with file_exists() in this way 
is most likely wrong (given what you're trying to do).

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Wind velocity increases in direct proportion to how well your hat fits
                -- Murphy's Horse Laws n17
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to