Web Development Information |
Introductory PHP For Non-Programmers
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
MORE RESOURCES: Unable to open RSS Feed $XMLfilename with error HTTP ERROR: 404, exiting |
RELATED ARTICLES
Website Conversion Rate: More Keywords Equals More Sales Your website conversion rate should concern you. This simply refers to how many visitors to your website it takes before you make a sale. Website Strategy! A website lets you put your products in front of a world-wide audience. It can help you generate new revenue, cut costs and build better relationships with both customers and suppliers. Freelance Programming is Easy to Manage There are several reverse bid freelance sites out there. Beyond the big ones, smaller ones are popping up each day. You Don't Have to be Amazon.com to Achieve 12% Conversion Rates! That's right. According to a recent study by Nielsen/NetRatings, Amazon. Build It and They Will Come Build it and they will come is not always true; you have to form a relationship with the company before you will get quality attendees or participants for a free service.The key to a human's heart is through food. Why Do I Need A Web Site? Even though the Internet has been around for a long time and many people are "educated" about the Internet, most have little knowledge about what a web site is and what can it do for their business.A web site is anything and everything you want it to be. How To Get Your Customers To Trust Your Website Research reveals three important facts:1) The Internet is one of the most important sources of information.2) The trustworthiness of the Internet is declining. 4 Rock Solid Reasons For Building Your Own Website What is the point of having a website, you may ask, when the affiliate programme you have joined has provided you with your own web page to promote? This is a fair question. The answer has to be that with your own site - and of course your own domain name - you will have a lot more control over your business. Web Accessibility Myths With more and more countries around the world passing laws about blind and disabled access to the Internet (including the Disability Discrimination Act in the UK), web accessibility has been thrown into the spotlight of the online community. This article attempt to put a stop to the misinformation that has been thrown around and tell you the truth behind web accessibility. Making The Business Case For Web Standards Through the explosive growth of the Web, companies have realized the benefit of building a strong online presence. By publishing a website to the Internet, companies are able to build their brand, market their products, support existing customers, release publicity pieces, and even take orders. Is Your Website Doomed for Failure Before Youve Built It? One of the things that many people overlook when building a new website is keywords. I have to admit, I did exactly the same thing myself when I started out. Why Your Brick-and-Mortar Biz Needs A Website The internet has taken over our lives with a vengeance, and has changed the way many of us do business. More and more consumers are now doing their shopping online and, unfortunately, some business owners have felt the pinch. The Problem with Automated Accessibility Testing Tools An automated accessibility tool is a piece of software which can test a web page, or even an entire website, for accessibility. Automated accessibility tools are useful because they can save you a huge amount of time. 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 going to assume that you are talking about hiring a professional Web site designer to do the work and not your next-door neighbor's teenage son. Your Website Should Be Selling It may come as some surprise to a traditionally off-line business that their website should be attracting new sales, or at least supporting the sales they have made. There is a common misconception that a website is more of a cost than an asset. Growing Your Meetings In CyberSpace As increasing numbers of people search for information on the Internet, it becomes more imperative to have a compelling Website to promote and support your meetings.Here is my list of "The Seven Most Important Things You can do Online":1. Website Success is Key The popular search engine Google indexes over 8 billion websites. Is one of them yours, or is your website just floating around in cyberspace and you're hoping your customers will just find you? Is your website a benefit to your organization or company? Is it just an expensive showpiece or is it of true value?These are some of the many questions that can be asked when launching a new website. Warning: The Truth About Having a Web Site! If you don't have a web site yet, are thinking of slapping one up or have one that simply isn't producing, this Warning is for you!All too often folks contact me about getting a Web Site when they really have not done their due diligence in determining even if their "idea" is one worth investing in. And although they hate spam and don't believe most of it, they do tend to fall into believing much of the fast, easy and cheap noise online in existence only to line the pockets of shysters and unscrupulous developers. Disability Discrimination Act (DDA) & Web Accessibility There's been widespread speculation about the new legislation being introduced under the DDA (Disability Discrimination Act), which will ensure that websites are accessible to blind and disabled users. Try to find specific information about it on the Internet and chances are you'll come up empty handed. How Does Your Website Make Me Feel? When people think about the Internet, they think about technology. When people hear that I am a Website strategy expert, they see me as a "techy type". |
home | site map | contact us |