Prüfen ob allow_url_fopen aktiviert ist?

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

  • Prüfen ob allow_url_fopen aktiviert ist?

    hallo,

    wie kann ich in meinem php-script prüfen ob allow_url_fopen aktiviert ist.

    gruss, rene

  • #2
    ini_get()?

    Comment


    • #3
      ini_get()

      Comment


      • #4
        doppelt hält besser.

        vielen dank.

        Comment


        • #5
          hm das geht nicht.

          bei:

          PHP Code:

          if(ini_set('allow_url_fopen') !== false){ 
              print 
          'ist an';

          else{ 
              print 
          'ist aus';

          kommt:
          Warning: Wrong parameter count for ini_set() in /opt/lampp/htdocs/online/projects/test.php on line 3


          und bei:

          PHP Code:

          if(ini_set("allow_url_fopen""1")){ 
              print 
          'ist an';

          else{ 
              print 
          'ist aus';

          kommt ist aus. in meiner php.ini steht aber on. was mache ich falsch?
          Last edited by Malaga; 31-10-2006, 23:13.

          Comment


          • #6
            im ersten beispiel meinst du sicherlich get und nicht set.

            http://de.php.net/manual/en/ref.file...llow-url-fopen

            httpd neugestartet?

            Comment


            • #7
              ohje, ja natürlich get.

              danke nochmals.

              Comment


              • #8
                Original geschrieben von Malaga
                doppelt hält besser.
                für dich aber trotzdem noch nicht ausreichend gewesen

                Comment


                • #9
                  ja hab ich auch gedacht. besser spät als nie.

                  Comment


                  • #10
                    Junge Junge. Es gibt sachen, die behält man besser für sich.

                    Comment

                    Working...
                    X