Web Analytics Made Easy -
StatCounter Collecting file information from Linux sever - CodingForum

Announcement

Collapse
No announcement yet.

Collecting file information from Linux sever

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

  • Collecting file information from Linux sever

    Hi,

    I need some help here please, what should happen is that when this script is started it should check a specific folder on a Linux server probably using exec( ls – l )the results should be returned in an array, and if there are any files on the server it should check if the file name already exist (from the previous time it ran ) if not it should it should post a ticket (already got that code sorted)

    Any help would be appreciated thanx.

  • #2
    exec is messy, take a look at scan_dir()
    My thoughts on some things: http://codemeetsmusic.com
    And my scrapbook of cool things: http://gjones.tumblr.com

    Comment


    • #3
      I thought of that as well but unfortunately the server is still running PHP 4, there is talk of upgrading it to PHP 5 but not any time soon. Thanks anyway

      Comment


      • #4
        readdir()
        is available in php 4

        Comment

        Working...
        X