-
Recent Posts
Recent Comments
Archives
Categories
Meta
Category Archives: PHP
OS X apache permissions
Setting up a web server on OS X other than the built in one and serving sites from the Document directory always causes permissions headaches this stackoverflow response helped nut it out ( http://stackoverflow.com/questions/2001881/correct-owner-group-permissions-for-apache-2-site-files-folders-under-mac-os-x ) In Summary This is the most … Continue reading
Posted in PHP, Unix, Web Programming, Websites
Comments Off
XML over POST with php
$ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_URL, “http://websiteURL”); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, “XML=”.$xmlcontent.”&password=”.$password.”&etc=etc”); $content=curl_exec($ch);

