include

Should re-include stuff thats already in the project scope precompiled header?

Not sure if this is a duplicate, please link to similar question if it is. I have a precompiled header stdafx.h which is used in all source files in my project. Thus all headers in the stdafx.h are available in all code files in the project. What I'm unsure about is whether or not to re-include stuff thats alrdy in the precompiled head...

Why don't SSI's work for me?

I'm trying to include one html file into another. I'm coding on the MAMP stack. I assume SSI's are automatically permitted. I type <!--#include virtual="header.html" --> in the body of one html file, the other file is called header.html, and they are both in the same folder. I even tried calling the file header.shtml instead. Non...

Most efficient way to share functions among several php pages

I have about 10 dynamic php pages which use about 30 functions. Each function is needed in more than 1 page, and every page needs a different subset of functions. I've been pondering these options: 1- all functions in a single include file: every page loads unneeded code 2- each function in its own include file: too many server reques...

How do I pass a variable to a file that I include?

I am trying to pass a variable to a included file. I have done something like this: $id = $_GET['id']; include('myfile.php'); And the file 'myfile.php' contains a form and a submit button. It's processing page is 'process.php' and in it, I have done: $_id = var_dump($id); // insert query But I did not get the value of the variable...

passing parameters to php include/require construct

I've read quite a few posts that are very similar to the question I'm about to ask, but I just wanted to be sure that there wasn't a more sophisticated way to do this. Any feedback is greatly appreciated. I want to create a mechanism to check whether or not a logged-in user has access to the php script that is currently being called. ...

Including client files for shared file

Okay, so I have 2 projects for a game. One is the server and one is the client. I keep the shared units into a shared folder that I use to include in my client/server project. There is a problem however: I have a shared file that needs a different file for client / server. Example: mySharedLib needs to print to the console, however the c...

Is it possible to include an asp (header) file on an asp.net page?

I have a classic asp website, onto which I am adding an asp.net (.aspx) page. Is it possible to include my existing asp header (header.asp) and footer (footer.asp) files on my aspx page? I don't want to convert the page to a user control, because those pages include other asp pages with asp code on them. Thanks ...

php silently ignoring include on localhost, but not on external server.

I'm running Ubuntu 10.04 with Apache2 and PHP5. I have a directory structure like this: \www\ \index.php \parts \head.php \body.php Inside my index.php I have a command <?php include("parts/head.php") ?> and the equivalent for body. These files both exist and they contain more php and html code. The on...

PHP: How can I reference variables from an included file before it's been included?

How can I reference variables from an included file before it's been included? Or can I somehow include the file (so I can lead its variables later) before its HTML is literally inserted into the body tag? Or can I contain all of home's body content in one big variable that I can echo as well in the index? Here's what I'm trying to do: ...

IBM Eclipse WSDL Editor: How do I include an external wsdl/schema?

Hello: I am trying to create Web Services from the Top-Down approach. I downloaded Eclipse and am using the WSDL gui editor in it to build my WSDL files. I am splitting up my Services based on "modules". The Types I am adding to the WSDLs all need to reference common stuff, such as PersonEntity, AddressEntity, States enumeration (simpl...

Netbeans - difference between "Source files" and "Include path" in php project

Hi, what is the difference between "Source files" and "Include path" in php project. Thanx ...

How to include an external plugin inside of another jQuery plugin being authored.

I am building a custom jQuery plugin for a project I am working on. I want to return an object that is custom to another jQuery plugin...rather than having to make sure that each page that uses my plugin also has this other plugin, is it possible to include it in the actual plugin itself? Rather than type the following on each page tha...

Erlang: using include from the console?

The include directive is usually used for a .hrl file at the top of an .erl file. But, I would like to use include from the Erlang console directly. I am trying to use some functions in a module. I have compiled the erl file from the console. But, the functions I want to use do not work without access to the hrl file. Any suggestion...

do you think i should keep all my php functions in one file?

i was wondering do you think i should keep all my functions in one file, or seperate them in different files!! p.s if i put all the functions in one file, would it be easier for php to process that stuff!! ...

Disadvantages of dynamically including CSS/JS files?

What are the specific disadvantages (if any) of dynamically including the CSS and JS files for a website? By dynamically, I mean, using the document.write() method generate and tags. I'd like to use this technique on a very large, high-traffic website, since it allows me to easily manage which files are downloaded for which site sect...

Why do I get "error C2006: '#include' : expected a filename, found 'identifier' " ?

Hello! My source code in Visual C++ Express 2008 is as follows : #include “stdafx.h” #include <iostream> int _tmain(int argc, _TCHAR* argv[]) { std::cout << “Hello world!\n”; return 0; } I'm using the book, Visual C++ 2008,by Ivor Horton .These are the errors that I'm encountering.How do I get rid of the errors ? 1>e:\my documen...

Can I do a "Take(x)" on the "Include" entity in a Linq Query?

Hi folks, i've got a really simple linq to entites statement :- var query = (from q in Users.Include("UserHistory") select q).Take(20); works great ... except that, for each user .. the history can be n+1. Some users have 100's of UserHistory records. So, can I restrict the the number of UserHistory records to .. 10 or 5...

Visual C++ Include File not found

I have a project, and I added all the source files to it. I then clicked build, and it said: fatal error C1083: Cannot open include file: 'common.h': No such file or directory 1> crc64_tablegen.c This is rather annoying, because common.h is in my project! It's right there! I think it might be in a different directory though. Is the ...

fbconnect include not found by xcode

when the following include is added to my project, xcode fails to find it: import "FBConnect/FBConnect.h" i have added the facebook src directory to the header include path and the user header include path in the project and target settings. when i change the include to #import "FBConnect.h" the file is found, but i get a duplicate sy...

C++: How to include all source files from a folder?

I have put each function in own file. How do i include all those functions at once without repeating #include for each file manually? I dont care at which order the functions are included. Edit: All the functions from hundreds of different files belongs to the same group. Actually each file has 4 functions... ...