[PHP] functions for sorting/paging functionality for imap mailboxes

2007-06-25 Thread Yashesh Bhatia
hello, i'm implementing an imap based mail client and want to provide sorting / paging functionality for the inbox. there's a function to retrieve headers imap_headers (http://www.php.net/imap_headers) however, this gets headers for all messages in a mailbox(inbox). is there any function that

Re: [PHP] UI toolkit

2007-06-25 Thread David Giragosian
On 6/24/07, Nathan Nobbe [EMAIL PROTECTED] wrote: Darren, I recently discovered php5 bindings to qt4 http://www.php-qt.org although qt is currently leveraged by kde primarily it has been converted to a cmake build system instead of a make build system which supposedly will enable cross

Re: [PHP] path finder

2007-06-25 Thread Jim Lucas
elk dolk wrote: Hi all, When I test my photo album in my IIS testing server relative path in the following code works fine : echo div class=''img src='/img/{$photoFileName}' width='120' height='160' border='0' //div ; but when I upload it to the web server I don’t see my

[PHP] Re: Setting Different Temp Directory for Different Application Users

2007-06-25 Thread Al
Doesn't this do what you want? tempnam ( string dir, string prefix ) [EMAIL PROTECTED] wrote: Hi All, I want to set different temp directory to every users of my application. Is it possible. TEMP_DIR is only configurable at system level, so I can do it only in PHP.INI or in apache as

Re: [PHP] Setting Different Temp Directory for Different Application Users

2007-06-25 Thread Jim Lucas
[EMAIL PROTECTED] wrote: Hi All, I want to set different temp directory to every users of my application. Is it possible. TEMP_DIR is only configurable at system level, so I can do it only in PHP.INI or in apache as PHP_VALUE. Any Idea how this can be achieved using combination of things?

Re: [PHP] Aggressive PHP Smart Caching

2007-06-25 Thread Crayon Shin Chan
On Monday 25 June 2007 11:55, Nathan Nobbe wrote: - why cache script output on disk? if a fast cache is your goal, why not store the result of script output in memory rather than on disk; that would be much faster Under most OSs whatever is on disk will end up cached in memory sooner or

[PHP] Byte conversion

2007-06-25 Thread Eric Butera
I've been trying to figure out a way to do this all day and I'm afraid I might need a bit of help. Basically I am trying to port over something from Java to PHP and I'm stuck on one particular piece of code: if ((ba[i + 0] == (byte)0xa7) (ba[i + 1] == (byte)0x51)) { The code is looping

Re: [PHP] Byte conversion

2007-06-25 Thread Tijnema
On 6/25/07, Eric Butera [EMAIL PROTECTED] wrote: I've been trying to figure out a way to do this all day and I'm afraid I might need a bit of help. Basically I am trying to port over something from Java to PHP and I'm stuck on one particular piece of code: if ((ba[i + 0] == (byte)0xa7) (ba[i

Re: [PHP] Byte conversion

2007-06-25 Thread Stut
Eric Butera wrote: I've been trying to figure out a way to do this all day and I'm afraid I might need a bit of help. Basically I am trying to port over something from Java to PHP and I'm stuck on one particular piece of code: if ((ba[i + 0] == (byte)0xa7) (ba[i + 1] == (byte)0x51)) { The

Re: [PHP] Byte conversion

2007-06-25 Thread Eric Butera
On 6/25/07, Stut [EMAIL PROTECTED] wrote: Eric Butera wrote: I've been trying to figure out a way to do this all day and I'm afraid I might need a bit of help. Basically I am trying to port over something from Java to PHP and I'm stuck on one particular piece of code: if ((ba[i + 0] ==

Re: [PHP] Byte conversion

2007-06-25 Thread Robin Vickery
On 25/06/07, Eric Butera [EMAIL PROTECTED] wrote: I've been trying to figure out a way to do this all day and I'm afraid I might need a bit of help. Basically I am trying to port over something from Java to PHP and I'm stuck on one particular piece of code: if ((ba[i + 0] == (byte)0xa7) (ba[i

Re: [PHP] Byte conversion

2007-06-25 Thread Eric Butera
On 6/25/07, Tijnema [EMAIL PROTECTED] wrote: On 6/25/07, Eric Butera [EMAIL PROTECTED] wrote: I've been trying to figure out a way to do this all day and I'm afraid I might need a bit of help. Basically I am trying to port over something from Java to PHP and I'm stuck on one particular piece

Re: [PHP] Convert Date time into Seconds

2007-06-25 Thread Dan
Also if you're planning on doing regular math with the outputs it's pretty easy to check if it's been 24 hours if you're using a unix time stamp, if((larger - smaller) = 86400) do something. kvigor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Cool, Like Ambien, It worked like a

Re: [PHP] Php script diagnostic app?

2007-06-25 Thread William Lovaton
If you have little knowledge about C you can use sysprof on a relatively new Linux distribution and you can see on a live system where the CPU is consumed the most. [] http://www.daimi.au.dk/~sandmann/sysprof/ [] http://live.gnome.org/Sysprof With a little help of Google you can map C functions

[PHP] Create .php file with php

2007-06-25 Thread Marius Toma
I can not create .php files from PHP. I can save them as *.php5, *.php3, asp, *.txt , etc... but not as .php. I tried both touch and fopen but none of them worked. I'm running PHP 5.1.6 on Apache 2, safe_mode is off Is this a security measure somewhere? How can I bypass it? Thank you, Marius

Re: [PHP] Create .php file with php

2007-06-25 Thread Daniel Brown
On 6/25/07, Marius Toma [EMAIL PROTECTED] wrote: I can not create .php files from PHP. I can save them as *.php5, *.php3, asp, *.txt , etc... but not as .php. I tried both touch and fopen but none of them worked. I'm running PHP 5.1.6 on Apache 2, safe_mode is off Is this a security measure

Fwd: [PHP] Create .php file with php

2007-06-25 Thread Daniel Brown
Hmm Google gave me an error when sending before. -- Forwarded message -- From: Daniel Brown [EMAIL PROTECTED] Date: Jun 25, 2007 8:28 PM Subject: Re: [PHP] Create .php file with php To: Marius Toma [EMAIL PROTECTED] Cc: php-general@lists.php.net On 6/25/07, Marius Toma

[PHP] using CURL or something similar to click on a link

2007-06-25 Thread Siavash Miri
Hi All, I just recently started writing a php script that would get some search results from some other sites and display them. I believe the only php way to do this is using CURL. am I correct?? or is there a more efficient way to do this? Anyways, i got it working fine with curl, except

Re: [PHP] using CURL or something similar to click on a link

2007-06-25 Thread Robert Cummings
On Mon, 2007-06-25 at 19:01 -0700, Siavash Miri wrote: Hi All, I just recently started writing a php script that would get some search results from some other sites and display them. I believe the only php way to do this is using CURL. am I correct?? or is there a more efficient way to

Re: [PHP] Create .php file with php

2007-06-25 Thread jekillen
On Jun 25, 2007, at 5:13 PM, Marius Toma wrote: I can not create .php files from PHP. I can save them as *.php5, *.php3, asp, *.txt , etc... but not as .php. I tried both touch and fopen but none of them worked. I'm running PHP 5.1.6 on Apache 2, safe_mode is off Is this a security measure

Re: [PHP] Create .php file with php

2007-06-25 Thread jekillen
On Jun 25, 2007, at 9:08 PM, jekillen wrote: On Jun 25, 2007, at 5:13 PM, Marius Toma wrote: I can not create .php files from PHP. I can save them as *.php5, *.php3, asp, *.txt , etc... but not as .php. I tried both touch and fopen but none of them worked. I'm running PHP 5.1.6 on Apache