Current location: Hot Scripts Forums » Programming Languages » PHP » convert from html to php question


convert from html to php question

Reply
  #1 (permalink)  
Old 07-07-05, 04:42 AM
ZviT ZviT is offline
New Member
 
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
convert from html to php question

Hello. I installed the aspstat script for seeing statistics on my site. I had to put a little code on each page that I wanted the script to moniter. All the pages I had put it on were htm,html and asp. The script is:

<div id="Layer1" style="VISIBILITY: hidden; ">
<script type = "text/javascript" language = "JavaScript" src =
"http://www.gat101.co.il/myasg/stats_js.asp"> </script> </div>

Now I have put a php rating system on my site and of course, the index file is .php

I know that the script itself has it's own statistics, but I would like my origianal statistic script to monitor it as well.

The problem is, I tried putting the above script on the php page, but that didn't work. How do I write the above script into php, so I can put it into a php file? (between the <? and ?> (or maybe before or after??)

Also, the "VISIBILITY: hidden" is VERY important because without that, an image will appear on each page, which I don't want.

Thank you
Zvi

Last edited by ZviT; 07-07-05 at 04:44 AM. Reason: additional info
Reply With Quote
  #2 (permalink)  
Old 07-07-05, 07:32 AM
dennispopel dennispopel is offline
Coding Addict
 
Join Date: Mar 2005
Posts: 263
Thanks: 0
Thanked 0 Times in 0 Posts
Hello,

Why do you think you cannot put it into the PHP file?

<?php
echo "hello";
?>
<div id="Layer1" style="VISIBILITY: hidden; ">
<script type = "text/javascript" language = "JavaScript" src =
"http://www.gat101.co.il/myasg/stats_js.asp"> </script> </div>
<?php
echo "end of page";
?>
__________________
onPHP5.com - PHP5: Articles, News, Tutorials, Interviews, Software and more
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP in HTML Pages? ZeoFateX PHP 19 01-04-06 06:42 PM
PHP multi-dimensional array sorting issue aqw PHP 2 06-24-05 11:09 PM
Please help insert html into php idforforums PHP 5 04-06-05 11:29 PM
general question about php and html timfoster PHP 3 05-17-04 12:29 PM
How to convert php generated pages to SE friendly HTML or PHP(SE friendly) -CLASS 101 crippled PHP 1 11-16-03 06:37 AM


All times are GMT -5. The time now is 06:54 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.