Forums / General Questions / Use ZC defines in external file...

Use ZC defines in external file...

Locked

Views: 1,003

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
17 Jul 2007, 3:38 PM
#1
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Use ZC defines in external file...

Ok, I hope that the title of this topic makes sense!

Basically, I have a file at the root of my site, which (when runs) updates various stock properties.

In this file I would like to reference DB_SERVER in my code. I have only been able to do this successfully if I add the following line of code to my file.

require('includes/application_top.php');

Now, my question is, have I done this correctly? Also, do I need to add the following?

require('includes/application_bottom.php');

My Contributions: Zen Lightbox | Best Sellers Reloaded

17 Jul 2007, 4:27 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: Use ZC defines in external file...

Alex -

In the downloads section is a contrib by DrByte called Sidebox Anywhere (I think that's what it is called) - it should give you the parts and pieces you need to complete your task.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

17 Jul 2007, 5:17 PM
#3
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Use ZC defines in external file...

Hi Kim,

Thanks for the reply.

I've added the code for application_top.php to my php file and everything seems to work (I can use the defines I want).

I was just wondering if this was the way (or a way) to do things. If so, I'll leave it how it is a not install the Sidebox Anywhere contribution.

Cheers.

My Contributions: Zen Lightbox | Best Sellers Reloaded