January 2025 M T W T F S S « Jan 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 -
Recent Posts
Archives
Meta
Tags
Author Archives: admin
Detect if a form is submitted
If a form has not been submitted yet, you’ll get an error message if you try to get the values of the form. (Unlike in ASP, which just returns an empty string.) To detect if a user form has been … Continue reading
Posted in Uncategorized
Comments Off on Detect if a form is submitted
Mirosoft SQL Server vs. MySQL Server
Note to self: Minor difference between the TOP command in MSSQL and MySQL equivalent. — MS-SQL / SQL-Server SELECT TOP 10 * FROM ExampleTable WHERE Active = 1 ORDER BY Id DESC — MySQL SELECT * FROM ExampleTable WHERE Active = … Continue reading
PHP File uploading of Large Files in MAMP PRO
If you want to upload large files and your MAMP setup is not working and giving you an error message (in my case, the $_FILES variables were not being even set), check some parameters in your PHP.INI file. In MAMP … Continue reading
Posted in Uncategorized
Tagged configuration, file uploads, mamp, php
Comments Off on PHP File uploading of Large Files in MAMP PRO
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 file uploads, mamp, php
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
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
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 asp, php, strings
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
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
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