
|
|
|||
Using Define to Protect FilesBy Joe S2005-08-16
Using define to protect files in PHP In my other tutorial I showed you how to include files dynamically using PHP [like main.php?x=whatever] The files that you include can be accessed by anyone, which you may not want done. Let's look at the code: ############ The first part, you put in the file that includes the rest of the files. Now we have to make the include files check if 'MAIN' (or whatever you changed it to) is defined. Tutorial Pages: » Using define to protect files in PHP © 2005 Joey Shamah |
||||
| About the NetVisits, Inc Network | Write For Us | Advertise Copyright ©2007 NetVisits, Inc Network. All Rights Reserved. Privacy Policy. |
Visit other NetVisits, Inc. sites: |