Find the current directory with PHP

Here is a quick PHP tip that has come in handy for me in times past, it deals with finding the current directory that you are in. I am going to show you how to get two different answers to that question depending on what your needs are. First, let me explain why we would get (or even need for that matter) two different answers. This is because from a PHP page being served up by your web server, there are two current directories from its perspective. One would be the absolute directory to the script, which includes the full path to the root of the web files.

Continue reading

Posted in Uncategorized. Tagged , .

Microsoft wants to be Google

It’s kinda funny I think, Microsoft launched their competitor search engine to Google over two years ago, touting then that it would be a “Google killer” (as if), and now, all this time later they come out saying that they have revamped their search yet again and now they can compete with Google.  Google just keeps on doing what they do best, and Microsoft keeps trying to catch up with everyone else.  Check the article for details.

Adobe Acrobat Flaw Puts XP and 2K3 at Risk

I found an article, again at ars technica, that talks about a flaw in Acrobat Reader that puts Windows XP and Windows 2003 at risk by allowing a specially crafted .pdf file to execute arbitrary files. You might want to be on the lookout for a patch from Adobe soon, and as always, use some common sense when opening files you don’t know about first hand.

HP to bring Linux to the U.S.?

In an article I found recently, it looks like HP might be trying to compete with Dell in the U.S. (and other areas) desktop Linux market.  To me it looks like Dell has pushed HP into competition, and that’s good for us.  HP doesn’t want Dell to get entrenched in the market, and maybe they figure they can get some of the desktop users back if they do Linux better than Dell.  Which shouldn’t be hard from what I have seen.

Linux running in Solaris

Holy Virtualization batman, it looks like Sun Microsystems is improving it’s containers sub system and will now allow users to run unmodified Red Hat and CentOS linux under a Solaris container or zone!  That’s awesome!  I have already become a huge fan of Solaris containers, and now with it being able to support Linux, that’s a great boost to an already wonderful technology.  Check out the article at Solaris Central.  In case anyone missed it, I posted a script a while back for creating zones in Solaris 10.  I’ll have to modify it (if need be) when the latest version comes out to support Linux.  Enjoy!