Category: PHP
-
XAMPP PHP.ini dev
Find: post_max_size = 8M upload_max_filesize = 2M max_execution_time = 30 max_input_time = 60 memory_limit = 8M Change to: post_max_size = 750M upload_max_filesize = 750M max_execution_time = 5000 max_input_time = 5000 memory_limit = 1000M
-
Remove WP Header Bloat
-
PHP Upload
!– The data encoding type, enctype, MUST be specified as below –> <form enctype=”multipart/form-data” action=”up.php” method=”POST”> <!– MAX_FILE_SIZE must precede the file input field –> <input type=”hidden” name=”MAX_FILE_SIZE” value=”30000″ /> <!– Name of input element determines name in $_FILES array –> Send this file: <input name=”userfile” type=”file” /> <input type=”submit” value=”Send File” /> </form> <?php…
-
CSV/PHP Read
function loopMenuItems($dir){ //get the csv file if ($dir == ‘left’){ $file = “uploads/menuleft.csv”; $row = 1; if (($handle = fopen($file, “r”)) !== FALSE) { while (($data = fgetcsv($handle, 1000, “,”)) !== FALSE) { if($row == 1){ $row++; continue; } echo ‘ <div class=”menu-item clearfix”> <h4>’.$data[0].'</h4> <div> <p class=”pull-left”>’.$data[01].'<br /> ‘.$data[2].’ </p> <p class=”pull-right”>’.$data[3].'</p> </div>…
-
WordPress custom function.php nag removal function
<?php function remove_core_updates(){ global $wp_version;return(object) array(‘last_checked’=> time(),’version_checked’=> $wp_version,); } add_filter(‘pre_site_transient_update_core’,’remove_core_updates’); add_filter(‘pre_site_transient_update_plugins’,’remove_core_updates’); add_filter(‘pre_site_transient_update_themes’,’remove_core_updates’); ?>
-
Protected: SendGrid Config
There is no excerpt because this is a protected post.
-
Serving image using PHP script