include

PHP: I get a completely blank page, I don't know how to debug this in PHP

hi, I'm having some issues to debug this in php. When I include this line: require_once("http://" . $_SERVER["HTTP_HOST"] . "/dompdf/dompdf_config.inc.php"); what I get is just a blank page, I don't get any html code as response. Maybe the error messages are hidden ? ...

Putting several hundred .doc pages into webpage.

I have hundreds of .doc files with text that I need put on web pages. I realize I could convert every .doc file to .txt, then use a server side include to embed the contents of each page into a webpage. This would save a lot of time because I could simply have one .php?txt=... page which will display a different .txt include depending o...

How to have includes / elemnts in Zend framework.

Hello, I'm new to Zend Framework. I have a menu of tabs that is used on various views but I need to highlight which section the user is in. I have seen placeholders but they don't seem very flexible and don't really do the job since I can't access any variables to see what area the user is in. Normally I would do this as an include, b...

PHP Checksum before include()

I've been working on an application that will allow for third-party extensions to be built to expand the application's functionality. All this in PHP, of course. I wanted to add a bit of security padding by running files in a certain directory through a checksum function. If the file doesn't pass the checksum, the file isn't "included", ...

Include path and weird structure

Hai. I've got site which is really weird, and now is making me troubles. This is simplified structure public_html - adm --- raport ------ raportpdf.php --- class ------ Bonus --------- Bonus_DAO.class.php ------ config.php --- raport.php - index.php So. Index.php is giant loader. It has lines: (but I don't think that they are making ...

PHP includes instead of iFrames?

What's the best way to use PHP includes instead of iFrames? Edit: Instead of using iFrames, I want to use includes to show my content. ...

Better/safer way to use php include ?

Hi, this works for me, but is there a better/safer way to use an include: <?php include "http://www.myserver.com/somefile.php" ; ?> I tried: <?php include "somefile.php" ; ?> but it did not work. ...

Is 148 Included files too many

I've just noticed that my app is including over 148 php files on one page. Bear in mind this is the back end admin and not the main site, but is this too many? What impact does a large number of includes have on a server, both whilst under average load and stressed? Would disk I/o be a problem? Included File Stats File Type - Include C...

include objective-c header in c++ file

Is there a way to include an objective-c header from a cpp? Because when I try to #include "cocos2d.h" from a cpp .h file, a lot of errors complaining about @'s and -'s are showing up. Can c++ files include obj-c headers like that? ...

SQL Server Stored Procs include file statement

I don't think it is possible to do so what I would but I ask anyway. I've found that I include the same variables in the top of every Stored Proc I make. These variables are used for logging and error handling. They don't change between stored procs, there meaning if fixed but primary use is to help readability and have a consistent sty...

PHP - retrieve name of script that included or required it

How do you retrieve the name of the script that included or required it? Example: script login.php has a require_once('validate.php') ... validate.php is also called by a number of other scripts. Other than manually setting a flag, is there a way to have validate.php know which script is including/requiring it? ...

php Includes header with User Name

Hi I have a php includes on my site for header and footer on each page. I am changing the site to allow users to log in and out etc. How can I pass things like username to the header? Also I will want the header to display Log In when no user name is present but Log Out when a username is present. Any help appreciated. Richard ...

How can I detect dynamically which includes were used to build an .aspx page ?

Hello, From what I understand, in C#, includes are compiled before execution, so the runtime only sees a big file as if there were no includes in the first place. Now my question is : Is there a way (a list somewhere in a system object?) to get the list of all the included files that have been included for the page that is beeing rende...

Source code directories: "common" and "include"?

I've noticed that some sources have common and/or include as sub-folders. I am talking about C/C++ sources in particular. What are they supposed to contain? ...

Include statement taking up 1.5 MB of memory?

Hi guys I'm trying to optimize my application here and have started to benchmark snippets of code as to how much memory they are taking up. I just discovered that a single include statement is taking up to 1.5MB of memory. I'm using memory_get_usage() to check for memory used before adn after a snippet of code. The file included include...

php include problem

When i try to load a page that resides in /var/www/vhosts/mypage/httpdocs/index.php using a browser I get an include error that it cannot include file which is in /var/www/fw/trunk. include path is set to include_path='.:/var/www/fw/trunk'. But when I try to load it from console using 'php index.php' it loads fine, i guess it some kind...

How to share an include file with inline server side code with VB.Net files and c# files

Hey guys I've got a lot of legacy reports, some in vb.net and some in c#. This code base uses include files to add a centralized header and footer to each page like so. <!--#include file="/includes/header.inc" --> I need to add some server side code into these header files to add some functionality but because the reports dont share ...

C++ Circularly declaring Preprocessor directives? Or defines before includes?

I'm a bit new to C++, so bear with me. I'm trying to figure out where exactly to place my #defines and #includes in my project. I have something like this: main.h #include "other.h" #define MAX_GROUPS 100 struct Cat { int something[MAX_GROUPS]; } In other.h I also need to use MAX_GROUPS, so do I also define MAX_GROUPS in other....

Automatically insert content into News section

Hi All, I'm developing a Wordpress theme. One of the sections on the front page is titled News. In that section the user should be able to insert information himself (I'll make a separate file called news.php which will php included into the markup), but I also want the content to be automatically updated once the user makes a post. Fo...

how to make include element in my own XML schema?

I have writen my own xml schema and one large xml file that is an instance of that schema. Now I would like to define include element in my xsd so that xml file can be made out of several smaller units. How do I do that? For example in my file I have <item>1</item> <item>2</item> <item>3</item> <include src='foo.xml'> and foo.xml has...