Convert comma separated string into array See dedicated page here. Convert array to comma separated string See dedicated page here. Convert string to byte array json encode See here
All posts by
POST-application/x-www-form-urlencoded
This is a typical simple HTTP POST request. Resources https://ec.haxx.se/http-multipart.htmlhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST Example 1 Form html that is sent POST / HTTP/1.1 is for site root, for a specific file use: POST /some_directory/myfile.php HTTP/1.1
Forms raw html
See https://ibex.tech/cloud/category/html/raw-html-data-over-the-wire
POST-multipart/form-data
This is a HTTP POST request sent with the request body specially formatted as a series of “parts”, separated by a boundary string. It allows a mix for form data, files etc to be sent as a HTTP POST. Resources https://ec.haxx.se/http-multipart.html https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST Example 1 Form html that is sent Boundaries – IMPORTANT NOTE!!!! All boundaries […]
Useful queries
Find rows With DateTimes: If string contains How many rows in a table
Style Links
No underline Add margins Use normal font colour
Emulate a form submit in php code
Use curl as shown here: https://ibex.tech/cloud/php/curl/curl-get-request
CURL GET Request
Example of using CURL to GET a response GET with query parameters loaded as an array They are still added to the URL, but this method lets you load them as an array Add header fields
Special Characters In Strings
Convert backslashed strings $MyString = "a\"b"; echo $MyString; //Will output: a\"b echo stripcslashes($MyString); //Will output: a"b If stripcslashes() doesn't work try using it at the point of outputting the string to the browser, at the echo call. Using it to convert a string and store in a string won't necessarily work!
Time Zones
Get DateTime now for a specific time zone Example 1 Example 2