SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2007
    Location
    London
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question chilkatsoft help - php uploader

    Has anyone had any experience using chilkatsoft's .net uploader with php.
    http://www.chilkatsoft.com/upload-dotnet.asp
    They provide a .dll reference for a VB.net http uploader. I've gotten the vb.net bit working but there is suppose to be a php page on the server that recieves the data but am not sure what goes in that file.

    The code they've provided as an example is
    PHP Code:
    <?php

    $upload 
    = new COM("Chilkat.Upload");

    //  Specify the page (ASP, ASP.NET, Perl, Python, Ruby, CGI, etc)
    //  that will process the HTTP Upload.
    $upload->Hostname 'www.chilkatsoft.com';
    $upload->Path '/receiveUpload.aspx';

    //  Add one or more files to be uploaded.
    $upload->AddFileReference('file1','dude.gif');
    $upload->AddFileReference('file2','pigs.xml');
    $upload->AddFileReference('file3','sample.doc');

    //  Do the upload.  The method returns when the upload
    //  is completed.
    //  This component also includes asynchronous upload capability,
    //  which is demonstrated in another example.
    $success $upload->BlockingUpload();
    if (
    $success != true) {
        print 
    $upload->lastErrorText() . "\n";
    }
    else {
        print 
    'Files uploaded!' "\n";
    }

    ?>
    As you can see the new COM("Chilkat.Upload") class isn't defined anywhere. I'm just wondering is it possible that the reference is being made to the .dll file? Is that even possible in php, if so how is it done?

    If i'm completely wrong here, any ideas on how this php page is suppose to be done?

  2. #2
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's a .NET class... Thus it should only be used within ASP.Net.

    Is there a reason why your not using the built in upload support of .Net or PHP?


  3. #3
    SitePoint Zealot
    Join Date
    Jul 2007
    Location
    London
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for replying.
    There isn't a reason why am not using it, i just don't know how to.


Bookmarks

Posting Permissions

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