Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 19th, 2004, 03:40 AM
Registered User
Join Date: Aug 2004
Location: , , .
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?

Reply With Quote
  #2 (permalink)  
Old August 19th, 2004, 05:16 AM
Friend of Wrox
Join Date: Jun 2003
Location: , , United Kingdom.
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,
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 03:21 PM.

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