include

Linux Reference for C++?

I want to know if there is any site like cpluplus.com which explains all the headers files and its available features, but for Linux ? Like for example explaining the sys/, net/, dns/* includes ? I came up with this question because I was searching for a sys/reboot.h reference. Any Ideas ? ...

Custom library files and web application on shared hosting?

Let me put my issue defining a real scenario: I am using dedicated server where PHP and MySQL are available. My PHP include_path=/var/local/php I am developing a custom cms application, where I am writing my own library which is responsible for communicating with the database and retrieving data based on some key. My application is g...

Include view file within same namespace in PHP 5.3.0

Hi, I started developing sort of a mvc framweork on PHP5.3.0 for the static keyword, but since I'm here I said I should take advantage of the namespaces as well. So I have something like this for the view: namespace view { function load($filepath) { include($filepath); } function helper() { echo 'lo...

PHP not letting me pull defined variables from external config.php

I'm moving a PHP site from development to a production server and testing the new database connection. I have a config.php page that has only this (but with real data): <?php // Database Constants defined('DB_SERVER') ? null : define('DB_SERVER', 'xxx.xxx.xxx'); defined('DB_PORT') ? null : define('DB_PORT', 'yyy'); def...

Is there a light-weight client-side HTML include method?

I'm looking for a light weight method for client-side includes of HTML files. In particular, I want to enable client-side includes of publication pages of researchr.org, on third party web pages. For example, I'd like to export a page like http://researchr.org/profile/eelcovisser/publications (probably just the publications box of tha...

How to write my own include files for NASM?

I'm currently teaching myself assembly language programming on AMD64 for Linux. I've just discovered the NASMX project with its include files. They certainly make things a lot easier, but I would eventually like to extend them and even to be able to write my own. I have lots of enthusiasm and patience to do this, just no knowledge, onl...

PHP is_readable trouble with open_basedir

I've recently gotten an error when I deployed an application. It used "is_readable" on a path within the include path, but one that was restricted by "open_basedir". This gave me a fatal error. Is there another function that I could use to see if a file is includable, before actually including it? Edit: this works, but how do I detect...

How to use a PHP includes across multiple directories/sub directories with relative paths

I'm having difficulty with paths in a cms system I'm attempting to build, I've basically got a folder with my header.php and footer.php files inside. These are included in index.php and work fine. But then when I attempt to use the same includes in a file within my admin sub directory, the images and CSS are broken, obviously because th...

In a Use Case Description Document, how do we describe the include relationship with another use case.

In a Use case diagram, we can show the include relationship, but if we have to express the same in the description document, how is that to be done? ...

rails include with options

Is it possible to limit an AR :include to say only pull in one record... Item.find(:all, :include => [ :external_ratings, :photos => LIMIT 1 ]) I have a list of items and each item has between 5 and 15 photos. I want to load a photo id into memory, but i don't need all of them, I just want to preview the first one. Is there a ...

Ado.net entity .include() method not working

I've got this function public static AdoEntity.Inspector GetInspectorWithInclude(int id, List<string> properties) { using (var context = new Inspection09Entities()) { var query = context.Inspector; if (properties != null) { foreach (var prop in properties) ...

Including JavaScript file into main document

Hello, I have a jquery-code which using selectors (from current document). Now I want to move this code into another file(js) and just include from this document. Could I do it without any editing? So, will jquery-code works right? ...

Including always changing code into an active program.

I have a program, and im not going to go into detail, but i have a void say void changingcode(string var1, string var2, string var3) { } ok, so i have a bunch of code in a .txt file... and i want to insert it into that void, and i need it to use the variables that are passed to the void. potentially the code could be different every t...

How secure is PHP?

I am somewhat new to PHP coding and I am aware that malicious users can hack a website if you have not sanitized your PHP code. What I am wondering is whether they need a data entry box (like for file submissions, or user-name/password entry fields)?. Do commands like "include (header.php)" also need some sort of security or are they inn...

PHP robust include to handle errors?

I have a PHP app "index.php" that, for various reasons, needs to run other PHP scripts by using include_once on that other script. That other script isn't very stable, so is there some way to do a safe include_once that won't halt the caller? i.e.: <?php safely_include_once('badfile.php'); // MAY throw syntax error, parse error, othe...

PHP includes and POST

I'm developing a website and in my attempt to make friendly URLs without recurring to mod_rewrite (because chances are my client's server doesent allow it), I came up with this system: index.php expects a variable called $seccion, which should contain a relative path to a second file with a particular section. That way I keep the static...

PHP includes Statement

I was wondering how include worked. i thought it was making 2 files or more into one big file for example file 1 includes file 2. file 1 is in the root directory while file 2 is in root/include/file2. so if file 2 needed to include something from the root/include directory then instead of putting include("file3.php"); i would need to ...

OpenCV can't read image!

I am using this code: #include <stdlib.h> #include <stdio.h> #include <math.h> #include <cv.h> #include <highgui.h> #include <cxcore.h> #include <cxtypes.h> int main(int argc, char* argv[]) { IplImage* img = cvLoadImage( "dow2oc8.png" ); cvNamedWindow( "Example1", CV_WINDOW_AUTOSIZE ); cvShowImage("Example1", img); cvWaitKey(0); ...

VcProj or VcxProj Build Include Tag Question

Hello to all of you, i would like to edit the vcproj to include some additional header, additional dependecy and lib file. What is the correct tag ? Any script that generate this vcproj file ? My vcproj has this Environment="PATH=$(QTDIR)\bin;$(PATH)" and my settings has this Additional Include Directory .\GeneratedFiles $(QTDIR)\in...

How do you debug functions from includes in Erlang?

The implementation of ScrumJet on GitHub (as of this writing) shares essentially identical functions between the storage modules for tasks, categories and boards. This was achieved by moving the identical code which makes heavy use of the ?MODULE macro into scrumjet_datastore.hrl. Each of scrumjet_task.erl, scrumjet_category.erl and sc...