Pure Ajax File Upload with No Frameworks

Sometimes you need to upload files or submit a form using an XHR request (asynchronous). This is easily handled in frameworks like jQuery or Angular, but let’s check this example that showcases ajax file upload with no frameworks. Ajax File Upload with No Frameworks Steps to achieve this: Code a HTML form. Code a PHP … Read more

PHP Superglobal Variables

Superglobal variables are default variables built in PHP. They are reachable from everywhere, in any script. Superglobal variables are: $_SERVER $_GET $_POST $_FILES $_COOKIE $_SESSION $_REQUEST $_ENV Superglobal variables usage examples $_SERVER contains information regarding server address, name, protocol, document root etc. The code below displays the contents of this variable: $_GET contains the parameters … Read more