+ Reply to Thread
Results 1 to 3 of 3

 

Thread: Question about @ prefix in php

  1. #1
    Meow!

    Status
    Offline
    Join Date
    Jan 2004
    Location
    Manchester
    Posts
    432
    Thanks
    0
    Thanked 0 Times in 0 Posts


    A quick question...

    I've seen the @ character used to prefix some commands in php scripts, but I can't work out what effect this has.

    For example, in sample scripts I've seen fopen and @fopen used.

    Does anyone know the difference, or significance of this?

    Thanks,
    DarrenW
    DarrenW

  2. #2
    Super Member

    Status
    Offline
    Join Date
    Sep 2003
    Location
    Manchester
    Posts
    1,066
    Thanks
    2
    Thanked 2 Times in 2 Posts
    @ prevents the output of errors in the event of the command failing.

  3. #3
    Meow!

    Status
    Offline
    Join Date
    Jan 2004
    Location
    Manchester
    Posts
    432
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks very much - I would never have guessed that!

    Regards,
    DarrenW.
    DarrenW

+ Reply to Thread


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. PHP redirect question
    By drivetowin in forum Programming
    Replies: 1
    Last Post: 31-12-04, 04:44 PM
  2. PHP question
    By matbennett in forum Programming
    Replies: 1
    Last Post: 19-11-04, 07:13 PM
  3. Shopping Channel / PHP Question.
    By draytop in forum Affiliate Window & buy.at
    Replies: 0
    Last Post: 09-08-04, 04:05 PM
  4. PHP question......again :)
    By uklejon in forum Programming
    Replies: 6
    Last Post: 11-05-04, 05:07 PM
  5. PHP Question - simply but cant find the answer
    By frostie in forum Programming
    Replies: 4
    Last Post: 22-01-03, 09:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2