faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

44 of 106 people (42%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How could one php-script call some other php-script and how could give the first one to the second one the values of the variables?

Nov 27th, 2008 02:38
healthy man, dman, Philip Olson, lukas novak, http://www.ttnr.org


Via an include :
  <?php
  // first.php   
    $name  = 'Fred Flintstone';
    $fruit = 'apples';
  ?>
  <?php
  // second.php
    include 'first.php';
    print "$name really likes to eat $fruit";
  ?>
See :
    http://www.php.net/manual/en/function.include.php
http://www.healthdothealth.com
http://www.healthxhealth.com
http://www.mesotheliomainmesothelioma.com
http://www.healthfirewall.com
http://www.flathealth.com
http://www.healthbodyguard.com