473,473 Members | 2,243 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

New Server Made my Include code not Work!

1 New Member
Ok this is the situation! My host got us a new server and moved us 2 days ago. Ever since those 2 days, I've been having this problem.

Here is the code I use:
[PHP]<?php

if(!$nr || $nr == "") {

include("../forums/news.php");

}
else {
include "content/$nr.php";
}

?>[/PHP]

Here is the problem. The news.php shows up fine, but whatever that is in content/something.php will not show up.

For example:
http://www.my-site.com/index.php?nr=test
should show content/test.php where I put the code in index.php, but when I go to that url for example it will show the exact same thing as in http://www.my-site.com/index.php because the code is not working anymore.

If this is a host problem, I have already discussed this with my host and he has no idea what the problem is.
Oct 6 '06 #1
1 1096
dlite922
1,584 Recognized Expert Top Contributor
Ok this is the situation! My host got us a new server and moved us 2 days ago. Ever since those 2 days, I've been having this problem.

Here is the code I use:
[PHP]<?php

if(!$nr || $nr == "") {

include("../forums/news.php");

}
else {
include "content/$nr.php";
}

?>[/PHP]

Here is the problem. The news.php shows up fine, but whatever that is in content/something.php will not show up.

For example:
http://www.my-site.com/index.php?nr=test
should show content/test.php where I put the code in index.php, but when I go to that url for example it will show the exact same thing as in http://www.my-site.com/index.php because the code is not working anymore.

If this is a host problem, I have already discussed this with my host and he has no idea what the problem is.

just do a die on "content/$nr.php";

[PHP]
die($nr.php);
[/PHP]

then ask yourself, does that file exist?

post response here if the answer is yes.
Feb 20 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: JT | last post by:
is it possible to somehow "jump out of" an ASP page that is executed from another page via the Server.Execute method? on the page being executed i have several instances where i need to stop the...
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
6
by: Greg Collins [MVP] | last post by:
For background, please refer to my original thread: http://groups.google.com/groups?selm=efe5w7tYEHA.3112%40tk2msftngp13.phx.gbl I've thought of a potential way around the issue, but I'm new to...
12
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...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
2
by: Wimpie van Lingen | last post by:
Hey I have some more questions with regards to Remoting in .NET 2. I'm using TCP with the Binary formatter. My solution consists of 4 projects: - Class Library containing the server classes...
17
by: =?Utf-8?B?SmltIFJvZGdlcnM=?= | last post by:
I am trying to replace a huge chunck of code that currently I incorporate with an #Include directive. The program rarely has to flow through that code, so I thought it would be better if I used...
2
by: ppuniversal | last post by:
Hi everyone, I have made a client-server code in Linux. The server is running properly and is sitting at its accept() method. But the client is unable to connect to the server. The Server and Client...
0
by: rugman | last post by:
Hi. Let me immediately declare - I'm a designer/owner of a website written in jsp pages running under Apache Tomcat 5.5.25. I make simple changes to code but don't understand much about...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
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...
0
agi2029
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.