- Details
-
Published on Sunday, 03 July 2011 16:12
-
Written by David L Norris
Apache's mod_autoindex is really rather boring on the surface. However I will show you there is quite a lot you can do with it given a little understanding of how it functions. If you need a file listing this is an excellent means to accomplish that goal. You can wrap the auto-generated output with simple HTML, PHP, Perl or any other file type Apache can process.
In our case, we aren't going to generate anything using PHP or SSI or any other server-side mechanisms. We are going to create a custom header and footer which wraps the basic unordered list output format with CSS and jQuery calls. We will create the .htaccess file and other supporting files at the root of a /images folder on our server; in my case this is a Joomla installation's uploaded images folder. I just want a quick and dirty means for authors to browse images uploaded into certain folders of this system.
Read more: Apache AutoIndexer with jQuery
- Details
-
Published on Monday, 23 November 2009 14:19
-
Written by David L Norris
Lets start at the beginning. Lets start with creating a blank PHP script. What's one of the most important things to remember when creating a new PHP script?
Whitespace Matters!
You must keep track of your whitespace in PHP scripts.
HTTP headers cannot be set if you have already "printed" any characters.
I run into this over and over and over and over in modifying carelessly written code.
Read more: Whitespace Matters!