473,382 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Urgent Help Needed- Company website down

Hi,

My company's website is down so I'm hoping someone has seen this
bizarre problem/behavior before and can help me out
..
We have a USA and an International site. Two directories under the web
server root.
index.html in the web server root directory links to each
/usa/index.php
/intl/index.php

I include the same template files in each .php file under each
directory. My /usa directory renders correctly. But starting today my /
intl directory started exhibiting this weird behavior.

- Viewing the intl/index.php my included template at the top of the
page is all of sudden not working(the code is not included in the
file).
- Yet the same template is used in all the rest of the files in the /
intl directory and the code from the template *is* included.
- When I cut and paste the template code directly in the index.php
file, *it* renders correctly but *all* the other files stop working.
The code is not included.

I've copied the /usa/index.php file to the /intl directory, since it
renders correctly, and I see the same problem. Them template code is
not included in the file.

All permissions on the files are correct.

Any help would be greatly appreciated.

Thanks, Case
Apr 7 '08 #1
3 1251
CaseT wrote:
Hi,

My company's website is down so I'm hoping someone has seen this
bizarre problem/behavior before and can help me out
.
We have a USA and an International site. Two directories under the web
server root.
index.html in the web server root directory links to each
/usa/index.php
/intl/index.php

I include the same template files in each .php file under each
directory. My /usa directory renders correctly. But starting today my /
intl directory started exhibiting this weird behavior.

- Viewing the intl/index.php my included template at the top of the
page is all of sudden not working(the code is not included in the
file).
- Yet the same template is used in all the rest of the files in the /
intl directory and the code from the template *is* included.
- When I cut and paste the template code directly in the index.php
file, *it* renders correctly but *all* the other files stop working.
The code is not included.

I've copied the /usa/index.php file to the /intl directory, since it
renders correctly, and I see the same problem. Them template code is
not included in the file.

All permissions on the files are correct.

Any help would be greatly appreciated.

Thanks, Case
Code and a URL would help. Otherwise we're just shooting in the dark.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Apr 8 '08 #2
On Mon, 07 Apr 2008 22:08:49 -0400, Jerry Stuckle
<js*******@attglobal.netwrote:
>
Code and a URL would help. Otherwise we're just shooting in the dark.
Indeed.
But I suspect an include path problem.
HOW/WHY it suddenly happened is another matter!

Host restored php.ini from a backup?
OP replaced an .htaccess?
--
Locate your Mobile phone: <http://www.bizorg.co.uk/news.html>
Great gifts: <http://www.ThisBritain.com/ASOS_popup.html>
Apr 8 '08 #3
But I suspect an include path problem.
HOW/WHY it suddenly happened is another matter!
How and why is not important. Just do not use relative paths for
inclusion unless you know what you are doing. My guesses are:
- Your config has changed (duh!)
- You added a file with the same name in another directory and _that_
file is included if you use relative paths.

Relative paths do not work with respect to the current file, they work
with respect to the called file. That is, they don't work reliably at
all. Instead of:

require_once('library/settings.php');

write

require_once(dirname(__FILE__) . '/library/settings.php');

Best regards,
--
Willem Bogaerts

Application smith
Kratz B.V.
http://www.kratz.nl/
Apr 8 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: choksi | last post by:
Hello All I am running PHP5.0.2 over apache 1.3.29 and openssl-0.9.7d on a Debian Linux and with a fake (internal)ip. Php Configure command './configure' '--with-apxs=/www/bin/apxs'...
10
by: Tony Archer | last post by:
Gentlemen, your urgent help is needed in solving a STRANGE problem. I have two servers a dev box, and a production box. On the dev box everything works fine, in production it hoses: One of...
1
by: Tony Archer | last post by:
(Forgive the dupicate post, I had left out the OS Version out of the prior post.) Gentlemen, your urgent help is needed in solving a STRANGE problem. I have two servers a dev box, and a...
12
by: Vibhajha | last post by:
Hi friends, My sister is in great problem , she has this exam of C++ and she is stuck up with some questions, if friends like this group provides some help to her, she will be very grateful....
4
by: Random | last post by:
The way I've built my page is to take the user through a multi-form process, only rendering those controls that are needed for each section. The ViewState is working the way I want it to,...
0
by: IT Recruiter | last post by:
*Very Urgent Rek - SQL Server DBA from Direct Client: Full time* @ New Jersey ***Please send your resumes IMMEDIATELY to nslakshmi@eprocorp.com*** Job Title: SQL Server Developer with...
7
by: meenasamy | last post by:
Hi all, i need to create a function that takes three parameters( Original currency, needed currency, amount) i need to convert from the original currency to the needed currency the amount and...
3
by: N. Spiker | last post by:
I am attempting to receive a single TCP packet with some text ending with carriage return and line feed characters. When the text is send and the packet has the urgent flag set, the text read from...
2
by: Preetam Pattanashetty | last post by:
Hi I am learning ASP.NET using C#. I am able to run .aspx files on local system, but when I load them to the server, I get the "Server Error in '/' Application" error. I have tried to configure the...
0
by: Christopher | last post by:
Urgent Help Needed: The EPVH-1.1 Visual Hull Library. Dear All, I am a student doing research in computer vision. The EPVH-1.1 Visual Hull Library will really help a lot in my research. I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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 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.