Jump to content

Getting information from other scripts?


FIREBALL5

Recommended Posts

Is it possible to get information from other scripts without using require() or include()? For example, I have a script called test1.php. It has a parameter "i=1" (test1.php?i=1). This script returns a value specific to this particular parameter. Now, in another script called test2.php, can I somehow get the value that test1.php?i=1 returns in the test2.php script?

 

If my example needs to be clarified any, let me know.

Thanks guys!

Link to comment
https://forums.phpfreaks.com/topic/124260-getting-information-from-other-scripts/
Share on other sites

well you could add some code to page 1 so once it evaluated using the param i=1 it would then pass the info back to page2 like so

 

header("Location: page2.php?i=2");

 

if this is not what you want try explain more what you are trying to achieve

Alright. New example, new explanation.

 

Script 1: Hi,  need some information from you regarding _. Here is the data that will need to fetch me the data: _

Script 2: Thank you for the data. Here is your information: _

Script 1: Thank you for the information. (Now is when I want to embed the information that Script 2 gave Script 1)

<Script 1 uses and displays the information. The End.>

 

Lol, does that help?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.