Re: Create pure HTML pages using PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I THINK what the individual wants to do is schedule a PHP script to run, say nightly, which will generate HTML.  EASY.

In your php (the basics):

$fp = open ('index.html', 'w');
   fwrite ($fp, '<HTML>'."\n");
   fwrite ($fp, 'Hello<br>'."\n");
   fwrite ($fp, '</HTML>'."\n");
fclose ($fp);

Of course your probably going to have to do a LOT more than just that kind of simple stuff... but... you get the idea.

Larr.

--- In php-objects@xxxxxxxxxxxxxxx, Imran <imransaieen@...> wrote:
>
> Friends,
> How to create pure html pages using PHP?
> 
> I mean, if we use php then every time the users access the web pages and
> server has to run php script to fetch data and display it.
> 
> But, we want to generate html pages first, and the users will view these
> html pages (we may generate these pages once a day).
> 
> 
> I know how to do it using PHP, XML, XSL.
> 
> I want to know more about any other way to do it easily.
> 
> Regards,
> 
> 
> [Non-text portions of this message have been removed]
>



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux