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 107 people (41%) 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?

Jan 26th, 2009 21:39
katie shein, 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
http://versicherungs101.blogspot.com
http://guiadeseguros.blogspot.com
http://verzekeringengids.blogspot.com
http://osiguranjevodic.blogspot.com
http://seguroguia.blogspot.com
http://ideide-cadouri.blogspot.com
http://gavoride.blogspot.com
http://donsideia.blogspot.com
http://ideeregalo1.blogspot.com
http://partideer.blogspot.com