Reading Raw Post Data in PHP
Perhaps you’d like to just sent XML over post, and not have xml=your_nodes_and_stuff_here. No sweat.
$xml = urldecode(file_get_contents('php://input'));
Enjoy.
This can now be called with:
curl …
Deep dives into Apache Cassandra, distributed systems, performance optimization, and software engineering at scale.
Perhaps you’d like to just sent XML over post, and not have xml=your_nodes_and_stuff_here. No sweat.
$xml = urldecode(file_get_contents('php://input'));
Enjoy.
This can now be called with:
curl …
I’m setting up my first mysql cluster, and just wanted some clarification on a few things.
In the manual, it says:
Online schema changes. It is not possible to make online schema changes such …
If you have a URL like the following, and you’re using multiviews:
/login/15/return_page%2F50
it won’t work. FYI, the last part is a return page. In this instance, lets just pretend …
In trying to get a site working on cell phones, I got a “406 Not acceptable” only on the Motorola RAZR. The site loaded fine on my Treo 755 and every Blackberry I’ve tried.
It seems …
I ran into an issue trying to get Imagemagick (convert) working on OSX last night. I had compiled libjpeg and installed it, but when I would compile convert, it would not have jpeg support.
I found …
We were using replication to deal with certain queries that were producing table scans. I realize this is not a great long term solution but we were migrating a web site that was set up this way, so …
I’m migrating a PHP 4 site right now. It makes me realize how far PHP has come in the last few years.
I ran across a weird bug where code was working on our dev server, but not production. I …
MySQL query cache can be useful, if it works. Here’s how to check it’s effectiveness.
show status like 'qc%'; +-------------------------+----------+ | Variable_name | Value | …
I’ll keep this short. Please, stop trying to be clever. I’m talking to you, mediocre developer. I realized you think it’s awesome to use a different file extension, like .awesome. …
Get the latest insights on Apache Cassandra, distributed systems, and performance optimization delivered to your inbox.
Subscribe to Newsletter