answersLogoWhite

0


Best Answer

change the extention of the .HTML file to .php and then open the file that was previously HTML and put

<?php include ("path/to/second/php/file.php"); ?>

so for example if i have page1.HTML and page2.php

i rename page1.HTML to page1.php and then put

<?php include ("page2.php"); ?> where i want page2 to appear.

Note: Any HTML file can be renamed to have a .php extention even if it doesnt contain any PHP.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: I have a HTML website I want to use a php script I have but the main php file has the info in it and I want it to be on the HTML site how can I embed or use the php code without using frames?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is embedding java script?

To embed JavaScript code is to include it in the HTML page. For example, this will embed the code to display an alert: &lt;script type="text/javascript"&gt; alert("Embedded alert!"); &lt;/script&gt;


What tags are used to embed one HTML page inside another HTML page without using frames?

&lt;object type="text/html" data="http://www.example.com" style="width:80%; height:300px; margin:1%;"&gt; embedded html without frames&lt;/object&gt;


How can you embed a video podcast on your website?

If you have the video simply upload it to Vidiopia.com then view the video to grap the embed code and place it on your website. If your video podcast is already on a video sharing website then simply grab the embed code and past it onto your website's page.


How do you add a game to a website?

If your trying to copy a game from another website chances are they have a box that says embed or share and you get the Embed code and paste it onto your website.


How do you embed a video on a website?

&lt;EMBED TYPE="application/x-mplayer2" SRC="VideoOrAudiofile.wmv" WIDTH="200" HEIGHT="200" autostart="1"&gt; &lt;/EMBED&gt;


How do you convert embed code to HTML code?

EMBED puts a browser plugin in the page. If the user does not have the plugin needed they will not see what you are trying to display to them. A very simple form of this tag is shown below and the attributes that can be used with it..SRC="../graphics/sounds/Smasher.mid"> * ALIGN * AUTOSTART* CONTROLS * CONTROLLER * ENDTIME * HEIGHT * HIDDEN* HREF * LOOP * MASTERSOUND * NAME * PLAYCOUNT* PLUGINSPAGE * PLUGINURL* SRC * STARTTIME * TARGET * VOLUME* WIDTH ---- If you want to add video to website, you need to "embed" it with embed code. Embed code is web page code. When using embed code to add video to website, the Internet address of the video is needed, which is called "URL". This URL tells the web browser via the embed code to find and play the video with its Internet address. About how to add videos to website in the easiest way, check this tutorial - http://www.playerdiy.com/support/tutorial/customize-flash-video-player.html


How can you get to a video website?

You can get a video ON a website by embed HTML from YouTube otherwise what are you asking?


How do you embed a video into a picture on a HTML website?

YOU,just right click on it and click on embed IF THAT DOESENT WORK THEN YOURE A NOOB !


How can we use script tag in java?

to implement javascript embed the statements between &lt;script&gt; n &lt;/script&gt;,,, and include any scripting language. eg:&lt;script LANGUAGE="javascript"&gt; block of codes &lt;/script&gt;


What does embed media mean?

Embedding media refers to inserting a piece of content, such as a video, image, or audio file, from one platform into another. This allows the media to be displayed and played directly within the second platform, without needing to navigate to a separate page or source.


How do you get embed codes for pictures?

You will need to add the following to embed images into your website: you can add width="" height="" and more to control the image and how it displays.


How do you insert banner on website?

You have to type in the embed code in the title of a subfolder