|
Posted by Tom on 11/26/07 18:49
On Sun, 25 Nov 2007 14:29:13 -0800 (PST), NC wrote...
>
>On Nov 25, 2:00 pm, eswa <e...@email.it> wrote:
>>
>> How can I write a php code that when it is include in a html page it
>> create a menu link automatically, reading from a main folder its
>> subfolder and html files?
>
>You can't include PHP code into an HTML page.
>
>Cheers,
>NC
Whether you configure your Apache to parse just .php files or also use .html,
there's a few functions in PHP you can use to get the files from a directory. If
you read up on the opendir(), scandir() and/or readdir() that may help out with
what you're trying to do.
http://www.php.net/manual/en/function.opendir.php
http://www.php.net/manual/en/function.scandir.php
http://www.php.net/manual/en/function.readdir.php
Tom
--
NewsGuy Accounts Go Jumbo!
Extra NewsGuy increased from 30 to 50 GB of download capacity
http://newsguy.com/overview.htm
[Back to original message]
|