Jump to content

MadDawgX

Members
  • Posts

    40
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

MadDawgX's Achievements

Member

Member (2/5)

0

Reputation

  1. Okay that will work. Another thing, Im not sure about the securities of flash, but what if someone was able to get ahold of the link to the submitting page. Would they be able to manipulate a score? If so is there a way to prevent that?
  2. Hey, I have a flash game set up and a highscore table. I have it setup so upon completion of the game the user submits his/her score and it POSTS the data to a php file where it is added to the database. The problem is, it's not very secure. When submitted the user can refresh the page so that it adds the score again. Im also certain there are other insecurities with the system. So, I need suggestions on how I can make this as secure as possible. Thanks
  3. Ahh it's working now, I had a typo with my username in the path And thanks awpti for that correction Solved!
  4. Ok, I updated it and still no results Here's where I got the info from my host: http://www.bihira.com/vbulletin/showthread.php?t=323&highlight=Cron
  5. Ok, so I checked with my host I got an answer; here's the command: php /home/ufnwvwju/public_html/temp/cron_shares.php But it doesn't seem to be working? Here is cron_shares.php: // ******************************* // INITIALIZE // ******************************* session_start(); mysql_connect("localhost", "****", "****") or die(mysql_error()); mysql_select_db("ufnwvwju_sb") or die(mysql_error()); // ******************************* // CRON JOB // ******************************* $g_stats = mysql_query("SELECT * FROM sb_stats"); $stats_shares = mysql_result($g_stats,0,'stats_shares'); $stats_mbal = mysql_result($g_stats,0,'stats_mbal'); $share_value = number_format($stats_mbal / $stats_shares,4); $i_share = mysql_query("INSERT INTO sb_shares (shares_value) VALUES('$share_value')"); But the database is turning up empty?
  6. Ok, so say I have a script titled 'update.php' in the index of my website. When I goto my cpanel, I have an item called Cron Jobs which I then get to a page where I specify the command. So is this what I put? MINUTE HOUR DAY MONTH WEEKDAY COMMAND 10 * * * * update.php Or do I have to specify an exact path? Im on a shared server through Bihira.com btw
  7. Yeah that's what I figured, but wasn't sure. And no, I know absolutely nothing about them, never used them before... is it simple for something like this?
  8. Hey, How can I execute some PHP/MYSQL on an exact time basis (every 10 minutes) - Thanks
  9. Hey there, I have a variable storing a string that contains many strings with in it and are separated with *'s. How can i separate these values and store them in there own respective variables Eg. $var = "1*test1*test2*test3" How can I store the value 1 in $sep1 or test3 in $sep4 ?
  10. Hey there, Using the 'date' field in my Mysql Table, how do I: 1. Determine the current time/date in Php, which can go into that date field 2. Determine whether or not it is 24 hrs. after the value in the date field. - Thanx
  11. Hey there, I need an efficient way to store tons of images (just image names, not the file). Then, recored for every 24 hours, an IP address for everyone that has clicked on the LINK to the image. I was thinking Text Files would be a good choice, but I don't know how to go about this. - Thanx, MadDawgX
  12. Hey there, I've got some code to delete a file: It's basically just not working, so it won't show the file location which shows that file_exist isn't working. Though if the file is an image, it WILL display the image. So the problem is with file_exist, any help appreciated. <?php // Delete Message $Del = 0; if(isset($_GET['del'])) { $Del = $_GET['del']; } // Connect Database // ************* // Delete File if ($Del != 0) { // Check File $qCheck = "SELECT * FROM files WHERE id='$Del'"; $rCheck = mysql_query($qCheck) or die('Query failed.'.mysql_error()); if(mysql_num_rows($rCheck)==1) { // Delete File $FileLoc = mysql_result($rCheck,0,'loc'); $Filename = "/team/uploads/".$FileLoc; if (file_exists($Filename)) { echo $Filename; // DEBUG unlink($Filename); } echo "<img src='$Filename'>"; //DEBUG //$qDel = "DELETE FROM files WHERE id='$Del'"; //$rDel = mysql_query($qDel) or die('Query failed.'.mysql_error()); //header('Location: ***'); } else { //header('Location: ***'); } } else { //header('Location: ***'); } ?>
  13. <?php // Connect Database $Db = mysql_connect ('***********','twistere_solace','*******); mysql_select_db ('twistere_team',$Db); ?>
  14. It's just ['ffile'] becuase all the other ones start with 'f' ( ['fdes'] ['fname'] etc.) I've got no problem with it being file, but does it really matter?
×
×
  • 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.