Results 1 to 6 of 6

Thread: Ajax and PHP

  1. #1

    Ajax and PHP

    Hello,

    I am making something which will get a log file from SFTP and keep refreshing it every second and display it on a page, is it possible and how?

    Thanks
    If its easier please add me on skype: tombath10

  2. #2
    Bump. Im paying...

  3. #3
    First you have to create the script with the SFTP connection and grab the log file that you need.

    Then you create a html page, and call the script through an AJAX call which will display the log. You then set an interval function in Javascript that will do the AJAX call every x second.

    I'm not sure it's the best way to do it because you want it to display the data every second. The process will need some optimization in order to do so.

  4. #4
    Quote Originally Posted by terry_b View Post
    First you have to create the script with the SFTP connection and grab the log file that you need.

    Then you create a html page, and call the script through an AJAX call which will display the log. You then set an interval function in Javascript that will do the AJAX call every x second.

    I'm not sure it's the best way to do it because you want it to display the data every second. The process will need some optimization in order to do so.
    Thanks for the reply. Would you know how to do it if it didn't keep refreshing?

    Many Thanks

  5. #5
    I know how to do it, and I could also try to make it refresh but I can't guarantee it will be every second (maybe every 2 or 3 seconds minimum).

  6. #6
    Quote Originally Posted by terry_b View Post
    I know how to do it, and I could also try to make it refresh but I can't guarantee it will be every second (maybe every 2 or 3 seconds minimum).
    I would be very grateful if you can do this for me.

    Thanks

Similar Threads

  1. Need help in Ajax with PhP
    By fredrikrob in forum Programming Discussion
    Replies: 10
    Last Post: 04-18-2012, 01:02 PM
  2. php and ajax
    By mohammadi in forum Programming Discussion
    Replies: 5
    Last Post: 11-30-2010, 06:12 AM
  3. Replies: 1
    Last Post: 07-04-2010, 08:16 AM
  4. Need PHP/MySQL/AJAX Developer for PHP Deal Listing Website
    By BrianF in forum Employment / Job Offers
    Replies: 15
    Last Post: 02-14-2010, 06:10 AM
  5. Replies: 0
    Last Post: 08-18-2007, 12:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •