HELP

This is a discussion on HELP within the PHP Language forums, part of the PHP Programming Forums category; Hi, I am new to PHP and have found in many scripts on the net that people use @ as a ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-10-2005
Ashutosh
 
Posts: n/a
Default HELP

Hi,
I am new to PHP and have found in many scripts on the net that people
use @ as a prefix to inbuilt function.
For e.g:


$conn = @imap_open("\{$server/pop3}INBOX", $user, $pass);
i cant figure out this.Please help me understand this.

Reply With Quote
  #2 (permalink)  
Old 01-10-2005
Erwin Moller
 
Posts: n/a
Default Re: HELP

Ashutosh wrote:

> Hi,
> I am new to PHP and have found in many scripts on the net that people
> use @ as a prefix to inbuilt function.
> For e.g:
>
>
> $conn = @imap_open("\{$server/pop3}INBOX", $user, $pass);
> i cant figure out this.Please help me understand this.


Hi

The @ suppresses errors.
SO in your case: if @imap_open("\{$server/pop3}INBOX", $user, $pass); is not
working for some reason, PHP will ignore it and NOT print an errormessage
or warning.

Regards,
Erwin Moller
Reply With Quote
  #3 (permalink)  
Old 01-10-2005
Ronald Chaplin
 
Posts: n/a
Default Re: HELP

Ashutosh wrote:
> Hi,
> I am new to PHP and have found in many scripts on the net that people
> use @ as a prefix to inbuilt function.
> For e.g:
>
>
> $conn = @imap_open("\{$server/pop3}INBOX", $user, $pass);
> i cant figure out this.Please help me understand this.
>


@ suppresses error and warning messages.

--
Ron Chaplin
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
T73 Software & Design
www.t73-softdesign.com
To provide custom and quality
software, designs and services,
to our customers, at an affordable rate,
with minimal delay.
Reply With Quote
  #4 (permalink)  
Old 01-10-2005
Ronald Chaplin
 
Posts: n/a
Default Re: HELP

Ronald Chaplin wrote:
> Ashutosh wrote:
>
>> Hi,
>> I am new to PHP and have found in many scripts on the net that people
>> use @ as a prefix to inbuilt function.
>> For e.g:
>>
>>
>> $conn = @imap_open("\{$server/pop3}INBOX", $user, $pass);
>> i cant figure out this.Please help me understand this.
>>

>
> @ suppresses error and warning messages.
>

I should update my newsreader before replying I guess :p
As this was just previously posted on

--
Ron Chaplin
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
T73 Software & Design
www.t73-softdesign.com
To provide custom and quality
software, designs and services,
to our customers, at an affordable rate,
with minimal delay.
Reply With Quote
  #5 (permalink)  
Old 01-10-2005
Erwin Moller
 
Posts: n/a
Default Re: HELP

Ronald Chaplin wrote:

>>

> I should update my newsreader before replying I guess :p
> As this was just previously posted on
>


:-)
Happens to me too.
Sometimes somebody posted a answers an hour before I answer, and I see it
afterwards.
Maybe something with relaying messages all over the world to newsservers?
I don't know.

At the bright side: If 2 people give the same suggestion/answer chances are
the answer it is probably ok. :-)

Regards,
Erwin Moller
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:42 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0