Monthly Archives: December 2010

PHP Easy file uploading vs. ASP file uploading

I have to admit, uploading a file in PHP is so much easier than doing the same thing in ASP. With ASP, I used a 3rd-party component (DLL) SA-FileUpload to do my file uploads. With PHP, file upload capability is … Continue reading

Posted in Uncategorized | Tagged , , | Comments Off on PHP Easy file uploading vs. ASP file uploading

PHP Variable Variables — what?

This is something that ASP does not have. — Variable Variables. It takes the content of a variable and use it as variable names. $a = ‘foo’; $$a = ‘bar’; the above statement is equivalent to: $foo = ‘bar’; Two … Continue reading

Posted in Uncategorized | Tagged , | Comments Off on PHP Variable Variables — what?

PHP Built-In Variables – PHP_SELF

The book I’m using to learn PHP is old… © 2001. It’s using commands from PHP 4.0.3. Thus, I’m finding some of the commands and examples in the book do not work, because the command format has changed or some … Continue reading

Posted in Uncategorized | Tagged , | Comments Off on PHP Built-In Variables – PHP_SELF

Learning PHP vs. ASP … First impressions

Learning PHP is very *easy* especially if you already know ASP. ASP and PHP are not that very different from each other… (unlike .NET). You just have to wrap your head around a new way of thinking, and maybe learn … Continue reading

Posted in Uncategorized | Tagged , , | Comments Off on Learning PHP vs. ASP … First impressions

Configuring MAMP PRO

The first thing I did after installing MAMP PRO is change the default ports of Apache and mySQL. Apache = Port 80 MySQL = Port 3306 That way, I don’t have to type port numbers during my testing… i.e. localhost:8080 … Continue reading

Posted in mamp | Tagged , , | Comments Off on Configuring MAMP PRO

Apple Macintosh, OSX and MAMP Pro

My journey started after I discovered MAMP. http://www.mamp.info/en/index.html MAMP stands for Mac-Apache-mySQL-PHP. It’s a “packaged program” that has everything you need to develop websites on the Apache platform, in an easy to use package. Upgrades to PHP, Apache, mySQL are … Continue reading

Posted in mamp | Tagged , , | Comments Off on Apple Macintosh, OSX and MAMP Pro

Not another tutorial site…

My aim is not to make another PHP tutorial site. I think there are plenty of sites on the Internet that do that. Instead, I’m going to post here musings/confessions of an ASP developer as he learns PHP…. and switch … Continue reading

Posted in Uncategorized | Tagged | Comments Off on Not another tutorial site…

Hello world!

Hello World! When you’re learning a new computer language, usually “Hello World!” is the first program you write.  I think it’s much better than a simple “Test.” Hello World! — watch out, I’m gonna learn something new. This is my … Continue reading

Posted in Uncategorized | Tagged | Comments Off on Hello world!