Basic PHP Programming

Your guide to basic PHP Programming

Tags in Php

without comments

Image Source: blog.bcwelt.de

Perhaps, we should start from the very basic of Php. To be able to fully understand the harder principles. What are tags? Tags are the starting and ending point of a specific code snippet that belongs to any scripting language. To give you a simple example, in HTML, we close HTML codes with and . Much the same with javascript code, which is written like this; . In Asp or Active Server Pages, it is written this way; <% 'asp code and then end with %>. Most of the languages for programming uses similar types too. You might ask yourself, why do these programming need tags, but to be able to understand it, you must have a basic understanding of the process of displaying web page in a browser wether it may be Internet Explorer or Mozilla Firefox.

Written by Bart

October 6th, 2008 at 6:02 pm

Posted in Information

Starting Php

without comments

Here are some helpful basics on PHP.
Image Source:zoo.parkingspa.com

Begin, at all times, a PHP page with “.” and use “;” at the end of a variable. Before manually starting phpmyadmin to make your PHP program run properly, be ready to set up PHP, PHPTriad first. Next, to enable your php program to function, bring a php page in a .php wing. And lastly, don’t forget that security is the main requirement in using this type of PHP language. In developing a page with PHP, high level of security is necessary. It is also very important to note that if you really want your program to operate, follow instructions to the letter. With this type of system, accuracy is the key. Programming is not really hard. , nowadays, almost anyone can learn the skill. There are tutorials online that should be boosted by a one’s interest. Perseverance entails to a learner reading tutorial lessons and later try out some actual programming.

Written by Bart

September 29th, 2008 at 6:36 am

Posted in Information

Tagged with ,

Your First PHP Codes

without comments


Image source: www.flickr.com
Why not exhibit some output onto the screen? It is in truth much easier to achieve with PHP. All you have to do is use PHP language construct called echo and we are done. Here’s how..
Open a blank new file in your editor or notepad and write the below talk about lines in the file. Then save the file with a .php extension. If you are using notepad as editor then be careful about the file extension. In Windows OS the file extensions are often hidden, so you must ensure that file saved has a .php extension.
If that is the exact output on your browser, then it is a success!!! We are on a good start. If you did not see this output, then perhaps PHP was not installed or configured properly. Note that if the PHP file is prompted to be downloaded in your browser, then PHP is not installed or configured properly as the file with .php extension is not being parsed. Please refer to your installation procedure.

Written by Bart

August 18th, 2008 at 1:04 pm

Where CMS information is stored

without comments

circuit board
CMS stores the data for building the pages in an Open Source in the MySQL database system provided by PHP. The backend database is where all systems related to page building are stored: various graphics linked to pages, text, maintaining statistics and managing user login and logout.

Usually, the content in a site is arranged while the text in each article is merely piled up, hence, if the site administrator decides to alter the look of the site, he can only update the template. The information stored on the other hand, remains as is, but the manner it is presented becomes different.

Written by editor

July 7th, 2008 at 9:07 am

Posted in file system

Versions 4

without comments

php-booklet.jpg

Just so you’ll be aware of the different versions of PHP. This post features older versions:

Version 4.1.0 introduced the superglobal arrays. Because of this, there are scripts written in superglobals that will not run in versions prior to this particular version. If you’re using older versions of PHP, then you must use old style arrays such as the $HTTP_POST_VARS.

Version 4.2.0 is a little more complicated. This version of PHP changed the default setting for register_globals to Off. There are scripts developed under previous versions that depend on register_globals that are set to On. These particular scripts may stop running with the 4.2.0 setting. To solve this, change the coding of the scripts so that they can run with this version.

Important improvements were made to the CU version of PHP in Version 4.3.0. The CU is built automatically by default when the PHP is complied from source code. If one wishes for it not to be built, then it must be disabled with installation options.

Version 4.3.1 features a security fix to problems in 4.3.0.

More to come…

Written by Bart

June 1st, 2008 at 6:12 am

Posted in Info, Versions

Tagged with

On restricting some users.

without comments

12.jpg

There are some website owners who wish to restrict the access of their webpage to certain individuals or groups. It is inconceivable since every website owner’s dream is for him or her to have more traffic. Perhaps because some spammers have infiltrated their website, or maybe they have personal reasons. Nevertheless, there is actually a way to restrict the access of a certain user/s to the website or a certain page in a website. Captcha is being used by most webmasters in preventing spammers to send and send information in their website, however, here is the trick to totally ban them from entering your site. The key? IP addresses. Yes, this number sequence means a lot. You can find the coding here for your reference.

Photo taken from http://www.css-design-yorkshire.com

Written by editor

May 29th, 2008 at 3:31 pm

Posted in Information

Email forms.

without comments

12.gif

php scripting is not a limited deal. It can create wonderful and secure pages (much more secure than HTML), and so webmasters prefer using it when it comes to online transactions. But aside from making a certain page of your website secure, php can also do lots of things. In fact, you can also make an email sender and put it on your website. You can use it and send personal or business related emails, without using the usual web-based clients people use. Limesoftware has a step by step tutorial on how you can make an email client on your website. What’s more is that you can even make a feedback form so that people can just leave you messages on your website. This can be very beneficial if you have an online business.

Photo taken from http://www.websiteuserguide.com

Written by editor

May 27th, 2008 at 2:41 pm

Posted in Information

Create a free SMS counter.

without comments

11.gif

There are a number of reasons why you would want to have a “send free SMS” corner on your website. First, you can drive people to visit your site. Talk about traffic (and I hope that’s enough reason for you to put up a free SMS corner). Second, you can actually use it and send free SMS to your friends. Third, the free SMS counter adds a “friendly” aura to your site. Farheen Rehman posted in Auroranet how people can add SMS boxes in their websites. He even laid everything in a step by step manner, starting with the definitions that most people who don’t have gateway and php scripting skills cannot understand.

Photo taken from http://auroranet.fre3.com

Written by editor

May 22nd, 2008 at 12:17 pm

Posted in Information

Create a game using PHP.

without comments

11.png

Who says php programmers can’t be game programmers? Of course they can! But do not expect them to create a Grand Theft Auto kind of game out of php coding. They can’t. All they can make are simple, yet fun games such as quizzes, sudoku and puzzles. LizQuiz is a downloadable snippet, wherein you can just change the variables you will use for the quiz you are making. You can configure the quiz using an XML file, so you don’t need a database to store your pool of questions. You can even add multiple answers to a single question if the question sees fit. You can get the snippet here.

Photo taken from http://www.sliver.com

Written by editor

May 20th, 2008 at 11:29 am

Posted in Information

Using a WYSIWYG editor.

without comments

1.png

Editing or creating a php page can lead to migraines and irregular sleeps due to the complicated nature of its coding. However, you can actually save time (and get more sleeps too!) if you will use a WYSIWYG php editor. WYSIWYG stands for “What You See Is What You Get” and it is basically a visual editor. It was made specifically for those who wish to make web pages but do not know anything about coding. TinyMCE is a nice program for those who wish to make websites using javascript, html and php. You can even control the pictures you are going to use in the website you are making, allowing you to preview and move the pictures as freely as possible—of course, without the hassle of inputting codes you cannot understand.

Photo taken from http://www.thesynapticleap.org

Written by editor

May 15th, 2008 at 11:12 am

Posted in Information

Bad Behavior has blocked 26 access attempts in the last 7 days.