Web Development

Web Development - Articles & Information To Help You With Web Development

Introductory Php For Non-programmers


Web Development

When you started reading this sentence you assumed lo acabaría en inglés. However, I didn't finish in English. This begs the question, 'In which language did I finish?' Unless I tell you the language, you'd have to run around and compare the words against known words in order to learn that it was Spanish, but I'd bet you'd give up and move on first. Servers work much the same way; if you don't let it know the language it assumes you're speaking to someone else (the browser) and sends it along. Servers aren't even friendly enough to give it a whack and see how it comes out.

So, what's server-speak for "Here comes PHP!"? Well, it definitely looks foreign:

Sure. Whatever. It's no use telling the server you're speaking PHP because you only know how to say "I speak PHP". What's that going to do for you? Well, imagine you were visiting a scripts site and wondering how you could put today's date on your webpage when you come across the following little snippet:

To display the date on your webpage, find the area you want to put the date then insert the code below.

echo date('m/d/Y');

Now, you're equipped with 2 statements: "I'm going to be speaking PHP" and "Today's date is mm/dd/YYYY". You then edit the file you want to put the date in by inserting this code in the desired location:Put the file back on the server and you're date shows up exactly as the snippet said it would. Or does it?

If you got lucky, it showed up. If not, there's a little more to learn. There's actually more than one way to tell the server that PHP is coming and I've only covered one way - the other ways aren't necessary for you to know in order to use PHP on your site. Most servers require a bit more information first - they want the name of the file to say whether PHP is there or not. To tell the server that PHP is inside the file, you need to change the extension (the part after the dot) to php. Uh, sure, the extension. Does this guy speak English? YEP! lol. If that wasn't clear, let's illustrate by assuming your file was called index.html when you downloaded it to edit. Before you upload that file back to the server, you need to change "html" to "php", so that the file is called index.php. Without that change most servers won't even look for PHP. The nice thing is that even if a file ends in "php", the server still looks for those opening pieces saying "Here comes PHP!" before trying to read what follows in PHP and just sends everything back to the browser which is outside of PHP, so you don't hurt anything!

Tired of reading? Me too! And, we can only do a couple of things! Or can we? There are a lot of scripts out there which require you to copy and paste a little code here and there or to include a file. In those cases, you are now leaps and bounds ahead in getting them to work!

Jeremy Miller - Webmaster of Script Reference - The *NEW* PHP Reference & Tutorial Site For Non-Programmers







Created & Maintained by Empower! CMS Web Sites

Host2Sell Web Hosting   |   Emarketing Workshops   |   Site SEO Review   |   FREE Newsletter

South Africa's Top Sites




| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |











Achieving Differentiation With Your Website
Internet Marketing is not a miracle marketing strategy ? competition still exists and you need to have a unique approach with regards to:Web DesignJust as in the "real world", where your brand needs to have a unique look and feel about it, so does your website. You won't have much luck finding a web design template that is consistent with your corporate identity.Web Page LayoutLayout refers to the way in which your content and navigation system is arranged on your web pages. It's not always easy to have a unique layout ? you might argue that you will either have your navigation menu displayed vertically or horizontally across to ...(related: Web Development)


Maintaining Your Business Website
QUESTION: Should I build and maintain my business Web site myself or pay someone else to do the work for me? -- Wesley L.ANSWER:When you say, pay someone else to do the work for you, Wesley, I am g...(related: Web Development)


Ten Major Tips To Develop A Multilingual Web Site To Work
If you are living in a country that its native language is something rather than English language, then you may like to develop your website to offer content in the language of your own country.There are millions of websites on the Internet that are all in English language but there are billions of people on the earth that speak in a different language and are not familiar with English language.However, most of the Internet users are basically familiar with English language and could use the Internet but there are many subjects that are hard to understand f...(related: Web Development)


How Disabled Users Access The Internet
In 1995 a new era of accessibility for disabled people began. The Disability Discrimination Act was passe...(related: Web Development)


Planning Your Website For Success
Most people know they need a website in order to publicise and promote their business but very few people know what they want in their website. Fewer still are those who can actually sit down and plan their websites well.If you don't plan ahead, problems will crop up later.For example, who is going to take care of the website? What are the costs involved? Will you have the time to maintain it or should you hire a webmaster?T...(related: Web Development)


Web Site Optimization: How To Speed Up Your Web Site By Minimizing Your Gif And Png Image Bit-depth
Are bloated images slowing down your web site and causing you lost business? Images comprise over 50% of the average web page so putting them on a diet is essential to improving web performance. One of the best ways to optimize GIFs and PNGs is to minimize the "bit-depth" or the number of colors within your images.For palette-based formats like GIF and PNG, file size is directly related to the size of the color palette, or the number of colors in the image. As the number of colors in an image crosses a power of two, the file size jumps. A 33-color image must use a six-bit palette, while a 32-color image can use a 5-bit palette. Smaller palettes mean smaller codes (representing pixel patterns), which makes for smaller files. So minimizing the number of colors in index-c...(related: Web Development)


Pick Up Your Own Domain Name
Think up a name and check if yourname.com is available. Personally, I like to use http://www.whois.com to check if a domain name is available. You may also check the registrant contact information using "whois" service if...(related: Web Development)




Google




How To Write More Powerful Online Text
Although there are significant differences among the various types of online communication, there all have one critical thing in common - they're read off a screen. There are substantial benefits, too, in that while your message is on someone's ...(related: Web Development)

Get Your Business On The Web
I can't think of any business alive today that couldn't benefit from at least a minor presence on the web. Now that I've made that statement, I'm sure someone will point out one. My point is, however, that having a web presence today is about as cheap as anything going and if you ever get one client or sale from the web you are way ahead.How many times have you come across someone who would be ideal as one of your customers. They have about a minute to talk to you and you don't happen to have a brochure in your back pocket. How easy it would be to simply tell them to "gotom...(related: Web Development)

Get A Website!, Register Your Domain!: To Website Or Not To Website?
If you're fairly new to the Internet scene, you may just be a bit overhelmed with family members, friends, collegues, and advertisements urging you to get your own website for your business. Typically, this is good advice for businesses. However, for most small local ...(related: Web Development)

site-map - Copyright © 2006 Empower! Web Design | All Rights Reserved. | Web Development