Reply
Php - Html
Old 09-20-2005, 07:51 AM Php - Html
Junior Talker

Posts: 4
Hai All,
I require your help. I have a dynamically generated php page. This page has to be converted into HTML. We do have an option in the browsers FILE menu (Save Page as ),
which will save any web page into html.
I want this functionality to be done on a click event in my php page itself. How can it be done.
Help me out with your suggestions.

Thanks in advance.
webmanager is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 09-20-2005, 11:10 AM
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Hi,

I fail to see what your after, do you want all your dynamic pages converting into hard html files. If so why?

You already have dynamic pages (which is what we all aim to achieve) so we can manage our sites far more easliy than having to edit multiple files to fix a spelling mistake when via a dynamic aproach we change the mistake in say the DB thus making 1 change and not N+1;

But file save as works fine if that wahat your up for.

Ibbo
__________________
www.nationalclubgolfer.com www.sportspub.co.uk www.bespokecc.co.uk www.centralmarquees.co.uk
Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Old 09-21-2005, 03:44 AM
Junior Talker

Posts: 4
Hai Friend,
What I need is,
I have a php web page generated. In the same page I want to have an option when clicked converts the same page into pdf file. Am using PHP 4.0.6. So, I decided to convert the php page into html, then from html to ps, from ps to pdf. This pdf has to be saved to any location the user wants. I dont want the user to use the Save As option in the Menu bar of the browser. In one click itself want these actions to be done. From html to ps, ps to pdf can be done, but how to convert the generated page into HTML is what am not clear.
Is there any way out to do this even simpler.

Thanks in advance.
webmanager is offline
Reply With Quote
View Public Profile
 
Old 09-21-2005, 08:06 AM
Experienced Talker

Posts: 41
the first thing that comes in my mind is:
php -q file.php > file.html
__________________
web directory
rehash is offline
Reply With Quote
View Public Profile
 
Old 09-22-2005, 03:03 AM
Junior Talker

Posts: 4
But the php page is generated dynamically. In the sense, the data posted on the page is being retrieved from the database and is generated on the fly. So, if am going to give this in the command line there's a lot of errors in the place where the database is being connected and data retrieved.
I want an html page of the php page generated which we see on the browser. Is there any other way. Or can any other solution be thought of using Javascript.
Please help me out.
webmanager is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Php - Html
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12237 seconds with 12 queries