Current Page: 1 of 1
Results 1 - 14 of 14
17 years ago
k776
Thats becaus session start must be befor eeverything. Try these: change.php: //Begin code <?php session_start(); if (!isset($_SESSION['count'])) { $_SESSION['count'] = 0; print $_SESSION['count']; print "<a href=delete.php>delete</a>"; } else { $_SESSION['count']++; print $_SESSION['count']++; print "<a href=delete.php>delete</a>"; } ?> //End co
Forum: WampServer English
17 years ago
k776
Or, if you want something better, use VertrigoServ. It serously rivals WampServ (the versions of apps are the same, the interfaces are both good, settings are easy to change). And its got default security. Its a great little app.
Forum: WampServer English
17 years ago
k776
Also, I'm sure it needs " before and after the location text: header("Location: index.php"
Forum: WampServer English
17 years ago
k776
I hope you read this! Big problems. If I did ' then it would break it and allow a hacker to get in. I'm suprised CyberSpatium would released unprotected code Please use this: $query = "SELECT id, fname, lname FROM database WHERE id='".intval($_POST['id'])."'"; That will convert 1 into 1, 134 into 134, and imtryingtohackyou into 0. Its sfaer that way.
Forum: WampServer English
17 years ago
k776
None. Wamp is designed for outside access, for local development only. However, if you want to get hacked, port 80.
Forum: WampServer English
17 years ago
k776
So if anything is ruined, its your fault. May I suggest VertrigoServ if you want to go public though. Its got protection in place, and seriously rivals WampServ!
Forum: WampServer English
17 years ago
k776
But mysql does And he could have probably made his own function like: function password($pass) { return md5($pass); } or something more complex. Post Edited (06-09-06 01:21)
Forum: WampServer English
17 years ago
k776
password() is a function, not a varible hence hving a $ in front of it will cause troubles. Try this instead. $usrPass = password("password" mysql_query("SELECT * FROM user WHERE name='".$usrName."' AND pwd='".$usrPass."'"
Forum: WampServer English
17 years ago
k776
Um, I better clarify. There will be maybe 2-3 visits a month from friends. No one else will know about it. I want just a basic setup with some protection against hackers. Nothing too complex. 70% of the day the computer with the server isn't on and 10% of the remaining 30%, the computer is on, the server has been turned off so I can save ram for a game. Besides, Wamp devs might consider making
Forum: WampServer English
17 years ago
k776
Thats because your ISP has register_globals on, not very smart of them I might add. Changing $PageContent to $_GET['PageContent'] and any others like it will fix the problem Also, <? is turned off by default I think. Therefore you need to use <?php instead. All these are good coding practices.
Forum: WampServer English
17 years ago
k776
Ok, so say I use htaccess to protect phpmyadmin and sqlitemanager, and its working fine (allows only people who know the password), is there anything else that needs to be setup and protected/secured before the server can host a site open to the public?
Forum: WampServer English
17 years ago
k776
I have this exact same problem. It only shows when the server is started manually. If I start it automaticly when the computer starts, no try icon (but the server is still operational).
Forum: WampServer English
17 years ago
k776
If you hav Skype or another service that uses port 80, then this can cause troubles. To find out, close wamp (shut everything down), open up ms-dos, type netstat -an and look for anything with :80 on the end.
Forum: WampServer English
17 years ago
k776
That probably wont work either. I generally use: mysql_query("SELECT * FROM user WHERE name='".$usrName."' AND pwd='".password('password')."'" Post Edited (06-07-06 05:28)
Forum: WampServer English
Current Page: 1 of 1