I'm stumped. I use PHP includes for my menu and page footer. I call them
with this:
<?PHP include("/opt2/home3/shared/public_html/mysite/texts/hvmenu.txt"); ?>
and
<?PHP include("/opt2/home3/shared/public_html/mysite/texts/footer.txt"); ?>
Both of these work just fine when I use them on a PHP page in my root
directory. But when I create a new directory ('test') and use them on a
page I put in there, only the page footer one displays as it should.
I have error_reporting(E_ALL); on the page and I do not get any PHP
error listed. I do not have access to the server logs so I cannot see if
there's any entry there.
I know the page has a .php extension, the directory is set to parse
them, and the file path to the texts is correct. The hvmenu.txt file is
in /texts where it is supposed to be and renders just fine on the pages
that call it from my root directory. I've tried IE 6 and NS 7.1 and get
the same results.
Anyone have any ideas what's wrong or better yet, how I can cure this?
Thanks. 5 3059
Regarding this well-known quote, often attributed to JDJones's famous "Sun,
01 Feb 2004 18:45:12 GMT" speech: I'm stumped. I use PHP includes for my menu and page footer. I call them with this:
<?PHP include("/opt2/home3/shared/public_html/mysite/texts/hvmenu.txt"); ?>
and
<?PHP include("/opt2/home3/shared/public_html/mysite/texts/footer.txt"); ?>
Both of these work just fine when I use them on a PHP page in my root directory. But when I create a new directory ('test') and use them on a page I put in there, only the page footer one displays as it should.
I have error_reporting(E_ALL); on the page and I do not get any PHP error listed. I do not have access to the server logs so I cannot see if there's any entry there.
I know the page has a .php extension, the directory is set to parse them, and the file path to the texts is correct. The hvmenu.txt file is in /texts where it is supposed to be and renders just fine on the pages that call it from my root directory. I've tried IE 6 and NS 7.1 and get the same results.
Anyone have any ideas what's wrong or better yet, how I can cure this? Thanks.
Try using require() instead of include(), to see if there's any errors
thrown there. http://us3.php.net/manual/en/function.require.php
--
-- Rudy Fleminger
-- sp@mmers.and.evil.ones.will.bow-down-to.us
(put "Hey!" in the Subject line for priority processing!)
-- http://www.pixelsaredead.com
Safe mode is on, and hvmenu.txt belongs to the wrong user?
Uzytkownik "JDJones" <se******@sprynet.com> napisal w wiadomosci
news:YObTb.202978$xy6.1042714@attbi_s02... I'm stumped. I use PHP includes for my menu and page footer. I call them with this:
<?PHP include("/opt2/home3/shared/public_html/mysite/texts/hvmenu.txt");
?> and
<?PHP include("/opt2/home3/shared/public_html/mysite/texts/footer.txt");
?> Both of these work just fine when I use them on a PHP page in my root directory. But when I create a new directory ('test') and use them on a page I put in there, only the page footer one displays as it should.
I have error_reporting(E_ALL); on the page and I do not get any PHP error listed. I do not have access to the server logs so I cannot see if there's any entry there.
I know the page has a .php extension, the directory is set to parse them, and the file path to the texts is correct. The hvmenu.txt file is in /texts where it is supposed to be and renders just fine on the pages that call it from my root directory. I've tried IE 6 and NS 7.1 and get the same results.
Anyone have any ideas what's wrong or better yet, how I can cure this? Thanks.
FLEB wrote:
<snip> Both of these work just fine when I use them on a PHP page in my root directory. But when I create a new directory ('test') and use them on a page I put in there, only the page footer one displays as it should.
I have error_reporting(E_ALL); on the page and I do not get any PHP error listed. I do not have access to the server logs so I cannot see if there's any entry there.
I know the page has a .php extension, the directory is set to parse them, and the file path to the texts is correct. The hvmenu.txt file is in /texts where it is supposed to be and renders just fine on the pages that call it from my root directory. I've tried IE 6 and NS 7.1 and get the same results.
Anyone have any ideas what's wrong or better yet, how I can cure this? Thanks.
Try using require() instead of include(), to see if there's any errors thrown there.
Same result when using require. The page footer displays fine but the
menu doesn't. Yet when I move the file from 'test' to 'root', both work
absolutely perfectly.
>><?PHP include("/opt2/home3/shared/public_html/mysite/texts/hvmenu.txt"); ?>
Both of these work just fine when I use them on a PHP page in my root directory. But when I create a new directory ('test') and use them on a page I put in there, only the page footer one displays as it should.
I have error_reporting(E_ALL); on the page and I do not get any PHP error listed. I do not have access to the server logs so I cannot see if there's any entry there.
I know the page has a .php extension, the directory is set to parse them, and the file path to the texts is correct. The hvmenu.txt file is in /texts where it is supposed to be and renders just fine on the pages that call it from my root directory. I've tried IE 6 and NS 7.1 and get the same results.
Chung Leong wrote:
Safe mode is on, and hvmenu.txt belongs to the wrong user?
No, safe mode is off. As I said in another reply, what stumps me the
most is that when I move the file from the 'test' directory and put it
back into 'root', both includes work just fine. I just can't seem to get
the menu to display when the file resides in 'test'.
JDJones wrote: I'm stumped. I use PHP includes for my menu and page footer. I call them with this:
<?PHP include("/opt2/home3/shared/public_html/mysite/texts/hvmenu.txt"); ?>
and
<?PHP include("/opt2/home3/shared/public_html/mysite/texts/footer.txt"); ?>
Both of these work just fine when I use them on a PHP page in my root directory. But when I create a new directory ('test') and use them on a page I put in there, only the page footer one displays as it should.
I have error_reporting(E_ALL); on the page and I do not get any PHP error listed. I do not have access to the server logs so I cannot see if there's any entry there.
I know the page has a .php extension, the directory is set to parse them, and the file path to the texts is correct. The hvmenu.txt file is in /texts where it is supposed to be and renders just fine on the pages that call it from my root directory. I've tried IE 6 and NS 7.1 and get the same results.
Anyone have any ideas what's wrong or better yet, how I can cure this? Thanks.
Those paths look like virtual ones, don't see any reason why it should
cause a problem but if they are then you may want to try the physical
ones, if you can.
~Cameron This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Yannick Turgeon |
last post by:
Hello all,
We are currently changing our web server and, in the process, updating PHP
version from 4.3.0 to 4.3.5. The problem we've got is that our way to
include some files in other ones is no...
|
by: Yannick Turgeon |
last post by:
Oups! I did a typing error in my last post. Fixed.
-----------
Hello all,
We are currently changing our web server and, in the process, updating PHP
version from 4.3.0 to 4.3.5. The problem...
|
by: Joe Mowry |
last post by:
First off, I'm posting this question for a friend that doesn't have
access to the news groups.
Problem:
Using PHP as the base and has several PHP < includes > for various
functions, all this...
|
by: Patrick |
last post by:
I have an ASP site with about 50 ASP files, all of which are currently
including a common "includes.asp" file near the top of the file, responsible
for generating the <HEAD/> section of the HTML
...
|
by: MyndPhlyp |
last post by:
I am building up a library of Class'es that represent various columns of
table layouts. One often used column is "name" and each occurrence is
treated identically. (What a concept, eh?)
Part of...
|
by: Generic Usenet Account |
last post by:
I am seeing some unexpected behavior while using the STL "includes"
algorithm. I am not sure if this is a bug with the template header
files in our STL distribution, or if this is how it should...
|
by: Jim |
last post by:
Hi:
Do we have some common style for includes when working on a project
with lots of c and h files. Wat I mean is do we have a rule in C when
a file includes several files and those file in turn...
|
by: tshad |
last post by:
I am not sure why I am getting this error:
I have the following code I want to run from another include file that holds
all my functions.
functions.inc...
|
by: William F. Zachmann |
last post by:
We've got a project going that involves moving an old web site with a
massive dll written in C++ that produces most of the output from a SQL 7.0
data base on NT4 onto IIS on Windows 2003 Server...
|
by: kwest |
last post by:
I just setup a new server with PHP 5 and ran into a problem with
includes. Everytime I call something like
require_once './includes/test.inc'
I get a permissions message like this:
Warning:...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |