fsockopen - dsiabled for security reasons

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tomasz Nowak

    fsockopen - dsiabled for security reasons

    Hello!
    The free serwer I use tells some functions are disabled for security
    reasons. How can I retrieve contents of another website, without using
    fsockopen and fpsockopen?


  • Martin Meredith

    #2
    Re: fsockopen - dsiabled for security reasons

    Tomasz Nowak wrote:
    [color=blue]
    > Hello!
    > The free serwer I use tells some functions are disabled for security
    > reasons. How can I retrieve contents of another website, without using
    > fsockopen and fpsockopen?
    >
    >[/color]
    most general file commands will accept a URL as a file, opening that URL

    for example

    $bla=file("http ://www.php.net");

    Comment

    • Michael Fuhr

      #3
      Re: fsockopen - dsiabled for security reasons

      Martin Meredith <martin@sourceg uru.net> writes:
      [color=blue]
      > Tomasz Nowak wrote:
      >[color=green]
      > > The free serwer I use tells some functions are disabled for security
      > > reasons. How can I retrieve contents of another website, without using
      > > fsockopen and fpsockopen?
      > >[/color]
      > most general file commands will accept a URL as a file, opening that URL
      >
      > for example
      >
      > $bla=file("http ://www.php.net");[/color]

      If this doesn't work then the server's admins have probably turned
      off allow_url_fopen . Since they're concerned enough about security
      to disable certain functions, they might also have disabled the use
      of remote files.

      --
      Michael Fuhr

      Comment

      • Tomasz Nowak

        #4
        Re: fsockopen - dsiabled for security reasons

        Uzytkownik "Martin Meredith" <martin@sourceg uru.net> napisal w wiadomosci
        news:boo892$p8f $1@wotsit.aston .ac.uk...[color=blue]
        > Tomasz Nowak wrote:
        > most general file commands will accept a URL as a file, opening that URL
        > [...]
        > $bla=file("http ://www.php.net");[/color]

        Great! Thanks! It does work!


        Comment

        Working...