Attempting to upload files using the zend _file_transfer system from cs5 training from the source. [was: Question for David Powers]

I am attempting to upload files using the zend _file_transfer system from cs5 training from the source.
On trying to upload to a remote server I am having trouble with the destination setting (C:/upload_test) in the example, please could you point me in the right direction for the an example of this setting for a remote file transfer
Also do I have to construct a connection file to activate a Ftp file transfer?
David Woolston

>I am on windows platform
Who is your host? When you checked your host path in your host control panel, what did it say?
>i have assumed (may be incorrectly) that the purpose of the exercise was to upload to a remote site (ie my website)
That is correct.
>Of course that upload might take place on a computer that does not have DW installed (an internet cafe for example)
That's irrelevant. DW is just the tool you are using to build your site. The site runs on your hosting accounts servers. This includes the php scripts you are working with.
>I have uploaded all files necessary for the operation, when i click upload it returns no such directory exits.
Do you have a url we can check? What destination are you specifying in zend code?
>This made me suspect that I would need to construct a ftp file transfer connection file to satisfied username, password , connection address etc
The exercise you are dealing with is using http file transfer. This has nothing to do with FTP. You do not need FTP for this, other than using it to move your source code from your local client to your server.

Similar Messages

  • Question for David Powers - Zend Framework

    Using the Zend Framework on your local machine and referencing the library I was wondering when you FTP your code to an online server (How do you reference $library = 'C:/php_library/ZendFramework/library';)? As it would not be no longer on you local machine.

    Silken_thread wrote:
    Using the Zend Framework on your local machine and referencing the library I was wondering when you FTP your code to an online server (How do you reference $library = 'C:/php_library/ZendFramework/library';)? As it would not be no longer on you local machine.
    Simple. You upload the Zend Framework to your remote server, and point $library to the new location.
    It's covered in Lesson 13 of the book (pages 468-469).

  • Question for David Powers re file 'quotations.sql'

    It would appear from the first few lines of this file (shown
    below) that it
    first checks if a table "quotations" already exists, and if
    so deletes it. Then
    it creates a new version, and populates it with the following
    data.
    Is this correct?
    Clancy
    -- Table structure for table `quotations`
    DROP TABLE IF EXISTS `quotations`;
    CREATE TABLE `quotations` (
    `quote_id` int(10) unsigned NOT NULL auto_increment,
    `quotation` varchar(255) NOT NULL default '',
    `first_name` varchar(30) NOT NULL default '',
    `family_name` varchar(30) NOT NULL default '',
    PRIMARY KEY (`quote_id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    -- Dumping data for table `quotations`
    INSERT INTO `quotations` VALUES (1, 'My disability is ......'
    Clancy

    Clancy wrote:
    > I thought so. As the sql file redefines the table, is it
    necessary to define
    > the table at all before running the file?
    The purpose of the preceding section is to teach you how to
    define a
    table. If all you're interested in is copying my table
    structure, feel
    free to do so. However, I believe in the principle of
    teaching a man to
    fish, rather than giving a man a fish.
    > I have been thinking about how to set up a database for
    my photo album, and
    > wondering how to order it. If I have a text file, like
    'quotations.sql', it
    > looks as if the easiest way to change the order of the
    photos is to swap the
    > lines in the text file, and then reload the whole
    database.
    If that's your conclusion, then I'm afraid that you have
    failed to
    understand the fundamental principles of how a database
    works. The order
    in which records are entered is totally irrelevant. You use
    SQL to
    display them in whichever order you require.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Upload files using browser

    how is posible upload files using a browser (IE5) to BD ?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by JuanCarlos HorrachCampins (jchorrach@globalia:
    how is posible upload files using a browser (IE5) to BD ?<HR></BLOCKQUOTE>
    The Form enctype=multipart/formdata and input type=file parameters are needed along with method=post.
    You then need a servlet(or MS PostingAcceptor) on the server side to read/store it. The Post data is in multiple parts with the parms on separate lines..
    Here is sample HTML Form:
    <HTML>
    <BODY>
    <H2>Uplaod test </H2>
    <form enctype="multipart/form-data" action="/examples/servlet/MultipartForm"
    METHOD="POST"
    NAME="UploadFileForm"
    LANGUAGE="JavaScript"
    onSubmit="if (!validateForm(document.UploadFileForm))
    alert ('Please enter a fileName.');
    document.UploadFileForm.my_file.select();
    return false;
    }">
    <input type="text" name="TargetURL" value="/uploads">
    <input type="text" name="submitter" value="me">
    <FIELDSET> <legend> FileUpload</legend>
    <BR>
    <table>
    <tr>
    <td align="left">Fully qualified Filename to upload:</td>
    </tr>
    <tr>
    <td align="left"><input name="file" type="file" size="50"></td>
    </tr>
    <tr>
    <td align="left"><input type="Submit" value="Upload File"></td>
    </tr>
    <table>
    </FIELDSET>
    </form>
    <SCRIPT LANGUAGE="JavaScript">
    // Begin client side helper functions
    function validateForm(form)
    if (isEmpty(form.file)) return false;
    return true;
    function isEmpty(textcontrol)
    str = textcontrol.value
    for (i = 0; i < str.length; i++)
    chr = str.substring(i, i + 1);
    if (chr != ' ')
    return false;
    return true;
    </SCRIPT>
    </BODY>
    </HEAD>
    null

  • Uploading files using Zend Framework

    I am tyring to use the Zend Framework to upload files as outlined in the "Adobe Dreamweaver CS5 with PHP" book by David Powers.  I've been using the example code (more or less), and can get it to work perfectly with a local XAMPP installation of Apache and PHP.  Howver, I can't get it to work successfully with a hosted site, having tried both GoDaddy and Verio.
    The Zend Framework is correctly installed, include paths set correctly (I know this because other Zend FW operations, such as validation work fine).  In addition, if the directory I want to upload to isn't correctly specified I get errors on that.  But when I try to actually upload a file (again, with code that works on the XAMPP platform), I get nothing.  No errors, and no uploaded file.
    I have the script set up to send an email with a link to the uploaded file, and the name field is blank (but the email does get sent, again indicating that the ZF is working).  I'm concluding I have something incorrectly configured on the hosting plaforms, and am looking for suggestions as what to look at.  Thanks.
    BTW, checked the permissions on the upload directory, and it should be writeable...

    David,
    Thanks for the reply.  I neglected to mention that file upload do work on the server, it's just the Zend FW implementation that doesn't.  The Zend FW is basically what is in your book, and nothing happens when I try an upload, but I know that the code is talking to the FW (e.g., if I provide an invalid path, I get the appropraite PHP error).  If I don't use the FW it works.  So the following code correctly uploads a file on the hosting platform:
    if ($_POST['send']) {
    //validate the user input
    $val = new Zend_Validate_Alnum(TRUE);
    if (!$val->isValid($_POST['name'])) {
       $errors['name'] = 'Name is required';
    $val = new Zend_Validate_EmailAddress();
    if (!$val->isValid($_POST['email'])) {
       $errors['email'] = 'Email address is required';
    $val = new Zend_Validate_StringLength(10);
    if (!$val->isValid($_POST['message'])) {
       $errors['message'] = 'Required';
    if (!$errors) {
      foreach($_FILES as $temp_name => $file_array) {
       $file_name = str_replace(" ","_",$file_array["name"]);
       if (is_uploaded_file($file_array["tmp_name"])) {
        move_uploaded_file($file_array["tmp_name"], "$file_dir/".$file_name) or die ("Couldn't copy");
       $new_names[] = $file_name;
      //start building the mail string
      $msg = "Name:\n\t\t".$_POST["name"]."\n";
      $msg .= "E-Mail:\n\t\t".$_POST["email"]."\n";
      $msg .= "Message:\n\t\t".$_POST["message"]."\n";
      foreach ($new_names as $name) {
       if ($name != "") {
       $msg .=  "Link: xxx/uploads/$name"."\n\n";
    Using this code I wil email that contains links to the uploaded files, which I can then sucessfully download.  So it's the FW code that fails... and note that the Zend validation code above does work correctly; I get errors if invalid entries are made.
    Also, I note that my hosting providers only support PHP 5.2.14, whereas on my XAMPP installation I'm using 5.3  Could that be an issue?

  • Uploading files using OAS on linux

    I am trying to upload files with an application using OAS 4.0.8.1 in linux (kernel 2.2.14). I am sure that all the environment are correct installed and my application wait forever.
    I'm using PL/SQL catrige.
    When I look to the database I retrive the following information:
    SQL> select address,sql_text from v$open_cursor;
    ADDRESS SQL_TEXT
    216FAA6C begin sys.dbms_describe.describe_procedure(:object_name,:res
    216A3C84 select address,sql_text from v$open_cursor
    21841F74 INSERT INTO WEBSYS.OWS_CONTENT VALUES ( WEBSYS.OWS_SEQUENCE.
    2183141C SELECT * FROM WEBSYS.OWS_ATTRIBUTES WHERE OID = :b1
    21839DC4 INSERT INTO WEBSYS.OWS_OBJECT_VIEW VALUES ( :b1,:b2,:b3,WEBS
    21831234 INSERT INTO WEBSYS.OWS_ATTRIBUTES VALUES ( :b1,:b2,:b3,:b4
    21831540 SELECT * FROM WEBSYS.OWS_FIXED_ATTRIB WHERE OID = :b1
    21831788 SELECT * FROM WEBSYS.OWS_OBJECT_VIEW WHERE OID = :b1
    216EE1A4 SELECT STATUS FROM OBJ$ WHERE OBJ# = :b1
    21831664 SELECT LENGTH FROM WEBSYS.OWS_CONTENT WHERE OID = :b1
    216B00AC begin :1 := websys.ows_cs.set_attribute(:2, :3, :4, :5
    218322F4 INSERT INTO WEBSYS.OWS_FIXED_ATTRIB VALUES ( WEBSYS.OWS_SEQU
    21839CA0 SELECT WEBSYS.OWS_SEQUENCE.CURRVAL FROM DUAL
    216EE5B0 SELECT ARGUMENT,OVERLOAD#,POSITION# POSITION,TYPE# TYPE,NVL(
    14 rows selected.
    SQL> SELECT SQL_ADDRESS FROM V$SESSION WHERE SID='7'; ( the last command of the user of DAD )
    SQL_ADDR
    216B00AC
    My database doesn't have any invalid objects.
    If somebody can help me, please.
    Thank you !

    David,
    Thanks for the reply.  I neglected to mention that file upload do work on the server, it's just the Zend FW implementation that doesn't.  The Zend FW is basically what is in your book, and nothing happens when I try an upload, but I know that the code is talking to the FW (e.g., if I provide an invalid path, I get the appropraite PHP error).  If I don't use the FW it works.  So the following code correctly uploads a file on the hosting platform:
    if ($_POST['send']) {
    //validate the user input
    $val = new Zend_Validate_Alnum(TRUE);
    if (!$val->isValid($_POST['name'])) {
       $errors['name'] = 'Name is required';
    $val = new Zend_Validate_EmailAddress();
    if (!$val->isValid($_POST['email'])) {
       $errors['email'] = 'Email address is required';
    $val = new Zend_Validate_StringLength(10);
    if (!$val->isValid($_POST['message'])) {
       $errors['message'] = 'Required';
    if (!$errors) {
      foreach($_FILES as $temp_name => $file_array) {
       $file_name = str_replace(" ","_",$file_array["name"]);
       if (is_uploaded_file($file_array["tmp_name"])) {
        move_uploaded_file($file_array["tmp_name"], "$file_dir/".$file_name) or die ("Couldn't copy");
       $new_names[] = $file_name;
      //start building the mail string
      $msg = "Name:\n\t\t".$_POST["name"]."\n";
      $msg .= "E-Mail:\n\t\t".$_POST["email"]."\n";
      $msg .= "Message:\n\t\t".$_POST["message"]."\n";
      foreach ($new_names as $name) {
       if ($name != "") {
       $msg .=  "Link: xxx/uploads/$name"."\n\n";
    Using this code I wil email that contains links to the uploaded files, which I can then sucessfully download.  So it's the FW code that fails... and note that the Zend validation code above does work correctly; I get errors if invalid entries are made.
    Also, I note that my hosting providers only support PHP 5.2.14, whereas on my XAMPP installation I'm using 5.3  Could that be an issue?

  • How to upload file using  *cl_gui_frontend_services* method

    hi
    i want to upload an image file using this method
    and i want to save it in MIME Repository (/SAP/BC/BSP/SAP/PRASHANT)
    DATA:
    itab TYPE TABLE OF sflight.
    CALL METHOD cl_gui_frontend_services=>gui_upload
      EXPORTING
        filename                = 'C:\temp\winter.jpg'
        filetype                = 'ASC'
        has_field_separator     = '|'
      CHANGING
        data_tab                = itab
    IF sy-subrc = 0.
    WRITE:/ 'success'.
    ENDIF.
    So plz tel me how i set given path to upload file using this method .

    Hi Prashant,
    Go through the [Link|https://forums.sdn.sap.com/click.jspa?searchID=24477690&messageID=6684222].
    Hope this is helpful.
    Regards,
    Abhinav

  • Upload File using MDS WCF API

    I have a field of File Type in my Entity. How can I upload file using WCF API?
    I tried to create a new Entity Member and added the following attribute in the member attributes collection
    Attribute att = new Attribute();
    att.Identifier = new Identifier();
    att.Identifier.Name = "Image";
    att.Value = bytes;
    In attribute value I tried to pass the bytes array of an image, also tried Encoding.ASCII.GetString(bytes); as attribute value, but none of them works.
    With byte array i get the following exception "Conversion failed when converting the nvarchar value 'System.Byte[]' to data type int." and in case of ASCII string i get "A database error has occurred. Contact your system administrator." error.
    There is lack of documentation and samples.
    Please let me know if someone tried it out.
    Thanks!

    You need to use the EntityMemberAttributesGet operation to retrieve the contents of a file attribute. EntityMembersGet is designed to retrieve a collection of many members and therefore it would not make sense to retrieve every file for every row retrieved.
    In contrast, EntityMemberAttributesGet is designed to work with a single member and specific attributes of that member, and it was designed to retrieve the file content.
    Val Lovicz
    http://www.profisee.com
    [email protected]
    As the original creators of Microsoft MDS, Profisee's Master Data Maestro provides a range of enterprise-grade functionality to ensure MDS project success.

  • Maximum size of upload file using Cross Domain Library

    Hi All 
    I need to know what is the maximum size of file that I can upload using Cross Domain Library from my Provider hosted app. I know that in msdn it is written that usign REST call we can upload upto 2GB but I have doubts if it is true with Cross domain library
    REST Calls. Please suggest.
     spExecutor.executeAsync(
                                   url: fileCollectionEndpoint,
                                   method: "POST",
                                   contentType: "application/json;odata=verbose",
                                   body: filedata,
                                   binaryStringRequestBody: true,
                                   headers: { "X-RequestDigest": $("#__REQUESTDIGEST").val(), "accept": "application/json;odata=verbose" ........
    And Can I pass ArrayBuffer directly or I need to pass only binary string ?
    Thanks in Advance 

    Hi,
    According to your post, my understanding is that you want to know the Maximum size of upload file using Cross Domain Library.
    Per my knowledge, you can upload files up to 2 GB with the REST API. 
    You can refer to:
    How to: Upload a file by using the REST API and jQuery
    In addition, you can pass ArrayBuffer directly. Please refer to:
    FileCollection methods
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Uploading Files Using InputFile Component -- Sometimes not working

    Hello,
    This is the 2nd time I make a post about it!
    Because I have more than 1 application using upload, and everything is correct! But it doesn't work as it should!
    You can check the original post here: Uploading Files Using InputFile Component - Sometimes not working
    I need a solution please!
    The only thing we can conclude is that it could be a bug from oracle !!! (???) But I talked with other people and they say that it works fine for them.
    There is one important thing: when we put a form to "Uses Upload = true" it seems that the page doesn't work very normal. For exemple: if you use a table in a form that uses upload the table get's "crazy".
    Thanks,
    JP

    I have now access to METALINK!
    I can find some problems and patches about inputFile but not mine! I will check better later!
    I think the problem is caused because of my framework!

  • I accidently created files using a Free Trial version of InDesign. Now the files are gone. Where did they go? How do I get them back? I pay for this service...

    I accidentally created files using a Free Trial version of InDesign. Now the files are gone. Where did they go? How do I get them back? I pay for Creative Cloud... but used the wrong login apparently.

    Files you save don't disappear, even if you no longer have the software that created them. They're right where you saved them.

  • I have recently started a solaris. I have a solaris using 64x and 86x systems and have java. The machine is very active and is very quick. I am happy so far with its performance and think its worthwhile to continue with my projects. That's all I have to s

    I have recently started a solaris. I have a solaris using 64x and 86x systems and have java. The machine is very active and is very quick. I am happy so far with its performance and think its worthwhile to continue with my projects. That's all I have to say.
    John Lupton

    I have recently started a solaris. I have a solaris using 64x and 86x systems and have java. The machine is very active and is very quick. I am happy so far with its performance and think its worthwhile to continue with my projects. That's all I have to say.
    John Lupton

  • I cannot sync contacts between my iPhone 4s and MacBook Pro after I upgraded the Mac with the latest operating system software upgrade. Even the Mac Store couldn't help...

    I cannot sync contacts between my iPhone 4s and MacBook Pro after I upgraded the Mac with the latest operating system software upgrade. Even the Mac Store couldn't help...

    That is because that sync ability (for contacts and calendars) has been removed. Use iCloud instead.

  • Can I get rid of Lion and go back to the previous operating system?  I bought Apple because it was simple.   I went from loving my Mac to absolutely hating it.

    Can I get rid of Lion and go back to the previous operating system?  I bought Apple because it was simple.   I went from loving my Mac to absolutely hating it.

    Check out this thread.

  • When I downloaded the Mavericks Operating system to my MAC computer, the mac stopped recognizing my T4i camera.  How do I fix this.

    When I downloaded the Mavericks Operating system to my MAC computer, the mac stopped recognizing my T4i camera.  How do I fix this.

    Apple has an article stating that your camera's digital RAW format is supported. I don't know if that implies the camera too.
    http://support.apple.com/kb/ht5955
    The Canon website says the drivers are either already installed or you don't need them for Mavericks.
    They do have some updates for the Canon software.
    Some more details of, "stopped recognizing my T4i camera," might be helpful.
    If you are looking to transfer pictures/movies, can you just plug the card into the Mac or into a card reader?

Maybe you are looking for

  • Can't update N97 firmware

    my phone doesn't work in pc suite mode and the phone software update doesn't detect that there is any update available although i'm running V 12.0.24 ! tried different cables , different PCs , different versions of windows ! any help ?

  • Urgent: please help - Object Hash Code of RMI stubs in a cluster

    Hello all, I'm trying to find out for a week now if members of a cluster can get out of synch regarding "Object Hash Code" of RMI stubs in the JNDI. After binding an RMI object to one server (no rmic performed since the object is in the classpath of

  • Why does iPhoto say accept, why does iphot say accept

    when i try to download iphoto ( wich was already pre installed when i bought my macpro) it says "These apps cannot be accepted on this computer." HELP ME PLEASE!!!!!! thanks

  • AE2020 Windows 8 touch screen troubles

    I did a fresh intall of Windows 8.  The touchscreen does not work. I installed the IdeaCom Touch Screen 3.3.4200.04 Driver.  the hardware does not show up in it's utility. Also it did not install the Coprocessor driver correctly.  Showing an error in

  • Flash only displays as html on my server?

    Hi I cannot figure out why my flash website that I have uploaded to my server, is only 'published in html' (displayed as a html webpage) I have uploaded both flash + html files plus all images (as explained on the server, I use as I have uploaded my