php forum
php mysql forum
php mysql smarty
 
Topic Options
#125424 - 05/04/01 10:10 AM Using variables from other scripts
BassTeQ Offline
Moderator / Code Fixer

Registered: 10/14/00
Posts: 891
Loc: Australia
Id like to use some variables from Ultimate.cgi in another cgi program I am using. Id like to use the Total Posts variable $AbsPosts and the newest member variable $LastReg
Any idea how I can use these?
I tried saying require "Ultimate.cgi"; but ofcourse that just included the whole Ultimate.cgi table in the layout.
Any help appreciated.

Thanks
_________________________
I can't afford a good signature editor frown

Top
#125425 - 05/04/01 02:14 PM Re: Using variables from other scripts
DJLunacy Offline
Member / CodeFixer

Registered: 01/03/00
Posts: 1576
Loc: Oxford, MI
i would think you would just include the files that store those variables.
_________________________
Peace Out,Check out my music Verge Of Insanity

Top
#125426 - 05/04/01 07:46 PM Re: Using variables from other scripts
BassTeQ Offline
Moderator / Code Fixer

Registered: 10/14/00
Posts: 891
Loc: Australia
Yeah I tried that, but when I included Ultimate.cgi and ran the script it actually included the whole ultimate.cgi output as if it was the main forum listing.
_________________________
I can't afford a good signature editor frown

Top
#125427 - 05/05/01 06:05 PM Re: Using variables from other scripts
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
may be an idjit here, but how about writing those variables in ubb_library.pl and requiring that file in your other scripts...
_________________________
- Allen wavey
- What Drives You?

Top
#125428 - 05/05/01 09:13 PM Re: Using variables from other scripts
BassTeQ Offline
Moderator / Code Fixer

Registered: 10/14/00
Posts: 891
Loc: Australia
That may work, but as an example who would I go about writting the total post count to ubb_library.pl? Just copy the sub, and call the variable from there?
_________________________
I can't afford a good signature editor frown

Top
#125429 - 05/06/01 12:19 AM Re: Using variables from other scripts
BassTeQ Offline
Moderator / Code Fixer

Registered: 10/14/00
Posts: 891
Loc: Australia
Thanks Allen worked a treat!
_________________________
I can't afford a good signature editor frown

Top
#125430 - 07/24/01 03:05 PM Re: Using variables from other scripts
bobbydick Offline
Junior Member

Registered: 03/23/01
Posts: 11
Loc: tha Shytown Vicinity
Quote:
quote:



that was good advice smile

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks