View Full Version : counter & installing phpBB2
byrdgirl13
March 25th, 2002, 16:28
does anyone know where i can find a php or cgi (whatever works) script for a simple text counter that is NOT remotely hosted? i want to be sure i can put a counter on whichever pages i want.
also, what is the mysql info for clawz.com? i want to set up a phpBB2...
here is what i need:
what is this one? --> Database Server Hostname / DSN:
Your Database Name: waking.clawz.com
Database Username: waking_clawz_com
is this all for the prefix? --> Prefix for tables in database: phpbb_
oh, and does clawz.com use a mysql version 3.x? if not, what is the version?
thanks. :classic2:
[lhomme]
March 25th, 2002, 16:38
http://www.hotscripts.com/ has a large number if you dont want anything special with the counter.
Your hostname is usually "localhost". (without the quotes).
The prefix simply prevents your board form overwriting existing tables in your DB. You can change it to whatever (especially if you have 2 boards on one DB).
For mysql version check the forums at:
http://phpbb.sourceforge.net/phpBB2/
ducktape
March 25th, 2002, 18:59
hotscripts.com (php & cgi)
evilwalrus.com (php)
resourceindex.com (php & cgi)
byrdgirl13
March 25th, 2002, 20:29
ok...i've tried running install.php, not sure what to do now. help? :confused2 it did say my administrator id/password were created...
(sorry if this thread should be in a different forum, i wasn't sure where to put it)
ducktape
March 25th, 2002, 20:38
after u runinstall.php you should get db name dbpass word, etc. and then you should be prompted for ur admin username and password. then you submit it you may be prompted ur config.php file is incorrect you may need to download and upload a new one. then if that is installed successfully then go to index.php and you should see ur forum if you do good. you also should delete install.php, upgrade.php and 1 more cant remeber what else someone will know and post it soon.
Archbob
March 25th, 2002, 20:46
Hot scripts have good stuff.
Or you can just get a free service like www.webtrendslive.com
roly
March 25th, 2002, 23:22
clawz has mySQL 3.x
4.x is a really buggy beta
byrdgirl13
March 26th, 2002, 16:19
well it said my config file was messed up so i told it to download & upload, like it said to. now when i go to index.php it brings me back to the original install page but if i re-enter the info it says it's already been created. :confused: what's going on here?
Clawz.com
March 26th, 2002, 16:43
Did you chmod 777 that config.php file?
byrdgirl13
March 26th, 2002, 16:47
did i what?
Clawz.com
March 26th, 2002, 18:13
Make that config.php writable...
You need to make it writable before doing the install
byrdgirl13
March 26th, 2002, 20:21
how do i do that?
ducktape
March 26th, 2002, 20:41
chmod it to 777 use ur ftp program to do so.
byrdgirl13
March 27th, 2002, 07:14
i've never set up a forum before. i don't know what it means to "chmod it to 777" ...otherwise i probably would have known what clawz meant by "chmod 777 that config.php file"
what does chmod mean?
cheatpark
March 27th, 2002, 07:24
ch mod means change mode. The different modes set the permissions for the file on the web server. In your ftp client try right clicking config.php and then click on an option which says ch mod. Then enter 777 and then click ok. Don't worry about ticking the boxes. The ftp client should do that for you.
Jan
March 27th, 2002, 07:43
Thanks cheatpark for a sensible reply here. :)
If people require help in this forum, don't assume they know as much as you about the subject. If they did, they wouldn't be asking.
I had to do a chmod a few months ago (for the first time) and the answers to my questions were as clear as mud :confused2
cheatpark
March 27th, 2002, 11:00
Originally posted by Jan
Thanks cheatpark for a sensible reply here. :)
If people require help in this forum, don't assume they know as much as you about the subject. If they did, they wouldn't be asking.
I had to do a chmod a few months ago (for the first time) and the answers to my questions were as clear as mud :confused2
I agree. A few months ago I also learnt about chmod. I didn't know anything about windows, linux or unix servers and stuff. By the way usually you don't need to chmod on a windows server because the permissions are usually already set.
ducktape
March 27th, 2002, 14:59
sorry i could have been a bit more responsive. But chmod is common place for cut n paste scripts like those from hotscripts and other sources. And also not everyone gives u numbers they give you letters like -r -w most people have no clue what they mean I will write a chmod tutorial and let u guys know when its done I'm kinda busy right now with several projects so I will get it done asap.
cheatpark
March 27th, 2002, 15:56
I'll be making a tutorial too about chmod on my new site. It will be in much more detail than I explained earlier.
byrdgirl13
March 27th, 2002, 16:30
thanks cheatpark. :) i changed it to 777, now what? it still goes to install.php if i try to get to index.php
cheatpark
March 27th, 2002, 16:49
Is the board installed? Usually it only goes to install.php if you haven't got phpbb installed.
byrdgirl13
March 27th, 2002, 16:54
yeah, i already installed it. (or at least it says i did) that's why i'm confused.
cheatpark
March 27th, 2002, 16:57
Does your host allow you to view your mysql database. What I mean is can you see what's inside it?
byrdgirl13
March 27th, 2002, 17:06
not sure...i just signed up a few days ago. i'm using clawz.com.
cheatpark
March 27th, 2002, 17:08
Is it any trouble to install phpmyadmin?
invalid
March 27th, 2002, 17:30
function counter()
{
if ($file = fopen( "count.txt", "r"))
{
$visits = (fgets($file, 6));
++$visits;
echo( "You Are Visiter Number ".$visits);
fclose($file);
}
if ($file = fopen( "count.txt", "w"))
{
fputs($file, $visits);
fclose($file);
}
}
counter();
make a text file on the server called count.txt and chmod it giving it read/write permissions
Clawz.com
March 28th, 2002, 13:52
Yes, I allow users to view their mysql databases.
I installed phpMyAdmin.
They just have to know how to use it.
cheatpark
March 28th, 2002, 13:58
Originally posted by Clawz.com
Yes, I allow users to view their mysql databases.
I installed phpMyAdmin.
They just have to know how to use it.
In that case if she is having a problem installing it then she can view the database to see if php will connect to it ok.
byrdgirl13
March 28th, 2002, 15:38
Originally posted by Clawz.com
They just have to know how to use it.
well, that's the problem. i've never worked wih php or mysql before, so i have no idea.
cheatpark
March 28th, 2002, 15:42
Download phpmyadmin and then follow the instructions. Then upload the files and access it. With that you can view your mysql db. Quite easy to setup. If you have any questions then just ask or you can send me a pm.
leetcrew
March 29th, 2002, 00:03
#!/usr/bin/perl -w
# chmod this file to 755 counter.dat (empty text file) 777
# rjregalado\@netzero.net www.rjregalado.com
$countfile = "counter.dat";
open(COUNT, $countfile);
$counter = <COUNT>;
close (COUNT);
open (COUNT, ">$countfile");
$counter += 1;
print COUNT $counter;
close (COUNT);
print "Content-type: text/html\n\n";
print qq~
<html>
<head>
<title>title here</title>
</head>
<body>
<h1>Welcome visitor number $counter</h1>
... html codes here ...
</body>
</html>
~;
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.