Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default 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.

    Code:
    require('includes/application_top.php');
    Now, my question is, have I done this correctly? Also, do I need to add the following?

    Code:
    require('includes/application_bottom.php');

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default 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.

  3. #3
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default 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.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 5 Jan 2015, 05:37 PM
  2. how to use external CSS ?
    By dhoomdon in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Dec 2011, 08:04 PM
  3. Language File Not Loading, Fails to Translate Defines
    By jacdesigner in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 29 May 2008, 02:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg