Displaying posts tagged: php

XAMPP with Xdebug on Snow Leopard

No Comments

If you compiled the xdebug module and see the following in your log file:

A simple, one-job PHP/cron dispatcher

1 Comment

Goal: To provide a way for a website administrator to dispatch a long-running command-line program, one that might take hours to complete (so exec is out). The admin interface should show that the process is running. There is only one job that will ever be dispatched.

Decrypted JSON data not being decoded properly

No Comments

Summary: The decrypted string was was null-padded. These null bytes are not handled by the jsondecode function. It is easily solved by running $string = rtrim($string, “\x00”); before decoding.

Wordpress plugin Contact Form 7 and line breaks

9 Comments

Summary: Contact Form 7, a Wordpress plugin, automagically adds line breaks (<br />) to the outputted HTML. To disable it, set define(‘WPCF7_AUTOP’, false); in wp-contact-form-7.php.

PayPal IPN PHP sample code not working

1 Comment

The sample code supplied by PayPal for using their Instant Payment Notification (IPN) system does not work for me.