include

PHP Cron Job: Including file not working?

i run a cron job every night, but for some reason, it is saying that the file i try to include is inexistant: Warning: require(../includes/common.php): failed to open stream: No such file or directory in /home/fini7463/public_html/cron/journeyNotifications.php on line 2 Fatal error: require(): Failed opening required '../includes/common...

Build and Include configurations with eclipse PDT

Im using eclipse PDT to develop a php project. There are several pieces of external code that we need to include (eg PHPExcel). Is there a way to set up my project so that i can get the auto suggestions from these classes etc whe typing the code but not get the list of validation problems and "todo"s that tey have? Perhaps i need to set ...

Why do we need header files?

Possible Duplicate: In C++ why have header files and cpp files? Why do you need to include .h-files and not just the .c-files? Is this better in C++ or C#? ...

Elseif include, and echo an outside variable?

I have an Elseif statement, which gets a template name and includes the template PHP file which contains a large array, it outputs the result on the page. $template = str_replace("-","_","{$_GET['select']}"); if ($template == "cuatro"){ include("templates/cuatro.php"); echo $page_output; } elseif ($template == "o...

What should I #include to use 'htonl'?

I want to use the htonl function in my ruby c extension, but don't want to use any of the other internet stuff that comes with it. What would be the most minimalistic file to #include that is still portable? Looking through the header files on my computer, I can see that either machine/endian.h or sys/_endian.h would let me use them, alt...

How to include a file with relative path "upwards"

Hi I am trying to include a simple script like this : ini_set('include_path', ini_get('include_path').':'.dirname(__FILE__)); include('../configuration/live/database.php'); When i run the script (with sudo), PHP returns : PHP Warning: include(../configuration/live/database.php): failed to open stream: No such file or directory ...

Linq to Entities - eager loading using Include()

Hey Everyone, I've got this really basic table structure: dbo.tblCategory dbo.tblQuestion (many to one relationship to tblCategory) dbo.tblAnswer (many to one relationship to tblQuestion) So basically, what I'm trying to do is when I load a category, I want to also load all Questions, and all Answers. Now, I've been able to do this...

Red Hat file include problem, PHP / APACHE

I have a Red Hat Linux box that I did not configure but must get a custom PHP application working on it. This is the error I am getting. I am essentially just trying to include include.php into a file test.php which resides in the same folder. I get the below error. Warning: require(include.php) [function.require]: failed to open stre...

Use Public Variable Globally

I'm attempting to modify a MIPS simulator to display the contents of its registers during run time. My question refers to the way in which I plan to do this. So... I have a file, file1.cpp and file2.cpp. There is a local public variable in file1.cpp called typedef long ValueGPR; ValueGPR reg[33]; that I want to access in file2.cp...

Does "make" know how to search sub-dirs for include files?

Hello This is a question for experienced C/C++ developpers. I have zero knowledge of compiling C programs with "make", and need to modify an existing application, ie. change its "config" and "makefile" files. The .h files that the application needs are not located in a single-level directory, but rather, they are spread in multiple su...

Android programmatically include layout (i.e. without XML)

So I've created an Activity subclass called CustomTitlebarActivity. Essentially, each main activity in my app will have a custom titlebar with many common features such as a Home button, a title, a search button, etc. In my current implementation, I am still explicitly using an include statement in the layout XML for each CustomTitlebarA...

CSS include with MVC

So I know there are various ways of doing, however I'd like to know the "proper" way of including a specific CSS dynamically based on the page I am on. I could include all of them within the site master, however I'm wondering if I could simply include them ONLY when I need it, by either evaluating URL or passing a value through the cont...

Copy C files to include

I have a set of C files that I would like to use. Can I just copy them to my include directory, or do I have to compile them. I would think they would be compiled in the final binary. ...

Warning and Fatal error calling require_once()

I want to fetch div element from other website . on which iam having my profile, i have tried using this code. require_once('../simple_html_dom.php'); $html=file_get_html('http://www.example.com'); $ret=$html->find("div[id=frame-gallery]"); $ret=array_shift($ret); echo($ret); but this code is giving errors Warning: require_onc...

Any good reason to #include source (*.c *.cpp) files?

Hello all, i've been working for some time with an opensource library ("fast artificial neural network"). I'm using it's source in my static library. When i compile it however, i get hundreds of linker warnings which are probably caused by the fact that the library includes it's *.c files in other *.c files (as i'm only including some h...

Where should I create global variables for targets

I have an Xcode project with two targets for two different apps. There are a lot of #ifdef statements sprinkled throughout the code #ifdef PROJECT_ONE NSArray *dbKeys = [[NSArray alloc] initWithObjects: @"name", @"zip", @"phone", nil]; #else NSArray *dbKeys = [[NSArray alloc] initWithObjects: ...

How many 'includes' is too many as part of a common script startup sequence? Or is there no such thing?

By "common script startup sequence", what I mean is that in the majority of pages on my site, the first order of business is to consult 3 specific files (via include()), which centrally define constants, certain functions used in many scripts, and a class or two, as well as providing the database credentials. I don't know if there's a mo...

how to use "{% include 'a.html '%}" in a javascript expression on google-app-engine

this is my code: $('.left').html("{% include 'foot.html' %}") it will show error , so how to make it running. thanks ...

Tool to Map #include's

Is there a tool available which will take a set of source files and map (in graphic fashion) how they are linked via #include? I would like to see where there are any circular references. ...

Constants and Include files in TSQL

Is it possible to include a set of 'constant' values in a TSQL stored procedure? I have a situation where I'm using an integer field to store bit values and I have small set of 'constant' values that I use to insert/select against that field DECLARE @CostsCalculated int = 32 DECLARE @AggregatedCalculated int = 64 --Set CostCalculated b...