Tag Archives: dirname

PHP lesson learnt.. always use the DIRECTORY_SEPARATOR constant

Always use the DIRECTORY_SEPARATOR constant when pointing to files/directories on the server-side. It will make your system more portable. Windows boxes uses backslash as a directory separator while for example Unix uses forward slash. Not using the DIRECTORY_SEPARATOR constant may … Read more

Posted in PHP | 1 Comment

Super-simple way in Java with Netbeans to build all dependant libraries and subprojects with distribution

I think I finally figured out a simple and elegant way to build dependant libraries directly with the distribution and kiss that NoClassDefFound error goodbye. I also have a similar solution for Java Web Application projects. What you need is: … Read more

Posted in Java, Netbeans | Leave a comment