MyUPB.com Discussion forums
You are not logged in. Please Register or Login.

Announcements

This project is not completely dead. I've just started work on localisation.
Please email me at clark@NOSPAMmyupb.com once you've registered so I can activate your account (remove "NOSPAM" from the email address)
~~~~ Clark


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

Download myUPB
Version 2.2.7 Released - 24th December 2010


Posted: Mar 18, 2007 8:02:13 am
Politeboy



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....
Look!! Whats Behind The Red Shadows

Mail Me

Polite boy

Posted: Mar 18, 2007 9:00:21 am
Jono345



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+)

Posted: Mar 18, 2007 9:10:10 am
Rebles



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 (R)
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

Posted: Mar 19, 2007 6:41:14 am
Jono345



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+)

Posted: Apr 23, 2007 10:17:18 am
Politeboy



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 :D
Look!! Whats Behind The Red Shadows

Mail Me

Polite boy

Powered by myUPB v2.2.6  ·   © PHP Outburst 2002 - 2013

Creative Commons License