MySQL structure and syntax MySQL is a relational database system, stores bits of information in separate areas and links those areas together. Store virtually anything in a database example:- address book, product catalog. MySQL Structure MySQL allows separating information into tables or “areas of pertinent information.” In non-relational database systems,…
Read morePHP download file script Download those particular files on which the user has clicked. (It means download the files dynamically not a static file) PHP download file features: The file name, which is passed via the query string, is sanitized by using the PHP function preg_replace() and filter_var() To make the script safer, use the PHP function pathinfo() t…
Read moreWorking with File Uploads in PHP A PHP script can be used with an HTML form to allow users to upload files to the server. Initially, files are uploaded into a temporary directory and then relocated to a target destination by a PHP script. Information in the phpinfo.php page describes the temporary directory that is used for file uploads as upload_tmp_…
Read moreRedirecting the User in PHP PHP redirect mechanism is used to navigate the user from one page to another without clicking any hyperlinks. It should be done in the background. For example, in the payment gateway, the redirect should automatically be taken place to notify the URL using PHP script. PHP provides predefined function, named header(),for URL red…
Read moreCombining HTML and PHP Code on a Single Page Write PHP code with HTML code on a single page as on hard copy. More flexibility to write the entire page dynamically. For this use a PHP_SELF variable is in the action field of the <form> tag. The action field of the FORM instructs where to submit the form data when the user presses the “submit” button. Th…
Read more
Social Plugin