473,799 Members | 2,723 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I can't find an explanation of the "@" modifier(?) in PHP. Please explain

I have been using mysql for a little while, but I ran across some code that
had this format:

$connection=@my sql_connect(bla h, blah....)

I have always used:

$connection=mys ql_connect(blah , blah...)

What is the significance of the '@' ....and why?

TIA,

Larry Woods
Aug 12 '05 #1
3 1315
lwoods wrote:
I have been using mysql for a little while, but I ran across some code that
had this format:

$connection=@m ysql_connect(bl ah, blah....)

I have always used:

$connection=my sql_connect(bla h, blah...)

What is the significance of the '@' ....and why?

TIA,

Larry Woods

It's in the manual under Operators - Error Control Operators.

It suppresses error messages.
--
*************** **************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*************** **************
Aug 12 '05 #2
Thanks, Chuck,

I just couldn't figure out what the search string should look like for the
"at-sign".

Larry

"Chuck Anderson" <we************ @seemy.sig> wrote in message
news:Uf******** ************@co mcast.com...
lwoods wrote:
I have been using mysql for a little while, but I ran across some code thathad this format:

$connection=@m ysql_connect(bl ah, blah....)

I have always used:

$connection=my sql_connect(bla h, blah...)

What is the significance of the '@' ....and why?

TIA,

Larry Woods

It's in the manual under Operators - Error Control Operators.

It suppresses error messages.
--
*************** **************
Chuck Anderson . Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*************** **************


Aug 12 '05 #3
JDS
On Fri, 12 Aug 2005 12:57:33 -0700, lwoods wrote:
I just couldn't figure out what the search string should look like for the
"at-sign".


A catch .22 case of needing to knoe the answer before being able to ask
the question. You'll see a lot of those around here.

--
JDS | je*****@go.away .com
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

Aug 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1917
by: Daniel Bello Urizarri | last post by:
Hello: I have a web service that runs well on ASP 1.0. Now I'm migrating it to ASP 2.0, and now im at the point in wich the project runs under the ASP Developer server od the visual studio 2005, and I need to build a setup project that runs on an IIS. I used to get the compiled dll with the code of my site from the \bin folder, but now it is not there, and I cant find how to install the site. What am I doing worng?
2
1206
by: yasin | last post by:
I have to refresh my site every 5 secs but I cant find my sites meta tag in my site I think there is no meta tag clearly pages includes masterpages. How can I access the meta tag of my page whit C# code or something like that. I have to include code below to meta tag <META HTTP-EQUIV="refresh" content="2;URL=http://www.yoursite.com">
1
1892
by: Eric | last post by:
This program is running fine in my office i just copy it and run at home it start given that error and highlight Chr(13). I dont know is this is what the error is or some thing else Compiler Error: Cant find project or library linesfromfile = linesfromfile + nextline + Chr(13) + Chr(10) Thanks,
1
1919
by: niraj | last post by:
I am getting the following error /usr/bin/ld: cant find -lutl Please advice which module i need to install .I am unable to find it . TIA Niraj
2
2087
by: andrewanderson | last post by:
hi can anyone help me with this prog. cant find the prob why it cant display cout<<"This is the display of your transaction"<<endl; ifstream fobj; //declare input file stream fobj.open("trans.txt"); //open file if(!fobj) //File not opened
1
1961
by: foocc | last post by:
Hi, im trying to convert data reports (.dsr) in vb6 to crystal reports in vb.net. However, I cant seems to find it in my Microsoft Visual Studio 2005 Tools for Office. I've tried going to Project > Add New Item and Solution Explorer > Add > New Item ....but i cant find crystal reports in any of it....The only thing i found is report (.rdlc) Can report(.rdlc) be used to convert data reports in vb6 to vb.net? Or are there any other...
4
1883
by: gawasthi | last post by:
Hi, I am absolutely new to perl and for a specific reqmt I am running the following script: #!/usr/bin/perl use warnings; use lib '/opt/InCharge65/IP/smarts/perl/5.6.1/lib'; use InCharge::session; $session = InCharge::session->init(); $session = InCharge::session->new( "INCHARGE" );
1
1424
by: figaro | last post by:
Hi All, I have developed an application in .net, now the thing is I have to display the data on a report. I thought of using a crystal report. Here I understand that I have to add Crystal Report template from Add New Item, but I cant find any template named as Crystal Report.. Can any one please help me to find that template?? Should I add any of the reference??? Waiting for your valuable reply.. regards,
2
2699
by: nevila | last post by:
i know my pass but i am a user and i cant find the ip of the camera at work?please help me?because i know the password. Best regard, Nevila
11
4548
by: dowlingm815 | last post by:
the following code is generating an error; Mircosoft Access cant find the field '|" referred to in your expression" any suggestions would be appreciated. Private Sub Expire_Date_Qry_Parameter_AfterUpdate() On Error GoTo Err_Hndlr Forms!F_Contract_Mgt_Entry!Expire_Date_Temp_Parameter = Forms!F_Contract_Mgt_Entry!Expire_Date_Qry_Parameter DoCmd.OutputTo acOutputQuery, stDocName, , AutoStart
0
9687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9543
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10488
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10237
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9077
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5588
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4144
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3761
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.