Jump to content


Staff Alumni
  • Posts

  • Joined

  • Last visited

  • Days Won


AbraCadaver last won the day on November 3 2013

AbraCadaver had the most liked content!

About AbraCadaver

  • Birthday 02/20/1971

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
    The Republic of Texas

Recent Profile Visitors

24,682 profile views

AbraCadaver's Achievements


Newbie (1/5)




Community Answers

  1. No. A checkbox is either on or off, two possibilities. If it is off it will not be submitted and you need to detect that and assign a value based upon its non-existence. If you mean something slightly different then you may do something like this but it is a hack: <input type="checkbox" name="cb1" value="value1:value2"> Then in PHP you would do: $multiple_values = explode(':', $_POST['cb1']); And you will have an array of multiple values.
  2. Might try: stat -f %z /path/to/file
  3. You don't want the return value because it indicates success or failure. You want the last line of the output: $file_size = system("ssh root@ ls -lah '/MacRadio\ X/WMIS\ Logs/WMIS\ $tomorrow\ Log' | awk '{ print $5}'"); echo $filesize; But then you have to work out if it is 175 or 175K etc... I would just look up stat() on OSX and use that.
  4. echo system("stat --format=%s '/MacRadio X/WMIS Logs/WMIS $tomorrow Log'");
  5. Depends on what you mean by "once a day". If I click today (Monday) at 11:59PM, can I click again tomorrow (Tuesday) at 12:01AM even though it's been only 2 minutes?
  6. I wouldn't worry about the space. This will replace the - though: UPDATE table_name SET datafield = REPLACE(datafield, '-', '') If you must have the space, then look at the string functions: http://dev.mysql.com/doc/refman/5.0/en/string-functions.html. Probably a combination of LEFT, LENGTH, RIGHT and CONCAT/CONCAT_WS. Should be a fun learning exercise :-)
  7. You can send it yes, but it is up to the receiving site if they want to accept it and what to do with it. Using post, this is how you send info to PayPal, but other sites may not work the same way. You will need to look at their developer/API docs.
  8. You didn't ask to show them, you already have that code. You asked to put them in the $aUsers array. print_r($aUsers);
  9. This can be solved by htaccess rules but here is one common way: //index.php define('SOMETHING', true); //loginpage.php defined('SOMETHING') or die(); //or defined('SOMETHING') or header('Location: index.php');
  10. What is the code that searches based on the drop downs?
  11. while($row = mysql_fetch_array($GetNamesConnect)) { $aUsers[] = $row['lastname'] . ', ' . $row['firstname']; }
  12. $ns_cb->value is NOT currently = 0.9940 or you wouldn't get this error.
  13. Might be a little shorter: $lines = explode(PHP_EOL, $string);$newchunks = array();while($chunk = array_splice($lines, 0, 500)) {// do something with lines in $chunk$newchunks = array_merge($newchunks, $chunk);}$newstring = implode(PHP_EOL, $newchunks);
  • 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.