PHP and MySQL Code

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
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
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder

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.
Title : Simple PHP program which calls other PHP program you can pass the variables to other PHP program : by Raju
Categories : PHP, PHP Options and Info, Regexps, Program Execution Update Picture
Raju Panuganty
Date : Dec 22nd 1999
Grade : 2 of 5 (graded 3 times)
Viewed : 28991
File : program.txt
Images : No Images for this code example.
Search : More code by Raju Panuganty
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 

                Raju's PHP Program
        This simple PHP program which demonstrates you how
to call another PHP program. U can also pass the Parameters
to other program.

Here i am not dealing with the complexities of calling one
php program from other, rather i am demonstrating how u
can make inter program calls.

Here There are 3 programs

1. First program is raju.php in which i am checking the
the codition based on the condition i am calling the
other 2 programs hello.php, bye.php

2. Second Program (hello.php) an Third Programs(bye.php)
there is nothing great in them, i am using echo function
to display the message.

        I welcome ur suggestions and comments. Please
mail me at [email protected]


/* cut from here */
/* save this as raju.php */


//assigning value to variable $a
$a = 1;


checking the condition u can check either way ie true or false


if($a == "2"){


to Pass the variables to hello.php give the variables above the
calling php

for example i am passing variable $name

$name = "Raju"
//or require("hello.php");

} else {

$name = "Raju"

/* cut here */

/* cut here */
/* save this as hello.php */

echo "Hello $name";
/* cut here */

/* cut here */
/* save this as bye.php */

echo("bye $name");

/* cut here */

The GTV.class allows you to extract a value between any HTML tag or between any TEXT on a web page.
Categories : PHP, PHP Classes, Regexps
Check if a file exists on a remote FTP server with PHP
Categories : PHP, FTP, Regexps
escapeshellcmd -- escape shell metacharacters
Categories : PHP, PHP Functions, Program Execution
a PHP Function to Get only the filename (remove the extension) using regular expressions.
Categories : PHP, Regexps, Beginner Guides
PHP, simple, counter, bala
Categories : HTML and PHP, PHP, PHP Options and Info
BBCode Formatting String
Categories : PHP, HTML, Regexps, Arrays
Banknote Validation - A PHP class that provides several methods to quickly validate banknote serial numbers of the following currencies: AUD, CAD, CHF, CNY, EUR, GBP, JPY, USD.
Categories : PHP, PHP Classes, Data Validation, Regexps
How to check if a file is of type gif or jpg?
Categories : PHP, Regexps, Graphics
PhpView 0.1 - simple php viewer, using temporary files and frames.
Categories : PHP, PHP Options and Info, Debugging, HTML and PHP
validateEmail 2.0 - upgraded version of the old validateEmail function used to validate email addresses via SMTP and regex.
Categories : Email, Regexps, PHP
PHP Youtube Downloader - This is a set of PHP functions that can be used to download movies from
Categories : PHP, CURL, Regexps
Step by Step installation manual for PHP4.1.x on Windows 2000 based systems running IIS5 using CGI or ISAPI
Categories : PHP, PHP Configuration, PHP Options and Info, Windows 2000
This script is a contact form between users of a website (kinda like the PM function on the forums)
Categories : PHP, Databases, MySQL, Regexps
I need a trim function/regexp that will trim all " " from the ends of a string.
Categories : Regexps, PHP, Strings
PHP Script to find url links in a page
Categories : PHP, URLs, Regexps, Arrays