This is a discussion on "How to use variables that pulls in another .php" within the PHP Forum section. This forum, and the thread "How to use variables that pulls in another .php are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
How to use variables that pulls in another .php
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Re: PHP URL's
If I have a $variable established in one .php and I want to make it global so that it pulls in another .php in a different folder-- how do I go about doing that.
Since this site uses VBulletin, I mean the $totalthreads, $totalposts, and $numbermembers variables. I can get them to show up on the \index.php but not the \forum\forum.php Last edited by karinne; Apr 26th, 2007 at 15:17. |
|
|
|
||||
|
Re: How to use variables that pulls in another .php
I don't know about your VBulletin question... Actually, I'm not that into PHP.
But I know you can use the include('...'); function to, erm, include other files on your code.
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
||||
|
Re: How to use variables that pulls in another .php
More than likely the variables you mentioned above are stored in a database. If that's the case somewhere they have set the variables to be recordsets in a database. So i would find where the variables you are using are defined and go from there.
Last Blog Entry: Happy Holidays - A Non Offensive way to say Merry Christmas? WRONG! (Dec 11th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Form - variables not going through | comaiwat | JavaScript Forum | 3 | Oct 24th, 2007 13:53 |
| question on Variables | saltedm8 | PHP Forum | 12 | Oct 12th, 2007 00:16 |
| PhP variables added to XML | mavedog21 | PHP Forum | 0 | Nov 28th, 2006 16:09 |
| Variables!! | bionics | PHP Forum | 6 | Apr 25th, 2006 15:39 |
| Get URL and use variables | JamieH | PHP Forum | 2 | Jan 1st, 2006 03:13 |