詳細検索

php


Eliminate nesting of associative arrays with only one element
Tips
February 21, 2014
2分で読めます

Eliminate nesting of associative arrays with only one element

WordPress functions (especially in the $wpdb class, etc. When using the 'get_results()' method to get the value of the DB, etc.), and if the return value array has only one element but is an associative array, there are quite a few cases where nested loop processing is used when retrieving the value. ...

Get PATH_INFO and assign to hidden
Tips
March 25, 2013
2分で読めます

Get PATH_INFO and assign to hidden

If you attach a parameter to a URL and send it as a GET, you can pass it like ''' http://www.example.com/?param0=aaa&param1=bbb ', and when you receive it, you can use ''' $param 0 = $_GET['param0']; $param1 = $_GET['param1']; ''' or ''' $param 0 = ...

How to have multiple file archives downloaded
Tips
March 25, 2013
2分で読めます

How to have multiple file archives downloaded

For example, if you want to download multiple image files at once, you can copy the image files to a temporary directory on the server and archive them for download. However, this will copy the image files one by one, which can strain your storage, and if you have a large number of files, it will take a long time to copy. ...

Use URL parameters passed to PHP as they are as PHP variables
Tips
July 26, 2012
2分で読めます

Use URL parameters passed to PHP as they are as PHP variables

When passing a value to PHP for processing, it is common to check for the existence of the passed value and redefine it as a PHP variable. However, it is troublesome to write such a routine process every time, and if you change the URL parameter name, you will have to work on that part again, which is troublesome. ...

CANVAS version image trimmer
Tips
July 4, 2012
2分で読めます

CANVAS version image trimmer

It is an image trimmer tool that imports any image into an HTML5 CANVAS, trims and resizes it with a range, and outputs it with a specified file format. As for the processing flow, 1. Search the specified directory and add only the image files to the drop-down menu. 2. Overlay jQueryUI's drag-and-drop box (div layer) on top of the image loaded into CANVAS. 3....

Image file management tools
Tips
July 3, 2012
2分で読めます

Image file management tools

\[caption id="attachment\_270" align="aligncenter"\] Image File Manageable Tools\[/caption\]...

CSS3 Editor
Tips
June 28, 2012
1分で読めます

CSS3 Editor

The properties added in CSS3 have a long syntax, and since each browser has different implementations, it is quite difficult to mark up because it is necessary to write them separately with vendor prefixes. 「Adobe...