Design Marketing and Programming Services


Featured Services
Banner Ad Design
We design banner ads that grab attention, pull clicks and get results. We design banners of all shapes and sizes, animated or static, in Flash, .gif, .jpg or .png format. Contact us for a free estimate.

Customer Testimonial
"I want to write and thank Halstatt and Tad at Marketing Titan for the web support provided for Universal Financial Consultants.

The rolling banner on my email form has created a great deal of interest back to my website, and all the work that your webmaster has done to rebuild my site has truly changed the way that my company operates on a daily basis. In the past, I would have to access public websites for quoting purposes (one at a time), but with your expertise, I can now pull multiple quotes right from the quoting engines installed on my own site for both the life and the health insurance carriers. I have now opened these engines up for public access, enabling me to have a much bigger presence on the web, and giving my clients a tool that they could not get elsewhere in the past.

Thank you for the marvelous marketing and design work and the personal assistance you have provided me in building this project. I am referring some of my best clients to you."

Barry Waxler
UFCAmerica.com

[ More ]


Join Our Newsletter


  
 Home 
  
  
 Services 
  
     
     
     
     
     
PHP Tricks - Introduction to Programming
Part I - How to tell if your Web Server is running PHP

Resources - Tutorials and Articles


by Tad Coffin
MediaTitan.com

If your web site is on a web server that supports PHP, consider trying out a few simple PHP tricks or code snippets as an introduction to programming. How do you know if your web host supports PHP? Good question! It's very easy actually.

Use your favorite text editor, such as NotePad, and create a file named:
info.php
In this file, write the following line of code and save the file:
<? phpinfo(); ?>
Connect to your web host with an FTP program and upload the file to the root web directory, where you index page is. Open an Internet browser and go to the url of the page you just uploaded. It should be something like this:

http://www.yourdomain.com/info.php

If you see a nice screen with a bunch of technical information about your web server on it, congratulations! You have PHP installed on your web server. If you see something else, well, perhaps you should consider changing web hosts, or at least asking your server admin to instal PHP.

Now that you know you have PHP on your server, the fun begins. Before we go on though, let's take a look at what we did with info.php.

The first step to running a PHP script is to let the server know where the PHP code is. This is accomplished by tagging the beginning of PHP code with:
<?
//and tagging the end of PHP code with:
?>
Pretty simple, right? Now, PHP is really handy because you can insert it directly into regular HTML pages. Just change the .htm or .html extension to .php and ta-da! Your server will run your PHP code on the page.

So what's the echo all about? Glad you asked. The echo simply tells the server to print something. A page with the following code would produce a page with "Hello World!" on it:
<? echo "Hello World!"; ?>
The part that says phpinfo() is just PHP lingo for accessing all that data you saw on http://wwww.yourdomain.com/info.php Don't just take my word for it, see for yourself: http://www.php.net/manual/en/function.phpinfo.php

Now, although the punctuation is small, don't forget it. I am referring to the semi-colon (;) that ends each line of PHP code. Most of the time, forgetting the ; will mean the code won't work! (The echo function happens to be an exception.)

Next up is How to put the Date on Web Pages using PHP.

If you have further questions or would like Media Titan to assist you with creating a web site, please contact us - webmaster@mediatitan.com.



Home | Services | Profile | Portfolio | Pricing | Resources | Contact
Design Synopsis Form | Design Process | Terms of Service
Click Here to Bookmark this Site

Copyright © 1999-2010 Media Titan, Inc. All Rights Reserved.
Privacy Statement