WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Creating a Language File
Categories : PHP, Beginner Guides, Filesystem Click here to Update Your Picture
Ron FREDERICK
Date : Aug 20th 2004
Grade : 1 of 5 (graded 7 times)
Viewed : 13313
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Ron FREDERICK
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

The ability to change descriptions and titles of your site from one file is a very efficient method. This allows you to modify items and not have to go into each page that reflects that description or title.

-----------------------------------------------------------
Below are examples of titles and descriptions:

$text[1] = "My Site Title";
$text[2] = "Username";
$text[3] = "Password";
$text[4] = "<a href=mailto:your@domain.com>Contact Us</a>";
$text[5] = "Submit You Query";

-----------------------------------------------------------
Below are where you can use these items. Place an include() statement in a page that is global such as your index.php page.
<?php include("Language.php");?>

Use the $text[4] in your menu as follows:
<?php
echo "<tr>\n"
. "<td>$text[4]</td>\n"
. "</tr>\n";
?>

Use the $text[5] in your form submit button as follows:
<?php
echo "<input type=\"submit\" name=\"submit\" value=\"$text[5]\">\n";
?>

-----------------------------------------------------------
When calling a language item in a user-defined function.

<?php
function user_form() {
    global
$text;
}
?>



Link Submition - Allow your visitors to submit links to the site.
Categories : PHP, Arrays, Filesystem, Beginner Guides
Introduction to Language Files
Categories : PHP, Filesystem, Beginner Guides
Convert a File database into MySQL
Categories : PHP, Filesystem, Databases, MySQL, Beginner Guides
A flat file counter
Categories : PHP, Cookies, Filesystem, Beginner Guides
Selecting a random line from a text file
Categories : PHP, Filesystem, Arrays, Beginner Guides
PHP based Contact email form with multiple recipients, text file based, supports departments.
Categories : PHP, Email, Beginner Guides, Filesystem
Simple image counter
Categories : PHP, Graphics, Filesystem, Beginner Guides
Select random Image from any directory
Categories : PHP, Beginner Guides, Filesystem
Open directory and File download
Categories : PHP, Filesystem, Directories, HTML and PHP
Upload Via FTP - an alternative to move_uploaded_file
Categories : PHP, FTP, Beginner Guides
Variable serialization and unserialization. Loading and saving variable structures to and from file.
Categories : Arrays, Filesystem, Variables, Strings, PHP
3 lines of Code to extract Tar, Zip, Gzip etc..
Categories : PHP, Filesystem, PHP Classes, Compression
filesplit : Split big text files in multiple small ones
Categories : PHP, Log Files, Filesystem, PHP Classes
A File Browser Class.To Read Drives,Directories and Files .Files writing is also possible
Categories : PHP, PHP Classes, Filesystem
Specify your connection settings and create a link to a MySQL database.
Categories : PHP, PHP Classes, Databases, MySQL, Beginner Guides
 Kelvin Lee wrote : 1178
I can`t find the Language.php file attached in the sample.  Where can I find it?
 
 Ron FREDERICK wrote :1181
There is no file, just create a file yourself and call it Language.php or any file name you choose and place the examples in it.

&lt;?php
$text[1] = "whatever 1";
$text[2] = "whatever 2";
?&gt;