This may be a really elementry question but whats a nice way to include multiple children entities when writing a query that spans THREE levels (or more)?
i.e. I have 4 tables: Company, Employee, Employee_Car and Employee_Country
Company has a 1:m relationship with Employee.
Employee has a 1:m relationship with both Employee_Car and Em...
I have an ASP.NET master page which references a #include file as follows:
<!--#include virtual="/includes/scripts.inc"-->
I have modified the file /includes/scripts.inc but the changes do not show up in pages.
What needs to be done so modifications will be reflected?
I need to avoid the following:
restarting the server
restarting ...
Hi all,
This is a follow-up to the 'overhead of jsp include' question below:
http://stackoverflow.com/questions/1479218/jsp-performance-using-jspinclude
In our application, developers have 'modularized' jsp fragments by heavy use of "jsp:includes" for "common" jsp code repeated throughout the application.
Pros
The pro's are as follo...
I'm writing a small Ruby command-line application that uses fileutils from the standard library for file operations. Depending on how the user invokes the application, I will want to include either FileUtils, FileUtils::DryRun or FileUtils::Verbose.
Since include is private, though, I can't put the logic to choose into the object's init...
Let's say I know that some of my C/CPP files include certain headers - is there any reliable information against which libraries I will have to link, other than guessing ?
For example, if I have something like
#include "foo.h"
and want to find
libfoo_abcdef_123.so
Is there any 'best practice' how to do that, any place where to lo...
hey.
with the following code
<?php
if (qtrans_getLanguage() == "en") {
echo <?php include( TEMPLATEPATH . '/slider_en.php' ); ?>;
}else{
echo <?php include( TEMPLATEPATH . '/slider_de.php' ); ?>;
}
?>
i'm trying to include a file, based on the chosen language of the website. guess my idea is right but i'm totaly wrong on ...
This seems like the most basic thing in the world, but I don't know PHP.
I am trying to include a file on my page, and the directory of that file is specified inside of a variable.
<?php
$pageGroup = 'news';
$directory = 'http://localhost:8888/includes/'.$pageGroup.'/rightCol.html';
include($directory);
?>
When I echo the...
UPDATE: Let me clarify my files and reiterate my question:
main.h
#include "other.h"
class MyClass
{
public:
void MyMethod();
void AnotherMethod();
OtherClass test;
}
main.cpp
#include "main.h"
void MyClass::MyMethod()
{
OtherClass otherTemp; // <--- instantitate OtherClass object
otherTemp.OtherMethod...
Hi all,
Could anyone please tell me about how one might go about implementing your own custom tags in JS pages served by ASP.NET?
Basically what I am looking to achieve is a way of creating "includes" for my Javascript files by adding some code such as.
//Include Src="MyJavascriptFileLocation.JS"
And then having the ASP.Net handler ...
Is it possible to specify extra header files to include from the command line (using GCC 4 / C++)?
Or is there any other way files can be included except with #include?
Background: I'm trying to compile a large code base on my own PC. The code is usually compiled in a cluster, with a complicated build system (SoftRelTools anybody?), wh...
I'm trying to compile a .cpp + .h file that includes newmat.h and tinyxml.h - I have libnewmat.a and libtinyxml.a in the same directory as my .cpp and .h files and I'm running
g++ -lnewmat -ltinyxml test.cpp test.h
but still getting newmat.h and tinyxml.h not found at the beginning of compilation. I'm obviously a total c++ newb becau...
For required/included files in PHP, is it better to use .inc extensions vs .inc.php vs .php extensions?
...
I just got a strange problem. I am including some files from my index.php, and now I got this error:
require(cfg/cfg.database.inc.php) [function.require]: failed to open stream: No such file or directory in C:\...\index.php on line XX
Strange is that it worked just a minute ago. I double checked the spelling of that filename.
What ...
I have an inclusion pattern as follows:
/*
* Class1.h
*/
#ifndef CLASS1_H_
#define CLASS1_H_
#include "Class2.h"
namespace Class1_namespace
{
class Class1
{
Class2* Class2_ptr;
void Class1_member()
{
(*Class2_ptr).Class2_method();
}
};
}
#endif /* CLASS1_H_ */
/*
* Class2.h
*/
#ifndef CLASS2_H_
#define CLASS2_H...
This question is a follow up question for this question.
If some browsers download JS files even though the user has JS disabled, would it make sense to include JS files using JS to ensure the user isn't forced to download the JS unnecessarily?
For example:
function inc(filename){
var body = document.getElementsByTagName('body').i...
hey there
i want to include my php file but i get an error
my page contains javascript
this is the error i am getting
[Thu Aug 05 15:38:01 2010] [error] [client 10.0.0.2] <br/><br/>Unexpexted output: \r\n<html>\r\n\r\n\r\n\r\n<script language="javascript" type="text/javascript" src................
this is my server code , i am c...
For example:
<?
function getTitle(){
$query="SELECT title FROM news WHERE author = 'admin' LIMIT 5";
$result = mysql_query($query, $mysql_connection);
$data = mysql_fetch_array($result,MYSQL_ASSOC);
return $data['title'];
}
?>
And every time I want to submit a MySql query I must always include config.php inside the fu...
I have read the Android UI trick 2 on Android developers, which tells people how to include a layout in another layout file multiple times, and give these included layouts different id. However, the sample here is overwriting the layout id, not the id of the views IN this layout. For example, if the workspace_screen.xml looks like this:
...
I see php CMS using include instead of require for their important files. SHouldn't this files such as header.php be required?
THe script continues if the file is unable to be opened!
...
Hi.
I want to chceck files before I'll connect domain on my server. I've added them in direct admin, I've uploaded files - but I don't know how to get to them.
I have 4 domains connected, but i have acces only to one. I saw that it's possible to include file from higher level
include('../../panele-podlogowe.eu/adm/img/edit.gif')
Tha...