Posted on 2004-11-04
Last Modified: 2013-12-13
Hi Experts..
what do these commands mean :

Question by:yazan3000
    1 Comment
    LVL 27

    Accepted Solution

    Hi yazan3000

    The online php manual is your friend, it has a description of all of the php functions as well as examples of use and additional user contributed notes.

    flock - see manual notes.

    fgets - gets line from file pointer.

    fseek - seeks the file pointer.

    fwrite (fputs is an alias of fwrite) - writes data to a file.

    rtrim (chop is an alias of rtrim) -

    More commonly trim is used - Strips whitespace from beginning and end of a string.

    For reading data from a file its best to use file_get_contents which loads the whole file into a string.

    And as of PHP5 for writing to a file its best to use file_put_contents.

    A useful reference is:
    Which has links to the documentation for all of the PHP functions.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn how to count occurrences of each item in an array.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now