Tomas' PHP Stuff

Welcome! I see that you've visited my site before. Welcome back!

This section of my website is used as a testing ground for some PHP based scripts.

I'm pretty new to PHP. As you may have seen from other parts of my site, I'm really a C programmer who has recently had to learn some web stuff. At work I spend all day in the world of C#. If you are familiar with C#, you know that it's the cornerstone programming language of Microsoft's .NET technology. The problem there, is that one is limited to Windows platforms using IIS to serve up pages.

In contrast, PHP is a run-anywhere scripting language. PHP based pages can be served using Apache on Unix/Linux/Windows and IIS on Windows platforms. File are distributed easily, since they are scripts. You do not need to compile your code prior to distribution. Simply load them on to your web server and you are good-to-go (assuming that your server is configured to serve PHP pages).

Based on what I have seen thus far, it is obvious that the language was developed by some "C" programmers. In fact some "C" functions have found themselves directly into the PHP language. Functions such as "strstr" have been ported virtually intact.

If you stick around computers long enough, you probably know that businesses run on databases. So PHP offers support for various database back-ends including Oracle, Microsoft SQL Server, mySQL, PostgreSQL, mSQL and others. In addition, modules are avilable for other libraries such as FTP, IMAP/POP3/ NNTP, Mail, PDF and XML.

Here is a listing of the files in this area of the website.

File nameFile Size
common.php5.36 KB
db_demo.php2.26 KB
dirtest.php256 Bytes
dirtest.xml4.95 KB
dirtest.xsl664 Bytes
DSC01628.JPG1.39 MB
dynamic.php1.02 KB
utils.php2.24 KB
header_test.php11.91 KB
index.php5.71 KB
db_utils.php1.97 KB
phpmenu.inc133 Bytes
resizeimage.php1.13 KB
robots.txt133 Bytes
session_test.php207 Bytes
test.php339 Bytes
test1.xml573 Bytes
test2.htm102 Bytes
Thumbs.db5.50 KB
xmltest.php1.30 KB
db_config.php140 Bytes
saveXML.php406 Bytes
xmlSub.php509 Bytes

This was relatively easy to do with PHP. The smiliarity to C was a great help.