How to use variables that pulls in another .php

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Apr 26th, 2007, 15:11
New Member
Join Date: Apr 2007
Location: Las Vegas
Age: 25
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Apr 26th, 2007, 17:21
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,669
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Apr 26th, 2007, 17:53
JustinStudios's Avatar
Reputable Member
Join Date: Mar 2007
Location: USA
Posts: 404
Blog Entries: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 04:41.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42