How to prevent direct access to PHP file

Last updated on March 23rd, 2022 at 02:06 pmClick to rate this tutorial! [Total: 7 Average: 3.4]Some months ago I have written a code using PHP to prevent direct file access, today I have modified the script since it had some errors. Let us take one file named direct-php.php as an example, all you have […]

How to detect browser language using PHP

Last updated on January 24th, 2022 at 10:12 amClick to rate this tutorial! [Total: 1 Average: 5]In this tutorial we are having a script that can detect browser language and redirect user to a page which is configured for that specific language/location. If you have a multi language website this script will come handy since […]

Categories
Tools

How to use cookies in php

Last updated on January 24th, 2022 at 10:15 amClick to rate this tutorial! [Total: 2 Average: 4.5]Cookies basically give the website owner the opportunity to store some information on a user’s computer which they can then retrieve at a later stage. Cookies are text files and can be created and stored on a users computer […]

Categories
Tools

Conditional Comments Internet Explorer

Last updated on November 18th, 2015 at 03:44 amClick to rate this tutorial! [Total: 0 Average: 0]Conditional comments Internet Explorer(IE) works only with Internet Explorer version 5 on wards.Their basic structure is HTML. The other browsers ignore them entirely since it starts with <!– and ends with –>. They are only recognized by internet explorer. […]