html code from folder
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?
bye bye
EswA
--
ESWA
Censimento Rifiuti Salento: http://www.flickr.com/photos/15103736 [at] N03/
MeetUpSalentiniUnitiConBeppeGrillo:
http://beppegrillo.meetup.com/167/boards/
PersonalSite: http://eswa.altervista.org
eMail: eswa [at] email.it
Skype: eswa79
Re: html code from folder
On Nov 25, 2:00 pm, eswa <e... [at] 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
Re: html code from folder
Post removed (X-No-Archive: yes)
Re: html code from folder
richard wrote:
> On Sun, 25 Nov 2007 14:29:13 -0800 (PST), NC wrote:
>
>> On Nov 25, 2:00 pm, eswa <e... [at] 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
>
> No? suggest you read up on php. PHP is somewhat like javascript in that it
> is incorporated into the html coding, except that you, the user, is not
> aware that it is there.
>
Sorry, I agree with NC. You can't include php code in html pages,
unless you really screw up your configuration. You should include php
code in phyp files.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex [at] attglobal.net
==================
Re: html code from folder
Jerry Stuckle schreef:
> richard wrote:
>> On Sun, 25 Nov 2007 14:29:13 -0800 (PST), NC wrote:
>>
>>> On Nov 25, 2:00 pm, eswa <e... [at] 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
>>
>> No? suggest you read up on php. PHP is somewhat like javascript in
>> that it
>> is incorporated into the html coding, except that you, the user, is not
>> aware that it is there.
>>
>
> Sorry, I agree with NC. You can't include php code in html pages,
> unless you really screw up your configuration. You should include php
> code in phyp files.
>
If you put your php script between <script> tags, it can be in you html
Re: html code from folder
Obiku wrote:
> Jerry Stuckle schreef:
>> richard wrote:
>>> On Sun, 25 Nov 2007 14:29:13 -0800 (PST), NC wrote:
>>>
>>>> On Nov 25, 2:00 pm, eswa <e... [at] 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
>>>
>>> No? suggest you read up on php. PHP is somewhat like javascript in
>>> that it
>>> is incorporated into the html coding, except that you, the user, is not
>>> aware that it is there.
>>>
>>
>> Sorry, I agree with NC. You can't include php code in html pages,
>> unless you really screw up your configuration. You should include php
>> code in phyp files.
>>
> If you put your php script between <script> tags, it can be in you html
>
The PHP parser won't parse them unless Apache tells it to.
Please show exactly how to configure Apache to perform this (without
parsing all .html files as PHP, that is).
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex [at] attglobal.net
==================
Re: html code from folder
Post removed (X-No-Archive: yes)
Re: html code from folder
On Nov 25, 5:02 pm, richard <s... [at] google.dom> wrote:
> On Sun, 25 Nov 2007 14:29:13 -0800 (PST), NC wrote:
> > On Nov 25, 2:00 pm, eswa <e... [at] 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.
>
> No? suggest you read up on php. PHP is somewhat like javascript
> in that it is incorporated into the html coding, except that you,
> the user, is not aware that it is there.
I think you should follow your own suggestion: read up on PHP. PHP is
nothing like JavaScript; JavaScript is executed client-side, PHP,
server-side. By default, PHP code is only executed if it is located
inside a *.php file. You can configure your server to treat *.html
files as if they were *.php files, but this would preclude you from
using other server-side options available for use in HTML files, such
as SSI.
Cheers,
NC
Re: html code from folder
On Nov 26, 8:04 am, Obiku <obie... [at] xs4all.com> wrote:
>
> If you put your php script between <script> tags,
> it can be in you html
It can BE there. But it'll be useless, since it won't be executed.
The server will just spit it out as-is...
<script language="php"> ... </script> is functionally identical to <?
php ... ?>. Regardless of which tag you use, PHP code is executed
server-side, and by default the PHP interpreter is only invoked when a
*.php file is parsed.
Cheers,
NC
PHP » alt.php » html code from folder