Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: automate ftp ?

  1. #1
    New Coder
    Join Date
    Feb 2008
    Location
    Cork- Ireland
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    automate ftp ?

    Hi - I have developed a site that pulls data into MySQL and using some queries and echo's, presents a soft copy of a purchase order. At present, the user has to ftp the files(s) from a UNIX server to PC running Apache, then load the file (just enters the order number) into the MySQL database on PC.

    It all works very well and looks good. To try and further streamline it, is there a way to do the ftp'ing with PHP - the file name will be entered by the user. I have looked at 'kermit' for unix, but not quite what I need...

    Anu help much appreciated. (I guess there are a couple of hundred orders a week - typical order number would be 'PO51315'. At present I ftp two files. 51315D and 51315H, the D file loads into data_table and H file to header_table)

    Hope I have not confused everyone!

    Dave
    Wow - I did'nt know that !!!

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Yes php has ftp functions. They are in the manual.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • Users who have thanked _Aerospace_Eng_ for this post:

    david mccarthy (02-26-2008)

  • #3
    New Coder
    Join Date
    Feb 2008
    Location
    Cork- Ireland
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Who the hell do you think you are Aerospace?

    If that is the general thought pattern in this forum then good luck! What kind of developer are you? What do you mean dont ask for help on it? -

    Networking, sharing ideas and knowledge is what drives the development of software. Not sitting in you bedroom and not communicating with others.

    I am not asking you to do anything for me - and may have phrased my post badly.

    I know that ftp function is in the manual, as are most things.. I have now sorted it.

    ps - I dont like you attitude son. Maybe you are in the wrong forum.

  • #4
    New Coder
    Join Date
    Feb 2008
    Location
    Cork- Ireland
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts
    sorry about that Aero -

    I just realised that that was your signature, and not directed at me personally...

    sorry dude
    Wow - I did'nt know that !!!

  • #5
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts
    sorry for that aero , i think this is first time i saw someone speaking to u like that

    but thats not his fault , when i started using forum i also thought the same.

    But Aero is a very good coder . He helped many
    Please de-reputate me
    0o0o0o0

    Its better to rule in Hell then to serve in Heaven


  •  

    Posting Permissions

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