Related Articles
How to Convert HTML WebPage to PDF Using PHP
Convert a web page into PDF format, download and save into folder as below. Include dompdf_config.inc.php file from the library. Create a folder for saving the PDF file which is generated from the webpage. HTML code to convert on submit: Download dompdf library from the github which is free. Click here to download.
PHP Server Common Codes To Get Values
$_SERVER[“DOCUMENT_ROOT”] === /home/user/www$_SERVER[“SERVER_ADDR”] === 143.34.112.23$_SERVER[‘HTTP_HOST’] === example.com (or with WWW)$_SERVER[“REQUEST_URI”] === /folder1/folder2/yourfile.php?var=blabla#123__FILE__ === /home/user/www/folder1/folder2/yourfile.php —>//p.s. ON WINDOWS SERVERS, instead of / is basename(__FILE__) === yourfile.php__DIR__ === /home/user/www/folder1/folder2 [same: dirname(__FILE__)]$_SERVER[“QUERY_STRING”] === var=blabla#123$_SERVER[“REQUEST_URI”] === /folder1/folder2/yourfile.php?var=blabla#123 parse_url($_SERVER[“REQUEST_URI”], PHP_URL_PATH) === /folder1/folder2/yourfile.php $_SERVER[“PHP_SELF”] === /folder1/folder2/yourfile.php//if “parentfile.php” includes this “yourfile.php”(and inside it are the codes written), and “parentfile.php?a=123” is opened, then$_SERVER[“PHP_SELF”] […]
14 Ways to Secure Joomla and prevent from Hijacking
Change the default database prefix (jos_) Use a SEF component Use the correct CHMOD for each folder and file. Password protect your administrative area. Use a .htaccess file to secure your Joomla. Passwords – Use a unique strong password. Install the jSecure Authentication plugin. Always Update all third party extensions to the latest versions. Remove […]