Jump to content

ataria

Members
  • Posts

    179
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ataria's Achievements

Member

Member (2/5)

0

Reputation

  1. [13-Sep-2007 11:53:51] PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20020429//etc/ixed/ixed.4.4.lin' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429//etc/ixed/ixed.4.4.lin: cannot open shared object file: No such file or directory in Unknown on line 0 That is the error in the error log that just keeps showing, over and over. In fact, the error file itself is about 690k. Lovely. Anyone know what that is from? o_o .. I don't even have access to that file.
  2. Yeah. I want something that would keep them logged in at all times, unless they log out, of course.
  3. I want to use cookies, although, I am open to switch over to sessions. What is a good way to ensure their information is safe and no one can gain access to their account? -x- Good / Bad way: Storing PHP session IDs in a cookie, and, a row in the database? and have them match up? X:
  4. $query = mysql_query("SELECT * FROM `table` WHERE `id`>0"); // change ID to whatever you use as the index. the id above, ^ while($row=mysql_fetch_array($query)){ $timestamp = strtotime($row[time]); $cutoff = time()-$timestamp; $limit = 864000; if($limit > $cutoff){ $query = mysql_query("UPDATE `table` SET `close`=1 WHERE `id`=$row[id]"); // Of course, the "`close`=1" part would be replaced by whatever you have that represents it being closed. // Again, the ID would change to whatever your index is. } else{ // nothing. } } *** Spaced out so it's easier on the eyes. I believe that should work, not 100% sure. I'd prefer if someone revises it for me. but, yeah, try it if you want.
  5. Do you have the User ID anywhere else? such as, in a cookie, or session, etcetc.
  6. The process gets stopped and says there is an error, no not a PHP/MySQL error, the error message I made. I echo'd the contents, and, it does not show anything .
  7. Okay. so, on my site, users are allowed to donate. When they donate (via paypal) they are directed back to the processing page. I use this: if($_SERVER[HTTP_REFERER] != 'https://www.paypal.com/cgi-bin/webscr') { echo "<center><b>Error.</b> "; to check to see if they came from paypal, which prevents false donations / receiving the donation item multiple times with one payment. BUT, It does not work . Is there any other way to secure that only one donation item is given?
  8. Do you echo anything? or is your script just that query... ?
  9. Okay. I'll just make a quick little code snippet. <?php // would be the function. function secure_int($variable){ $variable = intval($variable); return $variable; } // would be the script. secure_int($id); echo "Your ID is ".$id."!"; ?> see how I didn't use "$id = function($id);" is that possible? =/
  10. Post your script, let us see if you made an error or something.
×
×
  • 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.