Jump to content

Daukan

Members
  • Posts

    180
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Daukan's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. You should be able to set your mail settings in the php.ini file.
  2. You need to use mysql_real_escape_string() on the data before inserting it.
  3. The variable name use in the function argument is $cookloginID, The one use to test it is $cooklogin_ID
  4. You can give an argument in snmpwalk() to limit it to one try manual snmpwalk()
  5. Change this <?php if(isset($_COOKIE["array"]) && $_COOKIE["array"]=="two"){ setcookie("array", "one", time()+60*60*24*180); $get2 = $title2[array_rand($title2)]; $get3 = $img2[array_rand($image2)]; }else{ setcookie("array", "two", time()+60*60*24*180); $get2 = $title1[array_rand($title1)]; $get3 = $img1[array_rand($image1)]; } ?> To this <?php if(isset($_COOKIE["array"]) && $_COOKIE["array"]=="two"){ setcookie("array", "one", time()+60*60*24*180); $image = rand(1,count($image2) ); $get2 = $title2[$image]; $get3 = $img2[$image]; }else{ setcookie("array", "two", time()+60*60*24*180); $image = rand(1,count($image2) ) $get2 = $title2[$image]; $get3 = $img2[$image]; } ?>
  6. In your php.ini file make sure these are set to off. You don't have to anything in the http.conf file ; Magic quotes for incoming GET/POST/Cookie data. magic_quotes_gpc = Off ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc. magic_quotes_runtime = Off ; Use Sybase-style magic quotes (escape ' with '' instead of \'). magic_quotes_sybase = Off
  7. It should throw a random 'Uninitialized string offset' error. The max value in the rand() function is larger than the amount of values in the $ANC array. It should be 25.
  8. Daukan

    Php Time

    Oops, that code logic won't actually work as is, and my edit time expired...
  9. Daukan

    Php Time

    Yeah if statements would work <?php //convert timepassed to days hours and mins $starttime = 1200213487; $timepassed = time() - $starttime; $days = ($timepassed-($timepassed%86400))/86400; $hours = floor( ($timepassed%86400)/3600 ); $mins = floor( ($timepassed%3600)/60 ); $seconds = $timepassed%60; if($days > 0) echo $days.':'; if($days > 0 && $hours > 0 ) echo $hours.':'; echo $mins.':'.$seconds; ?>
  10. Daukan

    Php Time

    If you only need days hours mins seconds you can do something like this <?php //convert timepassed to days hours and mins $starttime = 1200213497; $timepassed = time() - $starttime; $days = ($timepassed-($timepassed%86400))/86400; $timepassed = $timepassed - $days*86400; $hours = ($timepassed - ($timepassed%3600))/3600; $timepassed = $timepassed - $hours*3600; $mins = ($timepassed - ($timepassed%60))/60; $seconds = $timepassed%60; echo $days.':'.$hours.':'.$mins.':'.$seconds; ?>
  11. This looks like the problem is you didn't escape the quotes in the html echo "<td width="25%">{$row['title']}</td>"; Should be echo "<td width=\"25%\">{$row['title']}</td>"; Edit: Oops it posted for some reason instead of giving the reply warning ...
  12. Are you sure your not recalling GetCartId() after you try emptying the cookie
  13. He is an example, haven't tested it though <?php $hour = date('H');//hour 1-24 $dayofweek = date('N');//numeric day of week 1=mon, 7=sun if($hour < 9 || $hour > 16 || $dayofweek > 5) { echo 'Could not be logged in. Site is closed'; }else { //login code } ?>
  14. An array would do it probably. <?php $user['group'] = 'group2'; $GLOBALS['groups'] = array('group1', 'group2', 'group3', 'group4'); if(in_array($user['group'], $GLOBALS['groups']) ) { echo 'You are in a group'; } ?>
  15. In which case $group would need to be declared and defined prior to the define. Oh I assumed he was seeding $group via database or cookie. Either way that makes for some odd coding.
×
×
  • 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.