![]() |
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:
Goal-Setting - Google News |
RELATED ARTICLES
I Want To Be A Freelancer So you have decided that you want to do freelance work. You have done your homework and have developed your skills in HTML, PHP, CMS, and a slew of other applications. Newsletter Management Using PHP w/o mySQL for Beginners Let's begin by setting some limits. If you're like me, you like to keep it simple. PHP & Account Activation When a user signs up at your website, you may want to verify their email address so you aren't getting bogus accounts in your database. A few lines of code can send an email to the address specified, containing a welcome greeting and link to activate their account. Optimal Website Design Optimal website design is the art of logical navigation.It will offer consistency while providing useful, quality information that is attractive to the eye and easy to understand. Are You Losing Sales Because of These 4 Simple Website Mistakes? Losing website sales and traffic is sometimes simply a case of web usablity - your website just isn't clear to your visitors. By fixing these simple mistakes, you'll easily increase your conversion rate and make more online sales. You Need a Website! No matter the size of your business, having a web site is a low cost way to market your services and products twenty-four hours a day. Web sites are a constant advertisement for your business and will help you reach your targeted customers effectively. Ebooks for Webmasters Internet has opened a whole new world for web developers and web designers who are looking to get their websites developed that are finally launched on the huge world of World Wide Web. Keeping that factor webmasters are the people who have to face a lot of problems mainly due to the entrance of new software, programming languages and viruses that are a real threat for the webmasters. The Evolution Of Search There have been many significant changes to the face of search over the last several years with engines becoming more intelligent than ever before. Today's users expect mainly fast, easy, relevant and satisfactory search results. Learn What 98% of Targeted Visitors Do On Your Website Getting a Targeted Visitor to a website is a waste of time and money if you've got no idea what 98% of them do when they get there.I'm assuming that if you have a website selling products that your conversion rate is at least 2%. Tell me what your website does! You know exactly what your organisation does and what your website offers its users. This information has probably become second nature to you, but first-time visitors to your site won't know this. 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. But My Business Doesnt Need A Website! Revenues are often lost because many business owners don't see the value in having a website. They claim their products can't be sold online and technology is overwhelming. A Website Is Not Enough Your ObjectiveYour small business needs an appealing and professional website but that is just the beginning. If no one visits your website and -- more importantly -- if it does not bring in new customers and allows you to sell more to your current customers, then your site is not effective. What Works and What not Works for Your Internet Business "Build it and they will come."--Filed of Dreams (1989) If you are working on an Internet business, you may read a lot of information for how quickly you can make money online. Things to Consider Before Starting a Website In the time that I have been using the Internet, (since 1996) I have seen a lot of websites. I have seen a lot of good websites and I have seen a lot that were just plain awful. PIM Team Case Study: Creating Text Effects With PHP and GD See how you can create graphic effects on text with PHP and GD - drop shadows, arcs, fonts and colors.ProblemA-tec Signs and Sraphics Inc. 4 Steps to Selling More With Your Web Site Most web sites are more like stage sets than real buildings; they make a good impression and they look substantial at first, but when you open a door, you end up back stage in the dark. They don't generate large numbers of leads, help build relationships with prospects or generate the desired volume of sales. 35% Revenue Increase? from Your Website! 2 Golden Rules for an Engaging Website35% of visitors fail to achieve their goal when they visit company websites! By following 2 simple rules, you can increase your web-derived revenue by 1/3 or more!Renowned website usability researcher, Jakob Nielsen, today (Nov 24) published results of his latest study. His test subjects used 139 websites. Server Stats - Analyzing Traffic To Your Site Analyzing traffic to a site is a key factor in tweaking search engine optimization and marketing campaigns. Determining how people get to your site is critical. How to Make Your Own Free Website in 8.5 Minutes or Less Designing and creating your own website does not have to be a laborious effort that takes weeks to complete. Instead, in less than 9 minutes you can have your web site designed and up and running as long as you have a host located and know what you want to upload to your web page. |
| home | site map | ArticleGecko | A ClashX Production 2006 |
| © 2006 |