List files on remote site ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • m|sf|t

    #1

    List files on remote site ?

    All,
    Recently our TiVos were upgraded to include a webserver. Is it possible for
    me to run a PHP script from my machine and have it somehow retrieve a
    listing of all the files in subdirectory that are on the TiVo ?

    The remote addresses are:
    http://(my tivo ip)/ChannelLogo/
    and
    http://(my tivo ip)/images/

    Thanks.


  • Erwin Moller

    #2
    Re: List files on remote site ?

    m|sf|t wrote:
    [color=blue]
    > All,
    > Recently our TiVos were upgraded to include a webserver. Is it possible
    > for me to run a PHP script from my machine and have it somehow retrieve a
    > listing of all the files in subdirectory that are on the TiVo ?
    >
    > The remote addresses are:
    > http://(my tivo ip)/ChannelLogo/
    > and
    > http://(my tivo ip)/images/
    >
    > Thanks.[/color]

    Hi,

    No, you cannot.
    You can however make a (very simple) script that reads files in a directory
    and returns them.
    Call that script and you have your files.

    CHeck http://nl2.php.net/manual/en/function.scandir.php
    (If you run php5)

    If you run lower than PHP5, you can easily do the same using filefunctions
    (just a little bit more code)

    Regards,
    Erwin Moller

    Comment

    Working...