include

ASP Classic Webapp - Connect to different SQL DB via login

Need a way to connect to a unique SQL db via login in ASP classic. THE SETUP Webapp: ASP classic/SQL 2005. Webapp stores information for multiple companies. All data stored in one master SQL 2005. All db's will be on same server. Each user has a unique login (Company, User ID, Password) Connection is with master db include file us...

Is using multiple php includes a bad idea?

I'm in the process of creating a php site. It uses multiple php classes, which are currently all in one php include. However, I am using aptana IDE, and the file is now starting to crash it (its around 400 lines). So I was wondering whether there would be any negative impact of including all the files seperately. Current: main file: i...

PHP Classes and including files

Hi all, I am needing some information on including files in PHP classes. E.G. include Foo2.php; //<--- Is this good? class Foo { function doFoo(){ include("Foo2.php"); //<--- or is this better? //do something with vars from Foo2 } } I was wondering what the differences were beside scope and if there...

How to include files in java ? Is it possible in Eclipse IDE?

Hi, Is it possible to include files in java source files somehow? Thanks. ...

Using Common Header Files in eVC++ 3

Hello, I'm learning C++ and i have the eVT(eMbedded Visual Tools) installed in my computer, because of the eVB 3(eMbedded Visual Basic) for my VB pocket programs, but i'm learning C++, then i want to use the eVC++ 3 for develop some command line aplications, then only to test i created an HelloWorld aplication, just for test, but when i...

LED master file

In LED (LatexEditor), how to mark a file (main_file.tex), containg includes of other files, as "main" ? If I right-click, I don't find this option in the menu. And if I make a copy named main_file.tex.latexmain, it doesn't work. ...

What can change the include_path between php.ini and a PHP file.

I've inherited some code on a system that I didn't setup, and I'm running into a problem tracking down where the PHP include path is being set. I have a php.ini file with the following include_path include_path = ".:/usr/local/lib/php" I have a PHP file in the webroot named test.php with the following phpinfo call <?php phpi...

including a remote file in PHP

I am unable to include a remote PHP file in my PHP script. I suppose my hosting changed php settings. The code I was using was: include "http://domain.com/folder/file.php"; How do I allow enable the include function using php.ini/.htaccess ? Is there any other workaround? Thanks. ...

help me understand include / require in PHP

I know the difference between include and require. And I use require in several places in my project. But here is the thing: I want to include files ONCE and be able to call it's functions from other include files. In my header.php file, I have the following code: <?php require_once('include/dal.php'); require_once('include/bll.p...

php class call external class

I have a php page that calls and runs a method called pagestart() in a class called construct. Later in that same page I call a different method in a different class. If that different method errors for any reason I would like to have it call the error() function in the construct class. My question is is there a way to call the error() ...

asp includes with absolute path

is there anyway to do a #include with a file listed as an absolute path? i am trying to include files from other websites (outsite the root of the sight that wants to include it) any other suggestions? ...

Does GCC protect programmer from multiple including of C's library headers?

Is there a guarantee that each library header looks something like that? #ifndef STDIO_H #define STDIO_H /* contents here... */ #endif Can you please refer me to a source? Thanks! ...

Automatically removing unneeded #include statements

Possible Duplicates: C/C++: Detecting superfluous #includes? How should I detect unnecessary #include files in a large C++ project? Hi, I've been following numerous discussions about how to reduce the build time for C/C++ projects. Usually, a good optimization is to get rid of #include statements by using forward declaration...

Making php includes work in a sub-directory.

Ok, I am creating an admin interface for my custom blog at the url /admin. Is it possible for me to be able to use the same includes (including autoload), as the root directory. If possible, I would also like to be able to automatically correct the links in the navigation so that they go that index.php in / changes to ../index.php when...

PHP: Difference include/eval

If the code is the same, there appears to be a difference between: include 'external.php'; and eval('?> . file_get_contents('external.php') . '<?php); What is the difference? Does anybody know? I am actually pretty sure there is a difference. I just found out. I have got a large piece of ugly generated php in my database*. By cre...

Need better structure of my code

this is my front controller $pages = array("matches", "boards", "search", "articles", "interviews", "userlist", "teams", "servers", "awards", "gallery", "qids"); if (!$_SERVER['QUERY_STRING']) include('home_en.php'); elseif (isset($_GET['matchid'])) include('matchid.php'); elseif (isset($_GET['boardid'])) include('boardid.php'); elseif...

PHP include file extension best practices

First off, I'll admit that I'm anal about such things. (Bad, bad, me.) However, I'm just wondering what's considered best practice in terms of naming PHP include files. As a base case I'm going to keep .php as the final extension (to help prevent un-parsed files being fetched), but to aid distinguishing between a front end file and an i...

C Header Files - Correct Way to Include

Hi, I am trying to teach myself C Programming and I am using DevC++ for my IDE under Windows XP. I am a little confused on the correct way to call my own Header Files. I have my main source file called main.c and a separate file for functions called myFunctions.c which I include in main.c using 'include "myFunctions.h" with all my func...

Embed the content from an external file when compiling.

Is there a way in Visual Studio (any version) to embed the content of a file in another file upon compiling? For instance, if one wanted to embed an xml file in a vb code file how would it best be done? ...

Tool to replace include with its own contents?

I'm faced with the task of find and replacing multiple include files with the include file's content. Just wondering if I'd be quicker copy / pasting than writing a bit of code to do so, or if there's a tool out there that could do this for me? Pretty sure its a common need. I'm on Windoze btw. Any suggestions welcome. Just to clarif...