How To Use .htaccess to Prevent Apache HTTPD Directory ListingMarch 16th, 2008 Apache HTTPD servers are configured by default to display directory listing, when index files like index.htm or index.html of index.php etc. are not present in the directory.
How To Run Ant FTP / Telnet / Rexec TaskNovember 2nd, 2005 Ant (java software) from Apache Foundation is a popular build tool (often used successfully with other release management tasks) which replaces make. "Apache Ant is a Java-based build tool.
How To Run PHP in HTML PagesJuly 28th, 2006 This technique will only work if your Apache server has PHP enabled (how to test php support in apache http server) and .htaccess enabled. In the root directory of your html files create a file named .htaccess.
3 Ways To Selectively Execute HTML Files Using Apache HTTP ServerJanuary 14th, 2007 A very simple way to execute HTML files is by telling the server to parse html files for SSI commands. To do it simply add the following lines to your .htaccess file:
AddType text/html .html
AddHandler server-parsed .html
This has the downside of processing all the html files in that directory and its subdirectories.
JSP / Servlet - PHP Integration OptionsMay 10th, 2006 There are four different integration options in order of complexity and your requirements. They are as follows:
Multi-port Integration
Run Apache (with PHP) on default port 80 and Tomcat on default port (8080).
How To Configure PHP 5 With Apache 2 On Windows in 2 MinutesSeptember 25th, 2006 I am assuming that you have downloaded and installed Apache 2.x on your windows machine. Use the latest version 2.2, if you do not have plans to run Subversion on it.
How To Post Long Meaningful URL in TwitterAugust 20th, 2008 Twitter (you can follow me here) has the annoying habit of shortening your long and meaningful url to a short meaningless jumble using tinyurl, even when the full url and accompanying text fits into their 140 character limit. For example I posted this article on how you can include multiple jar files in a single jar file in Ant build tool.
phpBB Auction Module Vulnerable To File Inclusion ExploitMay 3rd, 2006 Input passed to the "phpbb_root_path" parameter in "auction/auction_common.php" isn't properly verified, before it is used to include files. This can be exploited to include arbitrary files from external and local resources.
How To Find Your PHP.ININovember 16th, 2005 I often come across this question: Where is my php.ini located? Here is a simple solution. To find out which php.ini your apache server is using please follow the steps below:
1.
Apache HTTPD: How To Turn Off Index Listing in Directory & Sub-Directories; Protect WordPress wp-contentApril 13th, 2008 In Apache HTTPD server normally when you have no index or default page in a directory, a visitor may be served with a full list of files in that the directory. This could pose a serious security risk.
How To Backup PmWiki in Subversion (Code)October 8th, 2007 PmWiki is a popular wiki software which uses the file system to store wiki pages. We use for our intranet and to document our processes and systems.
BandSite CMS and SmartSite CMS (PHP based) Root File Inclusion Vulnerability DiscoveredJune 21st, 2006 Archit3ct and IR4DEX GROUP have discovered a vulnerability in SmartSiteCMS, which can be exploited by malicious people to compromise a vulnerable system. Input passed to the "root" parameter in include/inc_foot.php is not properly verified before being used to include files.
How to Compress CSS Files Using PHP without RenamingJanuary 5th, 2009 IF you are using a stylish and feature rich environment for your website, then your CSS files must have reached its limit of annoyance for you. So how can you compress CSS files using PHP? You can.
How To Test PHP Support In Apache HTTP ServerJuly 28th, 2006 Create a file in your htdocs directory (ask the location from your web hosting provider if you are not sure named test.php. Open the file in your favorite text editor and add the line:
< ?php phpinfo() ?>
After saving the file, open in your browser:
http://[your host name]/test.php
Note: Replace [your host name] with your actual host name.
WebDAV, DeltaV, Apache Slide - Resources and GuidesAugust 2nd, 2005 This is a brief compilation of essential resources for those venturing in the world of WebDAV, DeltaV and Slide. Apache Slide
Slide is a noteworthy, yet often forgotten, project which provides WebDAV Server and client implementation along with Delta-V support.
August 19th, 2008 at 12:46 pm
Good tip. Note that you should hardly ever have to copy classes from one jar into another. It is better practice to simply place the second jar onto the classpath.
August 19th, 2008 at 1:43 pm
Thanks. Why do you think it is better to have multiple jar files when you need all of them? I much prefer to have all of them in a single jar with index.
A single jar file appeals to my sense of aesthetics. It is also more convenient to distribute, no more classpath issues, requirement to keep all jars in proper locations and so on. All you need to do is upload the jar and do a java -jar …
August 20th, 2008 at 12:52 am
[...] url and accompanying text fits into their 140 character limit. For example I posted this article on how you can include multiple jar files in a single jar file in Ant build tool. Twitter automatically shortened the url to this meaningless jumble - http://tinyurl.com/5uclnr. So [...]
September 16th, 2008 at 5:15 pm
are you people still living in the dark ages of ant… ant is good I have used it for quite a while…but give maven2 a go( i know maven1 sucked) and of course the tip is obviously clever and good…
September 17th, 2008 at 10:34 am
Why be anonymous? Are you from Maven team?
I am told Maven2 still sucks and makes people less productive.
I would rather stick with simple and light-weight Ant, thank you very much. I don’t see any need for heavyweight (some would say bloated) software like Maven.