How do you load a file in forced binary code?

by 13 replies
15
I'm trying to figure out an installation that requries a certain file to be loaded in forced binary code....what does this mean and where do I find instructions on how to do this?
#programming #binary #code #file #forced #load
  • While uploading you can select the mode in the ftp client softwares. I think its what you mean right?
    • [1] reply
    • Not exactly sure what I mean....

      Here's the exact instructions.

      VERY IMPORTANT !!!
      The following files must be uploaded in forced BINARY mode!
      a. All the files in the functions folder. (includes/functions/*)
      b. install.php
      c. All the files in the fonts folder. (includes/fonts/*)
      d. All the files in the ioncube folder. (Ioncube Version Only.)
  • Viane is correct.

    When you FTP you can be in either text or binary mode. Most modern FTP clients use an Auto mode which tries to determine the optimum mode for each file depending upon its extension.

    What your instructions are telling you is to turn off the Auto mode and manually "force" the mode to binary. This is probably to insure that the encoded files (your application uses ioncube) don't become corrupted during the FTP process, which is what would happen if they were sent in text mode.

    Bill
    • [1] reply
    • Thanks you guys, pointed me in the right direction.

      Using Core FTP, would it have anything to do with encoding?
  • Not familiar with that particular program, but look for an option like Transfer Type.
  • If you are using Core FTP LE (the free version) there are 3 icons on the top menu bar that all look like "pages". From left to right they are ASCII Mode, Binary Mode and Auto Mode.

    Just select Binary Mode when you upload these files and you should be all set.

    Bill
    • [ 1 ] Thanks
    • [1] reply
    • BILL! BILL! HE'S OUR MAN!..... IF HE CAN'T DO IT, NO ONE CAN!



      Thanks for the direction Bill, it's always something that seems to be staring right at me!

      I will commence, let's see how far I get before something does not work.
      • [1] reply
  • It would be helpful if we knew more about your script and its requirements. Were there any steps telling you to change permissions (CHMOD) of any files after you placed them on the server? Was the script intended to run at the root of your site, or was it supposed to be in its own directory?

    It also may be an issue with your hosting account not meeting some requirement that the script has, perhaps a PHP library that isn't installed. One quick way to see how the PHP is configured is to create a simple PHP file with the following:
    Code:
    <?php phpinfo(); ?>
    Save it as info.php and FTP it to the root of your domain (your public_html folder). Run it at http://yourdomain.com/info.php. It should display your current configuration.

    Bill
    • [1] reply
    • There are 7 files that it instructs me to chmod to 777, 2 are optional.

      I'm assuming it needs to be in the root of the domain. It's an automotive script to list cars.

      Just changed the nameservers today so it's still bouncing back and forth between it's sedo parking lot and it's new home, so I'll get that php file loaded as soon as it comes back

      Checked with my host before I began, everything is good as far as the requirements. The instructions had me create a new database but did not designate specifically, so I assumed it's referring to MySql. Would there be something I needed to do in my cpanel regarding php?
  • ok... got that loaded and see the details.

    I decided to go with the version set up for Zend and PHP5

    Zend Optimizer is enabled and the server is running php5.2.9

    As far as where to install it.... does not designate. It does say this though;

    If you do not know or are unsure of the correct file paths please run http://mydomain.com/paths.php in your browser after you upload the files and then set them in the config prior to running install.php

    These folders need to be chmoded to 777
    a.files
    b.license
    c.v_bimages
    d.v_images
    e.v_thumb
  • If you'd be willing to take a look I'll pm you the info url
    • [1] reply

Next Topics on Trending Feed