General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 15th, 2002, 10:28 PM
pooters pooters is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 1 pooters User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old November 15th, 2002, 11:04 PM
CHornJr's Avatar
CHornJr CHornJr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: New York City
Posts: 233 CHornJr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 50 m 19 sec
Reputation Power: 6
Send a message via AIM to CHornJr Send a message via MSN to CHornJr Send a message via Yahoo to CHornJr
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:
<? php //Code ?>

or
PHP Code:
<? //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

Reply With Quote
  #3  
Old November 16th, 2002, 07:09 PM
Joe4JC Joe4JC is offline
The name's Joe. Yours?
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Lurking in the shadows...
Posts: 147 Joe4JC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
I think that he is talking about something like this:
Code:
<script language="PHP">
// code
</script>

Cheers,
Joe of 4Life
__________________
Check out 4Life today!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > viewing users online tutorial


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway