[Solved] What are the problems when switch region on the Amazon web server?

[ad_1] It sounds like your situation is: You are currently running an Amazon EC2 instance in either the Frankfurt or Ireland regions You wish to use a different region There’s two answers to this question, and it depends on whether you want to “move” an instance to another region, or just “use” another region. Using … Read more

[Solved] Anti spam for web forms? [duplicate]

[ad_1] There’s CAPTCHA solutions.. though not always user-friendly, I’ve had to look into other ventures to help overcome spam (though never 100%). One solution over not using CAPTCHA is to add a hidden input with a value. In JavaScript, delete that hidden input. On the server side, test if it was posted or not. If … Read more

[Solved] how to convert char in octal format without standart C functions like print(f) [closed]

[ad_1] Decimal and octal are number bases, this only matters when presenting a number (or when inputing a number); the actual number is generally stored in binary in the computer’s memory but this doesn’t often matter to typical programs. In your case, conversion to octal generally involves extracting three bits at a time (since 23 … Read more

[Solved] how to append multiple values to an associative array? [closed]

[ad_1] Seem you need to do something like this, $values = array(); while($row = mysql_fetch_array($result)) { $values[$row[‘MONTHNAME(dt)’]] = $row[‘SUM(dist)’]; } print_r($values); If you need an associative array than do like. $values[] = array($row[‘MONTHNAME(dt)’] => $row[‘SUM(dist)’]); Note: Please, don’t use mysql_* functions in new code. They are no longer maintained and are officially deprecated. See the … Read more

[Solved] Getting blank array from web service

[ad_1] Use urlencode() This is working now : <?php $post_name=”BSN Syntha-6 Isolate”; $base = “http://52.53.227.143/API_test.php?post_name=” . urlencode($post_name); $str = file_get_contents($base); echo ‘<pre>’; print_r(json_decode($str)); ?> 2 [ad_2] solved Getting blank array from web service