Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 24th, 2004, 05:03 PM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default code visible on website

Our website www.blocdcl.com is showing code on most pages. Can anyone help as our developer has gone to Europe for an extended trip? The page was working fine and then all of a sudden after some security patches were installed on our win 200 server the code starts appearing.
 
Old September 25th, 2004, 09:02 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 256
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't usually bother with IIS these days, but it looks like a text file that the code is trying to open, write to and then close again (perhaps an access log, or something) has either been removed or (more likely) had its permissions changed so that PHP is no longer allowed access to it.

For what it is worth, the problem lies at lines 9, 10 and 11 of your info.php file. Find out what the file is that the code is trying to manipulate and see if a) it's present, and b) what its permissions are. On a wider issue, I'd see if there was any way to stop IIS from spittting out such sensitive data next time Microsoft "fix" it for you ;). It should be possible to change the level of error reporting to prevent information about your machine'sdirectory structure being chocked up any time something like this goes wrong. Ask your developer to alter the error_reporting setting to 'None' or zero (http://uk.php.net/manual/en/ref.erro...func.constants).

Maybe someone with more recent experience with IIS can be of more help...

By the way, nice websirte: shame about the server!

Dan
 
Old September 25th, 2004, 10:06 AM
Registered User
 
Join Date: Sep 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

I had a similar error message with this <td><?PHP include ("http://www.costa-blanca-resales.com/feature_insert.php") ?></td>

I cured it by inserting an ampersand (@) infront of the code, this suppress error messages.

This does not give any error message.
<td><?PHP @include ("http://www.costa-blanca-resales.com/feature_insert.php") ?></td>

Might be worth a try.



 
Old September 25th, 2004, 11:02 AM
Authorized User
 
Join Date: Aug 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to dkittell Send a message via AIM to dkittell Send a message via Yahoo to dkittell
Default

If you were to post the code for the info.php page some of here may be able to help but it appears that you have a lot of pages that rely on that page to work and to agree with Dan it appears to be pulling info from another file. I used to manage IIS, I now have fully converted to Unix as it is more stable, but if you post the code I'm sure I and or someone else could get this fixed for you.

---
David Kittell





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to code to set 'Visible' a field value cJeffreywang ASP.NET 2.0 Basics 1 February 28th, 2008 11:51 PM
Dynamic website to Static website Aboal3ood ASP.NET 1.x and 2.0 Application Design 4 December 7th, 2006 11:46 AM
visible vs. not visible on form akibaMaila VB.NET 2002/2003 Basics 2 August 15th, 2005 02:40 PM
The Code of book ASP.NET Website Programming Error jackahu BOOK: ASP.NET Website Programming Problem-Design-Solution 0 June 16th, 2004 11:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.