Dear Imran,
           What you have told is correct? But you can
put that ob_start(); function before the line of
header() function. That means if there is no html or
echo statments inbetween ob_start and header funcions
it will work fine. Check it.
With regards,
Arun
--- imran shafiq <[EMAIL PROTECTED]> wrote:


---------------------------------
Dear Arun
Thanks, ob_start(); is working on pure .php file if
any file containing html and php code both ob_start();
is not working and following error is still there.
Warning : header("Location:first.php); already send
at line no. .....
Waiting for your response.
Imran Shafiq
--- arunmohan kamalakannan <[EMAIL PROTECTED]>
wrote:

> Dear Imran Shafiq,
>                 Write ob_start(); function at the
> first line of your code or file. Then it will not
> complain like this.
> Thanks and regards,
> Arun
> --- imran shafiq <[EMAIL PROTECTED]> wrote:
> 
> 
> ---------------------------------
> Dear Experts
> I am facing following error in my PHP code
> Warning : header("Location:first.php); already send
> at
> line no. .....
> for example:
> if(a==0&&b==99)
> {      
>       header("Location:first.php);
>       exit;
> }
> else
> {
>       if(c<50||d>70)
>       {
>             header("Location:second.php);
>             exit;
>       }
>       elseif(c>50||d<70)
>       {
>             header("Location:first.php);
>             exit;
>       }
>       else
>       {
>             header("Location:first.php);
>             exit;
>       }
> }
>  I am waiting for your responce
> Imran shafiq
> 
> 
>       
>       
>             
>
___________________________________________________________
> 
> Yahoo! Messenger - NEW crystal clear PC to PC
> calling
> worldwide with voicemail
> http://uk.messenger.yahoo.com
> 
> 
> Community email addresses:
>   Post message: [email protected]
>   Subscribe:    [EMAIL PROTECTED]
>   Unsubscribe:  [EMAIL PROTECTED]
>   List owner:   [EMAIL PROTECTED]
> 
> Shortcut URL to this page:
>   http://groups.yahoo.com/group/php-list
> 
>       
> 
>       SPONSORED LINKS  
>                                                 Php
> mysql                                    Job
> postings 
>                                      
>     
> ---------------------------------
>   YAHOO! GROUPS LINKS
> 
>   
>     Visit your group "php-list" on the web.
>    
>     To unsubscribe from this group, send an email
> to:
>  [EMAIL PROTECTED]
>    
>     Your use of Yahoo! Groups is subject to the
> Yahoo!
> Terms of Service.
> 
>   
> ---------------------------------
> 
> 
> 
> 
> 
>             
>
__________________________________________________________
> 
> Yahoo! India Matrimony: Find your partner now. Go to
> http://yahoo.shaadi.com
> 



            
___________________________________________________________

How much free photo storage do you get? Store your
holiday 
snaps for FREE with Yahoo! Photos
http://uk.photos.yahoo.com


Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list

  
    
---------------------------------
  YAHOO! GROUPS LINKS

  
    Visit your group "php-list" on the web.
   
    To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   
    Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service.

  
---------------------------------





                
__________________________________________________________ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/HKFolB/TM
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




Reply via email to