[PHP] Displaying image paths with spaces

2009-09-06 Thread Skip Evans
Hey all, I have a CMS system that uses the FCKeditor to allow users to create directories in which to store images. FCK allows users to create directories with spaces in them, and it's pretty deep in the JavaScript code so modifying that is not a simple option, so at this point I'm trying to

Re: [PHP] Sorting an array of sub-arrays based on a sub-array's key

2009-09-06 Thread James Colannino
Eddie Drapkin wrote: > http://us3.php.net/uasort Exactly what I was looking for. Thanks. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sorting an array of sub-arrays based on a sub-array's key

2009-09-06 Thread Eddie Drapkin
On Sun, Sep 6, 2009 at 6:45 PM, James Colannino wrote: > Hey everyone.  I have an array that looks like this: > > $main_array[0] = array('key1' => 'vala'); > $main_array[1] = array('key1' => 'valb'); > etc. > > I want to sort the main array based on the value of key1 for each > sub-array.  I looked

[PHP] Sorting an array of sub-arrays based on a sub-array's key

2009-09-06 Thread James Colannino
Hey everyone. I have an array that looks like this: $main_array[0] = array('key1' => 'vala'); $main_array[1] = array('key1' => 'valb'); etc. I want to sort the main array based on the value of key1 for each sub-array. I looked at all the array sorting functions, but unless I misunderstood somet

RE: [PHP] File download question

2009-09-06 Thread Andrea Giammarchi
That is for IE and its silly FileName[N] rather than FileName here a good old function to download: http://www.devpro.it/code/72.html Regards > Date: Sun, 6 Sep 2009 15:43:27 -0300 > From: tapi...@gmail.com > To: chris_pa...@danmangames.com > CC: php-general@lists.php.net > Subject: Re: [PHP] F

Re: [PHP] File download question

2009-09-06 Thread Jonathan Tapicer
I think that your problem in this line: header("Content-Disposition: filename=$file" . "%20"); I don't know what that %20 is for and you should quote the filename, that line should be something like this: header("Content-Disposition: attachment; filename=\"$file\""); Considering that $filenam

[PHP] File download question

2009-09-06 Thread Chris Payne
Hi Everyone, I've setup a filedownload which works but i'm having an issue, i've left out but when it downloads it, while it has the correct file it doesn't have a file extension associated with it, I need the .7z extension associated with the filename, can anyone see why that would do this below?

Re: [PHP] Include Files in HTML

2009-09-06 Thread Ashley Sheridan
On Fri, 2009-09-04 at 18:21 -0500, phphelp -- kbk wrote: > On Sep 4, 2009, at 5:03 PM, sono...@fannullone.us wrote: > > >> Depends on what you are including. The only tags that can be > >> inside the > >> head are , , ,

Re: [PHP] Who kown this memcache_get_stats function ?

2009-09-06 Thread hack988 hack988
I find some detail manual about memcached procedural style API for php(for example:memcache_get_stats).But now I found detail about this API. 2009/9/6 Tommy Pham : > - Original Message >> From: Tommy Pham >> To: PHP General List >> Sent: Saturday, September 5, 2009 10:41:39 PM >> Subjec