fsockopen() function not working!!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    fsockopen() function not working!!

    I m using a host that same as byte host . Theres everythings is ok .But it does'nt let me use fsockopen() function .For this reason i can't use you tube api,live cricket,pics search api etc.

    Then is there any tecniuq to active it by uploading extra php.Ini file or something to .Htaccess ??
    PHP Code:
    /* I don't know everything hehe */ 
    Find me on facebook

    #2
    use file_get_contents();
    Advertise your mobile site for FREE with AdTwirl

    Comment


      #3
      Your on a free host dont edit there system php.ini

      1. edit it too use curl most free host lets you use this..
      Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
      Visit: WapMasterz Coming Back Soon!
      _______
      SCRIPTS FOR SALE BY SUBZERO
      Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
      FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
      _______
      Info & Tips
      php.net
      w3schools.com

      Comment


        #4
        Thanx gum / curl! Is it a function ? Wow . i will try it thanx a lot .Subzero

        But what about mobile youube ??
        PHP Code:
        /* I don't know everything hehe */ 
        Find me on facebook

        Comment


          #5
          If your having a problem getting youtube videos more likely your curl is off as well.
          Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
          Visit: WapMasterz Coming Back Soon!
          _______
          SCRIPTS FOR SALE BY SUBZERO
          Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
          FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
          _______
          Info & Tips
          php.net
          w3schools.com

          Comment


            #6
            Originally posted by GumSlone View Post
            use file_get_contents();
            this is what i tried
            PHP Code:

            <?php

            echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";


            ?>
            <html xmlns="http://www.w3.org/1999/xhtml">
            <head>
            <body>
            <title>kewmew</title>

            <?php

                
            echo "<p align=\"left\">";
            $f $_GET['f'];
            $handle fopen("http://cri.mauj.com/recent.php?f=".$f."""rb");
            $contents stream_get_contents($handle);
            fclose($handle);
            $contents str_replace("wml.mauj.com""kewmew.co.cc""$contents");
            $contents str_replace("Mauj""$site""$contents");
            echo 
            "$contents";
              echo 
            "</p>";


            echo 
            "</body><head>";

            ?>

            </html>
            and then i used it

            PHP Code:

            <?php

            echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";


            ?>
            <html xmlns="http://www.w3.org/1999/xhtml">
            <head>
            <body>
            <title>kewmew</title>

            <?php

                
            echo "<p align=\"left\">";
            $f $_GET['f'];
            $contents file_get_contents("http://cri.mauj.com/""rb");
            $contents str_replace("wml.mauj.com""kewmew.co.cc""$contents");
            $contents str_replace("Mauj""$site""$contents");
            echo 
            "$contents";
              echo 
            "</p>";


            echo 
            "</body><head>";

            ?>

            </html>
            both are working in my pc in wapam host .but not workin in my site host!!

            how could i make it work ??
            PHP Code:
            /* I don't know everything hehe */ 
            Find me on facebook

            Comment


              #7
              Originally posted by subzero View Post
              If your having a problem getting youtube videos more likely your curl is off as well.
              i have tried this for trial
              PHP Code:
              <?php
              /**
              * Initialize the cURL session
              */
              $ch curl_init();
              /**
              * Set the URL of the page or file to download.
              */
              curl_setopt($chCURLOPT_URL,
              'http://news.google.com/news?hl=en&topic=t&output=rss');
              /**
              * Ask cURL to return the contents in a variable
              * instead of simply echoing them to the browser.
              */
              curl_setopt($chCURLOPT_RETURNTRANSFER1);
              /**
              * Execute the cURL session
              */
              $contents curl_exec ($ch);
              /**
              * Close cURL session
              */
              curl_close ($ch);
              ?>

              but it shows erorr
              PHP Code:
              /* I don't know everything hehe */ 
              Find me on facebook

              Comment


                #8
                Use 000webhost.com
                Visit my site

                Comment


                  #9
                  Originally posted by ripkk2tfk View Post
                  Use 000webhost.com
                  thanx but that not a good idea
                  PHP Code:
                  /* I don't know everything hehe */ 
                  Find me on facebook

                  Comment


                    #10
                    Originally posted by ripkk2tfk View Post
                    Use 000webhost.com
                    thanx but that not a good idea
                    PHP Code:
                    /* I don't know everything hehe */ 
                    Find me on facebook

                    Comment


                      #11
                      what's the error? post it here

                      Free Mobile Web Scripts by me: Free Youtube Downloader, Tweets Reader, Facebook Wall Posts Reader
                      PHP Tutorials: How to Secure Your PHP Script (PHP SECURITY)
                      Want to Develop/Edit your WAP/Web Site? Add me to Gtalk (gmail) 'lakshan1989' or PM me.

                      Comment


                        #12
                        Originally posted by firemax View Post
                        what's the error? post it here
                        no err happend with it , just white page .with logo .html style etc .. only not showing the content what i wanna get from other site
                        PHP Code:
                        /* I don't know everything hehe */ 
                        Find me on facebook

                        Comment


                          #13
                          it's the problem with your hosting provider. if you are using byte host, you can't never get answer from them. becouse its not honestly web hosting service.

                          but try this script with curl. if you are don,t know about using curl, read http://coding-talk.com/f16/youtube-s...05/index2.html. it's the only one way for you. else if nothing good results, change your hosting provider. it's the best way for you.

                          Free Mobile Web Scripts by me: Free Youtube Downloader, Tweets Reader, Facebook Wall Posts Reader
                          PHP Tutorials: How to Secure Your PHP Script (PHP SECURITY)
                          Want to Develop/Edit your WAP/Web Site? Add me to Gtalk (gmail) 'lakshan1989' or PM me.

                          Comment


                            #14
                            Originally posted by firemax View Post
                            it's the problem with your hosting provider. if you are using byte host, you can't never get answer from them. becouse its not honestly web hosting service.
                            but try this script with curl. if you are don,t know about using curl, read http://coding-talk.com/f16/youtube-s...05/index2.html. it's the only one way for you. else if nothing good results, change your hosting provider. it's the best way for you.
                            many many thanx .
                            PHP Code:
                            /* I don't know everything hehe */ 
                            Find me on facebook

                            Comment

                            Working...
                            X