Reply to Re: html code from folder

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация