Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Error while using php include

Featured Replies

hello friends,

 

I am a newbie in php and have used 1 include in my page but i get the following erroru can se above the menu

 

 

 

here is my menu.php which works fine on the page but i  have use aszip handler at the top of the page above all code is it because of this if yes how shold i structure the code?

 

<?
// The next lines sets gzip compression on!
ob_start("ob_gzhandler");
?>

 

the error reads 

 

 

Warning: ob_start() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used twice in /home/neophyte/public_html/menu.php on line 3

 

 

this is the gzip i used at the top of page for fast loading 

 

and in the body tag i have included the menu.php  

<?php include("menu.php"); ?>

Hi,

Nice site.

However, I guess you have fixed the problem because it doesn't show now.

 

 

  • Author

post-13318-126053343826_thumb.png

 

 

 

 

 

here is the error above the navigation bar

 

 

Have you seen this in the manual.

Note
:
ob_gzhandler()
requires the
extension.

 

 

Note
: You cannot use both
ob_gzhandler()
and
. Also note that using
is preferred over
ob_gzhandler()
.

 

And, these functions must be used BEFORE any output is sent to the Browser - even a single space.

  • Author

Have you seen this in the manual.

Note
:
ob_gzhandler()
requires the
extension.

 

 

Note
: You cannot use both
ob_gzhandler()
and
. Also note that using
is preferred over
ob_gzhandler()
.

 

And, these functions must be used BEFORE any output is sent to the Browser - even a single space.

 

 

 

buut i haven usid ob_gzhandler() twice i have just used it once at the top of the page

 

 

ok thx i solved it actually it say :good: s i cant use gzip handler in my menu.php file

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.