include

How to implement precompiled headers into your project

I understand the purpose and reasoning behind precompiled headers. However, what are the rules when implementing them? From my understanding, it goes something like this: Set your project up to use precompiled headers with the YU directive. Create your stdafx.h file and set that to be your precompiled header. Include this as the top ...

Figuring out which files are included rendering a URL with PHP.

How can I use php to determine which files are invoked and included given a url only. eg. the URL, www.mydomain.com/index.php might use: index.php includes.php content.html I want to give php the url and it return the filenames. Thank you :-) ...

Secure way to include page from GET parameter?

I'm working on a set up where the URLs will be along the lines of: http://example.com/index.php?page=about In reality they will rewritten to that from a simpler URL. index.php will include another page, using this code: if ( isset( $_GET['page'] ) ) { $page = $_SERVER['DOCUMENT_ROOT'] . '/pages/' . $_GET['page'] . '.php'; if ( is_f...

What are some rules with included headers?

I keep running into problems the larger my program gets. For instance, I get the following error: In file included from WidgetText.h:8, from LCDText.h:17, from WidgetText.cpp:13: Generic.h:21: error: expected class-name before ',' token Here are those lines: #include "Generic.h" // WidgetText.h:8 #i...

htaccess rewriteRule restrict access to one particular folder problem

Hello, I have problem with getting the folder inc restricted. It is only the inc folder in the root directory and not the inc folders higher up de hiarchie Problems are: IE will start a download/open dialog and FF displays an include file I don´t have this problem with the images folder wich is also in the root directory. What...

Does d3d9.h include windows.h? (C++)

When I use #include <d3d9.h> in my programs, I no longer need to include windows.h to use windows functions like WinMain, and CreateWindow. Is this because d3d9.h &c. include windows.h? Mainly, I'm wondering if it is possible to substitute windows.h with d3d9.h, etc, and still be able to se any functions I could use with windows.h. ...

pthread was not found

I am working on pthread in C++ using visual studio 2008. I have a problem because the compiler does not find . I knew that it was embedded in C++ 2005. Do i have to install the library and add it manually or it should be installed with C++ default libraries? If i have to install it, please give me the url. Hani Almousli ...

Vs2008 C++: how can I make recursive include directories?

I am including a complicated project as a library in C++ using Visual Studio 2008. I have a set of include files that are scattered throughout a very complicated directory tree structure. The root of the tree has around ten directories, and then each directory could have multiple subdirectories, subsubdirectories, etc. I know that a...

PHP inclusion behaving oddly with multiple includes.

I have the following code: if (include_once(dirname(__FILE__).'/file.php') || include_once(dirname(__FILE__).'/local/file.php') ) { This causes an error because PHP tries to include "1" (presumably dirname(__FILE__).'/file.php' || dirname(__FILE__).'/local/file.php') Commenting out the second line makes this work as intended,...

Passing PHP variables to an included file?

This should work, so I'm really perplexed about why it's not working. I'm checking to see if a user is logged in using a $session class method at the top of each admin page. However, I want to dynamically adjust the header file depending on whether a user is logged in, and on what role level that user has. So I check $session->is_logge...

#include directive: diff between "test.h" and "./test.h"

Is there any difference between #include "./test.h" and #include "test.h" for C/C++ preprocessor? ...

Including dynamic HTML with PHP

I have PHP variables to place within an included HTML file. What's the best way of executing this? //contents of file1.php $variable1 = "text 1"; $variable2 = "text 2" $newContent = include('file2.php'); echo $newContent; //contents of file2.php <p>standard HTML with PHP... <strong><?=$variable1?></strong></p> <p><?=$variable2?></p> ...

Execute PHP on clicking a link

My website's pages are (or will) all be identical, except for the content of the #main div. So I was thinking in the <head> I could do <?php $page = "home.html"?>, where home.html is the bare contents (not a full html page - no <html>, <head> etc.) of the main div for the home page. So then inside <div id="main"> and </div> I could have ...

Visual C++ Assembly link library troubles

Hi. I'm having a problem having my projects built in VC++ Express 2008... I'm using a library, irvine32.inc/lib. INCLUDE Irvine32.inc works for me at school (On already configured VS environments) by default, but at home (Windows 7 x64) I'm having a boatload of issues. My original post here was that a file that irvine32.inc referenced, ...

PHP include file

i have two files:(localhost/template/) index.php template.php each time when i create an article(an article system is what i'm trying to do),i create a folder and then i copy the index.php in that folder. I want to include template php in index.php but as a static url('cause the articles will be like a folder-subfolder/subfolder/.. s...

php include virtual path

In my live site I have php include() and require() that have full path such as: /www/mysite.com/webapps/mmh/head.php or /www/mysite.com/webapps/ROOT/zip/BoundaryWizard.php Now, I want to do some local development on my windows machine (Xampp), so obviously none of those path work. Is there a way to tweak the apache or php settings to d...

Linq to Entities Include and Ordery By

I'm using the query below: public IEnumerable<QUESTIONARIO_BASE> ListQuestionario() { var query = (from c in _entities.QUESTIONARIO_BASESet .Include("QUESTAO_BASE") .Include("QUESTAO_BASE.DIMENSAO") .Include("QUESTAO_BASE.RESPOSTA_BASE") ...

Problem with resolving Qt headers in Eclipse [Linux]

My Eclipse CDT has some problems with either resolving Qt headers or code completion. The example will explain everything. Usually the include would look like this: #include <QPushButton> But when I use code completion in Eclipse it replaces the include with following: #include <qpushbutton.h> Technically everything works and the p...

Server Side Includes vs. ASP.NET Techniques is there a performance difference?

I was recently hired to update an ASP.NET 1.0 site, created before master pages were available. Hence the pages have server side includes (ssi) like <!-- #include file="footer.html" -->. I was about to update the *.aspx pages with a master page that contained the markup previously in the ssi's. I'm convinced this is the right thing to do...

Is including C++ source files an approved method ?

I have a large C++ file (SS.cpp) which I decided to split in smaller files so that I can navigate it without the need of aspirins. So I created SS_main.cpp SS_screen.cpp SS_disk.cpp SS_web.cpp SS_functions.cpp and cut-pasted all the functions from the initial SS.cpp file to them. And finally I included them in the original file : #...