Re: [PHP] the Y2K38 BUG

2008-05-07 Thread Jon L.
Another possibility... Port the Date object implementation from ECMA/Javascript. It has a range of +/-8.64e15, or Tue, 20 Apr -271821 00:00:00 GMT to Sat, 13 Sep 275760 00:00:00 GMT. You know...just to have a little extra time to find something else. ;) - Jon L. On Wed, May 7, 2008 at 12:56 AM,

Re: [PHP] the Y2K38 BUG

2008-05-07 Thread Kalle Sommer Nielsen
Quoting Jon L. [EMAIL PROTECTED]: Another possibility... Port the Date object implementation from ECMA/Javascript. It has a range of +/-8.64e15, or Tue, 20 Apr -271821 00:00:00 GMT to Sat, 13 Sep 275760 00:00:00 GMT. You know...just to have a little extra time to find something else. ;) - Jon

Re: [PHP] the Y2K38 BUG

2008-05-07 Thread Nathan Nobbe
On Tue, May 6, 2008 at 11:56 PM, Paul Scott [EMAIL PROTECTED] wrote: On Tue, 2008-05-06 at 23:50 -0600, Nathan Nobbe wrote: true-that ;) anyway, the DateTime class is implemented as a 64-bit unsigned (i think) value. so if you use it you should be good to go. php echo

[PHP] Re: Handling Incoming Email Attachments

2008-05-07 Thread Manuel Lemos
Hello, on 05/06/2008 06:36 AM Nirmal Jayasinghe said the following: hello all, I'm trying to figure out a way to manipulate incoming email attachments with PHP. There'll be a special email address to which the emails with the attachments would be sent, with a number specified in the subject

Re: [PHP] the Y2K38 BUG

2008-05-07 Thread Nathan Nobbe
On Wed, May 7, 2008 at 12:48 AM, Kalle Sommer Nielsen [EMAIL PROTECTED] wrote: Quoting Jon L. [EMAIL PROTECTED]: Another possibility... Port the Date object implementation from ECMA/Javascript. It has a range of +/-8.64e15, or Tue, 20 Apr -271821 00:00:00 GMT to Sat, 13 Sep 275760

Re: [PHP] the Y2K38 BUG

2008-05-07 Thread Paul Scott
On Wed, 2008-05-07 at 00:54 -0600, Nathan Nobbe wrote: looks like mine only goes to dec. 31, =/ *Gasp!* best you get cracking on finding an alternative solution! --Paul All Email originating from UWC is covered by disclaimer

RE: [PHP] the Y2K38 BUG

2008-05-07 Thread Chris Haensel
-Original Message- From: Paul Scott [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 07, 2008 9:12 AM To: Nathan Nobbe Cc: Kalle Sommer Nielsen; Jon L.; Chetan Rane; php-general@lists.php.net Subject: Re: [PHP] the Y2K38 BUG On Wed, 2008-05-07 at 00:54 -0600, Nathan Nobbe wrote: looks

[PHP] Re: PHP Web Apps OpenID

2008-05-07 Thread Colin Guthrie
Joe Harman wrote: I am curious here if any of you are considering or already using OpenID or Windows CardSpace? Does anyone see this being a big deal??? from a users stand point it seems like a big hassle to get started with it and I'm not sure if it would scare people away or not? any thoughts

[PHP] AI file and mapping with PHP

2008-05-07 Thread Angelo Zanetti
Hi Guys, We have a project where by we have a map in ai format (vector format). What we want to do is to programmatically come up with a solution that say on the map there is a restaurant at a certain location, that we can zoom into the map on that specific area. I really am not sure where to

Re: [PHP] AI file and mapping with PHP

2008-05-07 Thread Aschwin Wesselius
Angelo Zanetti wrote: Hi Guys, We have a project where by we have a map in ai format (vector format). What we want to do is to programmatically come up with a solution that say on the map there is a restaurant at a certain location, that we can zoom into the map on that specific area. I

RE: [PHP] AI file and mapping with PHP

2008-05-07 Thread Angelo Zanetti
_ From: Aschwin Wesselius [mailto:[EMAIL PROTECTED] Sent: 07 May 2008 12:21 To: Angelo Zanetti Cc: php-general@lists.php.net Subject: Re: [PHP] AI file and mapping with PHP Angelo Zanetti wrote: Hi Guys, We have a project where by we have a map in ai format (vector

Re: [PHP] AI file and mapping with PHP

2008-05-07 Thread Paul Scott
On Wed, 2008-05-07 at 12:17 +0200, Angelo Zanetti wrote: We have a project where by we have a map in ai format (vector format). What we want to do is to programmatically come up with a solution that say on the map there is a restaurant at a certain location, that we can zoom into the map on

[PHP] Problems with mod_vhost_alias and PHP require

2008-05-07 Thread Mário Gamito
Hi, I have this Apache server with mod_vhost_alias and set /home/pages/%0 as the VirtualDocumentRoot In /home/pages/gamito.foo.com I have a index.php file. This generates the http://gamito.foo.com URL. Also, I have a /home/pages/fckeditor with FCKeditor. *This is not defined as a subdomain in

Re: [PHP] Problems with mod_vhost_alias and PHP require

2008-05-07 Thread Aschwin Wesselius
Mário Gamito wrote: Hi, I have this Apache server with mod_vhost_alias and set /home/pages/%0 as the VirtualDocumentRoot In /home/pages/gamito.foo.com I have a index.php file. This generates the http://gamito.foo.com URL. Also, I have a /home/pages/fckeditor with FCKeditor. *This is not

Re: [PHP] GD - JPEG to PNG with transparency and color

2008-05-07 Thread tedd
At 12:16 PM -0400 5/6/08, Travis L. Font wrote: Following files: bg.png - Clear Transparent Image 14416fed5d4f78.jpg - Normal Jpeg Image The Code: header('content-type: image/png'); $watermark = imagecreatefromjpeg('14416fed5d4f78.jpg'); $watermark_width = imagesx($watermark);

Re: [PHP] Where to start!

2008-05-07 Thread tedd
At 1:49 PM -0400 5/6/08, Robert Cummings wrote: On Tue, 2008-05-06 at 13:42 -0400, tedd wrote: Rob, who I respect greatly, said that 90 percent of what you are doing should be decided before you start programming. But, I never work that way either. I always jump right in and use the

[PHP] php make fails with Sybase15

2008-05-07 Thread Lorena
Hi, I am having issues compiling php5.2.3 with Sybase 15. After much troubleshooting, I was able to compile it with sybase12.5. But since we are upgrading our system to Sybase 15. I need php5.2.3 to run with this version of sybase. During my web search I found out that the library files php

Re: [PHP] AI file and mapping with PHP

2008-05-07 Thread Thijs Lensselink
Quoting Angelo Zanetti [EMAIL PROTECTED]: Hi Guys, We have a project where by we have a map in ai format (vector format). What we want to do is to programmatically come up with a solution that say on the map there is a restaurant at a certain location, that we can zoom into the map on that

[PHP] How to determine if file is writable and deletable

2008-05-07 Thread Al
I need to determine if a file is truly deletable by a php script, Deleting permissions seem to be the same as writing, they probably have the same criteria. is_writable() seems to virtually useless in most cases. It doesn't take into account the directory ownership/permissions; which, best I

Re: [PHP] How to determine if file is writable and deletable

2008-05-07 Thread Aschwin Wesselius
Al wrote: I need to determine if a file is truly deletable by a php script, Deleting permissions seem to be the same as writing, they probably have the same criteria. is_writable() seems to virtually useless in most cases. It doesn't take into account the directory ownership/permissions;

Re: [PHP] the Y2K38 BUG

2008-05-07 Thread Nathan Nobbe
On Wed, May 7, 2008 at 1:11 AM, Paul Scott [EMAIL PROTECTED] wrote: On Wed, 2008-05-07 at 00:54 -0600, Nathan Nobbe wrote: looks like mine only goes to dec. 31, =/ *Gasp!* best you get cracking on finding an alternative solution! yes, me and the rest of the immortal gang are all

Re: [PHP] How to determine if file is writable and deletable

2008-05-07 Thread Al
You are missing the point of my question. I don't have a problem reading the permissions. They do not solely determine whether a file can be deleted. Aschwin Wesselius wrote: Al wrote: I need to determine if a file is truly deletable by a php script, Deleting permissions seem to be the same

[PHP] $_SESSION v. Cookies

2008-05-07 Thread Scott Campbell
Dear PHP List, PHP 5, Apache2, MySQL 5, running on Ubuntu, viewing deving with FireFox and Konqueror (Linux). I am building a site with multiple tools and want to pass variables throughout them all. Before, I was passing variables using hidden HTML Form tags, but the site has grown too

Re: [PHP] $_SESSION v. Cookies

2008-05-07 Thread Robert Cummings
On Wed, 2008-05-07 at 12:27 -0400, Scott Campbell wrote: Dear PHP List, PHP 5, Apache2, MySQL 5, running on Ubuntu, viewing deving with FireFox and Konqueror (Linux). I am building a site with multiple tools and want to pass variables throughout them all. Before, I was passing

Re: [PHP] How to determine if file is writable and deletable

2008-05-07 Thread robinv
On 07/05/2008, Al [EMAIL PROTECTED] wrote: I need to determine if a file is truly deletable by a php script, Deleting permissions seem to be the same as writing, they probably have the same criteria. You're not writing to the file, you're unlinking it from the containing directory, so it's the

RES: [PHP] How to determine if file is writable and deletable

2008-05-07 Thread Thiago Pojda
If it's not, what else can? I got curious. Regards, Thiago Henrique Pojda -Mensagem original- De: Al [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 7 de maio de 2008 12:25 Para: php-general@lists.php.net Assunto: Re: [PHP] How to determine if file is writable and deletable You

Re: [PHP] the Y2K38 BUG

2008-05-07 Thread Daniel Brown
On Wed, May 7, 2008 at 11:34 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Wed, May 7, 2008 at 1:11 AM, Paul Scott [EMAIL PROTECTED] wrote: On Wed, 2008-05-07 at 00:54 -0600, Nathan Nobbe wrote: looks like mine only goes to dec. 31, =/ *Gasp!* best you get cracking on

Re: [PHP] $_SESSION v. Cookies

2008-05-07 Thread Wolf
Scott Campbell [EMAIL PROTECTED] wrote: Dear PHP List, PHP 5, Apache2, MySQL 5, running on Ubuntu, viewing deving with FireFox and Konqueror (Linux). I am building a site with multiple tools and want to pass variables throughout them all. Before, I was passing variables

Re: [PHP] Re: Re[PHP] gex to catch ps

2008-05-07 Thread Ryan S
Hey, clip $tag_regex=array( '/\p(\s*)\(.*?)\\/p\ /si' = $1, '/\(\s*)(*.?)class\=(*.?)\(.*?)\\/(*.?)\/si' = $3 ); $paragraphs=preg_replace(array_keys($tag_regex),array_values($tag_regex),$page); I am not sure what tag is that you mean on class=something, but in this RE .. it should

Re: [PHP] Re: PHP Web Apps OpenID

2008-05-07 Thread Joe Harman
Yeah, after reading some about it yesterday and using it on some sites, I like that it sort of simplifies some things for the end user... it really fits sites like social networking stuff well.. I am considering using this for our ecommerce site, it only becomes useful though for repeat visitors

Re: [PHP] Regex to catch ps (weird result)

2008-05-07 Thread Ryan S
clip preg_match_all('|p[^]*(.*)/p|Ui', $myText, $myArray); /clip Hey! Thanks for replying. Your preg_match_all works like a charm, but for some reason catches only 8 out of 9 paragraphs... its really weird. I have upped the test page to http://www.ezee.se/tests/para_regex2.php.txt so you

Re: [PHP] Regex to catch ps (weird result)

2008-05-07 Thread Shawn McKenzie
Ryan S wrote: clip preg_match_all('|p[^]*(.*)/p|Ui', $myText, $myArray); /clip Hey! Thanks for replying. Your preg_match_all works like a charm, but for some reason catches only 8 out of 9 paragraphs... its really weird. I have upped the test page to

[PHP] ldap_search results limited

2008-05-07 Thread mburtch
I am running into a problem with my queries returning a limited number of result entries. The LDAP server is Kerio Mail Server, and I am verified that the SIZELIMIT in the server's configuration is 0 (no limit). For some reason, my server seems to be limited to 200 results if no limit is

Re: [PHP] Regex to catch ps (weird result)

2008-05-07 Thread Ryan S
clip http://www.ezee.se/tests/para_regex2.php.txt Yep, sorry... Just add the s preg_match_all('|p[^]*(.*)/p|Uis', $myText, $myArray); /clip Swett! It works! If you _do get time_, would love to know the actual meaning of |p[^]*(.*)/p|Uis because although I do appreciate the help and

Re: [PHP] ldap_search results limited

2008-05-07 Thread Nathan Nobbe
On Wed, May 7, 2008 at 12:50 PM, mburtch [EMAIL PROTECTED] wrote: I am running into a problem with my queries returning a limited number of result entries. The LDAP server is Kerio Mail Server, and I am verified that the SIZELIMIT in the server's configuration is 0 (no limit). For some

RE: [PHP] ldap_search results limited

2008-05-07 Thread Jay Blanchard
[snip] I am running into a problem with my queries returning a limited number of result entries. [/snip] Most LDAP servers set a limit, it is usually not a PHP problem. One way to solve is to query by first letter of last name and throw into an array (iterating through the alphabet). function

Re: [PHP] Regex to catch ps (weird result)

2008-05-07 Thread Jon L.
Pretty close. The only thing I'd suggest is a different way of wording step 2: Can contain anything but '' until step 3. As for the switches/modifiers (Uis), check out: http://us.php.net/manual/en/reference.pcre.pattern.modifiers.php U = ungreedy i = case-insensitive (|p| matches 'p' and/or

[PHP] php 5.2.6 make failure

2008-05-07 Thread Steven Perez
I am having a problem that I cannot seem to get through. Unfortunately, I was given the task of getting a working php binary for a modified redhat 7.2 box (I know I know). I got through the configure phase but I cannot seem to complete the make process. The following is what I get as an

Re: [PHP] $_SESSION v. Cookies

2008-05-07 Thread tedd
At 12:34 PM -0400 5/7/08, Robert Cummings wrote: The exception being when it performs cleanup. Cleanup should be relegated to a cron job. Rob: What clean-up? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

Re: [PHP] How to determine if file is writable and deletable

2008-05-07 Thread tedd
At 11:16 AM -0400 5/7/08, Al wrote: I need to determine if a file is truly deletable by a php script, Deleting permissions seem to be the same as writing, they probably have the same criteria. is_writable() seems to virtually useless in most cases. It doesn't take into account the directory

Re: [PHP] How to determine if file is writable and deletable

2008-05-07 Thread Richard Heyes
Perhaps touch might help. Touch my ass. ROFLMAO (I've been waiting for years to use that one) -- Richard Heyes ++ | Access SSH with a Windows mapped drive | |http://www.phpguru.org/sftpdrive| ++ -- PHP

Re: [PHP] $_SESSION v. Cookies

2008-05-07 Thread Robert Cummings
On Wed, 2008-05-07 at 16:03 -0400, tedd wrote: At 12:34 PM -0400 5/7/08, Robert Cummings wrote: The exception being when it performs cleanup. Cleanup should be relegated to a cron job. Rob: What clean-up? All the inactive session files... inactive and garbage collection time is

Re: [PHP] $_SESSION v. Cookies

2008-05-07 Thread Nathan Nobbe
On Wed, May 7, 2008 at 2:22 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2008-05-07 at 16:03 -0400, tedd wrote: At 12:34 PM -0400 5/7/08, Robert Cummings wrote: The exception being when it performs cleanup. Cleanup should be relegated to a cron job. Rob: What clean-up?

Re: [PHP] ldap_search results limited

2008-05-07 Thread Matt Burtch
Thanks for the tips. phpLDAPAdmin was hanging while trying to authenticate, but I'll give it a try again later. Nathan: splitting up the search; I hadn't considered this! It is working nicely for the time being, thanks. - MB On Wed, May 7, 2008 at 3:23 PM, Jay Blanchard [EMAIL PROTECTED] wrote:

Re: [PHP] ldap_search results limited

2008-05-07 Thread Nathan Nobbe
On Wed, May 7, 2008 at 2:26 PM, Matt Burtch [EMAIL PROTECTED] wrote: Thanks for the tips. phpLDAPAdmin was hanging while trying to authenticate, but I'll give it a try again later. Nathan: splitting up the search; I hadn't considered this! It is working nicely for the time being, thanks.

Re: [PHP] $_SESSION v. Cookies

2008-05-07 Thread tedd
At 4:22 PM -0400 5/7/08, Robert Cummings wrote: On Wed, 2008-05-07 at 16:03 -0400, tedd wrote: At 12:34 PM -0400 5/7/08, Robert Cummings wrote: The exception being when it performs cleanup. Cleanup should be relegated to a cron job. Rob: What clean-up? All the inactive session

Re: [PHP] $_SESSION v. Cookies

2008-05-07 Thread Robert Cummings
On Wed, 2008-05-07 at 14:29 -0600, Nathan Nobbe wrote: On Wed, May 7, 2008 at 2:22 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2008-05-07 at 16:03 -0400, tedd wrote: At 12:34 PM -0400 5/7/08, Robert Cummings wrote: The exception being

Re: [PHP] How to determine if file is writable and deletable

2008-05-07 Thread tedd
At 9:18 PM +0100 5/7/08, Richard Heyes wrote: Perhaps touch might help. Touch my ass. ROFLMAO (I've been waiting for years to use that one) It won't work? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

Re: [PHP] How to determine if file is writable and deletable

2008-05-07 Thread Richard Heyes
It won't work? No idea, it was just a rather poor play on words. -- Richard Heyes ++ | Access SSH with a Windows mapped drive | |http://www.phpguru.org/sftpdrive| ++ -- PHP General Mailing List

Re: [PHP] $_SESSION v. Cookies

2008-05-07 Thread Nathan Nobbe
On Wed, May 7, 2008 at 2:35 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2008-05-07 at 14:29 -0600, Nathan Nobbe wrote: On Wed, May 7, 2008 at 2:22 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2008-05-07 at 16:03 -0400, tedd wrote: At 12:34 PM -0400

Re: [PHP] Regex to catch ps

2008-05-07 Thread Aschwin Wesselius
Ryan S wrote: Hey! Thansk for replying! clip It is obvious I haven't had my caffeine yet. This is my last try to get the pattern straight: ?php $html = END_OF_HTML bhello/b b class=blahhello/b pthose/p p class=blahhello/p ahello/a a href=urlthis/a arose/a a href=regex yohello/a anose/a a

[PHP] Redirection

2008-05-07 Thread Ben
Is there a way to take all the variables, no matter what their names and values are, from the parameters in a url and POST them to another URL so that they don't show up in the address bar? I've noticed a huge increase in my bounce rate since I added some tracking parameters to my urls, but I

Re: [PHP] Redirection

2008-05-07 Thread Kyle Browning
Javascript can help you there. On May 7, 2008, at 4:55 PM, Ben wrote: Is there a way to take all the variables, no matter what their names and values are, from the parameters in a url and POST them to another URL so that they don't show up in the address bar? I've noticed a huge

Re: [PHP] Redirection

2008-05-07 Thread TG
I believe you can use cURL to create POST requests. -TG - Original Message - From: Ben [EMAIL PROTECTED] To: php-general@lists.php.net Date: Wed, 7 May 2008 17:55:34 -0600 Subject: [PHP] Redirection Is there a way to take all the variables, no matter what their names and values are,

Re: [PHP] Redirection

2008-05-07 Thread Nathan Nobbe
On Wed, May 7, 2008 at 5:55 PM, Ben [EMAIL PROTECTED] wrote: Is there a way to take all the variables, no matter what their names and values are, from the parameters in a url and POST them to another URL so that they don't show up in the address bar? I've noticed a huge increase in my