Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Purpose of @ in php

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-09-2003, 05:48 AM
 
chycor chycor is offline
 

Advanced Member
  
Join Date: Feb 2003
Location: Cornwall, UK
Posts: 53
 

Default Purpose of @ in php

Hi All,

I have been scouring the web for reasons why some functions in x-cart are called within PHP by a preceeding @. i.e.

Code:
# # Include webmaster mode # if (!@include_once("../include/webmaster.php")) @include_once("./include/webmaster.php");

Does anyone know the reason for this and its significance within PHP.

Phil.
Reply With Quote
  #2  
Old 06-09-2003, 01:11 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

it just tells php to ignore an error if it encounters one so that it is not displayed on the screen.

The bit of script that you highlighted simply says fint that file at one location - if you cant, dont tell me, just find it in the other place
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 06-11-2003, 01:18 AM
 
chycor chycor is offline
 

Advanced Member
  
Join Date: Feb 2003
Location: Cornwall, UK
Posts: 53
 

Default Thanks

Thanks mate,

Thats interesting. I can think of a number of web apps that could use that syntax. Another thing to add to the brain cells lol.

Phil.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:05 AM.

   

 
X-Cart forums © 2001-2020