Jump to content


Made for administrator or browser use?


12 replies to this topic

#1 G.9

    Young Padawan

  • Members
  • Pip
  • 38 posts

Posted 31 December 2005 - 09:33 PM

http://www.pixel2life.com/tutorials/PHP_Co...1&ss=statistics

For the statistics script, is that for the webmaster or can it be displayed on a site for browser use as well?

#2 NGPixel

    Senior Programmer

  • P2L Staff
  • PipPipPipPip
  • 1,410 posts
  • Gender:Male
  • Location:Montreal, Canada
  • Interests:Web Design : Coding : Animation

Posted 01 January 2006 - 12:05 AM

both, making your own means that you can display the stats on a website as well...

#3 G.9

    Young Padawan

  • Members
  • Pip
  • 38 posts

Posted 01 January 2006 - 12:43 AM

How would I adjust it for a site?

#4 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 01 January 2006 - 01:16 AM

Personally, i wouldn't even think to use it. It's way to lengthy for the average user, and most servers have pre-installed statistics scripts anyway. If you're using cPanel, they is a section that deals with nothing but statistics.
But if you're interested in writing your own script just for fun, i'd look at the following section in the tutorial database. It will have more, smaller scripts that will work just as good.
http://www.pixel2life.com/tutorials/PHP_Co...tion_and_Stats/

#5 G.9

    Young Padawan

  • Members
  • Pip
  • 38 posts

Posted 01 January 2006 - 11:51 AM

It is true that I have a script preinstalled and that it is accessible to me at any time... but I want to create something that browsers can see.

#6 Av-

    I Feel Left Out

  • Members
  • PipPipPipPip
  • 1,971 posts
  • Gender:Male
  • Location:10 ft. below sea level

Posted 02 January 2006 - 07:31 AM

well, the link you posted will just work fine, just put it on your main site, if you want it be viewable for an admin only, just secure it with a password.

#7 G.9

    Young Padawan

  • Members
  • Pip
  • 38 posts

Posted 02 January 2006 - 01:37 PM

View PostAvalanche, on Jan 2 2006, 12:31 PM, said:

well, the link you posted will just work fine, just put it on your main site, if you want it be viewable for an admin only, just secure it with a password.
How would I do that? Just set up the script... and?

#8 Av-

    I Feel Left Out

  • Members
  • PipPipPipPip
  • 1,971 posts
  • Gender:Male
  • Location:10 ft. below sea level

Posted 02 January 2006 - 07:47 PM

and nothing, just put the information into a database or textfile and then echo it on your frontpage

#9 G.9

    Young Padawan

  • Members
  • Pip
  • 38 posts

Posted 02 January 2006 - 07:51 PM

View PostAvalanche, on Jan 3 2006, 12:47 AM, said:

and nothing, just put the information into a database or textfile and then echo it on your frontpage
You probably don't know who you're dealing with. Let's just put it this way: I'm a newb when it comes to this stuff. What is echoing?

#10 InFnit

    P2L Jedi

  • Members
  • PipPipPip
  • 822 posts
  • Interests:My interests are my:<br><br>iidsite - http://iid.outer-heaven.net<br>iidblog - http://iid.outer-heaven.net/blog/<br>iidcommunity - http://iid.outer-heaven.net/forums/<br>P2L - http://www.pixel2life.com

Posted 02 January 2006 - 07:58 PM

<?php
ehco 'filename.txt';
?>

Will paste whatever is in the textfile into the spot where you put the above code

#11 G.9

    Young Padawan

  • Members
  • Pip
  • 38 posts

Posted 02 January 2006 - 08:35 PM

Okay... I don't believe the tutorial provides what information to paste into this .txt file.

#12 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 02 January 2006 - 11:11 PM

echo 'filename.txt' with not paste anything from that text file. It will simply display 'filename.txt' on the screen, nothing more.
And a couple words of advice.
1. Don't use the statistics script, it's far to complicated. Mix and match the tutorials from the link i provided.
2. php.net is a developers best (and probably only) friend.
http://php.net/echo <-- the echo function

#13 G.9

    Young Padawan

  • Members
  • Pip
  • 38 posts

Posted 02 January 2006 - 11:14 PM

Thank you, I will try all of the resources you have provided.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users