RE: Forward to a Different PHP Script?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----Original Message-----
From: Alice Wei [mailto:ajwei@xxxxxxxxxxxxx] 
Sent: 11 May 2010 10:55 AM
Subject:  Forward to a Different PHP Script?

Hi, 

I am not sure if this makes sense, but here is a snippet of what I have:

$q=$_GET["q"];

//find out which feed was selected
if($q=="Herald Times")
  {
  $xml=("http://www.heraldtimesonline.com/rss/news.xml";);
  }
  else{
   
   //execute a whole different php program, like
http://localhost/mypages/another_program.php
   exit;
  }

Is it possible that I could do something like this? If yes, what is the name
of the function that I should use?
Thanks for your help.

Alice
_________________________________________________________________


Use include(mypages/another_program.php); 

Cheers
Arno



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux