CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
need help with chat

 



zlex
stranger

Nov 23, 2001, 7:10 PM

Post #1 of 2 (564 views)
need help with chat Can't Post

i bought a script i would like to use...but i can't figure it out. Can sumone help me with this. It's supose to be a simple chatroom that pops out on the top right corner as soon u enter the site. I wanted to add it on a site that i started-www.cmc-foundation.com
what do i need to do? anybody here that can help me. here's the begining of the script

#!/usr/bin/perl
$| = 1;

srand();

#The entire URL to the instachat.cgi script on your server
$cgi_url = "http://www.cmc-foundaton.com/cgi-bin/instachat.cgi";

#Temporary directory to store messages and user files CHMOD to 777
$tmp_dir = "/path/to/save/instachat/file/";

#Filename used to store all chat messages
$tmp_filename = "text";

# Number of rows to display for chat messages
$rows = 5;

# Number of columns to display for chat messages
$cols = 30;

#Width of chat box in pixels
$width = 250;

#Max number of messages to show in chat window
$maxlines = 50;

#Reload messages every n seconds (1 - 60)
$reload = 5;

#Background of text message box
$background = "#FFFCCC";

# DO NOT EDIT BELOW THIS LINE
############################################





crashinto
Novice

Nov 24, 2001, 4:33 AM

Post #2 of 2 (561 views)
Re: need help with chat [In reply to] Can't Post

You need to set $tmp_dir = "/path/to/save/instachat/file/"; to the path of the directory to where you want their files to be saved. You also need to chmod that folder to 777.


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives