-
PHP 5: Send HTTP post request with file_get_contents
The following code snippet shows an easy way how to send a HTTP post request using the PHP function file_get_contents: $url = ‘http://server.com/path’; $data = array(‘key1’ => ‘value1’, ‘key2’ => ‘value2’) // use key ‘http’ even if you send the request to https://… $options = array(‘http’ => array( ‘method’ => ‘POST’, ‘content’ => http_build_query($data) )); […]
-
Ubuntu 10.04 & PHP 5.3: Installing pecl_http
To install the pecl_http PHP extension on Ubuntu 10.04 follow the instructions below: Install the required packages: # sudo apt-get install php-pear php5-dev libcurl4-openssl-dev Install pecl_http: # sudo pecl install pecl_http Create file /etc/php5/conf.d/http.ini with the following content: extension=http.so Restart Apache2: # sudo /etc/init.d/apache2 restart After restarting the Apache2 web server a “http” section should […]
-
Microsoft CRM 4.0: Fix “TrySetFocusOnSubject” error after installing Update Rollup 12
After installing the Update Rollup 12 for Microsoft Dynamics CRM 4.0, I get an error (“Microsoft Dynamics CRM has encountered an error”) in the web frontend when closing an activity (e.g. a task). The error report says: <CrmScriptErrorReport> <ReportVersion>1.0</ReportVersion> <ScriptErrorDetails> <Message>Object expected</Message> <Line>1</Line> <URL>[…]</URL> <PageURL>[…]</PageURL> <Function>function anonymous() { TrySetFocusOnSubject() }</Function> <CallStack> <Function>function anonymous() { TrySetFocusOnSubject() }</Function> </CallStack> </ScriptErrorDetails> <ClientInformation> <BrowserUserAgent>[…]</BrowserUserAgent> <BrowserLanguage>en-us</BrowserLanguage> […]
-
Debian/Ubuntu: Multi network/gateway ip routing setup
If you would like to connect your Debian or Ubuntu system to more than one network (e.g. with more than one physical or virtual network device) you could use the following ip routing setup to use a specific gateway for each network. Create a configuration file in /etc/network/if-up.d/ (like /etc/network/if-up.d/routing) and add one section for […]
-
XenServer 5.6: Network problems with r8169 kernel module
Update 2010-10-21: Even with the new kernel module (r8168) the Hetzner monitoring reported short offline times now and then (about one ping failure every day). Compared to the old module (r8169) the problems occurred much less often. To examine the problem, I set up a cronjob to report the network status on the host system […]
-
XenServer 5.6: Tutorials to setup on Hetzner EQ root server
Here is a list of tutorials I’ve used to setup the XenServer 5.6 on a Hetzner root server with paravirtualized Ubuntu 10.04 and Debian 5.0 guest systems. Some tutorials were written for XenServer 5.5, but they also worked with the new version 5.6. Host system Xenserver 5.5: Automatische Installation, sw raid1, lokale ISO library (German) […]