GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PHP script help (https://gfy.com/showthread.php?t=61994)

Va2k 05-27-2002 12:57 PM

PHP script help
 
I have a counter script that uses php how would I get the part of script into my home page the only way I can view this script is by typing in the url /index.php anyone know what IM talking about?

Va2k 05-27-2002 01:02 PM

cum on anyone???

spanky 05-27-2002 01:10 PM

PHP Code:

<?PHP include("./counter.php"); ?>

cheers

mike503 05-27-2002 01:11 PM

heh, not really. you're trying to execute some php code inside of your home page?

Va2k 05-27-2002 01:20 PM

Quote:

Originally posted by spanky
PHP Code:

<?PHP include("./counter.php"); ?>

cheers

good try didnt work :(

Va2k 05-27-2002 01:20 PM

Quote:

Originally posted by mike503
heh, not really. you're trying to execute some php code inside of your home page?
YES Mike :) Can this even be done?

foe 05-27-2002 01:22 PM

does your homepage have a .php extention if not just load an invisible iframe to the site with the counter.

mike503 05-27-2002 01:23 PM

Quote:

Originally posted by va2k

YES Mike :) Can this even be done?

yes. the script would need to have an extension that the webserver will parse (i.e. index.php) and the file you call can be called anything.

use &lt;?php require_once("./counter.php"); ?&gt; inside of that then. counter.php will be the code for the counter itself.

spanky 05-27-2002 01:23 PM

Quote:

Originally posted by va2k

good try didnt work :(

what was the error?

cheers

Va2k 05-27-2002 01:30 PM

screw this I will just setup ssi lol

boldy 05-27-2002 01:36 PM

Quote:

Originally posted by va2k
I have a counter script that uses php how would I get the part of script into my home page the only way I can view this script is by typing in the url /index.php anyone know what IM talking about?
What about contacting me ? You lost faith in me ?:Graucho


All times are GMT -7. The time now is 01:54 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123