Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2002
Posts: 111
PF
Offline
Member
Member
Offline
Joined: Apr 2002
Posts: 111
Hopefully a pretty simple question smile (quite a newbie to PHP)

I want to be able to read the ubb config files e.g vars_config.cgi, vars_wordlets.cgi etc in PHP so I can use the UBB config in a PHP Script.

So for example I want to take..
Code
[/code]To something like...
[code]
with a PHP function.
i.e so I can look at $vars_config[CGIURL] etc smile
Is there a function to be able to do this?
Shouldn't be too hard to make one, but my brain isn't thinking straight.

Sponsored Links
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
This is signifigantly harder than you might think.

Each and every hash written by UBB to disk is formatted slightly differently depending on the version used.

This is why the Accelerator and the rest of the PNTF code have to share data via a flat file rather than the existing data structure...


UBB.classic: Love it or hate it, it was mine.
Joined: Apr 2002
Posts: 111
PF
Offline
Member
Member
Offline
Joined: Apr 2002
Posts: 111
Hmm, it's UBB 6.05, not really in an hurry to go past there, if at all.

I *think* the only 2 files I need, are the Wordlets and the config, so I can get to the Members dir and the Forums dirs.

Dont need the style template because that is all modified to be handled via CSS.

I haven't looked at the way the CP writes those files, but I suppose I could get it to write a vars_config.php, and then PHP accesses that one instead.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,583
Posts293,956
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 22650
Topics Created 0
Posts Made 1
Users Online 2
Birthdays 24
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
isaac 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)