RE: [PHP-INST] HTML HELP WITH PHP
| From: | Walter, Marcel | Date: | Tue, 14 Aug 2001 12:44:21 +0000 |
| Subject: | RE: [PHP-INST] HTML HELP WITH PHP | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-3965@lists.php.net to get a copy of this message | ||
I forgot something. ....
You´ll have to insert:
<?php
include (<full path to yout php-file with the function>);
someTimefunction();
?>
> -----Original Message-----
> From: Walter, Marcel [SMTP:Marcel.Walter@drkw.com]
> Sent: Tuesday, August 14, 2001 14:41
> To: 'Aaron Norton'; php-install@lists.php.net
> Subject: RE: [PHP-INST] HTML HELP WITH PHP
>
> I think this is what you did:
> file.php:
> <?php
> function someTimefunction() {
> <some code...>
> }
> ?>
>
> index.html
> <html>
> .
> .
> .
> </html>
>
> Am I right ?
>
> What you want to do is:
> 1) Rename index.html in index.php (or let the php-engine parse your
> html-files)
> 2) Insert in your index.php or index.html - File this code:
> <?php someTimefunction(); ?>
>
> And everything what the function returns will be written in the html -
> file
> ....
>
> Hope this is what you asked for ...
>
> > -----Original Message-----
> > From: Aaron Norton [SMTP:azzlano@faydwer.com]
> > Sent: Tuesday, August 14, 2001 14:36
> > To: php-install@lists.php.net
> > Subject: [PHP-INST] HTML HELP WITH PHP
> >
> > I created my page in html and then created a php file seperately for
> > date/time function. How do I add the function to my html page and keep
> the
> > html tage on it. Or is there a way to ad a function that will call on
> the
> > php file I made.
> >
> > PLZ HELP
> >
> >
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-install-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net
> For additional commands, e-mail: php-install-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net