This is a discussion on "html to php conversion" within the PHP Forum section. This forum, and the thread "html to php conversion are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
html to php conversion
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
html to php conversion
hi all,
i want to convert the html content into php content dynamically. //html code <html> <body>how are you?</body> </html> the above html code should be be look like this after converting to php //php code <?php $body = how are you?; ?> i found couple of softwares for html to php conversion but that is manually i.e. each time i had to convert my html content into php but i want it dynamically. is it possible?? thanks in advance regards amit |
|
|
|
|||
|
Re: html to php conversion
Do you understand what php is for?
to get what you would want to work you would have to do...
PHP does not replace HTML, php adds onto it. Last edited by Rob; Dec 1st, 2005 at 17:39. |
|
|||
|
Re: html to php conversion
If you wanting to put HTML inside PHP instead of PHP inside HTML you can do it such as:
|
|
||||
|
Re: html to php conversion
or if you just want to convert your .htm files to .php (so that later on you can include php content in them) you can just change the extension. It won't affect your site, so long as your server has php installed.
Then when you want to include some php to your code, just use open (and ending) tags.
|
|
|||
|
Re: html to php conversion
hi,
actually i'm making the rss reader and i'm able to parse the xml values to the php. But instead of xml i want to use html to php conversion sothati can load that values into the flash. Is that possible to make html to php conversion? regards amit |
|
|||
|
Re: html to php conversion
Quote:
|
|
|||
|
Re: html to php conversion
PHP does have functions for parsing XML
So yes, it is possible you can read about them here http://www.php.net/manual/en/ref.xml.php Sorry if I can't be more specific in helping you, I have never used the features, but I know it can be done. |
![]() |
| Tags |
| html, php, conversion |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Video Conversion | Monie | Webforumz Cafe | 10 | Aug 16th, 2007 08:29 |
| Non-English PDF File Conversion to XML | proaudience | Webforumz Cafe | 0 | Jun 18th, 2007 20:46 |
| Qtime conversion | urbannordic | Introduce Yourself | 3 | Oct 10th, 2006 09:30 |
| Language Conversion | jpvsd | Other Programming Languages | 0 | Jun 15th, 2006 17:42 |
| XML to db conversion | swetha | Other Programming Languages | 0 | Dec 16th, 2005 04:28 |