View previous topic :: View next topic |
Author |
Message |
goose -
Joined: 17 Sep 2002 Posts: 608 Location: The Land Of OZ! come here toto!
|
Posted: Mon Mar 22, 2004 7:17 am Post subject: Having php being called inside html page to show a counter |
|
|
I have a php counter script that i created myself, how can i show it on the html page. I have used the form command, but it places the information on its own php page which is fine , but i wish to display the counter on the html page not the php page and i have used javascript to call the php script file but it does not display it in the html page. How can i do this?
i have a perl script that is similar and it works with the javascript by calling the perl file and displays it in the html page. Just curious how to get it working for php. _________________ living in an armish paradise.....no gates here!
mawuahahaha :) |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Mar 22, 2004 3:34 pm Post subject: Re: Having php being called inside html page to show a count |
|
|
goose,
You can use the magical SSI include directive. But if you want an accurate help, tell us what counter script are you using (and the URL where we can find it). _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
goose -
Joined: 17 Sep 2002 Posts: 608 Location: The Land Of OZ! come here toto!
|
Posted: Mon Mar 22, 2004 6:25 pm Post subject: |
|
|
ok will look at ssi and let you know if i get it working. thanks 8) _________________ living in an armish paradise.....no gates here!
mawuahahaha :) |
|
Back to top |
|
 |
goose -
Joined: 17 Sep 2002 Posts: 608 Location: The Land Of OZ! come here toto!
|
Posted: Tue Mar 23, 2004 11:26 am Post subject: |
|
|
aprelium,
i have my counter script working under ssi ala .shtml works great. very simple though :wink:
i have another question can the php script be called from anywhere? meaning no need for accurate path names? 8O
as all i have done is the following for ssi to work when displaying the php script:
<!--#exec cgi = "hits.php" -->
and also renaming the html page to .shtml to make it work! _________________ living in an armish paradise.....no gates here!
mawuahahaha :) |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Tue Mar 23, 2004 5:26 pm Post subject: |
|
|
Add html to the extensions for
SSI and HTML will than execute it. |
|
Back to top |
|
 |
goose -
Joined: 17 Sep 2002 Posts: 608 Location: The Land Of OZ! come here toto!
|
Posted: Wed Mar 24, 2004 3:25 pm Post subject: |
|
|
I will look in to it, thanks _________________ living in an armish paradise.....no gates here!
mawuahahaha :) |
|
Back to top |
|
 |
goose -
Joined: 17 Sep 2002 Posts: 608 Location: The Land Of OZ! come here toto!
|
Posted: Wed Mar 24, 2004 3:26 pm Post subject: |
|
|
is it the srm.conf file where i must add the extension? _________________ living in an armish paradise.....no gates here!
mawuahahaha :) |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Mar 24, 2004 4:49 pm Post subject: |
|
|
goose wrote: | is it the srm.conf file where i must add the extension? |
srm.conf???? YOu have to add html to the Console > Server Config> Adavnced > SSI Parameters > Associated Extensions. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
goose -
Joined: 17 Sep 2002 Posts: 608 Location: The Land Of OZ! come here toto!
|
Posted: Wed Mar 24, 2004 11:32 pm Post subject: |
|
|
hehe lately i have been thinking of linux/unix , must be tired. :lol: :wink: _________________ living in an armish paradise.....no gates here!
mawuahahaha :) |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Thu Mar 25, 2004 4:47 am Post subject: |
|
|
Be proud if you think in *nix. _________________ Bienvenidos! |
|
Back to top |
 |
 |
goose -
Joined: 17 Sep 2002 Posts: 608 Location: The Land Of OZ! come here toto!
|
Posted: Thu Mar 25, 2004 2:13 pm Post subject: |
|
|
:P hehe bounce! opensource for me! :D _________________ living in an armish paradise.....no gates here!
mawuahahaha :) |
|
Back to top |
|
 |
|