Related Links : Search Engine Optimization | | Search Engine Marketing | Online Marketing | Freelance Programmer| SEO Thailand | SEO Expert | SEO services | PHP Programmer Thailand | SEO Tutorial | What is SEO |

  Home Our SEO Services SEO Expert Consultant Php Programmer Scripts| Email : sachin {at} jainsachin {dot} com

PHP | Data (RFC 2397) | Manual | Tutorial | Help

SEO Services



Website Programming in PHP / MYSQL



Friends


    Data (RFC 2397)

    Data (RFC 2397)

    The data: (» RFC 2397) stream wrapper is available since PHP 5.2.0.

    Example #1 Print data:// contents

    <?php
    // prints "I love PHP"
    echo file_get_contents('data://text/plain;base64,SSBsb3ZlIFBIUAo=');
    ?>

    Example #2 Fetch the media type

    <?php
    $fp   
    fopen('data://text/plain;base64,''r');
    $meta stream_get_meta_data($fp);

    // prints "text/plain"
    echo $meta['mediatype'];
    ?>

    Wrapper Summary
    Attribute Supported
    Restricted by allow_url_fopen No
    Restricted by allow_url_include Yes
    Allows Reading Yes
    Allows Writing No
    Allows Appending No
    Allows Simultaneous Reading and Writing No
    Supports stat() No
    Supports unlink() No
    Supports rename() No
    Supports mkdir() No
    Supports rmdir() No


    SEO Tutorial / Articles





    Php / Mysql Tutorial



    Articles



      Portfolio


      SEO by Jainsachin