PHP chat box

KydLynx

Senior member
Mar 18, 2001
425
0
0
hi.
i was wondering if someone could help me out on setting up a little chat box thing for my site.

i set up the mysql database thing with my host...(1and1)
i dont know what im doing basically.

im using this tutorial. http://invano.com/?php:BasicShoutbox
but its not working.

i have no clue how to "CHMOD to 777."
nor do i know what chmod means. :confused:

if anyone can help me out or point me in the direction it would be greatly appreciated. thanks
 

Fiveohhh

Diamond Member
Jan 18, 2002
3,776
0
0
chmod is a type of file permissions that unix based os's use, like in windows you can right click and set read only, kinda the same thing except more flexible. you can change chmods in your control panels file explorer(if it has on) or if you can change it with an ftp client. Atleast this is what I always thought it was:D

edit: 777 is read write execute to everyone first number is owner of the file, second is group and third is everyone
 

NikPreviousAcct

No Lifer
Aug 15, 2000
52,763
1
0
How are you setting it up? Are you setting it up on your machine and uploading it to your host (stupid)? Or are you uploading the package to your host and configuring it there (smart)? :p

If you're looking at a specific file that you need to chmod, most ftp clients allow you to right-click the file and go into properties for the file. You'll be able to check or uncheck different boxes for read, write, and execute for different things like admins, groups, or the general public. Setting the chmod to 777 means that all check boxes are checked. Another way to say it is that everybody and everything has complete access to that file and can do anything including changing and deleting it -until you change those chmod settings. Most likely what you're looking at is a file that you'll chmod to 777 during installation, and chmod back to something else after the install.
 

NikPreviousAcct

No Lifer
Aug 15, 2000
52,763
1
0
Originally posted by: KydLynx
ok found the chmod thing in the file properties...thanks

im writing the php files and just uploading to the server.

http://www.minutiastudios.com/cheese/tag.php
that is what i got according to that tutorial link i pasted.
its not working.

Well, it's crude, but you have the initial page correct. Here's the error I got:

Parse error: parse error in /homepages/31/d92782120/htdocs/cheese/addtag.php on line 12

That tells you exactly where and what the problem is.
 

KydLynx

Senior member
Mar 18, 2001
425
0
0
Originally posted by: FFMCobalt
Originally posted by: KydLynx
ok found the chmod thing in the file properties...thanks

im writing the php files and just uploading to the server.

http://www.minutiastudios.com/cheese/tag.php
that is what i got according to that tutorial link i pasted.
its not working.

Well, it's crude, but you have the initial page correct. Here's the error I got:

Parse error: parse error in /homepages/31/d92782120/htdocs/cheese/addtag.php on line 12

That tells you exactly where and what the problem is.


line 12:
$tag=stripslashes($tag);

i get the same error but have no clue what it means...i r teh php noob
 

NikPreviousAcct

No Lifer
Aug 15, 2000
52,763
1
0
Oh, so you didn't write the php yourself? Okay. I assume this is some sort of automated install of some sort of pre-built package? Why not just install a forum like phpBB or Invision Board? It's easy to learn to install.
 

KydLynx

Senior member
Mar 18, 2001
425
0
0
Originally posted by: FFMCobalt
Oh, so you didn't write the php yourself? Okay. I assume this is some sort of automated install of some sort of pre-built package? Why not just install a forum like phpBB or Invision Board? It's easy to learn to install.

no, i got the script from that tutorial link i poste up top.
i just want a little chat box in an iframe. like 100 x 500 pixels and for it to be integrated on the index page.
im complicated like that
;)
 

NikPreviousAcct

No Lifer
Aug 15, 2000
52,763
1
0
Well, that site has the file formatted incorrectly. Spacings are wrong. Use this -and don't forget to set where the tag.php file is listed in this file.
 

KydLynx

Senior member
Mar 18, 2001
425
0
0
Originally posted by: FFMCobalt
Well, that site has the file formatted incorrectly. Spacings are wrong. Use this -and don't forget to set where the tag.php file is listed in this file.

i cant save that file for some reason.
all i get is....

Warning: Unable to access tag.php in /home/virtual/site147/fst/var/www/html/misc/addtag.php on line 3

Warning: fopen("tag.php", "r") - No such file or directory in /home/virtual/site147/fst/var/www/html/misc/addtag.php on line 3

Warning: stat failed for tag.php (errno=2 - No such file or directory) in /home/virtual/site147/fst/var/www/html/misc/addtag.php on line 4

Warning: fread(): supplied argument is not a valid File-Handle resource in /home/virtual/site147/fst/var/www/html/misc/addtag.php on line 4

Warning: fclose(): supplied argument is not a valid File-Handle resource in /home/virtual/site147/fst/var/www/html/misc/addtag.php on line 5

Warning: fopen("tag.php", "w") - Permission denied in /home/virtual/site147/fst/var/www/html/misc/addtag.php on line 6

Warning: fwrite(): supplied argument is not a valid File-Handle resource in /home/virtual/site147/fst/var/www/html/misc/addtag.php on line 9

...regadless of how i save it. :p
 

NikPreviousAcct

No Lifer
Aug 15, 2000
52,763
1
0
woah wtf :Q

Well, all I did was change the format a little bit, they way they should be --atleast, if I understand php correctly. Did you change the things in that file that you are required to change before using it?
 

KydLynx

Senior member
Mar 18, 2001
425
0
0
Originally posted by: FFMCobalt
woah wtf :Q

Well, all I did was change the format a little bit, they way they should be --atleast, if I understand php correctly. Did you change the things in that file that you are required to change before using it?


yeah i dont know what to modify..
i have the addtag.php and tag.php in the same directory so it should work without me changing it? no?