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
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
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



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 : 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 : 28259
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 */

<?php

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

/*

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

*/

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"
include("hello.php");
//or require("hello.php");

} else {

$name = "Raju"
include("bad.php");
}
?>

/* cut here */



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

<?php
echo "Hello $name";
?>
/* cut here */


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

<?php
echo("bye $name");
?>

/* cut here */



A simple configuration file editor to ease you life in setting up php applications. Reads variables from a given file automatically and displays current value. New value will be written to file after submit.
Categories : PHP, Filesystem, Regexps, Java Script
EAvalidator - This class can be used to validate an e-mail address by checking its domain.
Categories : PHP, PHP Classes, Email, Regexps
Changing the default 30 seconds time limit of PHP scripts
Categories : PHP, PHP Options and Info
columned txt file to array()?
Categories : Arrays, Strings, Regexps, PHP
Finding numbers within a string
Categories : PHP, Regexps, Strings
Ping a Server and run a command to fix it if it is down
Categories : PHP, Errors and Logging, Regexps
Security, Password lock out after three tries, authorization fails and is logged locked out of account till admin decides he will unlock it.
Categories : Sessions, PHP, MySQL, PHP Options and Info
Get the AppStore Ranking for any iPhone App
Categories : PHP, Web Services, Regexps
PHP based HTML rabbing Tools
Categories : PHP, HTML and PHP, Tag Extractors, Regexps, Beginner Guides
email validator check checker email e-mail email address
Categories : PHP, Email, Regexps
Validating a URL with preg_match
Categories : PHP, Regexps, Beginner Guides, Data Validation
grab the result of any calculation you submit to the Google Calculator.
Categories : PHP, Arrays, Web Services, Regexps, Math.
String Replacement and speed consideration
Categories : PHP, Strings, Regexps
Link Extractor - This function is used to extract links from a given URL. This will convert relative path into absolute path and also remove PHPSESSID stuff.
Categories : PHP, URLs, Regexps
Execute a command to a string
Categories : PHP, Program Execution, Filesystem