Jump to content

Doyley

Members
  • Posts

    69
  • Joined

  • Last visited

    Never

Everything posted by Doyley

  1. I don't expect people to remember, obviously, I'm just loking for ideas to what it could possibly be.
  2. Hi guys, A few months ago, somebody managed to upload a PHP script to my server that pretty much gave them full control of it. I meant to keep it so I could take a look at it but I can't remember where I saved it. Does anybody know what it could be? Thanks
  3. Nope, it wasn't that simple. The problem has started again :@
  4. Well I think I found the problem, it really can't be this simple can it?? <meta http-equiv="Content-Type" content="text/html charset=iso-8859-1" /> Changed to <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> Note the semicolon after text/html. It seems to have done the trick, it can't be that simple, surely?
  5. I created a page, a blank page that just inserts a row into a database. That works perfectly which leads me to believe that there is a coding error somewhere that just effects Firefox. hmmmmm
  6. Yeah I've tried it with IE and firefox. The problem doesn't happen with IE. I've cloned the site and put it onto my dev server, the same problem happens. The is a global header used throughout the site, I'm guessing the problem must be in there. The site is http://www.ugcity.co.cc if you would be willing to take a look?
  7. Well the problem is much bigger than what I thought. Everything is affected by it, forum posts, captchas, game stats, pretty much everything is processed twice. Is there not something I can simply put in the header to stop this happening? How come I've never run into this problem before, is it only certain styles or something? Thanks
  8. Thanks matey, I'll try that tomorrow when I sober up lol.. Happy new year!!
  9. Does anybody have an example of the session variable? I can't figure out a way to do it. The problem is the links all page to the parent page but with different variables in the urls. So the session is carried on and nothing is processed on the next page. If I unset the session it pretty much defeats the object.
  10. Wow, I can't even inset a row into the database without it being duplicated. :@
  11. Hey. Well I'm helping a friend out with an online game, this is one of the first tasks. That page is a captcha test. The valid_fails is the number of times they have left before they are banned. But it decreases by 2 each time rather than one. There is another session variable on that page which carries the correct number accross. That is also getting screwed up somewhere so a lot of people are getting banned for no reason. I think I'm going to have to rebuild it. I hate trying to recode other peoples work.
  12. Hi all, I have a problem with a script using sessions on Firefox. I am running the latest verion, but many others are having the same problem. if (!isset($_SESSION['valid_fails'])) { $_SESSION['valid_fails'] = 1; } else { $_SESSION['valid_fails']++; } It appears that the increment happens twice. I found this on your site http://www.phpfreaks.com/forums/index.php?topic=226301.0 Is this the same problem I am having and if so, is there a way to define the character set easily to stop Firefox reloading? Thanks
  13. Doyley

    Redirect

    Yup I was right, I added a parked domain over the old domain thinking that would work. Nope. So I edited httpd.conf and removed all references to the old domain. Thanks all.
  14. Doyley

    Redirect

    Righto... get ready to be spammed with code ;-) Javascript bit... <a href="/manager"><td onclick="document.location='/manager';" class="newleftbox" onmouseover="this.className='newleftboxon'" onmouseout="this.className='newleftbox'"> Managers Login</td></a> The manager/index.php page... <?php include("../includes/header.php"); echo "<h1><center>Manager Login</center></h3>\n"; echo "<br /><br />\n"; echo "<form method=\"post\" action=\"login.php\">\n"; echo "<table border=\"0\" align=\"center\">\n"; echo "<tr>\n"; echo "<td><b>Username</b></td>\n"; echo "<td><input type=\"text\" name=\"uname\" /></td>\n"; echo "</tr>\n"; echo "<tr>\n"; echo "<td><b>Password</b></td>\n"; echo "<td><input type=\"password\" name=\"pass\" /></td>\n"; echo "</tr>\n"; echo "<tr><td> </td></tr>\n"; echo "<tr>\n"; echo "<td colspan=\"2\" align=\"center\">\n"; echo "<input type=\"submit\" value=\"Login\" />\n"; echo "</td>\n"; echo "</tr>\n"; echo "</table>\n"; echo "</form>\n"; echo "<br /><br />\n"; echo "<center>\n"; echo "<a href=\"register.php\"><b>Register</b></a>\n"; echo "<br /><br />\n"; echo "<a href=\"forgotpass.php\"><b>Forgot Password</b></a>\n"; include("../includes/footer.php"); ?> I'll post the header.php and footer.php file if requested but I don't think there is a problem with them because they are included on all pages. The problem only occurs on the manager page. I'm thinking it's some sort of apache configuration problem now because if you go directly to the manager/index.php page it works fine. Cheers!
  15. Hi guys, I think I have my head up my rear end or something. http://www.leagues.athosts.co.uk/index.php Click on Manager down the left ... it's getting redirected to an old domain of ours. It's probably something really simple but I can't see it. Cheers
  16. Yeah I would love to, doesn't stop my client nibbling at my ear though lol. Thanks for your input!
  17. Balls that wouldn't work, the server is outside of our internal network so I would only be able to configure the router to route ftp to one machine.
  18. I was just thinking more about this.... All the people that would use this are based in our office, there is only a handful of them. If I install an FTP server on each of their PC's and use PHP's FTP commands would that work?
  19. I thought as much. Thanks!
  20. Hi all, Bit of a strange one. I have generated a csv file from a MySQL database, I now need that csv file to be saved on the users machine with as little interaction as possible. It will be the same filename and same location everytime. Basically I want to give them a button that says "Generate", once they have hit it they can go to c:/somefolder and the file will be their waiting for them. I was thinking of maybe an activex control or something similar but I really don't know what I'm doing with them so I'm just guessing. Thanks!
  21. Hi all, I have come to the conclusion that our hosts aren't worth the steam off my .... anyway.. We have a fairly decent dedicated server which has been slowing to a holt over the last month or so. I have been speaking to out hosts who have been giving me all sorts of weird and wonderful lies about why it was going down. They suggested we get a RAM upgrade which we did so we now have 4GB of RAM even though we were running perfectly well on 1.5GB about 3 months ago. Still it is crashing with this vast amount of RAM. Now I'm not completely adept with the in's and out's of apache. I get by but I'm no expert but I decided to go through the logs myself and see if I could spot anything. First I took a look at CPU/Memory/MySQL Usage in WHM and saw the the user nobody had been eating up a shed load of RAM. A quick google shows me that that is the user which Apache uses. So I then take a look in the vast error logs of apache. All of our sites are located in /home/blahblah but I see loads of errors like the following.. [Wed May 28 08:03:14 2008] [error] [client 91.152.210.169] File does not exist: /usr/local/apache/htdocs/viewforum.php [Wed May 28 08:03:14 2008] [error] [client 91.152.210.169] File does not exist: /usr/local/apache/htdocs/404.shtml [Wed May 28 08:03:15 2008] [error] [client 91.152.210.169] File does not exist: /usr/local/apache/htdocs/viewforum.php [Wed May 28 08:03:15 2008] [error] [client 91.152.210.169] File does not exist: /usr/local/apache/htdocs/404.shtml [Wed May 28 08:03:16 2008] [error] [client 91.152.210.169] File does not exist: /usr/local/apache/htdocs/viewforum.php [Wed May 28 08:03:16 2008] [error] [client 91.152.210.169] File does not exist: /usr/local/apache/htdocs/404.shtml [Wed May 28 08:03:18 2008] [error] [client 91.152.210.169] File does not exist: /usr/local/apache/htdocs/viewforum.php [Wed May 28 08:03:18 2008] [error] [client 91.152.210.169] File does not exist: /usr/local/apache/htdocs/404.shtml [Wed May 28 08:03:19 2008] [error] [client 91.152.210.169] File does not exist: /usr/local/apache/htdocs/viewforum.php [Wed May 28 08:03:19 2008] [error] [client 91.152.210.169] File does not exist: /usr/local/apache/htdocs/404.shtml [Wed May 28 08:03:21 2008] [error] [client 91.152.210.169] File does not exist: /usr/local/apache/htdocs/viewforum.php [Wed May 28 08:03:21 2008] [error] [client 91.152.210.169] File does not exist: /usr/local/apache/htdocs/404.shtml [Wed May 28 08:03:22 2008] [error] [client 91.152.210.169] File does not exist: /usr/local/apache/htdocs/viewforum.php [Wed May 28 08:03:22 2008] [error] [client 91.152.210.169] File does not exist: /usr/local/apache/htdocs/404.shtml This has been happening a lot from a couple of different IP address which all trace back to Moscow. Can somebody help me out? Thanks
  22. Hi all, I have been using http://script.aculo.us/ to create draggable blocks which is working fine but I would like to store the positions in a MySQL database so they will remain there when a user logs in again. Is there an example of this knocking about anywhere? Thanks!
  23. Nope I was wrong, ksort didn't work. arsort works perfectly. Thanks again!
  24. Cheers, I just tried ksort before reading your post and that also worked. Is there a difference between arsort and ksort? Thanks for your help!
  25. Hi all, I'm having a problem with array keys. Here is my code.. $selectsql="select distinct playerid from results where seasonid='$season'"; $selectnew=mysql_query($selectsql) or die(mysql_error()); while($sel=mysql_fetch_array($selectnew)){ $select2sql="select points from results where playerid='$sel[0]' and seasonid='$season'"; $select2new=mysql_query($select2sql) or die(mysql_error()); while($sel2=mysql_fetch_array($select2new)){ $pl="AA".$sel[0]; $prev=$arr[$pl]; $new=$prev+$sel2[0]; $arr[$pl]=$new; } } rsort($arr); echo "<pre>\n"; print_r($arr); echo "</pre>\n"; The above outputs the following.. Array ( [0] => 50 [1] => 46 [2] => 44 [3] => 34 ) I need it to output Array ( [AA1] => 50 [AA2] => 46 [AA3] => 44 [AA4] => 34 ) If I remove rsort() it works but I need that in there. Can anybody help? Thanks!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.