Re: can php do this?
| From: | Hans H. Anderson | Date: | Fri, 11 Aug 2000 13:48:24 +0000 |
| Subject: | Re: can php do this? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11336@lists.php.net to get a copy of this message | ||
Mocin,
First off, if you left off a default document, ie index.php3 or
index.html, then the file would appear easily in the directory (ftp
style). Of course, you have to permit people viewing that directory
(usually in a web server configuration file).
If you need something fancier, you can surely do it in PHP. Check out
opendir(), readdir(), closedir(), is_dir(), and is_file() in the PHP
manual. For a couple of friends with newborn children I have setup areas
for them to upload pictures on my web server. Anytime a new picture is
uploaded, a link is created on their page with a link to the photo and
some stats on the photo (uploaded date using fctime() and size using
filesize()). Just a lightweight example.
Hans
On Fri, 11 Aug 2000, Mocin Khan wrote:
> Hi!
> I want to make a download page,is it possible in php that when i upload the page and every time
> i add some software,i dont have to amend the page, it itself detect the new file and add its link in
> the page.is it really possible thorough php scripting.
> well i just want to know,if it will b then i will try to make it happen.I think that is how u
> learn,although one is not to b tought.
>
> Just Regards,
> Aaghaz,
> The Beginning Of An End.
> http://aaghaz.one.net.pk
>
Hans Anderson ~ me@hansanderson.com
PO Box 426, Missoula, MT 59806 | PHP, Search Engines, SQL
(800)397-9116 / (406)549-6524 | Databases, Flash Multimedia,
http://www.hansanderson.com | Killer Audio Production,
http://www.goofiness.com | Minty Fresh Breath.