
Rifts
Members-
Posts
725 -
Joined
-
Last visited
About Rifts
- Birthday 11/03/1986
Profile Information
-
Gender
Male
-
Location
AZ
-
Interests
magnets
-
Age
27
Rifts's Achievements

Advanced Member (4/5)
1
Reputation
-
How can i do facebook/twitter like loading more data for scrolling down?
Rifts replied to colap's topic in PHP Coding Help
I believe its called lazy load -
I figured this out using md5 i think
-
Thanks for the input, so whats the best way to create this signature in objective-c that I can then decode in php?
-
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?
-
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/
-
dang oh well
-
Trying your code echos back the empty login form and page minus the styling. also what about the hidden vaules?
-
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?
-
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; } }
-
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 '#' ?
-
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
-
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.
-
How to echo the number of pictures I have in a folder.
Rifts replied to abeamreach's topic in PHP Coding Help
This should get you started $dir = new DirectoryIterator(dirname(__FILE__)); foreach ($dir as $fileinfo) { if (!$fileinfo->isDot()) { var_dump($fileinfo->getFilename()); } } -
you dont have to use a framework to use json.
- 3 replies
-
- json
- webservices
-
(and 2 more)
Tagged with:
-
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.