Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
September 16, 2010, 12:58 am
rate this thread
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
Life is the only real counselor; wisdom unfiltered
through personal experience does not become a
part of the moral tissue.
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.
On 9/17/2010 3:56 AM, Twayne wrote:
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.
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
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!
- Captain Paralytic
September 16, 2010, 9:53 am
- » getting amount of deleted rows from: $result=odbc_exec($conn, 'delete from....');
- — Previous thread in » PHP Scripting Forum