![]() |
![]() |
This project is not completely dead. I've just started work on localisation. If you're getting a "Deprecated" error message, follow the instructions here URGENT Security Patch for ≤ v2.2.6 A security hole has been discovered, follow the instructions and download the patch at the topic page. Did the patch break your search page? Search Patch
|
![]() ![]() n00b
Posts: 31
Registered: 2007-02-11 |
hi everybody i need some help i m creating a script i want to know that if i create a unique id database director in upb1 then how can i tell other script about the db directory as in upb2.0 e.g; if i created a folder named: data_787dc897s97fs
then how to inform other script about this folder help needed.... |
![]() ![]() Shift Manager
Posts: 269
Registered: 2006-11-15 |
Thats tricky thanks to the fact that all file paths are hard-coded in UPB1... Maybe some clever regex would do it, or some kind of patch in the textDB engine... I dunno...
![]() Microsoft Certified Systems Administrator (MCSA Messaging) Microsoft Certified Professional (MCP XP) SDI Help Desk Analyst (SDI HDA) CompTIA A+ Certified Technician (A+) |
![]() UPB Team Member
Posts: 893
Registered: 2006-11-14 |
My Professor says he prefers unix to windows because if you have a project (like UPB), and you decide to rename a global variable (like the db/), you can do it in one command.
However he never told us the command
Bottom line: You're going to have to google it. I know it's possible... Also, This belongs in UPB1, and "may you" is NOT a good topic name. --Jerroyd Moore
Bachelors of Science, Computer Science 2011 Jack Baskin School of Engineering University of California, Santa Cruz |
![]() ![]() Shift Manager
Posts: 269
Registered: 2006-11-15 |
FYI: I think that you can actually do it in PHPEdit (it has a project-wide find/replace function)
As for the linux function, I cant remember what its called either, but I remember it works using Regular Expressions (stupid lack of Linux knowledge)![]() Microsoft Certified Systems Administrator (MCSA Messaging) Microsoft Certified Professional (MCP XP) SDI Help Desk Analyst (SDI HDA) CompTIA A+ Certified Technician (A+) |
![]() ![]() n00b
Posts: 31
Registered: 2007-02-11 |
thx for replaying btd i hve created that dir ... i have created a cfg.php file and put a sting as follow
define('DB_DIR','dir-92121921912912',true); the dir name is posted by the the script when first run.. which means when u first open the index file it will automatically generates the dir name and post it to cfg.php(configuration file).. and which is afterwards.. in func.inc.php..i have replaced these strings... include "./db/config2.php"; with this include DB_DIR."/config2.php"; do not place trailing slash if u have put a trailing slash already in cfg.php define string... Now i have another problem not about this one another one please go to General Chit Chat forum to view that. Special Thanks. 2 no one ![]() |