How do you upload in binary mode to my localhost?

Discussion in 'Installation' started by alexmungel, Feb 24, 2008.

  1. alexmungel

    alexmungel New Member

    Joined:
    Feb 18, 2008
    Messages:
    4
    I am using the trial on my test site. How do you transfer in binary mode to your localhost? If amember requires this how can it be done with a test site?

    I am getting an error otherwise and I am using Xampp.
  2. tomfra

    tomfra Member

    Joined:
    Dec 21, 2006
    Messages:
    199
    If you are using "localhost", you don't really need to use FTP at all. You just copy the files through the built-in Windows explorer and that's it. The "binary mode" is necessary for FTP only.

    If you are getting an error when using Xampp, it's probably because you have no Ioncube or Zend installed. What is the error message anyway? I am using Apache2Triad.

    Tomas
  3. alexmungel

    alexmungel New Member

    Joined:
    Feb 18, 2008
    Messages:
    4
    This is error messege I get,

    Also it says I have Zend installed with the tester.php

  4. tomfra

    tomfra Member

    Joined:
    Dec 21, 2006
    Messages:
    199
    As I said before, you do not have to upload anything through FTP if you are running a server on localhost on your own PC. Just unzip the aMember distribution zip file into a directory in the localhost server structure - e.g. DRIVE:\XAMPP\htdocs\amember\ in your case.

    This way you will avoid problems with FTP modes. It should work.

    Tomas
  5. klester

    klester New Member

    Joined:
    Mar 7, 2008
    Messages:
    4
    I have the same problem

    I'm using xampp. Tester script says everything is okay and zend optimizer is installed. I unzipped the demo files directly into my xampp html folder (htdocs) and I get the same error message claiming that I uploaded using text mode. Which is, of course, false, since I didn't FTP anything!

    I unzipped the file using winzip.

    There's obviously an issue here with xampp. BTW, I use xampp to successfully test over 15 Drupal installations, so there's nothing wrong with my xampp installation.
  6. klester

    klester New Member

    Joined:
    Mar 7, 2008
    Messages:
    4
    Found the solution!

    Not only does Zend optimizer have to be installed and activated in xampp, but you must also enable the zend auto loader.

    Go to the following files:

    xampp\apache\bin\php.ini
    xampp\php\php4\php4.ini
    xampp\php\php4\php.ini
    xampp\php\php5.ini
    xampp\php\php.ini

    And find the zend section. Find the following line:
    zend_optimizer.enable_loader = 0

    And change it to:
    zend_optimizer.enable_loader = 1

    This should fix it. Also, make sure you are not using an older version of xampp. I had the older 1.5.5 version and zend optimizer wouldn't work properly at all. Installed the latest 1.6.6a and everything works!

    Now, if I could only get a demo of the Drupal plugin to test, and I'd be set....

Share This Page