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 August 19th, 2004, 03:40 AM
Registered User
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default [Question]Warning: Cannot modify header informatio

The screen outputs is below:
1. Warning: main(../config.php): failed to open stream: No such file or directory in
2. Warning: main(): Failed opening '../config.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in
3. Warning: Cannot modify header information - headers already sent by (output started at
4. Warning: session_start(): Cannot send session cookie - headers already sent by (output started at
5. Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at
6. Fatal error: Call to undefined function: mysql_pconnect() in

The problem is that the PHP app is avalaible on Slackware 10.0, but unavalaible in Debian 3.0 Testing.

I tried to solved those error accoding to PHP official website, http://cn2.php.net/manual/en/faq.us...ng.headers-sent. It rerun. But why it don't run on Debian as Slackware?

Old August 19th, 2004, 05:16 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 256
Thanks: 0
Thanked 0 Times in 0 Posts

To judge from your error, the file 'config.php' is missing from the directory one down from the one that the page you are trying to run sits in. Most of the rest of the output is generated by that fact. Copy 'config.php' across onto your Debian box from your Slackware one, and you're good to go.

The mysql_pconnect error tells us that PHP isn't recognising the function call as part of its native language set. The commonest reason for this, is that PHP has been compiled on the Debian box without the mysql function libraries included.

However, fixe PROBLEM 1, first, and get rid of that Failed opening warning: copy across your config.php file from the Slackware machine. Once that warning is out of the way, we can then try and decipher why you are getting that second error.

Take it easy,

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple header question smhaig BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 February 13th, 2007 05:07 PM
Warning: Header may not contain more than a single karuna_revuri Beginning PHP 1 August 21st, 2006 04:31 PM
Yet another Cannot modify header question TimB Beginning PHP 2 November 26th, 2005 11:43 PM
Modify header and footer of word file in ASP Andraw Classic ASP Basics 1 January 14th, 2005 08:04 PM
PHP ( Cannot modify header information) squared_ring Beginning PHP 6 August 14th, 2004 05:29 AM

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