English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a randomizing PHP code and i would like to use it in an HTML pgae .. how could i possibly do that ?
btw im using Dreamweaver

2007-05-21 01:18:43 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

Well if you run the php code through a web browser the output is HTML. I dont get the issue? PHP is active code that when run on the server simply outputs HTML so all you have to do is view the output and save the page you have HTML.

Not any reason to do it, that I can see, since the randomizing won't then occur.

If you are talking about putting the code in an HTML page all you do is paste the code and save the page as a .php page.

2007-05-21 01:24:10 · answer #1 · answered by Tracy L 7 · 0 0

lmao.... I'm guessing you're trying to do a copy-and-paste effort with someone else's code, otherwise you'd realise how crazy your request sounds...

First things first - what is PHP? PHP is a Hypertext PreProcessor. In essence it is a small script that runs on the server and outputs HTML. These scripts are run inline as HTML is parsed and sent to the client. In other words, you can't do much with PHP _except_ use it on a page of HTML.

I would recommend that before you get too carried away you first check that your server accepts PHP. If it does, I'd then recommend reading a tutorial or something that will show you how PHP works in simple terms. Once you understand that, I'm, sure you'll know how to best utilise the script you have.

2007-05-21 08:49:51 · answer #2 · answered by Anonymous · 0 1

fedest.com, questions and answers