Upload a file to an FTPES Server with Curl from the Linux Command line
Upload a file using to an FTPES using CURL
Every now and again you need to upload to a file to an Explicit FTP over TLS server. This is FTP over a TLS which is normally over port 21 - just like the old school simple FTP protocol. This is slightly different to the Impicit FTP over TLS which runs by default over port 990 and totally different to SSH / SCP file transfer which is run over port 22.Example CURL syntax to upload a file to an Explicit FTP over TLS server
The following command will upload a file to a remote server.HTC Desire not found when using HTC Sync
When attaching your HTC desire to your Windows PC, the device isn't found
My better half had this problem once when she need to sync her contacts with her PC. After several hours of hair pulling with various driver installs etc she asked her in-house tech guy i.e me to take a look. A thought occured, why was she trying to sync her phone in the first place? Thats right she wanted to backup her phone as it was playing up. Why was in playing up, it was because the phone was full!Use Jquery Validate to ajax submit and return the results into a dialog or lightbox
Introduction
Recently I had to create a complex form which needed lots of input validation. The usual kind of validation that you would expect on a form such as ensuring an e-mail input contains a properly formatted email or any inputs that expect numeric data get numeric data. I wanted to use a plugin that has does all of the hard work for me. This way I didn't have to write lots of javascript validation routines and make sure they work across all the browsers that my form was to be viewed in.Missing SCP command on Centos and other RHEL based Linuxes
Need to use the SCP command on a Centos or other RHEL based distro?
Sometimes when you attempt to run the scp command you receive telling you that command as unknown. There is a good chance that the the SCP client isn't installed. Well that's not too difficult to remedy. A quick yum will do the trick.yum install openssh-clients
Creating a Prestashop Payment Module: Completing the Module
Tags:
That's all Folks
Well that's almost done, there is just a bit more work though - now that our users can enter their payment details we need to be able to retrieve them in our administration panel.Displaying the order info in the admin panel
We need to hook into the invoice part of the administration panel. We have already declared we want to access the invoice hook earlier in our install() functionOR !$this->registerHook('invoice')Creating a Prestashop Payment Module: Taking the payment
Tags:
ow our payment option is available to our user's we need to create the actual page that is displayed when the payment option is clicked on. As part of this process a form will be displayed for the user to enter their card details and then store them in the database for later viewing.
If you recall it was payment.php So that is the name of the next file we need to create in our payment modules directory.
Okay, so create a new file called payment.php and place the following code into it:
<?php
Creating a Prestashop Payment Module: Displaying our module as a payment option in the checkout
Tags:
Displaying our module as a payment option in the checkout
Since we have a registered our module with the payment hook a function which tells the payment hook to do something. The hook payment expects a function called hookPayment by default so thats what we need to create. This is where the hook payment allows us to have our module appear (image below)
Create the hookPayment() function
Creating a Prestashop Payment Module: Testing the Install
Testing the Install
Click the "install" button next to the Offline Payments.
If successful you should see a message displayed that says "Module installed successfully" We can also see within our prestastore database that the payment module is now listed as a module. Below is an example (using phpmyadmin) which shows that our module has been added to the list of prestashop modules - we can verify that by the fact it has been added to the prestashop modules table.
Creating a Prestashop Payment Module: Creating the Install Routine
Tags:
Making the module's install routine
Building the standard install() function
Prestashop modules have an install link. This link needs to be clicked to install the module to make it actually function within the store. NOTE! Basically, what although the module is listed in your store as an available module, you need to to click install to actually activate the module for it to be active in your store. See below: