Re: [PHP] windows 5.2.10 PHP not working with phpinfo

2009-09-01 Thread hack988 hack988
Use Event Viewer and log type is :Application log 2009/9/2 Fred Silsbee : > I looked high and low but no syslog > > I am currently working under XP Prof SP3 > > --- On Mon, 8/31/09, hack988 hack988 wrote: > >> From: hack988 hack988 >> Subject: Re: [PHP] windows 5.2.10 PHP not working with phpinf

Re: [PHP] OO and "Singleton" class

2009-09-01 Thread KOYAMA Tetsuji
Hi, After PHP 5.3, there is better implements for Singleton. http://d.hatena.ne.jp/Yudoufu/20090811/1250021010 This entry was written by Japanese, but you may understand php code. :-) On Wed, Sep 2, 2009 at 07:06, Eddie Drapkin wrote: > On Tue, Sep 1, 2009 at 5:16 PM, Paul M Foster wrote: >> >>

[PHP] a doubt with class DOM

2009-09-01 Thread Carlos Garcia
if my xml is something big, how reliable is saving changes to my xml this way: $doc->save('file.xml'); or another shape of save changes of my xml? Sorry my english is bad =P.- Thanks.- Best regards, Karl.- Carlos A. Garcia Hernandez José Clemente Orozco Mza. 7 Lt. 14 Pedr

Re: [PHP] OO and "Singleton" class

2009-09-01 Thread Paul M Foster
On Tue, Sep 01, 2009 at 06:06:24PM -0400, Eddie Drapkin wrote: > On Tue, Sep 1, 2009 at 5:16 PM, Paul M Foster wrote: > > > > I'm a little fuzzy on some of the PHP implementation details for some > > stuff. In PHP (5 <= phpversion() < 5.3), I'd like a configuration class > > which can only effecti

Re: [PHP] Re: LoginShare | How to authenticate once, and login to different websites

2009-09-01 Thread Behzad
Thank you all for your answers. i was looking for a simple and fast answer -> I'm going to store the a unique id in the database, and pass it between applications using the $_SESSION. Shawn and Martin, Thank you very much for your help. Kind regards, -behzad

Re: [PHP] windows 5.2.10 PHP not working with phpinfo

2009-09-01 Thread Fred Silsbee
I looked high and low but no syslog I am currently working under XP Prof SP3 --- On Mon, 8/31/09, hack988 hack988 wrote: > From: hack988 hack988 > Subject: Re: [PHP] windows 5.2.10 PHP not working with phpinfo > To: "Fred Silsbee" > Cc: php-general@lists.php.net > Date: Monday, August 31, 200

Re: [PHP] Re: LoginShare | How to authenticate once, and login to different websites

2009-09-01 Thread paragasu
why not use ready available php library OAuth? http://oauth.net/ On 9/1/09, Shawn McKenzie wrote: > Behzad wrote: >> Dear list, >> >> i'm trying to integrate two php-driven web applications, which both >> require the user to authenticate using a username and a password. >> >> Consider a situatio

[PHP] Generic decorators and type hinting

2009-09-01 Thread David Kurtz
I'm looking for a way to implement a generic Timing class as a decorator or come up with a solution for timing code execution without cluttering the code. In my web app, there is a perceived need to measure the execution time of many function calls and database queries using ZFDebug and its

[PHP] Re: PHP-->on MyMarket can not get username variable value from session.

2009-09-01 Thread Ricky Tompu Breaky
Dear Shawn. Hooray, you've solved my problem. Thank youveryverymuch. I really appreciate it. Thanks, Buddy. === On Tue, 01 Sep 2009 16:22:39 -0500 Shawn McKenzie wrote: > Ricky Tompu Breaky wrote: > > Dear my friends, > > > > I am learning a PHP implementation with MyMarket now. I

Re: [PHP] IRC and English

2009-09-01 Thread tedd
At 2:02 PM -0700 9/1/09, Jessi Berkelhammer wrote: As a monolingual North American, I am also very uncomfortable with this thread. A rant about abbreviations/IRC jargon is an appropriate discussion for list, but criticizing how non-native English speakers write English is not. This thread beg

Re: [PHP] safe_mode and inclusion of files don't work as documented

2009-09-01 Thread Ben Dunlap
> Safe mode is a bad idea. :) It's not safe; it may only have the effect > of making you think you're safe. If you have a particular reason to > use it then maybe it's OK, but just be aware that it will not exist in > future versions of PHP and relying on it is not a good idea. Security, > unfortun

Re: [PHP] IRC and English

2009-09-01 Thread Paul M Foster
On Tue, Sep 01, 2009 at 02:02:31PM -0700, Jessi Berkelhammer wrote: > As a monolingual North American, I am also very uncomfortable with this > thread. > > A rant about abbreviations/IRC jargon is an appropriate discussion for > list, but criticizing how non-native English speakers write English i

Re: [PHP] OO and "Singleton" class

2009-09-01 Thread Eddie Drapkin
On Tue, Sep 1, 2009 at 5:16 PM, Paul M Foster wrote: > > I'm a little fuzzy on some of the PHP implementation details for some > stuff. In PHP (5 <= phpversion() < 5.3), I'd like a configuration class > which can only effectively be instantiated once. Will the following code > do this? Any other su

Re: [PHP] IRC and English

2009-09-01 Thread Daniel Brown
On Tue, Sep 1, 2009 at 17:02, Jessi Berkelhammer wrote: > As a monolingual North American, I am also very uncomfortable with this > thread. > > A rant about abbreviations/IRC jargon is an appropriate discussion for list, > but criticizing how non-native English speakers write English is not. This >

[PHP] Re: PHP-->on MyMarket can not get username variable value from session.

2009-09-01 Thread Shawn McKenzie
Ricky Tompu Breaky wrote: > Dear my friends, > > I am learning a PHP implementation with MyMarket now. I got it from > http://sourceforge.net/projects/mymarket/files/mymarket/mymarket-1.72/mymarket-1.72.tar.gz/download > . > > I have installed and configured its > '/var/www/html/mymarket/applica

[PHP] OO and "Singleton" class

2009-09-01 Thread Paul M Foster
I'm a little fuzzy on some of the PHP implementation details for some stuff. In PHP (5 <= phpversion() < 5.3), I'd like a configuration class which can only effectively be instantiated once. Will the following code do this? Any other suggestions or corrections? (Code is untested. Feel free to comp

[PHP] PHP-->on MyMarket can not get username variable value from session.

2009-09-01 Thread Ricky Tompu Breaky
Dear my friends, I am learning a PHP implementation with MyMarket now. I got it from http://sourceforge.net/projects/mymarket/files/mymarket/mymarket-1.72/mymarket-1.72.tar.gz/download . I have installed and configured its '/var/www/html/mymarket/application.php' to the login account of my MySQL

Re: [PHP] IRC and English

2009-09-01 Thread Jessi Berkelhammer
As a monolingual North American, I am also very uncomfortable with this thread. A rant about abbreviations/IRC jargon is an appropriate discussion for list, but criticizing how non-native English speakers write English is not. This thread began with a mention of the "attitude" that non-native

Re: [PHP] Date +30 comparison

2009-09-01 Thread tedd
At 2:47 PM -0400 9/1/09, Andrew Ballard wrote: On Tue, Sep 1, 2009 at 1:27 PM, tedd wrote: First get the date to seconds, like so: $today_date = '8/26/2009'; $next_date = strtotime($today_date) + (86400 * 30); No. Due to Daylight Saving Time, many time zones have two days each year when

Re: [PHP] Re: Install PHPMyAdmin with urpmi

2009-09-01 Thread Ricky Tompu Breaky
Dear my friend, Shawn... Hoorayit works Thank you very much Shawn Thank you...Thank you...Thank you...Thank you...1000x On Tue, 01 Sep 2009 13:14:56 -0500 Shawn McKenzie wrote: > Ricky Tompu Breaky wrote: > > Hi, hack. > > > > The result is: "Failed". > > > > I don't know wh

Re: [PHP] CodeWorks 09

2009-09-01 Thread Jim Lucas
Elizabeth Naramore wrote: Hey all, Just wanted to make sure you knew about php|architect's upcoming CodeWorks conference, coming to 7 cities in 14 days: - San Francisco, CA: Sept 22-23 - Los Angeles, CA: Sept 24-25 - Dallas, TX: Sept 26-27 - Atlanta, GA: Sept 28-29 - Miami, FL: Sept 30 - Oct

Re: [PHP] Reading remote files

2009-09-01 Thread Ralph Deffke
I think, this also depends on the oprating system. I would say that any development team would avoid loading file type data into fast memory. These problems are all over applications. From the PHP point of view, it could mean that file data have to be read into memory, but it could not mean that th

Re: [PHP] Fwd: Current PHP Global Network Statistics

2009-09-01 Thread Daniel Brown
On Tue, Sep 1, 2009 at 15:10, Eddie Drapkin wrote: > > Why is 5.1.6 such a popular release for the PHP mirrors? It's a common distro release, particular for RPM's (CentOS, Fedora, RHEL). In fact, that's why I set that as the minimum version in the requirements during the upgrade operation:

Re: [PHP] Date +30 comparison

2009-09-01 Thread Paul M Foster
On Tue, Sep 01, 2009 at 02:47:43PM -0400, Andrew Ballard wrote: > On Tue, Sep 1, 2009 at 1:27 PM, tedd wrote: > > First get the date to seconds, like so: > > > > $today_date = '8/26/2009'; > > > > $next_date = strtotime($today_date) + (86400 * 30); > > > > No. Due to Daylight Saving Time, many ti

Re: [PHP] Fwd: Current PHP Global Network Statistics

2009-09-01 Thread Eddie Drapkin
On Tue, Sep 1, 2009 at 2:12 PM, Daniel Brown wrote: >    Guys and gals (particularly those of you interested in the trends > and metrics of PHP), here's a forwarded copy of an email I just fired > off to the mirrors around the world after completion of the first of > three phases of an upgrade oper

Re: [PHP] Date +30 comparison

2009-09-01 Thread Andrew Ballard
On Tue, Sep 1, 2009 at 1:27 PM, tedd wrote: > First get the date to seconds, like so: > > $today_date = '8/26/2009'; > > $next_date = strtotime($today_date) + (86400 * 30); > No. Due to Daylight Saving Time, many time zones have two days each year when the number of seconds in a day is not 86400.

[PHP] CodeWorks 09

2009-09-01 Thread Elizabeth Naramore
Hey all, Just wanted to make sure you knew about php|architect's upcoming CodeWorks conference, coming to 7 cities in 14 days: - San Francisco, CA: Sept 22-23 - Los Angeles, CA: Sept 24-25 - Dallas, TX: Sept 26-27 - Atlanta, GA: Sept 28-29 - Miami, FL: Sept 30 - Oct 1 - Washington, DC: Oct 2-3

Re: [PHP] Re: Install PHPMyAdmin with urpmi

2009-09-01 Thread Shawn McKenzie
Ricky Tompu Breaky wrote: > Hi, hack. > > The result is: "Failed". > > I don't know why my PHP module does not talk to my MySQL. > > Please keep telling me. > > On Tue, 1 Sep 2009 12:08:08 +0800 > hack988 hack988 wrote: > >> Use follow codes for test your php,php_mysql is work well. >> use yo

[PHP] Fwd: Current PHP Global Network Statistics

2009-09-01 Thread Daniel Brown
Guys and gals (particularly those of you interested in the trends and metrics of PHP), here's a forwarded copy of an email I just fired off to the mirrors around the world after completion of the first of three phases of an upgrade operation. Where does your server stand? What about your devel

Re: [PHP] IRC and English

2009-09-01 Thread Ashley Sheridan
On Tue, 2009-09-01 at 14:07 -0400, Daniel Brown wrote: > On Tue, Sep 1, 2009 at 13:36, Ashley Sheridan > wrote: > > I'll second that, I've not once seen you use txt spk, 744t speak, or any > > other abominable mess that passes for language these days! > > 744t speak is that like 733t spe

Re: [PHP] Re: Install PHPMyAdmin with urpmi

2009-09-01 Thread Ricky Tompu Breaky
Hi, hack. The result is: "Failed". I don't know why my PHP module does not talk to my MySQL. Please keep telling me. On Tue, 1 Sep 2009 12:08:08 +0800 hack988 hack988 wrote: > Use follow codes for test your php,php_mysql is work well. > use your ip replace localhost,your mysql port replace 33

Re: [PHP] IRC and English

2009-09-01 Thread Daniel Brown
On Tue, Sep 1, 2009 at 13:36, Ashley Sheridan wrote: > I'll second that, I've not once seen you use txt spk, 744t speak, or any > other abominable mess that passes for language these days! 744t speak is that like 733t speak 2.0? ;-P -- daniel.br...@parasane.net || danbr...@php.net http

Re: [PHP] Reading remote files

2009-09-01 Thread Grace Shibley
Are you actually having a problem with memory, or simply that you have to transfer it over a network first? Depending on the protocol used, you may be able to read it in chunks, but those chunks will still have to be copied to the computer that is reading it before it can be processed. The other o

RE: [PHP] Date +30 comparison

2009-09-01 Thread tedd
At 1:28 PM -0400 9/1/09, David Stoltz wrote: Ok, this is how I finally managed to get it to work - I'm sure there are other ways, but this works: //Check to make sure the next eval date is more than 30 days away $d1 = date('Y-m-d', strtotime($todays_date . '+30 day')); $d2 = date('Y-m-d', strto

Re: [PHP] Reading remote files

2009-09-01 Thread Ashley Sheridan
On Tue, 2009-09-01 at 10:43 -0700, Grace Shibley wrote: > HTTP > > On Tue, Sep 1, 2009 at 10:36 AM, Ashley Sheridan > wrote: > > > On Tue, 2009-09-01 at 10:34 -0700, Grace Shibley wrote: > > > Is there a way to read large (possibly 500 MB) remote files without > > loading > > > the whole file int

Re: [PHP] Reading remote files

2009-09-01 Thread Grace Shibley
HTTP On Tue, Sep 1, 2009 at 10:36 AM, Ashley Sheridan wrote: > On Tue, 2009-09-01 at 10:34 -0700, Grace Shibley wrote: > > Is there a way to read large (possibly 500 MB) remote files without > loading > > the whole file into memory? > > We are trying to write a function that will return chunks of

RE: [PHP] Reading remote files

2009-09-01 Thread Bob McConnell
From: Grace Shibley > Is there a way to read large (possibly 500 MB) remote files without loading > the whole file into memory? > We are trying to write a function that will return chunks of binary data > from a file on our server given a file location, specified offset and data > size. > > But,

Re: [PHP] Reading remote files

2009-09-01 Thread Ashley Sheridan
On Tue, 2009-09-01 at 10:34 -0700, Grace Shibley wrote: > Is there a way to read large (possibly 500 MB) remote files without loading > the whole file into memory? > We are trying to write a function that will return chunks of binary data > from a file on our server given a file location, specified

Re: [PHP] IRC and English

2009-09-01 Thread Ashley Sheridan
On Tue, 2009-09-01 at 13:33 -0400, tedd wrote: > At 11:16 AM -0300 9/1/09, Martin Scotta wrote: > >As a non-english speaker I feel very uncomfortable with this thread. > > You shouldn't feel uncomfortable because no one is talking about you. > > Cheers, > > tedd > > -- > --- > http://sperl

[PHP] Reading remote files

2009-09-01 Thread Grace Shibley
Is there a way to read large (possibly 500 MB) remote files without loading the whole file into memory? We are trying to write a function that will return chunks of binary data from a file on our server given a file location, specified offset and data size. But, we have not been able to get around

Re: [PHP] IRC and English

2009-09-01 Thread tedd
At 11:16 AM -0300 9/1/09, Martin Scotta wrote: As a non-english speaker I feel very uncomfortable with this thread. You shouldn't feel uncomfortable because no one is talking about you. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP Gene

[PHP] Re: Date +30 comparison

2009-09-01 Thread Shawn McKenzie
David Stoltz wrote: > I'm really struggling with dates in PHP. (Yes, I tried reading the > manual)... > > Can someone provide code that does this: > > Takes current date, assigns it to a variable (let's say $today) > Then adds 30 days to $today variable > Takes a string ($nexteval) like '8/26/200

RE: [PHP] Date +30 comparison

2009-09-01 Thread David Stoltz
Ok, this is how I finally managed to get it to work - I'm sure there are other ways, but this works: //Check to make sure the next eval date is more than 30 days away $d1 = date('Y-m-d', strtotime($todays_date . '+30 day')); $d2 = date('Y-m-d', strtotime($nextdate)); if($d1>$d2){ echo "

Re: [PHP] Date +30 comparison

2009-09-01 Thread tedd
At 5:43 PM +0100 9/1/09, Ashley Sheridan wrote: On Tue, 2009-09-01 at 12:19 -0400, David Stoltz wrote: I'm really struggling with dates in PHP. (Yes, I tried reading the manual)... Can someone provide code that does this: Takes current date, assigns it to a variable (let's say $today) The

Re: [PHP] Date +30 comparison

2009-09-01 Thread kranthi
i prefer http://in3.php.net/strtotime it supports loads of other formats as well (including +30 days and 8/26/2009) above all it returns unix time stamp which can be used directly with date(). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Date +30 comparison

2009-09-01 Thread Dan Shirah
> > I'm really struggling with dates in PHP. (Yes, I tried reading the > manual)... > > Can someone provide code that does this: > > Takes current date, assigns it to a variable (let's say $today) > Then adds 30 days to $today variable > Takes a string ($nexteval) like '8/26/2009' and compare it to

Re: [PHP] windows 5.2.10 PHP not working with phpinfo

2009-09-01 Thread Fred Silsbee
thanks! I am new to this science! where is syslog? XP Prof event log? --- On Mon, 8/31/09, hack988 hack988 wrote: > From: hack988 hack988 > Subject: Re: [PHP] windows 5.2.10 PHP not working with phpinfo > To: "Fred Silsbee" > Cc: php-general@lists.php.net > Date: Monday, August 31, 2009, 6:35

Re: [PHP] Date +30 comparison

2009-09-01 Thread Ashley Sheridan
On Tue, 2009-09-01 at 12:19 -0400, David Stoltz wrote: > I'm really struggling with dates in PHP. (Yes, I tried reading the > manual)... > > Can someone provide code that does this: > > Takes current date, assigns it to a variable (let's say $today) > Then adds 30 days to $today variable > Takes

[PHP] Date +30 comparison

2009-09-01 Thread David Stoltz
I'm really struggling with dates in PHP. (Yes, I tried reading the manual)... Can someone provide code that does this: Takes current date, assigns it to a variable (let's say $today) Then adds 30 days to $today variable Takes a string ($nexteval) like '8/26/2009' and compare it to $today. The va

RE: [PHP] IRC and English

2009-09-01 Thread Ashley Sheridan
On Tue, 2009-09-01 at 11:05 -0400, Bob McConnell wrote: > From: Luke > > > 2009/9/1 Martin Scotta > > > >> On Tue, Sep 1, 2009 at 9:44 AM, tedd wrote: > >> > >> > At 9:06 PM -0400 8/31/09, Paul M Foster wrote: > >> > > >> >> I'm sorry, but is anyone else annoyed by people who attempt to use IRC

RE: [PHP] IRC and English

2009-09-01 Thread Bob McConnell
From: Luke > 2009/9/1 Martin Scotta > >> On Tue, Sep 1, 2009 at 9:44 AM, tedd wrote: >> >> > At 9:06 PM -0400 8/31/09, Paul M Foster wrote: >> > >> >> I'm sorry, but is anyone else annoyed by people who attempt to use IRC >> >> jargon on mailing lists? For example, substituting "u" for "you". O

[PHP] Re: LoginShare | How to authenticate once, and login to different websites

2009-09-01 Thread Shawn McKenzie
Behzad wrote: > Dear list, > > i'm trying to integrate two php-driven web applications, which both > require the user to authenticate using a username and a password. > > Consider a situation where the user has logged-in to the 1st application. > She > clicks over a hyper-link, which directs her

Re: [PHP] IRC and English

2009-09-01 Thread tedd
At 3:27 PM +0100 9/1/09, Ashley Sheridan wrote: On Tue, 2009-09-01 at 11:16 -0300, Martin Scotta wrote: -snip- > Martin Scotta Spanish Speaker I disagree (and I did translate and read your Spanish message). This mailing list is English (I'm not sure if similar ones exist for Spanish-speakin

Re: [PHP] IRC and English

2009-09-01 Thread Ashley Sheridan
On Tue, 2009-09-01 at 11:16 -0300, Martin Scotta wrote: > On Tue, Sep 1, 2009 at 9:44 AM, tedd wrote: > > > At 9:06 PM -0400 8/31/09, Paul M Foster wrote: > > > >> I'm sorry, but is anyone else annoyed by people who attempt to use IRC > >> jargon on mailing lists? For example, substituting "u" fo

Re: [PHP] IRC and English

2009-09-01 Thread Luke
2009/9/1 Martin Scotta > On Tue, Sep 1, 2009 at 9:44 AM, tedd wrote: > > > At 9:06 PM -0400 8/31/09, Paul M Foster wrote: > > > >> I'm sorry, but is anyone else annoyed by people who attempt to use IRC > >> jargon on mailing lists? For example, substituting "u" for "you". Oddly > >> enough, I'm

Re: [PHP] IRC and English

2009-09-01 Thread Martin Scotta
On Tue, Sep 1, 2009 at 9:44 AM, tedd wrote: > At 9:06 PM -0400 8/31/09, Paul M Foster wrote: > >> I'm sorry, but is anyone else annoyed by people who attempt to use IRC >> jargon on mailing lists? For example, substituting "u" for "you". Oddly >> enough, I'm seeing this primarily in foreign langu

Re: [PHP] LoginShare | How to authenticate once, and login to different websites

2009-09-01 Thread Martin Scotta
On Tue, Sep 1, 2009 at 2:22 AM, Behzad wrote: > Dear list, > > i'm trying to integrate two php-driven web applications, which both > require the user to authenticate using a username and a password. > > Consider a situation where the user has logged-in to the 1st application. > She > clicks over

Re: [PHP] IRC and English

2009-09-01 Thread tedd
At 9:06 PM -0400 8/31/09, Paul M Foster wrote: I'm sorry, but is anyone else annoyed by people who attempt to use IRC jargon on mailing lists? For example, substituting "u" for "you". Oddly enough, I'm seeing this primarily in foreign language posters, not in native English speakers. It's often a

Re: [PHP] I'm not crazy I swear it... IE vs Safari and Firefox - The impossible!

2009-09-01 Thread tedd
Does anyone have any ideas on what could possibly be causing this? Matt: The first thing I would do is to validate the web portion of your application. In other words do your forms, as well as the rest of the web pages, validate? I've seen instances where people build projects around IE when

[PHP] preg_match doesn't match Greek

2009-09-01 Thread Thodoris
Hi gang, I am trying to make a form validation using preg_match and it fails. I think it is because the input is in Greek. I have made this script: $str = "ΕΕΝ 5196"; $pattern = "/^[[:alnum:]\s\-\,]*$/u"; echo ''; print preg_match($pattern,$str,$matches)."\n"; print_r($matches); to test pr

Re: [PHP] Write Japanese text into an existing PDF

2009-09-01 Thread tedd
At 10:23 PM -0600 8/31/09, George Langley wrote: On 31-Aug-09, at 6:37 AM, tedd wrote: I used the PDFB library to create this: http://webbytedd.com/bb/pdf/ Here's a link for more information: http://chir.ag/projects/pdfb/ While I've never used Japanese text, I think as long as you have a f

Re: [PHP] Re: windows 5.2.10 PHP not working with phpinfo

2009-09-01 Thread Ashley Sheridan
On Mon, 2009-08-31 at 02:11 +0200, Ralph Deffke wrote: > use wamp 2 !! > http://www.wampserver.com/ > > no easier way under windows > > ralph_def...@yahoo.de > > "Fred Silsbee" wrote in message > news:43633.64942...@web59909.mail.ac4.yahoo.com... > I got 5.3 working but found out there was no p

Re: [PHP] how to exact mys database record?

2009-09-01 Thread Ashley Sheridan
On Sun, 2009-08-30 at 15:31 -0700, ann kok wrote: > Hi > > how to exact mys database record in virtual format? > > Thank you > > > __ > Connect with friends from any web browser - no download required. Try the new > Yahoo! C