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
limo prices to midway Crystal Lake west of Randal .. Lockport Chicago limo O’HareDo you make your website just to entertain yourself or... Read More
Three way linking and concerns.For many years SEO experts were... Read More
It is an undeniable fact that not everybody is keen... Read More
The evolution of web development parallels the model of technology... Read More
Dance is how you pamper your soul and satiate your... Read More
1. Many people are not getting good or complete advice.... Read More
The DDA (Disability Discrimination Act) states that service providers must... Read More
With all of the factors involved in designing and building... Read More
What do you mean, you don't have a website for... Read More
One of my most salient memories from when I sold... Read More
It never ceases to amaze me how many people set-up... Read More
In the region where my company is located, South Bend,... Read More
Your site is fast and getting traffic, but conversion rates... Read More
Knowledge is power.And undoubtedly, it is the key to making... Read More
There are many elements that are key to successful web... Read More
Webmaster tools are vital to becoming both efficient and effective... Read More
Creating and maintaining an effective presence on the Web has... Read More
There have been many significant changes to the face of... Read More
Some left shoes are in isle 5, while the right... Read More
After planning the design and content of your website, it's... Read More
What is the point of having a website, you may... Read More
If you don't have a web site yet, are thinking... Read More
In a previous ezinearticles.com article,"I Need real visitors, Not Search... Read More
A website is like an information flow, with you as... Read More
There's been widespread speculation about the new legislation being introduced... Read More
taxi o'hare Auburn ..I recently helped my mom to launch a website (www.mom2me.com)... Read More
Dynamically Update Your Web Pages Via E-MailIf you can Send... Read More
A while ago one of my clients approached me and... Read More
So you want to take a look at a real... Read More
While it may seem like a "quick and easy" task,... Read More
After having decided to start a business, the next thing... Read More
This is a growing concern amongst many business owners. Does... Read More
Like most average persons, I wanted some extra money to... Read More
Below, I have listed 8 simple steps that you can... Read More
Recently I was reviewing the keyword specific conversion rate data... Read More
Most people know they need a website in order to... Read More
In the late 1990's three San Francisco based web developers... Read More
Have you ever thought the secret behind the success of... Read More
The "robots" meta tag, when used properly, will tell the... Read More
"I have a small business with just a couple of... Read More
Although designing a great web site is an important part... Read More
An interesting eCommerce success factor that isn't precisely overlooked, but... Read More
In my previous life.....Actually, my previous JOB life, I was... Read More
The DDA (Disability Discrimination Act) states that service providers must... Read More
Are bloated images slowing down your web site and causing... Read More
If you're an up and coming graphic/web designer just out... Read More
More and more businesses are recognizing the importance of content... Read More
If you are like me you have wanted to build... Read More
Designing and creating your own website does not have to... Read More
Better Web Site ROIHow to increase your business profitability by... Read More
Web Development |