Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/a26f9f83/public_html/articles/includes/config.php on line 159
Introductory PHP For Non-Programmers > NetSparsh - Viral Content you Love & Share

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

In The News:

This RSS feed URL is deprecated, please update. New URLs can be found in the footers at https://news.google.com/news

Coinpedia (press release) (blog)

Top 10 Crypto Web Development Company
Coinpedia (press release) (blog)
After the emergence of the first cryptocurrency in 2009, a chain of reactions started leading to the growth and development of the cryptocurrency industry. Here we are listing the Top ten companies that are leading in cryptocurrency web and application ...


Huddle Today

Zwebra Web Development Company Shares Experience After One Year In NB
Huddle Today
“Founded in 2009, Zwebra specializes in custom web design, application development and digital marketing. Today, the company has four people working in offices in Saint John and Moncton and more than 20 specialists working in the office back in Ukraine.


Business 2 Community

4 Ways to Ensure Effective Web Development
Business 2 Community
When it comes to building a new website, many businesses choose to focus predominantly on the design aspect of the project when approaching agencies to carry out the work. Whilst design is a vital part to any web development project, there are a vast ...


Customer Think

Know about the current trends in web development
Customer Think
In case of web development, you may have probably heard that the only constant is the change. It is an industry-defining statement as web development keeps on changing. User expectations are evolving rapidly, and it is quite essential than ever before ...


Neowin

Pay What You Want for this Full Stack Web Development Bundle
Neowin
Today's highlighted deal comes via our Online Courses section of the Neowin Deals store, where you can Pay What You Want for the Full Stack Web Development Bundle. The world's best developers are Full Stack developers. Here's 122+ hours of ...


InfoWorld

WebAssembly, JavaScript links get faster in Firefox
InfoWorld
Mozilla's latest beta version of the Firefox browser, Firefox Nightly, makes calls between the WebAssembly binary format and JavaScript faster, so it is easier to combine the two languages. WebAssembly can serve as a companion to JavaScript in web ...

and more »

Website Development Company, Lounge Lizard, provides 4 Keys to a Good Link Building Plan
PR Newswire (press release)
NEW YORK, Oct. 10, 2018 /PRNewswire/ -- Lounge Lizard is globally recognized as one of the top website development companies within the web design and development industry. Lounge Lizard's brandtenders are creative, tech-savvy, and passionate in ...

and more »

AroundtheO

New Portland program focuses on coding and web development
AroundtheO
In an effort to meet regional demand for web developers, the UO will offer a new 24-week coding course in Portland starting this January. The University of Oregon Coding Boot Camp is a part-time program is geared toward adult learners and working ...

and more »

Which are the best tools for front-end web development?
SitePoint
They are not really front-end development tools but essential for monitoring your site as far as a user is concerned. Everything may work locally on your desktop but could possibly have online problems. Their suggestions and help pages are also good.


Chicago Business Journal

Sun-Times partnering with Vox Media for website development
Chicago Business Journal
New York-based Vox Media is coming to the rescue of the Chicago Sun-Times. Vox and the Sun-Times announced Thursday a new partnership to redesign the Sun-Times entire website — top to bottom.

and more »
Google News

Effective Webdesign

D.zigns dzignerwebs The Basics Before starting on... Read More

Your Website Reflects Your Business

Some left shoes are in isle 5, while the right... Read More

Increase Your Affiliate Earnings with a Smart Webmaster Plan

Affiliate programs are a great way to earn an income... Read More

Now You Have a Web Site - Have You Ever Heard of Accessibility?

An accessible Web site is easily approached, easily understood, and... Read More

Credibility - 10 Ways to Build it on Your Website

If you have your own business website and you are... Read More

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... Read More

Trust Us! Sending Credible Messages

A company must earn and keep trust or sales don't... Read More

7 Reasons Why Your Small Business Needs A Web Site

Many small businesses have the misconception that their business can... Read More

Getting One-way Inbound Links: the 5 Major Strategies

With search engines putting a damper on direct reciprocal links,... Read More

Improving Usability for Screen Reader Users

Simply ensuring your website is accessible to screen reader users... Read More

Thinking Of Taking Money Online? Whats Best For Merchants? PayPal, WorldPay or Something Else?

It's now easier than ever to take payments on the... Read More

Website Survival Guide

In the big, wide online world there are millions of... Read More

Frequent Business Question: How Do You Start a Web Business?

Today it seems everyone is jumping on the entrepreneur bandwagon,... Read More

How To Keep Your Website Sticky

Developing a website with content that entices visitors to return... Read More

Successful Commercial Sites

Do you make your website just to entertain yourself or... Read More

Live Support from Your Website? Can You Do It for Free?

I'm a freelance programmer and somehow I managed to get... Read More

Why You Need A Web Site

"I have a small business with just a couple of... Read More

The Cost Of A Web Site

Just starting out, you can start with a simple informational... Read More

Achieving Differentiation With Your Website

Internet Marketing is not a miracle marketing strategy ? competition... Read More

Website Sales: 10 Reasons Why People Dont Buy From You

You've put up a website to promote a product or... Read More

Direct Sales and Your Corporate Website - A Creative Marketing Plan that Works!

Creatively marketing your corporate site takes time in the set... Read More

Why a CSS Website Layout Will Make You Money

Although CSS layouts have been around for years, they haven't... Read More

Develop a Solid Website Presence

Starting an internet business can be confusing to non-veterans. The... Read More

3 Ways To Increase Your Websites Conversion rate

Everywhere you look these days, people are telling you that... Read More

Make Your Own Brand!

There are millions and millions of websites on the Internet.... Read More