-
Posts
1,893 -
Joined
-
Last visited
-
Days Won
8
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
http://www.spidean.com
Profile Information
-
Gender
Male
-
Location
The Republic of Texas
AbraCadaver's Achievements
-
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.
-
Might try: stat -f %z /path/to/file
-
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@192.168.2.169 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.
-
echo system("stat --format=%s '/MacRadio X/WMIS Logs/WMIS $tomorrow Log'");
-
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?
-
Need to remove all '-' from rsTel datafield in database?!
AbraCadaver replied to jarv's topic in MySQL Help
Or just SUBSTRING and CONCAT_WS. -
Need to remove all '-' from rsTel datafield in database?!
AbraCadaver replied to jarv's topic in MySQL Help
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 :-) -
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.
-
You didn't ask to show them, you already have that code. You asked to put them in the $aUsers array. print_r($aUsers);
-
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');
-
What is the code that searches based on the drop downs?
-
while($row = mysql_fetch_array($GetNamesConnect)) { $aUsers[] = $row['lastname'] . ', ' . $row['firstname']; }
-
$ns_cb->value is NOT currently = 0.9940 or you wouldn't get this error.
-
Split $string to several smaller chunks of lines
AbraCadaver replied to transparencia's topic in PHP Coding Help
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);