include

setup include path in eclipse CDT in mac os (headers from framework)

for example I need to include a header #include <OpenGL/glext.h> while it is actually a header file glext.h under OpenGL.framework/Headers/. Therefore it is no way to give eclipse a physical path about "OpenGL/glext.h", and I always get unresolved inclusion warning. I can still build and run them (with managed makefile project) but ...

#includes in C files for processor specific implementations

I'm working on a 'C' code base that was written specifically for one type of embedded processor. I've written generic 'psuedo object-oriented' code for things like LEDs, GPIO lines and ADCs (using structs, etc). I have also written a large amount of code that utilizes these 'objects' in a hardware/target agnostic manner. We are now tos...

Problem with include in PHP

Hi, This works : require_once 'ModuleTest.php'; But this won't : require_once './ModuleTest.php'; Why ? This leads to the same file ! (I am on Os X, so the file path is correct). Both files are in the same directory. ...

Is it possible to secure an included jsp with spring-security?

I got a jsp which imports a jsp file. Is it possible to secure the import with a spring-security configuration? For example i want to use this line of code: <c:import url="jsp/admin/add_user.jsp" /> But if the user is not logged in as admin than this import should not work because of security reasons. I secured the admin folder with ...

how to avoid Cannot redeclare class for 2 diffrent classes with same name

I'm trying to include some functions from phpBB board to my application like a single login. But if i include the common.php it says "Cannot redeclare class user", because my application already has a class user. Is there a way to avoid this ? I tried a little with namespaces, but I never worked with them. So I need a way to include 2 c...

Include a second layout resource in my first one

Is there a way to include one resource in another (for example a header design in multiple activities' layouts). I know I can add it at run time, can it be done in the XML? ...

Basic stucture of a C/C++ project (header files and cpp files)

Hello, This is a brain-dead newbie question, but here goes: What determines what files get included in a C/C++ project? My understanding is that the compiler starts with the file that has main() in it and that file will contain #include's to get various h files which contain #include's to other h files and so on until everything is in...

Composite Index vs. INCLUDE Covering Index in SQL Server

Hi Folks I understand that Composite Indexes are always used Left to Right (e.g. if an Index was on City, State, WHERE City = "Blah" or WHERE City = "Blah" AND State = "AA" would work fine but WHERE State = "AA" would not). Does this same principle apply to INCLUDE indexes? Thanks in advance! Clay ...

Issues with #includes

I thought I could use #pragma once to solve my problems but it's not working. Here is my issue. I have Agui.h which I wanted to be my main header which everything includes: this is it: #pragma once /* This header includes all the required headers required for Agui Author: Josh */ //Standard library (STL) #include <s...

php include ÅÄÖ = ??? / UTF8 problem

index.php <?php include("header.php"); ?> header.php <?php echo"<a href='add.php'>Lägg Till</a>"; ?> result L?gg Till The document is utf8 within the head tags and all, it's a php thing, the problem only occurs when i get text from include, i cannot have ÅÄÖ in included php files , how do i make it work? ...

include function in php

is it correct or not because it show an error when im done that if(is_page('payment-success')) { include("/wp-content/ga-ecommerce-tracking/ga-ecommerce-tracking.php"); } ...

MSBuild ItemGroup Include/Exclude pattern issue

Problem: an ItemGroups array isn't correctly build based on the value passed in the exclude attribute. If you run this scrip it creates some sample file then tries to create an array called TheFiles based on the Include/Exclude attributes, problem is when the Exclude is anything other than hardcoded or a very simple property it gets it ...

PHP storing db queries in an include file how?

Hi, I'm just learning PHP and I'm trying to figure out how I could store my database queries in a separate file either as part of a class, method or just as simple variables. For example: I have a query that looks like this: $checkuser = mysql_query("SELECT UserName, Email FROM users WHERE UserName = '$user...

PHP behavior of include/require inside conditional

If I place an include or require statement inside a conditional that evaluates to false, will the PHP interpreter skip the include file altogether, or will it load it just in case? An example would be: if ($some_user_var) { require 'this.php'; } else { //do stuff } I read somewhere that require will always be included by the ...

Client side includes vs server side includes?

We have an HTML page with multiple div blocks. We want to separate these div's into multiple files and then combine them all together into a single file - is it best to use server side includes (JSP in our case) or client side includes? Note that we're using JQuery - not sure if JQuery has a clever way to do the includes. ...

Will including javascript files from googles site slow my load time?

so im trying to include this file for an application http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js would including it as this url slow the load time of my site when using an application that requires it? as opposed to downloading this file and including it locally ...

Avoid adding "include paths" for headers that are not directly #included

Suppose I have two vc++ project, proj_a and proj_b proj_a contains a header file a.h proj_b has dependency on proj_a. It contains file b.h that does #include <a.h>. I add a.h's directory in the "additional include directories" in its project settings to build it. Now say, I have 100 more projects, whose files #include <b.h>. Only addi...

PHP not including connection info, what's wrong?

I'm trying to roll a CMS website and I'm on 1and1 Internet's hosting. I'm trying to connect to my MySQL database and I get the following error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) After some frustration, I decided to check my include and it turns out that the following code is not in...

when i include files on php, it gives me blank screen?

im trying to include the header at the top of my pages it gives me a blank screen, when i remove it the php file runs and shows the content: <?php include("header.php"); ?> thanks :)) ...

Equivalent of include() in HTML

I was wondering wether there is a way to include some html content inside another html using only html? A replacement to PHP's <?php include("file.php"); ?> Is this possible? EDIT: This has brought up some confusion, what I needed was "almost an html tag" that had the functionality of including a html document in another. ...