How do i convert PHP file into HTML file![]()
How do i convert PHP file into HTML file![]()
First of all you download converter and afteryou able to convert this
=======================
to know more click
You can't if you're making php do server side tasks like calculatings and pulling database content.
You could convert php into javasscript manually but any server tasks would have to be done by a server side script and then pushed to json to get javascript to access it.
I believe you're actually tlaking about changing the handler of files. If you add this into your .htaccess file of your website, you can run php files as .html files through the browser.
AddHandler application/x-httpd-php .php .html
Now this can change depending on the setup of your host so if this does not work you might want to contact them. For instance I know with HostGator it is
AddHandler application/x-httpd-php5 .php .html
Now on the web server, the files will still show as .php however you can visit them through the browser as domain.com/file.php or domain.com/file.html and it will work either way. Let me know if this helps!
Not sure what you are after but if you load up a page that is php and just save it locally to your pc it will save it in html format. Other than that I am not sure if that is what you are after or not.
No problem![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks