[PHP] Help! I cannot send e-mail to your mail groups

2007-03-01 Thread Haydar Tuna
Hello, I have been Linux user for 7 years and I have been membership of Linux Community group for 3 years in Turkey. As you know, linux users share all of experiences and knownledges and I'm writing a book about PHP. I'm a PHP professional for this reason I want to help any people on the world

Re: [PHP] best framework (pear vs zend framework)

2007-03-01 Thread Larry Garfield
On Thursday 01 March 2007 3:17 am, Edward Kay wrote: > Personally, I like Qcodo (http://www.qcodo.com) - but only because it fits > with both my mindset and the applications I'm developing at the moment. > > Edward I looked into QCodo recently when considering it for a project. It looks like it

Re: [PHP] Re: how to display images stored in DB

2007-03-01 Thread markw
>> > To follow up with Ted, nobody said using the filesystem is bad, >> >> No, it is the most efficient way. > > Not in my environment. All db servers have RAID 10 over 8 SCSI 15K > disks. Pulling from them is always faster than a webserver pulling > from its SATA drive. That's not exactly an appl

Re: [PHP] curlopt_timeout default

2007-03-01 Thread Bruce Cowin
For anyone who is interested, I found this: > libcurl has no default timeouts for these. When you > don't use them, you will > be in the hands of your operating system's timeouts. at http://curl.haxx.se/mail/lib-2004-04/0027.html Regards, Bruce >>> "Bruce Cowin" <[EMAIL PROTECTED]> 2/03/20

Re: [PHP] Re: how to display images stored in DB

2007-03-01 Thread steve
> To follow up with Ted, nobody said using the filesystem is bad, No, it is the most efficient way. Not in my environment. All db servers have RAID 10 over 8 SCSI 15K disks. Pulling from them is always faster than a webserver pulling from its SATA drive. Also, there is issue of going to the da

Re: [PHP] curlopt_timeout default

2007-03-01 Thread Bruce Cowin
Thanks Richard. I'll look into that. And yes, I'm looking at capturing the curl_getinfo() as well. Thanks again. Regards, Bruce >>> "Richard Lynch" <[EMAIL PROTECTED]> 2/03/2007 1:36 p.m. >>> On Thu, March 1, 2007 5:16 pm, Bruce Cowin wrote: > I'm using PHP 5.1.2 on IIS. From time to time

Re: [PHP] Eregi error

2007-03-01 Thread Richard Lynch
On Thu, March 1, 2007 6:14 pm, Myron Turner wrote: > Roberto Mansfield wrote: >> Myron Turner wrote: >> >>> M.Sokolewicz wrote: >>> >>$pattern = '^[a-z0-9\!\_ \.- ,/]*$'; >>if(!eregi($pattern, $input)){ >> >>> the problem is that the hyphen is interpreted as rege

Re: [PHP] curlopt_timeout default

2007-03-01 Thread Richard Lynch
On Thu, March 1, 2007 5:16 pm, Bruce Cowin wrote: > I'm using PHP 5.1.2 on IIS. From time to time, my cURL response is > empty (i.e., strlen($response) == 0). I'm wondering if it is a > timeout issue. If cURL timed out, would you expect an empty response? > > Also, I want to change curlopt_timeo

Re: [PHP] Eregi error

2007-03-01 Thread Myron Turner
Roberto Mansfield wrote: Myron Turner wrote: M.Sokolewicz wrote: $pattern = '^[a-z0-9\!\_ \.- ,/]*$'; if(!eregi($pattern, $input)){ the problem is that the hyphen is interpreted as regex range operator: [a-z0-9\!

Re: [PHP] Re: how to display images stored in DB

2007-03-01 Thread markw
> On Thu, 2007-03-01 at 21:08 +0100, Roman Neuhauser wrote: >> # [EMAIL PROTECTED] / 2007-03-01 12:46:09 -0500: >> > At 10:01 AM -0500 3/1/07, markw@mohawksoft.com wrote: >> > >In this discussion I have stated reasons why it is a bad idea. No one >> has >> > >come up with a counter point which can

Re: [PHP] auction scripts?

2007-03-01 Thread Lisa A
I wasn't even aware of anything but Ebay, but the client has seen sites that have online bidding. I just wanted to see what was out there, because I didn't have a clue and don't have the time to spend on creating something, unless there was software out there. He just wants something simple th

Re: [PHP] Re: how to display images stored in DB

2007-03-01 Thread Richard Lynch
On Wed, February 28, 2007 6:41 pm, Robert Cummings wrote: > What about when you need to share those files across a 50 node > network? > I'd keep it in a database, then when I need it cache a local copy on > the > filesystem. Then I can just check the timestamp in the database to see > if the file h

Re: [PHP] Re: how to display images stored in DB

2007-03-01 Thread Richard Lynch
On Wed, February 28, 2007 4:04 pm, Mark wrote: > Kevin Waterson wrote: > >> This one time, at band camp, zerof <[EMAIL PROTECTED]> wrote: >> >>> It is not a good practice to store pictures in DataBases, use >>> links, >>> instead of. >> >> Rubbish, where are your benchmarks? > > It has almost nothi

[PHP] curlopt_timeout default

2007-03-01 Thread Bruce Cowin
I'm using PHP 5.1.2 on IIS. From time to time, my cURL response is empty (i.e., strlen($response) == 0). I'm wondering if it is a timeout issue. If cURL timed out, would you expect an empty response? Also, I want to change curlopt_timeout to see if this helps. But what I can't find is what

RE: [PHP] exec from process (deamon) without shell

2007-03-01 Thread Peter Lauri
> -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Sent: Friday, March 02, 2007 12:37 AM > To: [EMAIL PROTECTED] > Cc: Roman Neuhauser; 'PHP Mailing' > Subject: Re: [PHP] exec from process (deamon) without shell > > Add a nice clean line to the end of your PHP scripts:

RE: [PHP] exec from process (deamon) without shell

2007-03-01 Thread Peter Lauri
> -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Sent: Friday, March 02, 2007 12:35 AM > To: [EMAIL PROTECTED] > Cc: Roman Neuhauser; 'PHP Mailing' > Subject: Re: [PHP] exec from process (deamon) without shell > > On Thu, March 1, 2007 12:56 pm, [EMAIL PROTECTED] wrot

Re: [PHP] Problem with pgsql.so and extensions.

2007-03-01 Thread Richard Lynch
Is it possible that you have an OLD pgsql.so file on your box that a cold Apache start finds, but an Apache restart does not fine?... On Wed, February 28, 2007 4:34 pm, Marc Burgauer wrote: > I found various links via Google mentioning the problem of ordering > the extension in the ini file. In

Re: [PHP] auction scripts?

2007-03-01 Thread Richard Lynch
On Wed, February 28, 2007 7:50 pm, Lisa A wrote: > I have a client that bought some property that he'd like to have a > website > and have people bid on the land? Does anyone know of any software or > could > write something simple for me to put this on his site? > thanks, Unless he bought the Se

Re: [PHP] ibm universe database

2007-03-01 Thread Richard Lynch
On Thu, March 1, 2007 5:44 am, Fernando Viadero wrote: > i have to take some data from a IBM universe database on a windows > server > from my linux+php web server.. > > does anybody know how to do this?? (i have googled a few hours and i > did > not find anything)... In database connections, you

Re: [PHP] Eregi error

2007-03-01 Thread Richard Lynch
On Wed, February 28, 2007 9:08 pm, Brad wrote: > I have been having some trouble with the "eregi" function. I have the > following piece of code in my application: > > function standard_input($input, $min=0, $max=50){ > if (strlen($input) <= $max and strlen($input) >= $min ) { >

Re: [PHP] best framework (pear vs zend framework)

2007-03-01 Thread Richard Lynch
On Thu, March 1, 2007 2:05 am, Marco Sottana wrote: > which is the best framework ? pear or zend framework? No. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General

Re: [PHP] exec from process (deamon) without shell

2007-03-01 Thread Richard Lynch
Add a nice clean line to the end of your PHP scripts: exit 0; //exit cleanly If your PHP scripts' last function call returns, say, -1, and then PHP just passes that back on out, it's probably going to look like an error code to the outermost shell, if you see what I mean... I'm not promising thi

Re: [PHP] exec from process (deamon) without shell

2007-03-01 Thread Richard Lynch
On Thu, March 1, 2007 12:56 pm, [EMAIL PROTECTED] wrote: > I tried with /bin/ls but still same thing. I just found out that the > exitcode is -1 but the $stdout actually gives correct answer. But that > doesn't make sense. How can I then control what action to take > depending on the exitcode? I *

RE: [PHP] exec from process (deamon) without shell

2007-03-01 Thread Peter Lauri
The thing is that the commands are executed as they should. I have tested to give full path "/bin/ls" and that gives the same result. BUT the exit code is -1 still. Not 0 as when running it from command line. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal we

Re: [PHP] exec from process (deamon) without shell

2007-03-01 Thread Richard Lynch
On Thu, March 1, 2007 10:28 am, Peter Lauri wrote: > I have a very complex script that is being called by a running deamon > that > doesn't have any shell. To simplify it I make this script, that is > also > failing: PHP also uses a mini non-shell thingie to run exec. As such, it has no home dire

[PHP] Re: Error handling

2007-03-01 Thread Roberto Mansfield
Chris Ditty wrote: > I am trying to add some error handling to my code. Instead of > reinventing the wheel, I searched and found the code below. For the > most part, it seems to work. When I have an error, it doesn't get > shown. However, I don't get any output. I tracked it down to the > $err

Re: [PHP] [X-POST] PHP script to make sure MySQL is up?

2007-03-01 Thread Richard Lynch
On Thu, March 1, 2007 1:37 pm, Brian Dunning wrote: > I host at Rackspace, and one thing that their monitoring service does > NOT catch is a problem when too many connections hit MySQL, and for > some reason it remains hung up until the service is manually > restarted. In the meantime, this is happ

Re: [PHP] Eregi error

2007-03-01 Thread Roberto Mansfield
Myron Turner wrote: > M.Sokolewicz wrote: $pattern = '^[a-z0-9\!\_ \.- ,/]*$'; if(!eregi($pattern, $input)){ > > the problem is that the hyphen is interpreted as regex range operator: > [a-z0-9\!\_ \.- ,/] > Rewrite this as >

Re: [PHP] exec from process (deamon) without shell

2007-03-01 Thread lists
Quoting Roman Neuhauser <[EMAIL PROTECTED]>: # [EMAIL PROTECTED] / 2007-03-01 18:28:35 +0200: #/thepathtophp echo "Command ls -lrt could not be executed correctly. Exit code: $exitcode\n"; } else { echo "Result:\n"; foreach($stdout AS $line) {

[PHP] Re: [X-POST] PHP script to make sure MySQL is up?

2007-03-01 Thread Roberto Mansfield
Brian Dunning wrote: > I host at Rackspace, and one thing that their monitoring service does > NOT catch is a problem when too many connections hit MySQL, and for some > reason it remains hung up until the service is manually restarted. In > the meantime, this is happening to us once or twice a mon

Re: [PHP] Error handling

2007-03-01 Thread Richard Lynch
E_USER_WARNING is a 'constant' whose value is a number. It is not a string. If you do this: echo "E_USER_WARNING is set to '", E_USER_WARNING, "'\n"; you will see exactly what number it is. So whatever you thought was going wrong, this is not it. In addition... The check for $query should pr

[PHP] Error handling

2007-03-01 Thread Chris Ditty
I am trying to add some error handling to my code. Instead of reinventing the wheel, I searched and found the code below. For the most part, it seems to work. When I have an error, it doesn't get shown. However, I don't get any output. I tracked it down to the $errno. It is outputting a numb

Re: [PHP] Re: how to display images stored in DB

2007-03-01 Thread Richard Lynch
I have reflected upon this thread for awhile now. I believe that the only "new" thing I have to add is for newbies. I believe that for a newbie, it would be easier to use the filesystem rather than the DB. True, you then have to do some extra cleanup/management work for deleted records, so that

Re: [PHP] Re: how to display images stored in DB

2007-03-01 Thread Robert Cummings
On Thu, 2007-03-01 at 21:08 +0100, Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-03-01 12:46:09 -0500: > > At 10:01 AM -0500 3/1/07, markw@mohawksoft.com wrote: > > >In this discussion I have stated reasons why it is a bad idea. No one has > > >come up with a counter point which can only be s

Re: [PHP] Re: how to display images stored in DB

2007-03-01 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-03-01 12:46:09 -0500: > At 10:01 AM -0500 3/1/07, markw@mohawksoft.com wrote: > >In this discussion I have stated reasons why it is a bad idea. No one has > >come up with a counter point which can only be served by a database and > >thus proves me wrong. I think that says

[PHP] [X-POST] PHP script to make sure MySQL is up?

2007-03-01 Thread Brian Dunning
I host at Rackspace, and one thing that their monitoring service does NOT catch is a problem when too many connections hit MySQL, and for some reason it remains hung up until the service is manually restarted. In the meantime, this is happening to us once or twice a month. It gets hammered

Re: [PHP] ibm universe database

2007-03-01 Thread Oscar Gosdinski
Do you mean IBM DB2 Universal Database? I search on google with the following text: php db2 and the first result was: http://www-128.ibm.com/developerworks/db2/library/techarticle/scott/0614_scott.html I think this link will help you. On 3/1/07, Fernando Viadero <[EMAIL PROTECTED]> wrote: i ha

Re: [PHP] Eregi error

2007-03-01 Thread Myron Turner
M.Sokolewicz wrote: Hey all, I have been having some trouble with the "eregi" function. I have the following piece of code in my application: function standard_input($input, $min=0, $max=50){ if (strlen($input) <= $max and strlen($input) >= $min ) { $pattern = '^[a-z0-9\!\

Re: [PHP] Re: how to display images stored in DB

2007-03-01 Thread tedd
At 10:01 AM -0500 3/1/07, markw@mohawksoft.com wrote: In this discussion I have stated reasons why it is a bad idea. No one has come up with a counter point which can only be served by a database and thus proves me wrong. I think that says something. Contradiction is not a sign of falsity, nor

Re: [PHP] exec from process (deamon) without shell

2007-03-01 Thread lists
Quoting Roman Neuhauser <[EMAIL PROTECTED]>: # [EMAIL PROTECTED] / 2007-03-01 18:28:35 +0200: #/thepathtophp echo "Command ls -lrt could not be executed correctly. Exit code: $exitcode\n"; } else { echo "Result:\n"; foreach($stdout AS $line) {

Re: [PHP] exec from process (deamon) without shell

2007-03-01 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-03-01 18:28:35 +0200: > #/thepathtophp > > exec("ls -lrt", $stdout, $exitcode); > > if($exitcode!=0) { > echo "Command ls -lrt could not be executed correctly. Exit code: > $exitcode\n"; > } else { > echo "Result:\n"; > foreach($std

[PHP] exec from process (deamon) without shell

2007-03-01 Thread Peter Lauri
Hi, I have a very complex script that is being called by a running deamon that doesn't have any shell. To simplify it I make this script, that is also failing: #/thepathtophp This code give the exit code -1 that is equal to that "ls -lrt" could not be executed. Running this from

Re: [PHP] echo text - anti-spam-spider measure

2007-03-01 Thread Casey Chu
Richard Lynch wrote: > You could also use %XX in HEX on the mailto: you can actually randomly mix and match hex and entity encoding, which is what the function I posted elsewhere in the thread does. My function also does that: http://themfund.com/snippets/test.php On 3/1/07, Jochem Maas <[EM

Re: [PHP] Re: how to display images stored in DB

2007-03-01 Thread jgodish
Information on image storage in DB's http://www.webmasterworld.com/forum88/9091.htm Quoting markw@mohawksoft.com: > >> > >> The web browser sees an image as a single HTTP request. Invoking > >> the PHP > >> > >> script engine, parsing the script, and executing a SQL query to > >> retrieve > >> >

Re: [PHP] auction scripts?

2007-03-01 Thread Stut
Please include the list in replies. Lisa Armstrong wrote: Well, if it goes through ebay don't you have to give them a percentage? Correct, that's usually what happens when someone provides you with a service. Also, he just wanted it on his site and not on ebay? http://www.hotscripts.com/

Re: [PHP] Re: how to display images stored in DB

2007-03-01 Thread Jack Gleeson
Rubbish, where are your benchmarks? ^^ whoever wrote that needs to check the manual before you make bold statements and my friend it is not 'Rubbish' On 2/28/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Tue, February 27, 2007 8:03 pm, Kevin Waterson wrote: > This one time, at band camp, "R

Re: [PHP] Re: how to display images stored in DB

2007-03-01 Thread markw
> At 5:04 PM -0500 2/28/07, Mark wrote: >>Images are typically best supported in the form of files. They are more >>easily manipulated by external tools. >>-snip- >>I could go on, but it should be clear enough that putting images in a >>database is not a good idea. > > It's clear enough to me that

Re: [PHP] Re: how to display images stored in DB

2007-03-01 Thread tedd
At 5:04 PM -0500 2/28/07, Mark wrote: Images are typically best supported in the form of files. They are more easily manipulated by external tools. -snip- I could go on, but it should be clear enough that putting images in a database is not a good idea. It's clear enough to me that it's not a b

Re: [PHP] Re: how to display images stored in DB

2007-03-01 Thread markw
>> > >> The web browser sees an image as a single HTTP request. Invoking >> the PHP >> > >> script engine, parsing the script, and executing a SQL query to >> retrieve >> > >> the image from the database is less efficient than letting the web >> > >> server >> > >> just send the file. > > > In a si

Re: [PHP] echo text - anti-spam-spider measure

2007-03-01 Thread Jochem Maas
Richard Lynch wrote: > You could also use %XX in HEX on the mailto: you can actually randomly mix and match hex and entity encoding, which is what the function I posted elsewhere in the thread does. > > On Tue, February 27, 2007 11:09 pm, Casey Chu wrote: >> It works. =P I tested it. >> >> Try i

Re: [PHP] Re: how to display images stored in DB

2007-03-01 Thread markw
> On Wed, 2007-02-28 at 22:08 -0500, markw@mohawksoft.com wrote: >> > On Wed, 2007-02-28 at 17:04 -0500, Mark wrote: >> >> Kevin Waterson wrote: >> >> >> >> > This one time, at band camp, zerof <[EMAIL PROTECTED]> wrote: >> >> > >> >> >> It is not a good practice to store pictures in DataBases, use

Re: [PHP] best framework (pear vs zend framework)

2007-03-01 Thread Miles Thompson
Yay!! Someone else working with qcodo. If I was starting afresh, that's what I would use. Current project is based on Joomla! - there is a lot to assimilate and much of it is old-style coding. Cheers - Miles

Re: [PHP] ibm universe database

2007-03-01 Thread Marco Sottana
as400? - Original Message - From: "Fernando Viadero" <[EMAIL PROTECTED]> To: Sent: Thursday, March 01, 2007 12:44 PM Subject: [PHP] ibm universe database Hello. i have to take some data from a IBM universe database on a windows server from my linux+php web server.. does anybody k

Re: [PHP] best framework (pear vs zend framework)

2007-03-01 Thread Stut
Please include the list on replies. Marco Sottana wrote: potato Not really a fruit is it. Still, I'll take that to mean that you got my point. -Stut - Original Message - From: "Stut" <[EMAIL PROTECTED]> To: "Marco Sottana" <[EMAIL PROTECTED]> Cc: Sent: Thursday, March 01, 2007 10

[PHP] Re: [PHP-DEV] Re: PHP 4.4.6 Released!

2007-03-01 Thread Derick Rethans
On Thu, 1 Mar 2007, Andrew Hutchings wrote: > Derick Rethans wrote: > > Hello! > > > > The PHP development team would like to announce the immediate > > availability of PHP 4.4.6. This release addresses a crash problem with > > the session extension when register_globals is turned on that was

[PHP] Re: PHP 4.4.6 Released!

2007-03-01 Thread Andrew Hutchings
Derick Rethans wrote: > Hello! > > The PHP development team would like to announce the immediate > availability of PHP 4.4.6. This release addresses a crash problem with > the session extension when register_globals is turned on that was > introduced in PHP 4.4.6. So these release fixes a cra

[PHP] ibm universe database

2007-03-01 Thread Fernando Viadero
Hello. i have to take some data from a IBM universe database on a windows server from my linux+php web server.. does anybody know how to do this?? (i have googled a few hours and i did not find anything)... thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Eregi error

2007-03-01 Thread M.Sokolewicz
I agree with the first part, that it is in many cases better to use the Perl Compatible Regular Expressions (PCRE, preg_*) than the POSIX compatible ones (ereg[i]_*). However, I don't quite get what you mean by "extension is useless" ? What extension...?? and why would it be useless? (useless i

Re: [PHP] Eregi error

2007-03-01 Thread Nicholas Yim
Hello Brad, suggest to use preg_* instead of ereg_* extension is useless Best regards, === At 2007-03-01, 11:12:52 you wrote: === > >Hey all, >I have been having some trouble with the "eregi" function. I have the >following piece of code in my application: > >function sta

[PHP] PHP 4.4.6 Released!

2007-03-01 Thread Derick Rethans
Hello! The PHP development team would like to announce the immediate availability of PHP 4.4.6. This release addresses a crash problem with the session extension when register_globals is turned on that was introduced in PHP 4.4.6. This release comes also with the new version 7.0 of PCRE and i

Re: [PHP] best framework (pear vs zend framework)

2007-03-01 Thread Stut
Marco Sottana wrote: which is the best framework ? pear or zend framework? Which is the best fruit? Apple or pear fruit? -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] best framework (pear vs zend framework)

2007-03-01 Thread Edward Kay
> which is the best framework ? For what? Your choice of any framework/language will be governed by the problem you are trying to solve. > pear or zend framework? PEAR isn't a framework, it's a repository of PHP extensions and applications, hence the acronym. If you're looking into PHP web appli