X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Purpose of @ in php (https://forum.x-cart.com/showthread.php?t=3106)

chycor 06-09-2003 05:48 AM

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.

funkydunk 06-09-2003 01:11 PM

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 :)

chycor 06-11-2003 01:18 AM

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.


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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.