![]() |
??How i can insert php into html file ?
??How i can insert php into html file ?
|
just insert it with the php tags and set your server to parse html files
|
You could also put the php code on it's own page and embed it into the HTML page with an iFrame.
|
.shtml ^
I have server-parsed extension setting on my server.. It should work with this.. .shtml So i just rename my file.. for file.shtml..
|
Not working..
Hello
I tried to use .shtml extension and add a php tags into my html. and it still dont work ..? ? So any idea for resolve the problem ? thank you |
Is PHP enabled on your server?
Do a simple Hello World file, and get it working first. |
Php is installed on my server
Php is installed on my server .......
|
Edit: Just rename your html files to .php extension and do something like this:
Code:
<html> |
Quote:
Is Apache configured to use it? |
Quote:
http://www.hotgirl21.com/test.html Nothing appear |
|
Before running, start walking....
make a file with notepad : <?php phpinfo(); ?> that you will call phpinfo.php upload to server in your directory where you index.html is and call: http://www.mydomain.com/phpinfo.php If this give you your config ( or not) come back here. |
it depends on several things...
is php installed? is your HTTP server config to use it? what extension (.html, .php, .php4 ect...) does your http server read php with? if you've got all that crap set..and you got the php syntax right..it'll work... |
1. Rename yourpage.htm -> yourpage.php
2. Insert this code where you want otherpage.php <?php include("otherpage.php"); ?> |
Quote:
http://www.penis-enlargement-product.us/help.php |
When i created a test.php is work.. but it's not work with my main page.
you can see below what the code is insert in my page .. (Phpinfo .. work.) </table> <br /> <?php if (@include(getenv('DOCUMENT_ROOT').'/phpAdsNew-2.0/phpadsnew.inc.php')) { if (!isset($phpAds_context)) $phpAds_context = array(); $phpAds_raw = view_raw ('zone:1', 0, '_blank', '', '1', $phpAds_context); $phpAds_context[] = array('!=' => 'bannerid:'.$phpAds_raw['bannerid']); echo $phpAds_raw['html']; } ?> <div align="center"> |
permission ? maybe is just the problem ? for phpadsnew banner ? what is required permission ?
|
Quote:
Make a page where you will put your phpadnews script. Call it phpadnews.php Check if it works and banners rotate. If so, the use the : <?php include("phpadnews.php"); ?> where you want the banners to show in your main page. Change your mainpage extension to php, otherwise it will not work. You could even include this in a header that then could be included in all your pages OR: in a .htaccess file, add: AddType application/x-httpd-php .html |
Quote:
|
Phpadsnew
Quote:
thank you :helpme |
Url
|
Quote:
in order for a page on the web to read php it has to end in .php not .html |
I resolve the problem
Thank you to all for your help .. I resolve the problem.
|
All times are GMT -7. The time now is 01:10 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123