Sep26

XML Mass Importer for Google Calendar

This ia a easy-to-use PHP class to import Google events from custom XML files. continue reading »

Oct22

Segmentation fault

I experienced that sometimes, web applications partly break with the following apache error log:

$ cat /var/log/apache/error.log
[Thu Oct 22 11:54:39 2009] [notice] child pid 17157 exit signal Segmentation fault (11)
[Thu Oct 22 12:00:06 2009] [notice] child pid 17158 exit signal Segmentation fault (11)
[Thu Oct 22 12:02:47 2009] [notice] child pid 17191 exit signal Segmentation fault (11)
[Thu Oct 22 12:02:47 2009] [notice] child pid 17343 exit signal Segmentation fault (11)

Whenever that error occurred, the server response is empty. In my case, that issue mostly happens in ajax requests where the server response should be some XML snippets. But if the segfault occurs, the XML snippet is empty – the onliest hint I get is the log entry in /var/log/apache/error.log.
continue reading »

Jun12

Using Both ondblclick & onclick Handlers

Back from hell after long I post a workaround for the ondblclick and onclick javascript issue: It’s not possible to define both handlers so that the onclick handler won’t get active on a doubleclick.

continue reading »

Feb28

PHP Upload Script with Progress Bar

If you want to upload some files through a web interface using PHP, you might use a classic POST method to push the data to the action script. If you choose your file and submit the HTML form, the file is transfered to the server and moved into a temporary file. Further your action script can examine the file and copy it to a specific location.
This method works fine, but I has one essential disadvantage: The file has to be transfered completely before you can examine the filetype, filesize and other file information. Further when transfering the file, you have no information about the transfer status. Assume, you want to upload a huge file. After you submit the upload form, you’ll wait several minutes without any information.I found a solution which is working quiet well. I will post some examples and will desribe basic ideas about upload files using CGI PHP. Maybe you want to use this information to build your own upload script. continue reading »