[thelist] PHP Questions

Jay Blanchard jay.blanchard at niicommunications.com
Mon Sep 30 07:05:01 CDT 2002


[snip]
Q1, is there a better list to ask PHP questions on?
[/snip]

You may want to subscribe to the PHP list at http://www.php.net . There are
many list options available including a general list. You will see a few
Evolter's there as well :^]

[snip]
Q2,

I have a complicated directory/subdirectory structure on my web server,
into which I am saving static html files created with a PHP script.

What I'd like to do is have a way of deleting all the .htm files from
the directories before writing the new ones.

It's not as easy as having PHP overwrite the file, because there might
be files that are not being created again.

Anyone got any tips, tutorials or code snippets that would allow me to
automatically delete *.htm files from all sub-directories off a given
directory?

Any server side technique would do, doesn't have to be PHP, but I really
want to automate the process.

I have Apache (winXP on dev machine, Linux on main host)
[/snip]

Start here;

http://www.php.net/manual/en/function.opendir.php

You will have to have permissions set properly to remove those files, etc.

HTH!

Jay





More information about the thelist mailing list