Are you looking for fetching data from database in the AngularJs? Today I will be explained the method with code and demo to fetching the data from database using AngularJs Filter. In today’s example, I am using PHP and MySQL to fetch the data in the JSON format. I hope you are aware of PHP, […]
Many times we have to show the latest video from YouTube list or from the channel on the website. I was developing a WordPress site and I required php script to get latest YouTube list’s single video and have to show it using the shortcode in any pages or on widgets. So, I collected all […]
Create a php file and place this code in it. [php]<?php phpinfo(); ?>[/php] Upload it in root folder of server. Hit the Url and you will get all php settions the server.
To downloads files in the php you need to use below code. just replace your file name with akashwagh.pdf file [php] <?php $filename = ‘akashwagh.pdf’; $ctype="application/[extension]"; // required for IE, otherwise Content-disposition is ignored if(ini_get(‘zlib.output_compression’)) ini_set(‘zlib.output_compression’, ‘Off’); header("Pragma: public"); // required header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: private",false); // required for certain browsers header("Content-Type: […]