-
PHP private chat / live support script
Hey guys, I'm looking to create a site allowing a user to generate a temporary, password protected chat-room (similar to chatzy.com). The user would then be able to share the URL with other users allowing them to enter the chat. It would be a simple version of live support chat-rooms you see on company websites - basically a password protected PHP shoutbox. Is there an existing script which could be adapted? If not, how would I go about creating this? Thanks very much, Sam.
-
Rating Script Problem
Hey guys, I'm using a rating script on my site which lets users thumb up/thumb down content. The script works fine until I try to duplicate it on the same page example - http://mykorg.netii.net/rate.htm As you can see, the bottom buttons also control the top rating. Which parts of the script would I need to alter to have multiple ratings on the same page, each being controlled separately? I'm using the following code: <script type="text/javascript"> var httpa; var browser = navigator.appName; function createRequestObject(){ var request_o; if(browser == "Microsoft Internet Explorer"){ request_o = new ActiveXObject("Microsoft.XMLHTTP"); }else{ request_o = new XMLHttpRequest(); } return request_o; } function setrating(val,id) { httpa = createRequestObject(); var str="hupanddown/addrating.php?id="+id+"&value="+val; httpa.open('get', str); httpa.onreadystatechange = handleResponse; httpa.send(null); } function handleResponse() { if(httpa.readyState == 4){ var response = httpa.responseText; document.getElementById('prc').value=response; } } function ctck() { var sds = document.getElementById("dum"); if(sds == null){alert("You are using a free package.\n You are not allowed to remove the tag.\n");} var sdss = document.getElementById("dumdiv"); if(sdss == null){alert("You are using a free package.\n You are not allowed to remove the tag.\n");} } document.onload="ctck()"; </script> This also links to the PHP file below: <?php $id=$_GET['id']; $val=$_GET['value']; if($id=='uarrow') $val=$val+1; else $val=$val-1; echo $val; ?> The code for the buttons is as follows: <table style='border:1px solid #999999;' cellspacing=0 cellpadding=0><tr><td bgcolor=#edeff4> <input id=prc name=prc type=text size=3 value=1 readonly style='background-color: #edeff4; border: 0px;'> <a href="#"><img border=0 src="hupanddown/uarrow.gif" onclick="setrating(document.getElementById('prc').value,'uarrow');"></a> <a href="#"><img border=0 src="hupanddown/darrow.gif" onclick="setrating(document.getElementById('prc').value,'darrow');"></a> </td></tr> </table> <div align=center style='font-size: 10px; color: #999999;' id="dumdiv"></div> Thanks for the help
-
Help with a PHP script
Hi guys, I'm looking for a script which lists the contents of a directory in a table on my site, allowing users to scroll through and download certain files. Could anybody suggest such a script? Thanks
-
CHMOD Help With Filezille
Thanks for the help, I did change to a linux server, but I've just noticed that the server is still showing as windows in the control panel. I guess I'll wait 24 hours for it to update as stated and try again. Thanks for all the help and patience guys
-
CHMOD Help With Filezille
I didn't have an index file originally, but I've just uploaded one and tried again with the same results. Also tried 755 but that returned the same error
-
CHMOD Help With Filezille
I'm trying to test a PHP upload script, and apparently I need to change the permissions of the upload directory to 777. So I used filezilla to connect to the site, created the directory, right clicked > file permissions, ticked all the boxes (777) but i still get the same error. Sorry, I'm quite new to all this.
-
CHMOD Help With Filezille
That's exactly what I've been trying. Is there another way to CHMOD the folder?
-
CHMOD Help With Filezille
I'm trying to change the folder: http://www.glimpsesofmagdalenstreet.co.uk/test/ Is this what you need?
-
CHMOD Help With Filezille
I'm having difficulties changing the permissions of a directory. When I attempt CHMOD a folder to 777, I get the error: 550 Could not change perms on test: No such file or directory. I was told to change my server from Windows to Linux but that hasn't helped. I'm also using streamline.net as a host if that helps. Any suggestions would be great, I'm getting so frustrated with this! Thanks
-
MySQL Database Help
Okay, what If I let users log-in and comment/rate the files as well? Also what kind of requirements would I need to look for in a web host? (file/folder permissions etc) Thanks for your help.
-
MySQL Database Help
Hey guys, I'm fairly new to web development and I'm looking for some advice on a new project I'm starting. I want to create a website which allows users to upload and download files (custom Midi patches for keyboards). My question is, what's the best way to set this up? Would I need to create a MySQL database? Thanks in advance. Sam