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
![]() |
|
![]() |
|
![]() |
|
![]() |
Is Your Web Site an Expense or an Investment?Why don't... Read More
Web accessibility has so many benefits that I really do... Read More
While it may seem like a "quick and easy" task,... Read More
Often time I've browsed sites and seen the same thing... Read More
Many millions of dollars are being wasted on promoting and... Read More
In this example I have used the map of the... Read More
Alternate medicine finds its own place in the hearts and... Read More
Every good Internet business understands the value of conversions versus... Read More
An automated accessibility tool is a piece of software which... Read More
Better Web Site ROIHow to increase your business profitability by... Read More
"I have a small business with just a couple of... Read More
Affiliate programs are a great way to earn an income... Read More
If you are developing your website on a host that... Read More
One of the biggest mistakes that most online retailers make... Read More
Whether you have your own business already, or are looking... Read More
Below, I have listed 8 simple steps that you can... Read More
Although designing a great web site is an important part... Read More
Let's begin by setting some limits. If you're like me,... Read More
There have been many significant changes to the face of... Read More
More and more non-profit organizations are developing websites to help... Read More
There are millions and millions of websites on the Internet.... Read More
A PHP Redirect automatically transfers a web user from one... Read More
I still remember it very clear ... It was almost... Read More
If you have some experience in web site design and... Read More
Rosalind wants to share her inspirational poetry with a wider... Read More
Recently I was reviewing the keyword specific conversion rate data... Read More
This article was prompted by some customer support work I... Read More
Creatively marketing your corporate site takes time in the set... Read More
Developing a website with content that entices visitors to return... Read More
When I set up my website I felt paypal was... Read More
Optimal website design is the art of logical navigation.It will... Read More
So your prospect, Mary, is sitting at the computer reading... Read More
Optimize your time. How much time each day must you... Read More
"'Page Not Found' on this Server. Check the URL and... Read More
Everyday thousands of new businesses make the leap and take... Read More
You know exactly what your organisation does and what your... Read More
So you finally decided to invest in a web presence... Read More
Making a web site is easy. Making a good web... Read More
When you consider the billions of individuals and companies on... Read More
While it may seem like a "quick and easy" task,... Read More
1) A marketing necessityI still hear it said from time... Read More
A lot has changed in the way sites are optimized... Read More
Today it seems everyone is jumping on the entrepreneur bandwagon,... Read More
Research reveals three important facts:1) The Internet is one of... Read More
There's been widespread speculation about the new legislation being introduced... Read More
Even though the Internet has been around for a long... Read More
Analyzing traffic to a site is a key factor in... Read More
I'm a freelance programmer and somehow I managed to get... Read More
I'm one of those people that always wanted a website,... Read More
Absolutely everything stems from the purpose of your website -... Read More
An accessible Web site is easily approached, easily understood, and... Read More
When visitors add your web site to their Favorites or... Read More
First, using a lot of web graphics, flash, banners and... Read More
Every online entrepreneur I talk to is asking the same... Read More
Does My Web Site Require A Web Database?If your web... Read More
After having decided to start a business, the next thing... Read More
You've put up a website to promote a product or... Read More
The cost of setting up a web site is dirt... Read More
One of the best tools you have as a webmaster... Read More
The following is a list of patterns that many visitors... Read More
So you want to take a look at a real... Read More
The Disability Discrimination Act says that websites must be made... Read More
Do you need a web site? Are you considering getting... Read More
Dan Kennedy once said that if you can't make money... Read More
Writing for the web is totally different to writing for... Read More
In 1995 a new era of accessibility for disabled people... Read More
Web Development |