NYCPHP Meetup

NYPHP.org

[nycphp-talk] Help With My Contact Centre Website

Robert Stoll rstoll at tutteli.ch
Fri Sep 27 13:05:08 EDT 2013


Hi Sasa

 

Thanks for your explanation.

 

Best regards,

Robert

 

From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Sasa Rakic - Gmail
Sent: Friday, September 27, 2013 7:00 PM
To: 'NYPHP Talk'
Subject: Re: [nycphp-talk] Help With My Contact Centre Website

 

Hi Robert,

 

If you have file:

 

<?php

 

                echo "test";

 

?>[space] [space]

 

When loading this php file and extra spaces will be sent to browser, this
will

Break session start or cookies sent from php script after spaces.

 

If you write:

 

<?php

 

                echo "test";

 

[space] [space]

 

PHP engine will not write spaces, as there is not ?> tag, it will be parsed
as:

 

 

<?php

 

                echo "test";

 

[space] [space]

?>

 

Best Regards,

Sasa

 

 

From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Robert Stoll
Sent: Friday, September 27, 2013 6:56 PM
To: 'NYPHP Talk'
Subject: Re: [nycphp-talk] Help With My Contact Centre Website

 

Hi,

 

Could you please elaborate why modern frameworks are omitting ?>

 

Cheers,

Robert

 

From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Sasa Rakic - Gmail
Sent: Friday, September 27, 2013 6:53 PM
To: 'NYPHP Talk'
Subject: Re: [nycphp-talk] Help With My Contact Centre Website

 

Hi,

 

Modern frameworks do not close php tag <? In php file, so if you have normal
code:

 

<?php

 

                echo "test";

 

?>

 

in modern frameworks it will be

 

<?php

 

                echo "test";

 

 

Best Regards,

Sasa

 

From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Jeff Slutz
Sent: Friday, September 27, 2013 6:46 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Help With My Contact Centre Website

 

I've also run into the "headers already sent" sort of issue being caused by
line breaks or white space after a closing php marker "?>".  This is
considered output to the screen and then any following php header() commands
will fail.




--
Jeff Slutz 
JSLEUTH LLC

2105 N Fork Drive

Lafayette, CO 80026

c. 970.443.9390
jeff at jeffslutz.com

 

On Fri, Sep 27, 2013 at 10:38 AM, Ajai Khattri <ajai at bitblit.net> wrote:

On Fri, Sep 27, 2013 at 10:04:53AM -0400, Tedd Sperling wrote:

> 1. The error "headers already sent " is created when you have already sent
stuff to the browser and try to do it again. Functions that send/modify HTTP
headers must be invoked before any output is made. Otherwise the call fails.

Could also be caused by errors generating output - so check your web
server error logs.


--
Aj.
FaceBook: facebook.com/ajaikhattri
EnoLand: http://flip.it/Gig0n

_______________________________________________
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

http://www.nyphp.org/show-participation

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20130927/e972bba5/attachment-0001.html>


More information about the talk mailing list