Convert Strings to Array

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

Read More

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

Read More

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 […]

Read More

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

Read More

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!  

Read More