Re: [PHP] Multi-Sort -- how to do this?
...Sticking my neck out playing with the big boys (and girls) now... I assume you've looked at array_multisort() for this, I would think you could have multiple arrays being sorted with it (I've only ever used it for 2-array sorts). The other option would be to pop all those arrays into a single array and use array_multisort()'s ability to sort arrays-within-arrays. Otherwise Ashley's solution is another possibility; using the keys in the sorted $d to dictate where you could place the elements in the other arrays. I'd say you could do a nifty loop system which says sequentially read the indices in $d and then make a new temp array that is $a, $b or $c (depending on which you are sorting) in the sorted order then just name the temp array as the original (again, I'd say array_multisort() is fancier than this crude but elegant system). Finally, why not use quicksort or mergesort for the sorting? Bubblesort is inefficient for large lists...
[PHP] Problem using PHP with Apache (probably something silly)
Hello, First off, I hope everyone had Happy New Year. Onto business, I am trying to install PHP 5.2.0 on a WinXP computer, using Apache 2.2.3 as the web server with MySQL enabled extension. My problem is that when I start up Apache with the edited httpd.conf file including the following code: # For PHP 5 do something like this: LoadModule php5_module c:/php/php5apache2_2.dll AddType application/x-httpd-php .php # configure the path to php.ini PHPIniDir C:/php And then trying a simple phpinfo() test on it, it gives the following error. "The instruction at "0x007874cd" referenced memory at "0x0014". The memory could not be "read"." The dumprep.exe message has the following interesting information: "szAppName: httpd.exe" "szModName: php5ts.dll" "offset: 000974cd" I'm wondering 3 things: Has this happened to anyone else when they were trying to install PHP on Apache? Is there any advice people can give me? Is there any relatively hassle free approach to manually fix this annoying problem? Thanks in advance, D.T.
[PHP] PHP MS-Word plugin
Hi everyone, I'm pretty sure that this question has been asked to death in the past, but I'm just curoius as to whether there is a plugin that can edit Microsoft Office Word documents in PHP. I'm interested in this because I am trying to put a text watermark on each page, but doing it online, without having to download the document, watermarking it, and then reuploading it (I won't deny that I'm lazy). So my question is has this even been done before? I've had a little search around and nothing exciting has popped out, so I'm wondering if anyone has used/heard of/made something as daunting as this before? Thanks in advance, DT
Re: [PHP] Google Chrome
Beta or not, it's still amazingly fast. Despite the fact you can't scroll up with the mouse wheel...
Re: [PHP] Google Chrome
Once. 'Nuff said.