FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » @sessionstart()
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
@sessionstart() [message #169508] Thu, 16 September 2010 00:58 Go to next message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma: 0
Senior Member
Hi,

I came across a suggestion to use "@sessionstart()" for a problem where it
couldn't be figured out what was sending data before the session start
command. Unfortunately there was no explanatory link or anything else to
tell me more about adding the "@" to sessionstart(); e.g. @sessionstart().

Can anyone lead me to any informaton on the what, why, when, of using the
"at" sign that way as a prefix?

I've googled, searched php.net's Manual and several other resources I have
but no luck. Forums are either ridiculously slow or not working at all
tonite for some reason so I haven't checked forums, but it shouldn't be this
hard to find something like this, assuming it's legitmate and not someone's
bad memory<g>. I'm hoping someone here can give me a lead.
My expertise level would still be "beginner", I'd guess, especially in
this area.

TIA,

Twayne`


--
Life is the only real counselor; wisdom unfiltered
through personal experience does not become a
part of the moral tissue.
Re: @sessionstart() [message #169509 is a reply to message #169508] Thu, 16 September 2010 01:06 Go to previous messageGo to next message
rf is currently offline  rf
Messages: 19
Registered: September 2010
Karma: 0
Junior Member
"Twayne" <nobody(at)devnull(dot)spamcop(dot)net> wrote in message
news:i6rq4b$agh$1(at)news(dot)eternal-september(dot)org...
> Hi,
>
> I came across a suggestion to use "@sessionstart()" for a problem where it
> couldn't be figured out what was sending data before the session start
> command.

That was not a very good suggestion.

> Unfortunately there was no explanatory link or anything else to tell me
> more about adding the "@" to sessionstart(); e.g. @sessionstart().
>
> Can anyone lead me to any informaton on the what, why, when, of using the
> "at" sign that way as a prefix?

@ simply supresses errors. Your sessionstart() was causing errors because
headers had already been sent. @ supressed those error messages. It didn't
fix the problem, just made it invisible.

You should *rarely* have a need for @.
Re: @sessionstart() [message #169510 is a reply to message #169509] Thu, 16 September 2010 01:13 Go to previous messageGo to next message
rf is currently offline  rf
Messages: 19
Registered: September 2010
Karma: 0
Junior Member
"rf" <rf(at)z(dot)invalid> wrote in message
news:i4eko(dot)6537$Yv(dot)5822(at)viwinnwfe01(dot)internal(dot)bigpond(dot)com...
>
> "Twayne" <nobody(at)devnull(dot)spamcop(dot)net> wrote in message
> news:i6rq4b$agh$1(at)news(dot)eternal-september(dot)org...

>> Can anyone lead me to any informaton on the what, why, when, of using the
>> "at" sign that way as a prefix?
>
> @ simply supresses errors.

To be more clear, @ supresses error *messages*.
Re: @sessionstart() [message #169513 is a reply to message #169508] Thu, 16 September 2010 09:53 Go to previous messageGo to next message
Captain Paralytic is currently offline  Captain Paralytic
Messages: 204
Registered: September 2010
Karma: 0
Senior Member
On 16 Sep, 01:58, "Twayne" <nob...@devnull.spamcop.net> wrote:
> Hi,
>
> I came across a suggestion to use "@sessionstart()" for a problem where it
> couldn't be figured out what was sending data before the session start
> command. Unfortunately there was no explanatory link or anything else to
> tell me more about adding the "@" to sessionstart(); e.g. @sessionstart()..
>
> Can anyone lead me to any informaton on the what, why, when, of using the
> "at" sign that way as a prefix?
>
> I've googled, searched php.net's Manual and several other resources I have
> but no luck. Forums are either ridiculously slow or not working at all
> tonite for some reason so I haven't checked forums, but it shouldn't be this
> hard to find something like this, assuming it's legitmate and not someone's
> bad memory<g>. I'm hoping someone here can give me a lead.
>    My expertise level would still be "beginner", I'd guess, especially in
> this area.

special characters like @ are almost impossible to find on a search so
it's not surprising that you couldn't find it.

It's documented here:
http://www.php.net/manual/en/language.operators.errorcontrol.php
Re: @sessionstart() [message #169515 is a reply to message #169509] Thu, 16 September 2010 12:07 Go to previous messageGo to next message
matt[1] is currently offline  matt[1]
Messages: 40
Registered: September 2010
Karma: 0
Member
On Sep 15, 9:06 pm, "rf" <r...@z.invalid> wrote:
> "Twayne" <nob...@devnull.spamcop.net> wrote in message
>
> news:i6rq4b$agh$1(at)news(dot)eternal-september(dot)org...
>
>> Hi,
>
>> I came across a suggestion to use "@sessionstart()" for a problem where it
>> couldn't be figured out what was sending data before the session start
>> command.
>
> That was not a very good suggestion.
>
>> Unfortunately there was no explanatory link or anything else to tell me
>> more about adding the "@" to sessionstart(); e.g. @sessionstart().
>
>> Can anyone lead me to any informaton on the what, why, when, of using the
>> "at" sign that way as a prefix?
>
> @ simply supresses errors.  Your sessionstart() was causing errors because
> headers had already been sent. @ supressed those error messages. It didn't
> fix the problem, just made it invisible.
>
> You should *rarely* have a need for @.

I contend that you *never* have a need...
Re: @sessionstart() [message #169516 is a reply to message #169510] Thu, 16 September 2010 12:12 Go to previous messageGo to next message
sheldonlg is currently offline  sheldonlg
Messages: 166
Registered: September 2010
Karma: 0
Senior Member
On 9/15/2010 9:13 PM, rf wrote:
> "rf"<rf(at)z(dot)invalid> wrote in message
> news:i4eko(dot)6537$Yv(dot)5822(at)viwinnwfe01(dot)internal(dot)bigpond(dot)com...
>>
>> "Twayne"<nobody(at)devnull(dot)spamcop(dot)net> wrote in message
>> news:i6rq4b$agh$1(at)news(dot)eternal-september(dot)org...
>
>>> Can anyone lead me to any informaton on the what, why, when, of using the
>>> "at" sign that way as a prefix?
>>
>> @ simply supresses errors.
>
> To be more clear, @ supresses error *messages*.

Maybe I am missing something, but where is sessionstart? I know about
session_start, but the manual says nothing about sessionstart.

--
Shelly
Re: @sessionstart() [message #169517 is a reply to message #169516] Thu, 16 September 2010 12:21 Go to previous messageGo to next message
rf is currently offline  rf
Messages: 19
Registered: September 2010
Karma: 0
Junior Member
<sheldonlg> wrote in message
news:Gs2dnSlFMLutlw_RnZ2dnUVZ_rqdnZ2d(at)giganews(dot)com...
> On 9/15/2010 9:13 PM, rf wrote:
>> "rf"<rf(at)z(dot)invalid> wrote in message
>> news:i4eko(dot)6537$Yv(dot)5822(at)viwinnwfe01(dot)internal(dot)bigpond(dot)com...
>>>
>>> "Twayne"<nobody(at)devnull(dot)spamcop(dot)net> wrote in message
>>> news:i6rq4b$agh$1(at)news(dot)eternal-september(dot)org...
>>
>>>> Can anyone lead me to any informaton on the what, why, when, of using
>>>> the
>>>> "at" sign that way as a prefix?
>>>
>>> @ simply supresses errors.
>>
>> To be more clear, @ supresses error *messages*.
>
> Maybe I am missing something, but where is sessionstart? I know about
> session_start, but the manual says nothing about sessionstart.

Perhaps that's the error message Twayne needs to hide with @.
Re: @sessionstart() [message #169522 is a reply to message #169516] Fri, 17 September 2010 01:11 Go to previous messageGo to next message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma: 0
Senior Member
In news:Gs2dnSlFMLutlw_RnZ2dnUVZ_rqdnZ2d(at)giganews(dot)com,
sheldonlg <sheldonlg> typed:
> On 9/15/2010 9:13 PM, rf wrote:
>> "rf"<rf(at)z(dot)invalid> wrote in message
>> news:i4eko(dot)6537$Yv(dot)5822(at)viwinnwfe01(dot)internal(dot)bigpond(dot)com...
>>>
>>> "Twayne"<nobody(at)devnull(dot)spamcop(dot)net> wrote in message
>>> news:i6rq4b$agh$1(at)news(dot)eternal-september(dot)org...
>>
>>>> Can anyone lead me to any informaton on the what, why,
>>>> when, of using the "at" sign that way as a prefix?
>>>
>>> @ simply supresses errors.
>>
>> To be more clear, @ supresses error *messages*.
>
> Maybe I am missing something, but where is sessionstart? I
> know about session_start, but the manual says nothing about
> sessionstart.

Consider it lazy typing; should have been session_start() but since I meant
the context and not the command, I left things out.

HTH,

Twayne`
Re: @sessionstart() [message #169523 is a reply to message #169509] Fri, 17 September 2010 01:14 Go to previous messageGo to next message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma: 0
Senior Member
In news:i4eko.6537$Yv(dot)5822(at)viwinnwfe01(dot)internal(dot)bigpond(dot)com,
rf <rf(at)z(dot)invalid> typed:
> "Twayne" <nobody(at)devnull(dot)spamcop(dot)net> wrote in message
> news:i6rq4b$agh$1(at)news(dot)eternal-september(dot)org...
>> Hi,
>>
>> I came across a suggestion to use "@sessionstart()" for a
>> problem where it couldn't be figured out what was sending
>> data before the session start command.
>
> That was not a very good suggestion.
>
>> Unfortunately there was no explanatory link or anything
>> else to tell me more about adding the "@" to
>> sessionstart(); e.g. @sessionstart(). Can anyone lead me to any
>> informaton on the what, why,
>> when, of using the "at" sign that way as a prefix?
>
> @ simply supresses errors. Your sessionstart() was causing
> errors because headers had already been sent. @ supressed
> those error messages. It didn't fix the problem, just made
> it invisible.
> You should *rarely* have a need for @.

Ah, that makes sense; the only other place I've ever seen "@" is with "echo"
so I figured it might be something akin to that. Ass-u-me-ing isn't the best
learninig tool though<g>!

Thanks,

Twayne`
Re: @sessionstart() [message #169524 is a reply to message #169510] Fri, 17 September 2010 01:17 Go to previous messageGo to next message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma: 0
Senior Member
In news:rbeko.6660$FH2(dot)3212(at)viwinnwfe02(dot)internal(dot)bigpond(dot)com,
rf <rf(at)z(dot)invalid> typed:
> "rf" <rf(at)z(dot)invalid> wrote in message
> news:i4eko(dot)6537$Yv(dot)5822(at)viwinnwfe01(dot)internal(dot)bigpond(dot)com...
>>
>> "Twayne" <nobody(at)devnull(dot)spamcop(dot)net> wrote in message
>> news:i6rq4b$agh$1(at)news(dot)eternal-september(dot)org...
>
>>> Can anyone lead me to any informaton on the what, why,
>>> when, of using the "at" sign that way as a prefix?
>>
>> @ simply supresses errors.
>
> To be more clear, @ supresses error *messages*.

Actually, after playing with it a bit, it seems to do a bit more than that.
Seems more like it suppresses ANY messages that might go to the screen for
any particular command. I tried it on a few other lines like "@some-command"
etc., and the screen output gets suppressed there too but not always.

Thanks,

Twayne`
RESOLVED Re: @sessionstart() [message #169525 is a reply to message #169513] Fri, 17 September 2010 01:31 Go to previous messageGo to next message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma: 0
Senior Member
Great; thank you! Much appreciated.

Twayne`


In news:4ba568ea-431d-4b60-931b-a12eaaf406b9(at)y31g2000vbt(dot)googlegroups(dot)com,
Captain Paralytic <paul_lautman(at)yahoo(dot)com> typed:
> On 16 Sep, 01:58, "Twayne" <nob...@devnull.spamcop.net>

....

>
> special characters like @ are almost impossible to find on
> a search so it's not surprising that you couldn't find it.
>
> It's documented here:
> http://www.php.net/manual/en/language.operators.errorcontrol.php
Re: @sessionstart() [message #169526 is a reply to message #169524] Fri, 17 September 2010 01:36 Go to previous messageGo to next message
rf is currently offline  rf
Messages: 19
Registered: September 2010
Karma: 0
Junior Member
"Twayne" <nobody(at)devnull(dot)spamcop(dot)net> wrote in message
news:i6ufka$lk1$1(at)news(dot)eternal-september(dot)org...
> In news:rbeko.6660$FH2(dot)3212(at)viwinnwfe02(dot)internal(dot)bigpond(dot)com,
> rf <rf(at)z(dot)invalid> typed:
>> "rf" <rf(at)z(dot)invalid> wrote in message
>> news:i4eko(dot)6537$Yv(dot)5822(at)viwinnwfe01(dot)internal(dot)bigpond(dot)com...
>>>
>>> "Twayne" <nobody(at)devnull(dot)spamcop(dot)net> wrote in message
>>> news:i6rq4b$agh$1(at)news(dot)eternal-september(dot)org...
>>
>>>> Can anyone lead me to any informaton on the what, why,
>>>> when, of using the "at" sign that way as a prefix?
>>>
>>> @ simply supresses errors.
>>
>> To be more clear, @ supresses error *messages*.
>
> Actually, after playing with it a bit, it seems to do a bit more than
> that.

Why not read the relevant section of the manual?
http://php.net/manual/en/language.operators.errorcontrol.php
Re: @sessionstart() [message #169527 is a reply to message #169526] Fri, 17 September 2010 01:56 Go to previous messageGo to next message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma: 0
Senior Member
In news:nCzko.6637$Yv(dot)1219(at)viwinnwfe01(dot)internal(dot)bigpond(dot)com,
rf <rf(at)z(dot)invalid> typed:
> "Twayne" <nobody(at)devnull(dot)spamcop(dot)net> wrote in message
> news:i6ufka$lk1$1(at)news(dot)eternal-september(dot)org...
>> In
>> news:rbeko.6660$FH2(dot)3212(at)viwinnwfe02(dot)internal(dot)bigpond(dot)com, rf
>> <rf(at)z(dot)invalid> typed:
>>> "rf" <rf(at)z(dot)invalid> wrote in message
>>> news:i4eko(dot)6537$Yv(dot)5822(at)viwinnwfe01(dot)internal(dot)bigpond(dot)com...
>>>>
>>>> "Twayne" <nobody(at)devnull(dot)spamcop(dot)net> wrote in message
>>>> news:i6rq4b$agh$1(at)news(dot)eternal-september(dot)org...
>>>
>>>> > Can anyone lead me to any informaton on the what, why,
>>>> > when, of using the "at" sign that way as a prefix?
>>>>
>>>> @ simply supresses errors.
>>>
>>> To be more clear, @ supresses error *messages*.
>>
>> Actually, after playing with it a bit, it seems to do a
>> bit more than that.
>
> Why not read the relevant section of the manual?
> http://php.net/manual/en/language.operators.errorcontrol.php

I did ... when I came to it. But I still stand by my experiments. I
wouldn't consider what "@echo" suppresses to be an error message, BTW. @ is
explained differently with the Echo command.
Re: @sessionstart() [message #169532 is a reply to message #169527] Fri, 17 September 2010 09:31 Go to previous messageGo to next message
Erwin Moller is currently offline  Erwin Moller
Messages: 228
Registered: September 2010
Karma: 0
Senior Member
On 9/17/2010 3:56 AM, Twayne wrote:
> In news:nCzko.6637$Yv(dot)1219(at)viwinnwfe01(dot)internal(dot)bigpond(dot)com,
> rf<rf(at)z(dot)invalid> typed:
>> "Twayne"<nobody(at)devnull(dot)spamcop(dot)net> wrote in message
>> news:i6ufka$lk1$1(at)news(dot)eternal-september(dot)org...
>>> In
>>> news:rbeko.6660$FH2(dot)3212(at)viwinnwfe02(dot)internal(dot)bigpond(dot)com, rf
>>> <rf(at)z(dot)invalid> typed:
>>>> "rf"<rf(at)z(dot)invalid> wrote in message
>>>> news:i4eko(dot)6537$Yv(dot)5822(at)viwinnwfe01(dot)internal(dot)bigpond(dot)com...
>>>> >
>>>> > "Twayne"<nobody(at)devnull(dot)spamcop(dot)net> wrote in message
>>>> > news:i6rq4b$agh$1(at)news(dot)eternal-september(dot)org...
>>>>
>>>> >> Can anyone lead me to any informaton on the what, why,
>>>> >> when, of using the "at" sign that way as a prefix?
>>>> >
>>>> > @ simply supresses errors.
>>>>
>>>> To be more clear, @ supresses error *messages*.
>>>
>>> Actually, after playing with it a bit, it seems to do a
>>> bit more than that.
>>
>> Why not read the relevant section of the manual?
>> http://php.net/manual/en/language.operators.errorcontrol.php
>
> I did ... when I came to it. But I still stand by my experiments. I
> wouldn't consider what "@echo" suppresses to be an error message, BTW. @ is
> explained differently with the Echo command.
>
>

Twayne,

When in doubt, feel free to post a few examples of statements you
created in combination with @ that give results you don't understand.
I am sure we can explain why what happens.


Regards,
Erwin Moller

PS: Like most in here I also think you should avoid @ in almost any
situation. Surely for session_start() you don't need it.


--
"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies. The first method is far more difficult."
-- C.A.R. Hoare
Re: @sessionstart() [message #169535 is a reply to message #169532] Fri, 17 September 2010 10:01 Go to previous messageGo to next message
rf is currently offline  rf
Messages: 19
Registered: September 2010
Karma: 0
Junior Member
"Erwin Moller"
<Since_humans_read_this_I_am_spammed_too_much(at)spamyourself(dot)com> wrote in
message news:4c93354b$0$41115$e4fe514c(at)news(dot)xs4all(dot)nl...
> On 9/17/2010 3:56 AM, Twayne wrote:
>> In news:nCzko.6637$Yv(dot)1219(at)viwinnwfe01(dot)internal(dot)bigpond(dot)com,
>> rf<rf(at)z(dot)invalid> typed:
>>> "Twayne"<nobody(at)devnull(dot)spamcop(dot)net> wrote in message
>>> news:i6ufka$lk1$1(at)news(dot)eternal-september(dot)org...
>>>> In
>>>> news:rbeko.6660$FH2(dot)3212(at)viwinnwfe02(dot)internal(dot)bigpond(dot)com, rf
>>>> <rf(at)z(dot)invalid> typed:
>>>> > "rf"<rf(at)z(dot)invalid> wrote in message
>>>> > news:i4eko(dot)6537$Yv(dot)5822(at)viwinnwfe01(dot)internal(dot)bigpond(dot)com...
>>>> >>
>>>> >> "Twayne"<nobody(at)devnull(dot)spamcop(dot)net> wrote in message
>>>> >> news:i6rq4b$agh$1(at)news(dot)eternal-september(dot)org...
>>>> >
>>>> >>> Can anyone lead me to any informaton on the what, why,
>>>> >>> when, of using the "at" sign that way as a prefix?
>>>> >>
>>>> >> @ simply supresses errors.
>>>> >
>>>> > To be more clear, @ supresses error *messages*.
>>>>
>>>> Actually, after playing with it a bit, it seems to do a
>>>> bit more than that.
>>>
>>> Why not read the relevant section of the manual?
>>> http://php.net/manual/en/language.operators.errorcontrol.php
>>
>> I did ... when I came to it. But I still stand by my experiments. I
>> wouldn't consider what "@echo" suppresses to be an error message, BTW. @
>> is
>> explained differently with the Echo command.
>>
>>
>
> Twayne,
>
> When in doubt, feel free to post a few examples of statements you created
> in combination with @ that give results you don't understand.
> I am sure we can explain why what happens.
>
>
> Regards,
> Erwin Moller
>
> PS: Like most in here I also think you should avoid @ in almost any
> situation. Surely for session_start() you don't need it.

Especially for session_start. If that fails (and you don't get to hear about
it) then all sorts of chaos will ensue later on in the script, and sometimes
for the most baffling of reasons.
Re: @sessionstart() [message #169567 is a reply to message #169535] Fri, 17 September 2010 22:28 Go to previous message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma: 0
Senior Member
In news:90Hko.6778$FH2(dot)4405(at)viwinnwfe02(dot)internal(dot)bigpond(dot)com,
rf <rf(at)z(dot)invalid> typed:
> "Erwin Moller"
> <Since_humans_read_this_I_am_spammed_too_much(at)spamyourself(dot)com>
> wrote in message
> news:4c93354b$0$41115$e4fe514c(at)news(dot)xs4all(dot)nl...
>> On 9/17/2010 3:56 AM, Twayne wrote:
>>> In
>>> news:nCzko.6637$Yv(dot)1219(at)viwinnwfe01(dot)internal(dot)bigpond(dot)com,
>>> rf<rf(at)z(dot)invalid> typed:
>>>> "Twayne"<nobody(at)devnull(dot)spamcop(dot)net> wrote in message
>>>> news:i6ufka$lk1$1(at)news(dot)eternal-september(dot)org...
>>>> > In
>>>> > news:rbeko.6660$FH2(dot)3212(at)viwinnwfe02(dot)internal(dot)bigpond(dot)com,
>>>> > rf <rf(at)z(dot)invalid> typed:
>>>> >> "rf"<rf(at)z(dot)invalid> wrote in message
>>>> >> news:i4eko(dot)6537$Yv(dot)5822(at)viwinnwfe01(dot)internal(dot)bigpond(dot)com...
>>>> >>>
>>>> >>> "Twayne"<nobody(at)devnull(dot)spamcop(dot)net> wrote in message
>>>> >>> news:i6rq4b$agh$1(at)news(dot)eternal-september(dot)org...
>>>> >>
>>>> >>>> Can anyone lead me to any informaton on the what,
>>>> >>>> why, when, of using the "at" sign that way as a
>>>> >>>> prefix?
>>>> >>>
>>>> >>> @ simply supresses errors.
>>>> >>
>>>> >> To be more clear, @ supresses error *messages*.
>>>> >
>>>> > Actually, after playing with it a bit, it seems to do a
>>>> > bit more than that.
>>>>
>>>> Why not read the relevant section of the manual?
>>>> http://php.net/manual/en/language.operators.errorcontrol.php
>>>
>>> I did ... when I came to it. But I still stand by my
>>> experiments. I wouldn't consider what "@echo" suppresses
>>> to be an error message, BTW. @ is
>>> explained differently with the Echo command.
>>>
>>>
>>
>> Twayne,
>>
>> When in doubt, feel free to post a few examples of
>> statements you created in combination with @ that give
>> results you don't understand. I am sure we can explain why what happens.
>>
>>
>> Regards,
>> Erwin Moller
>>
>> PS: Like most in here I also think you should avoid @ in
>> almost any situation. Surely for session_start() you don't
>> need it.
>
> Especially for session_start. If that fails (and you don't
> get to hear about it) then all sorts of chaos will ensue
> later on in the script, and sometimes for the most baffling
> of reasons.

Oh, I'm convinced; no arguements from this end! I've had to put it into my
"someday" list though - much as I'd like to, no time to pursue further.
Besides, it's one of those "no future" kind of things - curious, but takes
time I don't have.

Thanks much though! This seems like a great group!

Twayne`
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: When do I use {}?
Next Topic: Php Include bug in firefox
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 12 21:48:38 GMT 2024

Total time taken to generate the page: 0.02773 seconds