Category: Programming Language
-
Post Views: 14 Since it is necessary to determine whether a value exists in this PHP array in JavaScript, you need to pass this PHP array into JavaScript! This effect can be achieved by using JSON-encoded variables using JSON_ENCODE – JSON encoded! Finally, use $.inArray(item.gid, js_goods_ids) == -1 to determine whether the value of this js variable exists in…
-
Post Views: 12 In the process of importing excel files, this kind of problem occurs because the memory allocated to the php program is insufficient, so it is necessary to set the one in php.ini: Memory_limit = 512M, after setting it to 512M, restart the server, you can run normally!
-
Post Views: 11 array_key_exists($row[‘B’], $abrand) Modified to: array_key_exists((int)$row[‘B’], $abrand)
-
Post Views: 12 I finally decided to disable the enabled modules in php.ini to disable, and then restart Apache, and finally solve this problem! The final effect is as follows:
-
Post Views: 9 According to the URL analysis: \module\misc\view\checkupdate.html.php Original code: <?php if($note):?> <?php echo $note;?> Modified to: <?php if($note):?> <?php echo htmlspecialchars($note);?>
-
Post Views: 12 The reason is that scandir() is not enabled in the environment configuration, and you need to enable the settings in php.ini.
-
Post Views: 13 When outputting some variables in the template file, if the variable does not exist, it will prompt such an error message. The following is the prompt screenshot and solution: notice:undefined offset: 4 in the include() and other prompts <?php if(isset($content[‘field_power’][0][‘#markup’])) { ?<<span>gong rate:</span>?php print $content[‘field_power’][0][‘#markup’]; ?><br /><?php } ?>
-
Post Views: 9 Using $BASE_PATH in some template files will prompt this type of error, and finally solve the problem by modifying the modification in php.ini as shown in the figure. Will ; error_reporting = E_ALL | E_STRICT modify to ; error_reporting = E_ALL | E_STRICT ERROR_REPORTING = E_ALL & ~E_NOTICE
-
Post Views: 14 When installing the module L10N_Install-7.x-1.0-beta23-core with Drupal 7.21 The upload_max_filesize = 2m in php.ini is modified to: upload_max_filesize = 10m to solve this problem.
-
Post Views: 13 Finally, by modifying the php.ini file: Modify; date.timezone = asia/shanghai to: Date.TimeZone = Asia/Shanghai solved.