aRo`

automating your e-commerce

paypal ipn postback on a custom port.

When we were developping the paypal IPN script for our ecommerce project solidshops.com, we ran into a strange limition.
Apparently paypal does not allow you to post back to a url with a custom port. Only http(80) and https(443) are allowed.
We solved it by using the paypal ipn proxy below. You should put this script on [...]

This is an example with a
headline
`
This php script will send you a mail with all the files that have been changed within an interval you specify.
I created this script because someone hacked into my shared hosting account and added some hidden spammy link into my templates. And since most shared hosting accounts do [...]

To capture the encoding from the XML tag of the file. We need to read the first line, and pass it to the function to capture the encoding value.
The first line looks like this:
< ?xml version="1.0" encoding="utf-8"? >

The PHP code:
PLAIN TEXT
PHP:

function readfirstline($file){

   $fp = @fopen($file, "r");

   $firstline = fgets($fp);

   fclose($fp);

   return $firstline;

function get_attr(  $line [...]

hot or not wordpress plugin

Parse error: syntax error, unexpected $end in /mounted-storage/home118b/sub001/sc16660-QHQQ/www/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()'d code on line 43

chmod under safemode

When you would try to change the filepermission with a php script on your hosting, you would probably run into an "Operation not permitted" error.
This is because save mode is enabled. To bypass this limitation you could login unter ftp and change the file permission from there.
PLAIN TEXT
PHP:

//settings

$folders = array("/feeds/","/sitemap/");

$ftp_details['ftp_user_name'] = "username";

$ftp_details['ftp_user_pass'] = "pw";

$ftp_details['ftp_root'] = [...]

« Previous Entries  Next Page »