include-path

Should I include locally or remotely?

Just something I wonder about when including files: Say I want to include a file, or link to it. Should I just for example: include("../localfile.php"); or should I instead use include("http://sameserver.com/but/adirect/linkto/localfile.php"); Is one better than the other? Or more secure? Or is it just personal preference? Clearl...

How to add flags to RC.EXE through QMake .pro makefiles

I've the following definition in my .pro file: RC_FILE = app.rc This RC file contains a global include at the top: #include "version_info.h" The version_info.h header is on a common header files directory. Since RC.EXE takes INCLUDE environment variable in consideration, according to MS documentation, my build process batch sets u...

How do I know which include path will be used in PHP?

When I run phpinfo() and look by the Configuration category under PHP Core, I see a directive titled include_path, with a local value and a master value. In this case, my local value is set to .: ./include: ../include: /usr/share/php: /usr/share/php/smarty: /usr/share/pear and my master value is set to .: /usr/share/php: /usr/shar...

What value to use for include_path in .htaccess

Currently in my .htaccess file I am setting include_path such as this: php_value include_path /mnt/webs/mysite/includes:/usr/share/pear However this isn't great if I need to put my sites on a new server as I need to go through a whole load of sites updating each .htaccess. Basically would like a way to basically say "use the folder c...

set include_path for embed files like .js and .css?

OK so I now know there is a way to put all my php files in a single place and have them be able to be included without a filepath by setting an include_path like so: php_value include_path .:/pathToPHPFiles OK so now as long as my PHP files are in this directory I can include them from any subdirectory as if they were in the same dire...

How do you define paths in application?

I'm using global constants, like this: /project /application bootstrap.php /public index.php index.php defines PUBLIC_PATH and APPLICATION_PATH calls APPLICATION_PATH . bootstrap.php bootstrap.php defines LIBRARY_PATH, MODULES_PATH, TEMP_PATH, CONFIG_PATH, ... does real work Also i want to ask if there ...

Adding an Include Path for a Module in a Simple Perl Tutorial

I'm trying to do a simple tutorial but I'm having trouble getting started. My problem seems to be installing and getting the correct path to the modules. 1. Here is the original code:* #!/usr/bin/perl -w use strict; use LWP 5.64; my $browser = LWP::UserAgent->new; my $url = 'http://www.cspan.org/RECENT.html'; my $response = $browser->...

How can I add header files to gcc in mac os x 10.6

Hello, I want to build a static library that requires openssl for iPhone. It can't find include files from openssl. How should I tell the compiler where to look for those header files? Thanks. EDIT: I'm trying to build librtmp for iPhone, for arm not for simulator. Just to test something. Im not building it from xcode. I think i have fo...

include path and the __autoload function in php

Hey everyone, I am trying to convert several php scripts to use the __autoload function. Right now I can use the include and require functions like this: require_once('path/to/script.php'); But inside of the __autoload function, I can't use the line above. I have to use this: require_once('absolute/path/to/script.php'); Why does...

calling include from an included file

So, examining this directory structure /include_one.php /include_two.php /directory/main_file.php Assume that I am in /directory/main_file.php and I call include('../include_one.php'); inside of include_one.php, to include include_two.php. Do I need to call include('include_two.php); or include('../include_two.php');? So my question...

Php include path help for Zend framework

I previously posted this question (Reading Google docs spreadsheet) and got a good answer that instructed me to use the Zend Framework. I've never used it before, and I'm fairly certain I'm setting it up wrong. It says to "Simply download the framework, extract it to the folder you would like to keep it in, and add the library directory ...

include_path doesn't recurse?

I have several separate websites that live in separate directories. For includes that they have in common, I have it living in the root directory where the rest of them live. user@hostname:/var/www$ ls website_1 website_2 website_3 common_files I want to include a Zend package, so I have my include path ini_set("include_path", get...

Netbeans 6.9.1 include path issues

Hi, I've just installed NetBeans (6.9.1, PHP specific download, WinXP) and im running into some include path issues.. When I run a project file via the PHP interpreter (localhost/xampplite) and checking the result in the output window I get these include errors saying the file is not found within the include path (include_path=".") Wh...

include(): Failed opening when accessing by Shell/Crontab

I'm setting up a crontab. When accessing the php file directly (domain.com/file-path/file.php) it works perfectly. When accessing it through shell (php -f /var/www/vhosts/domain.com/file-path/file.php) I get include file errors all over the place. It has something to do with the include path being set as: (include_path='.:') Is there an...

GCC C++ Linker section on FC13

I am trying to get OpenGL and Glut running on Eclipse Linux FC13. After spending two days on it, I admit that help is needed. On FC13 Eclipse, I see /usr/include/GL and /usr/include/SDL -- so the libs are there. I started Eclipse, and then tried to run a simple program on it, just like suggested here. However, two things were missing in...

Visual Studio Express 2010, include path

I have a solution with many many projects, I did not write this project but it's an open source project (mysql++) , I need to include an include path to all projects. I would like to just globally add this include path to the solution and have it cascade down to all the projects... is this possible? I dread thinking about having to do ...

eclipse sfml library issues

I pulled out an application that I wrote in C++ using the sfml library, but I'm having trouble setting up the library in Eclipse. I specified the include path, the lib path and included all the necessary .so libraries to link to. the application compiles fine but it complains at runtime about missing libraries. Why is this happening? Did...

require_once() [function.require]: Failed opening required '/vars.inc' (include_path='.;C:\php5\pear')

Hey, I have several sites setup on my local machine - customerappglobal, customerapp and naturaleigh. I have just one - customerappglobal - working at the moment because thats the only one I need working. I have added the following code to my httpd.conf file: <VirtualHost *:427> # The name to respond to ServerName customerappglobal ...

Help me correct my php include path on windows 7, i've hit a block

Hello!! i've been suggested to use the ZFDotrine from a post here but right now it turns out to be kind of headache where i don't know why zf can't see the zfdoctrine provider. I have a kind of shady environment on my windows 7.i have xampp 1.7.3 and zend server5.0.2 on my machine each with a different version of zf.so i downloaded z...

PHP how to find application root?

Hi, I'm having problems with my include files. I don't seem to be able to figure out how to construct my URLs when I use require_once('somefile.php'). If I try to use an include file in more than one place where the directory structures are different, I get an error that the include file cannot be found. In asp.net, to get my applicatio...