Jump to content


  • Posts

  • Joined

  • Last visited

About Rifts

  • Birthday 11/03/1986

Profile Information

  • Gender
  • Location
  • Interests
  • Age

Rifts's Achievements

Advanced Member

Advanced Member (4/5)



  1. I figured this out using md5 i think
  2. Thanks for the input, so whats the best way to create this signature in objective-c that I can then decode in php?
  3. What is the best method to prevent unauthorized requests being sent to your server? For example I have an ios game which sends a users name and score to my php server. Whats preventing someone from just sniffing the traffic and seeing the simple request to: http://mywebsite.com/addscore.php?name=jimmy&score=100 now cant anyone just copy paste that url and change that values to anything "cheat" the game? All I can think to do is send a key with the url and check the key is correct, but if someone is sniffing the url they can see they key and its pointless anyway? what am i missing?
  4. use this for storing user data http://www.openwall.com/phpass/ here is how to use its very simple http://sunnyis.me/blog/secure-passwords/
  5. Trying your code echos back the empty login form and page minus the styling. also what about the hidden vaules?
  6. Hey guys I'm trying to log into this website using curl. I did some reading and think I'm pretty close but I cant get the login working It just returns nothing. there is a commented out part which is the page i'm trying to load after I successfully login. <? $username = 'xxxxxxx'; $password = 'xxxxxxx'; $postinfo = "username=".$username."&password=".$password; $cookie="cookie.txt"; $ch = curl_init(); // extra headers $headers[] = "Accept: */*"; $headers[] = "Connection: Keep-Alive"; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_URL, 'https://weblogin.asu.edu/cas/login'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postinfo); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"); curl_setopt($ch, CURLOPT_COOKIESESSION, true); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); $data = curl_exec($ch); if (curl_error($ch)) { echo curl_error($ch); } echo $data; curl_close($ch); // //page with the content I want to grab after logging in (test after login works) // curl_setopt($ch, CURLOPT_URL, "https://webapp4.asu.edu/myasu/"); // curl_setopt($ch, CURLOPT_POST, false); // $data = curl_exec($ch); // if (curl_error($ch)) { // echo curl_error($ch); // } ?> I'm not sure but I think im maybe missing some other parts the form needs? How do I see exactly what I need to send?
  7. No sorry for not explaining better. I meant $names = array ('anna','bert','ben','cait','alan','andrew','bob','carry', '23 kenny','10','43 lala'); I was going to try something like this foreach ($names as $n) { if( is_numeric($n)) { $newArray[$n[0]]['#'] = $n; } else { $newArray[$n[0]][] = $n; } }
  8. You sir are a god among men. Thank you. now what if in the names array there were some non-alpha values like numbers. How could I get all those into an array with the key '#' ?
  9. Hey guys, I have an array of names sorted alphabetically. I'm trying to loop through them and create new arrays keyed by the letters of the alphabet containing the names which start with that letter. so in the end i'm trying to create something like this: $newarray = array( 'a' => array('anna','alan','andrew'), 'b' => array('bert','ben','bob'), 'c' => array('cait','carry'), etc,etc ); thanks
  10. I had a problem like this also. I figured out the problem was my hosting. I was using a shared godaddy plan and after sending a few test emails to myself suddenly I wasn't able to send anymore emails. This is because of GODADDY. You need a better server.
  11. This should get you started $dir = new DirectoryIterator(dirname(__FILE__)); foreach ($dir as $fileinfo) { if (!$fileinfo->isDot()) { var_dump($fileinfo->getFilename()); } }
  12. you dont have to use a framework to use json.
  13. What exactly is your question? It seems like you have an idea of what to do and how to do it. To add to what you have; you may want a script to run every few minutes checking the last time a user was 'online' (loaded a new page), and if it's over 5 or 10 minutes you could log them out.
  • 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.