answersLogoWhite

0

How can you put PHP into your product details pages?

Updated: 8/17/2019
User Avatar

Wiki User

11y ago

Best Answer

<?php // your php code goes here ?>

If your product pages are created in PHP (have the .php extension) then you can simply add the php start/end tag.

There is a way to have the server recognize PHP inside of HTML files but that would require some work on the server, better left to the server manager.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you put PHP into your product details pages?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you put HTML in PHP?

Its done exactly the same as when you put it in an HTML file. There are 2 ways you can do it: &lt;html&gt; &lt;?php // php stuff ?&gt; &lt;/html&gt; Or you can do it like this: &lt;?php echo "&lt;html&gt;"; // php stuff echo "&lt;/html&gt;"; ?&gt;


In which situation can you use php?

PHP is very versatile and can be used on a Windows or Unix (Linux) operating system. You should use PHP to interact with databases, process forms, put together web pages that need to be sectioned (such as when you want your menu to be separate from the rest of the page), to process cookies (although JavaScript is sometimes more efficient at this) and for any process that requires you to interact directly with the web server. Since PHP can be integrated directly in the HTML code of your web pages it is very useful for website development.


How do you protect your PHP database settings file?

you can put the connection file 1 level above your website's directory, and use random names, like 2134j12h5kh35.php but really, if it's extension is .php, and in the unlikely event that someone knows where it is, the server will process it anyway and unless you echo your connection details for some strange reason, nothing will be displayed.


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?

change the extention of the .HTML file to .php and then open the file that was previously HTML and put &lt;?php include ("path/to/second/php/file.php"); ?&gt; so for example if i have page1.HTML and page2.php i rename page1.HTML to page1.php and then put &lt;?php include ("page2.php"); ?&gt; 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.


Where does one put PHP encoding type headers?

One will put PHP encoding type headers before instructions using HTML language. This is done in order to start the HTML sequence through the PHP header.


How can I know what PHP version my site is running on?

Set up a PHP file and put the following in it. &lt;?php phpinfo(); ?&gt; Then run it on the server, it will have all the information you will need including what version you are running.


How run php program in wanp server in window?

Once you install wamp server. Any file with php extenstion like xyz.php you put in www folder will be executed as PHP file.


How many pages does Put on By Cunning have?

Put on By Cunning has 2007 pages.


How do you create a PHP script?

To create a PHP script all you have to do is create a new file, then save the file as "filename.php". It must have a .php file extension.After that open the file and put in the PHP tags like shown.Then you write your PHP script within those tags and upload to your web space and check it out.


How do you run PHP on Windows?

No. However, PHP must be on your computer to process the PHP commands. You will also need a web server program like Apache. A simple way to do this is to go to http://www.apachefriends.org/en/xampp.html and all the programs you need can be installed on your computer to run PHP, plus a MYSQL database, in case you want to really get into working with PHP. Once the PHP and Apache are installed you can access your PHP web pages through your browser from your Apache "localhost" directory after storing your new PHP files there. No internet connection needed.


How do you specify the location of a PHP script?

Just put it in the right folder


How many switch statements can you put in a PHP script?

As many as you like. Its unlimited. :)