I have some variables declared in a search engine that i have written, the search results are declared as something and the echoed as $column. However i want to be able to use this declared variable within another script that will select a link to an image from a database according to the results outputted, yet i do not know how to include the variables within another script. Is there a way of doing this?
Any help would be appreciated, thanks in advance.
Using PHP Variables Within Multiple Scripts
Moderator: General Moderators
-
alex.saidani
- Forum Newbie
- Posts: 7
- Joined: Mon Jan 25, 2010 2:15 pm
Re: Using PHP Variables Within Multiple Scripts
Hmmm, the variables will be available within any other included script.. like this:
Code: Select all
$a = 'something';
//$a can be used inside this script
include 'my_other_script.php';Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.