|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
viewing users online tutorial
The DevArticles.com Team
I've read your php tutorial about "viewing users online" and I have a couple of questions. Php is new to me. In most scripting languages, there is an openning and closing tag -- such as with javascript. Are there such tags that should be used in your tutorial? What do they look like and how do I use them? Does this script go between the head tags of the page -- like javascript -- leaving the code- echo 'Number of Users Online:'.getOnlineUsers().'<br />'; - to go in the body of the page? If its possible, can you send me a sample web page so that I can better understand how to use this code? Thanks, Cliff ![]() |
|
#2
|
||||
|
||||
|
I am also a newbie to php, but I can tell you that php does NOT have to go in the head. PHP codes goes inbetween
PHP Code:
or PHP Code:
and I believe there is at least one other way but I don't remember what it is You can find samples thoughout some of the articles and other articles and tutorials from other sites I hope that helps you ![]() |
|
#3
|
|||
|
|||
|
I think that he is talking about something like this:
Code:
<script language="PHP"> // code </script> Cheers, Joe of 4Life ![]()
__________________
Check out 4Life today! |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > viewing users online tutorial |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|