Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-11-2005, 06:03 PM   #1
silver211
Confirmed User
 
Join Date: Jan 2005
Location: Qc,Canada
Posts: 197
??How i can insert php into html file ?

??How i can insert php into html file ?
silver211 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 06:06 PM   #2
Jay_StandAhead
Confirmed User
 
Industry Role:
Join Date: Jul 2002
Posts: 3,103
just insert it with the php tags and set your server to parse html files
__________________

Our Programs: StandAhead | IndieBucks | BoyCrushCash | Phoenixxx | EmoProfits | BritishBucks | HunkMoney | LatinoBucks
Make $$$ with Gay! Lowest Minimum Payouts in the Business, Perfect Track Record, Amazing Sites
Jay_StandAhead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 06:11 PM   #3
mardigras
Bon temps!
 
Join Date: Feb 2003
Location: down yonder
Posts: 14,194
You could also put the php code on it's own page and embed it into the HTML page with an iFrame.
__________________
.
mardigras is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 06:20 PM   #4
silver211
Confirmed User
 
Join Date: Jan 2005
Location: Qc,Canada
Posts: 197
.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..
silver211 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 06:58 PM   #5
silver211
Confirmed User
 
Join Date: Jan 2005
Location: Qc,Canada
Posts: 197
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
silver211 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 07:04 PM   #6
Paul Waters
Confirmed User
 
Paul Waters's Avatar
 
Join Date: Mar 2003
Location: Toronto, Ontario
Posts: 4,402
Is PHP enabled on your server?

Do a simple Hello World file, and get it working first.
__________________


Paul
Paul Waters is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 07:07 PM   #7
silver211
Confirmed User
 
Join Date: Jan 2005
Location: Qc,Canada
Posts: 197
Php is installed on my server

Php is installed on my server .......
silver211 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 07:10 PM   #8
calmlikeabomb
Confirmed User
 
calmlikeabomb's Avatar
 
Join Date: May 2004
Location: SW Palm Bay, Florida
Posts: 1,323
Edit: Just rename your html files to .php extension and do something like this:

Code:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php echo 'Sup Hoe' ?>
</body>
</html>
__________________
subarus.

Last edited by calmlikeabomb; 01-11-2005 at 07:11 PM..
calmlikeabomb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 07:15 PM   #9
Paul Waters
Confirmed User
 
Paul Waters's Avatar
 
Join Date: Mar 2003
Location: Toronto, Ontario
Posts: 4,402
Quote:
Originally Posted by silver211
Php is installed on my server .......
Installed. That is a start.

Is Apache configured to use it?
__________________


Paul
Paul Waters is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 07:16 PM   #10
silver211
Confirmed User
 
Join Date: Jan 2005
Location: Qc,Canada
Posts: 197
Quote:
Originally Posted by calmlikeabomb
Edit: Just rename your html files to .php extension and do something like this:

Code:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php echo 'Sup Hoe' ?>
</body>
</html>

http://www.hotgirl21.com/test.html

Nothing appear
silver211 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 07:17 PM   #11
silver211
Confirmed User
 
Join Date: Jan 2005
Location: Qc,Canada
Posts: 197
http://www.hotgirl21.com/test.php.. Work.
silver211 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 07:21 PM   #12
directfiesta
Too lazy to set a custom title
 
directfiesta's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Montreal, Quebec
Posts: 29,676
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.
__________________
I know that Asspimple is stoopid ... As he says, it is a FACT !

But I can't figure out how he can breathe or type , at the same time ....
directfiesta is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 07:23 PM   #13
Rantan
Confirmed User
 
Join Date: Aug 2004
Location: Portland ,OR
Posts: 714
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...
__________________
www.jesusjohnson.com
Rantan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 07:25 PM   #14
directfiesta
Too lazy to set a custom title
 
directfiesta's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Montreal, Quebec
Posts: 29,676
1. Rename yourpage.htm -> yourpage.php
2. Insert this code where you want otherpage.php

<?php include("otherpage.php"); ?>
__________________
I know that Asspimple is stoopid ... As he says, it is a FACT !

But I can't figure out how he can breathe or type , at the same time ....

Last edited by directfiesta; 01-11-2005 at 07:28 PM..
directfiesta is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 07:27 PM   #15
calmlikeabomb
Confirmed User
 
calmlikeabomb's Avatar
 
Join Date: May 2004
Location: SW Palm Bay, Florida
Posts: 1,323
Quote:
Originally Posted by silver211
Don't know what to tell ya man:

http://www.penis-enlargement-product.us/help.php
__________________
subarus.
calmlikeabomb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 07:43 PM   #16
silver211
Confirmed User
 
Join Date: Jan 2005
Location: Qc,Canada
Posts: 197
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">
silver211 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 07:53 PM   #17
silver211
Confirmed User
 
Join Date: Jan 2005
Location: Qc,Canada
Posts: 197
permission ? maybe is just the problem ? for phpadsnew banner ? what is required permission ?
silver211 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 07:54 PM   #18
directfiesta
Too lazy to set a custom title
 
directfiesta's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Montreal, Quebec
Posts: 29,676
Quote:
Originally Posted by silver211
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">
Keep it simple....

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
__________________
I know that Asspimple is stoopid ... As he says, it is a FACT !

But I can't figure out how he can breathe or type , at the same time ....
directfiesta is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 07:55 PM   #19
directfiesta
Too lazy to set a custom title
 
directfiesta's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Montreal, Quebec
Posts: 29,676
Quote:
Originally Posted by silver211
permission ? maybe is just the problem ? for phpadsnew banner ? what is required permission ?
Chmod all files and subfolders to 777 ( pf phpadnews). If it works, then you can be more restrictive on your permissions of certain folders...
__________________
I know that Asspimple is stoopid ... As he says, it is a FACT !

But I can't figure out how he can breathe or type , at the same time ....
directfiesta is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 08:11 PM   #20
silver211
Confirmed User
 
Join Date: Jan 2005
Location: Qc,Canada
Posts: 197
Phpadsnew

Quote:
Originally Posted by directfiesta
Chmod all files and subfolders to 777 ( pf phpadnews). If it works, then you can be more restrictive on your permissions of certain folders...
I use Phpadsnew.. The server seem to be ask for a login when the script try to connect to promo.adrevservice.com ?? So , it possible to stop this ?

thank you
silver211 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 08:14 PM   #21
silver211
Confirmed User
 
Join Date: Jan 2005
Location: Qc,Canada
Posts: 197
Url

Check here
http://www.hotgirl21.com/banners/phpadsnew.php
silver211 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 08:16 PM   #22
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Quote:
Originally Posted by silver211
that is because the file ends in .html

in order for a page on the web to read php it has to end in .php not .html
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-11-2005, 08:24 PM   #23
silver211
Confirmed User
 
Join Date: Jan 2005
Location: Qc,Canada
Posts: 197
I resolve the problem

Thank you to all for your help .. I resolve the problem.
silver211 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.