PHP Miscellaneous Tips and Tutorials, Scripts resource, functions |
|
|
|
|
Miscellaneous tutorials
|
|---|
Make a working calculator using PHP.
| | Hits:179 Rate: 0.0(out of 5) Vote:0 Submit Date :2007-02-09 Rate It | Error | Review |
|
| | | |
|---|
What can this be used for? If you have a tutorial system and your tutorials are stored in a table, this script will count the number of 'entries' - (in this case tutorials) in the table and display the results
| | Hits:142 Rate: 5.0(out of 5) Vote:1 Submit Date :2007-06-06 Rate It | Error | Review |
|
| | | |
|---|
In this article i will show you how to read a text from a text file
| | Hits:121 Rate: 0.0(out of 5) Vote:0 Submit Date :2007-04-02 Rate It | Error | Review |
|
| | | |
|---|
This code will show you how to do file download the code is self explanatory
| | Hits:121 Rate: 0.0(out of 5) Vote:0 Submit Date :2007-04-01 Rate It | Error | Review |
|
| | | |
|---|
Executing Shell Commands on your Host's Server OS from PHP
PHP provides two ways to execute shell commands like "cal" or "ls" (if using unix, and is not limited to those). This is a short tutorial explaining how.
| | Hits:116 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-18 Rate It | Error | Review |
|
| | | |
|---|
Installing PHP on your Computer (Windows)
Gives a couple of quick ways to run PHP and MySQL on your computer without spending too long.
| | Hits:108 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-18 Rate It | Error | Review |
|
| | | |
|---|
Using the Eval() function to Create a PHP command Prompt for your Site
Quickly learn to use one of PHP's handier functions. Using this, you could easily create a commandline for your webpage. It's great for debugging scripts and testing new functions.
| | Hits:107 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-18 Rate It | Error | Review |
|
| | | |
|---|
Intro To Object: Option Variables
Learn how to break apart a function, allowing different code to run depending on the variables passed.
| | Hits:105 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-18 Rate It | Error | Review |
|
| | | |
|---|
The previous tutorial, which created an age verification machine, had a couple of gaps in the code which, sometimes, meant that it didn't react in the way it should have. There were two main holes which, is this tutorial, we are going to tidy up.
What happens if the text entered is not in a number form, ie. letters.
What happens if the person types in 14
| | Hits:104 Rate: 0.0(out of 5) Vote:0 Submit Date :2007-06-06 Rate It | Error | Review |
|
| | | |
|---|
In this tutorial, we’ll do some mathematical functions with numbers and also make use of the ‘if’ statement.
In an earlier tutorial, I described how to define variables as numbers. Basically you chose a variable name, for this example lets chose ‘$number’, and you chose a value, we’ll use 15. The code could then be written as shown below.
| | Hits:98 Rate: 0.0(out of 5) Vote:0 Submit Date :2007-06-06 Rate It | Error | Review |
|
| | | |
|
|---|
Learn how to make minimap for your PHP game. You can easy customize it to fit your needs. Set width, height, grid size, colors etc.
| | Hits:3 Rate: 0.0(out of 5) Vote:0 Submit Date :2008-08-07 Rate It | Error | Review |
|
|
|---|
Learn how to create a basic dynamic avatar for a forum. This avatar counts how many times it has been viewed
| | Hits:5 Rate: 0.0(out of 5) Vote:0 Submit Date :2008-08-07 Rate It | Error | Review |
|
|
|---|
Object Oriented Features New to PHP 5......a useful tutorial.
| | Hits:27 Rate: 0.0(out of 5) Vote:0 Submit Date :2008-02-08 Rate It | Error | Review |
|
|
|---|
What can this be used for? If you have a tutorial system and your tutorials are stored in a table, this script will count the number of 'entries' - (in this case tutorials) in the table and display the results
| | Hits:142 Rate: 5.0(out of 5) Vote:1 Submit Date :2007-06-06 Rate It | Error | Review |
|
|
|---|
This tutorial will teach you how to use the include and require functions in PHP.
What are these? include is probably one of the most used functions in PHP, require is the same thing but except of making a bunch of errors on your webpage if the page does not exist it will trigger that "FATAL ERROR" and will completely stop your page from loading(this is more secure because other people might be able to get a small gleam at your source code).
What You Need
1. A text editor, yes it can be Notepad if you wish.
2. A page to include/require(I will be using my config.php page from another tutorial).
3. A page to include/require the page on (I'm making a page called index.php to use).
| | Hits:90 Rate: 0.0(out of 5) Vote:0 Submit Date :2007-06-06 Rate It | Error | Review |
|
|
|---|
In this tutorial, we’ll do some mathematical functions with numbers and also make use of the ‘if’ statement.
In an earlier tutorial, I described how to define variables as numbers. Basically you chose a variable name, for this example lets chose ‘$number’, and you chose a value, we’ll use 15. The code could then be written as shown below.
| | Hits:98 Rate: 0.0(out of 5) Vote:0 Submit Date :2007-06-06 Rate It | Error | Review |
|
|
|---|
The previous tutorial, which created an age verification machine, had a couple of gaps in the code which, sometimes, meant that it didn't react in the way it should have. There were two main holes which, is this tutorial, we are going to tidy up.
What happens if the text entered is not in a number form, ie. letters.
What happens if the person types in 14
| | Hits:104 Rate: 0.0(out of 5) Vote:0 Submit Date :2007-06-06 Rate It | Error | Review |
|
|
|---|
First of all, a function is basically a "shortcut" in coding. For example, If you wanted to display your sidebar in severa pages but did not want to copy the code over an over you could make a function to display it. Than you would just need one line of simple code and your sidebar is there!!
| | Hits:91 Rate: 0.0(out of 5) Vote:0 Submit Date :2007-06-06 Rate It | Error | Review |
|
|
|---|
In this article i will show you how to read a text from a text file
| | Hits:121 Rate: 0.0(out of 5) Vote:0 Submit Date :2007-04-02 Rate It | Error | Review |
|
|
|---|
This code will show you how to do file download the code is self explanatory
| | Hits:121 Rate: 0.0(out of 5) Vote:0 Submit Date :2007-04-01 Rate It | Error | Review |
|
|
WebmastersHome.com Discussion about programming, SEO, WebHosting and more! |
|
Pages : 1 2 3 |
|