RE: [PHP] readfile() problem

2006-10-13 Thread Peter Lauri
Hi, I am trying to do this, but now I cannot set values with ini_set. I do the following and it outputs could not set. I have also tried 0, 0, but that doesn't help. if(ini_set(output_buffering, off)) echo could set; else echo could NOT set; /Peter -Original Message- From: Richard

Re: [PHP] canon jpegs

2006-10-13 Thread Frank Arensmeier
It would be helpful for us if you could provide some detailed information about those jpeg pictures (resolution, color depth/ channel, color space etc.). Furthermore, do you get any error message? This would be helpful as well. /frank 13 okt 2006 kl. 03.24 skrev Ed Lazor: Until someone

RE: [PHP] readfile() problem

2006-10-13 Thread Robert Cummings
On Fri, 2006-10-13 at 13:28 +0700, Peter Lauri wrote: Hi, I am trying to do this, but now I cannot set values with ini_set. I do the following and it outputs could not set. I have also tried 0, 0, but that doesn't help. if(ini_set(output_buffering, off)) echo could set; else echo could NOT

Re: [PHP] canon jpegs

2006-10-13 Thread Børge Holen
On Friday 13 October 2006 03:24, Ed Lazor wrote: Until someone has more specific information, my first thought was to wonder which version of PHP and GD you're using in case they aren't the latest and greatest. If you're aren't, then I'd upgrade, retest, and go from there. I'd also check to

RE: [PHP] readfile() problem

2006-10-13 Thread Peter Lauri
You are correct. I might love you :) -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Friday, October 13, 2006 2:27 PM To: Peter Lauri Cc: [EMAIL PROTECTED]; php-general@lists.php.net Subject: RE: [PHP] readfile() problem On Fri, 2006-10-13 at 13:28 +0700, Peter

Re: [PHP] OOP slow -- am I an idiot?

2006-10-13 Thread Stut
Please include the list when replying to that others may benefit (or suffer) from the discussion. Bruce Cowin wrote: I like your static user class. Does the user instance then get saved to a session variable that is serialized/unserialized on every page? There is no user instance as

Re: [PHP] php mailer part 2

2006-10-13 Thread Chris
Ross wrote: Thanks Richard but now. This script send out a few hundred email addresses but I do not seem to be getting any returned to from failed email addresses eg. [EMAIL PROTECTED] First thing - ask the phpmailer forum/mailing list how to set the bounce path properly (or read the

Re: [PHP] OOP slow -- am I an idiot?

2006-10-13 Thread Stut
Ed Lazor wrote: On Oct 12, 2006, at 4:36 PM, Stut wrote: If I then go on to create an admin interface for the users, I would create another completely separate class called UserCollection to handle more than one user. I may at that point choose to expose any data-massaging methods in User to

[PHP] php - mysql question

2006-10-13 Thread Dave Goodchild
Hi all. I am writing a web app with a mysql back end and there is every chance one of the tables may have to handle 56+ million records. I am no mysql expert but has anyone else here ever handled that volume of data, and if so, any suggestions or caveats? The tables will of course be correctly

Re: [PHP] OOP slow -- am I an idiot?

2006-10-13 Thread John Wells
On 10/13/06, Stut [EMAIL PROTECTED] wrote: Ed Lazor wrote: ...Or is it something else entirely; I dunno, maybe UserCollection has a property defined as an array of User class? I think that's what people were saying earlier in the thread as being a very bad thing in terms of memory

[PHP] Re: canon jpegs

2006-10-13 Thread Ivo F.A.C. Fokkema
On Fri, 13 Oct 2006 02:35:34 +0200, Emil Edeholt wrote: Hi! I'm trying to make thumbnails of uploaded jpegs via GD. It works fine on most jpegs but doesn't seem to work on canon jpegs (tried both a consumer canon and one of the finer DSLRs). When I resaved the canon jpeg in my imaging

Re: [PHP] OOP slow -- am I an idiot?

2006-10-13 Thread Ed Lazor
On Oct 13, 2006, at 1:35 AM, Tony Marston wrote: What a coincidence! That's exactly my approach, but I've taken it one step further. I always start with a properly normalised database which I can then import into my daa dictionary application. From there I can press a button and create a

Re: [PHP] OOP slow -- am I an idiot?

2006-10-13 Thread Ed Lazor
On Oct 13, 2006, at 1:54 AM, Stut wrote: Youch!! Your implementation seems to be focused on development efficiency rather than runtime efficience. In all but rare research projects this is backwards for a web-based system. This is exactly the practice I am trying to discourage. It's a

Re: [PHP] canon jpegs

2006-10-13 Thread tg-php
Emil.. I havn't played with GD too much but I suspect it has something to do with the fact that digital cameras tend to save EXIF jpg images that have some extra headers on them with data about the camera and other stuff (some cameras even have GPS in them and will store the lat/long of where

[PHP] Send process to background

2006-10-13 Thread André Medeiros
Hello list, I am working on a backup system that needs to be called through a webpage to start the process. I am trying to do this on a one-file-only sollution. The thing is, the first request to the site needs to start the backup, but I didn't want to use any command-line tools, since some of

[PHP] Socket communications question

2006-10-13 Thread Jeff Lanzarotta
Hello, I am trying to get a php web page to communicate with a java application with little success... I can get the php page to send the request to the java application, just fine. But when the java app sends the response back, the php page does not seem to get it... As a side note, the java

Re: [PHP] Send process to background

2006-10-13 Thread Paul Scott
On Fri, 2006-10-13 at 16:05 +, André Medeiros wrote: The thing is, the first request to the site needs to start the backup, but I didn't want to use any command-line tools, since some of our servers rely on safe_mode. Is there any way to send output to the browser on this first instance,

RE: [PHP] Re: Understanding persistent connections with oci8

2006-10-13 Thread Bauer, Jay W
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, October 12, 2006 5:50 PM To: Bauer, Jay W Cc: php-general@lists.php.net; Mendonce, Kiran (STSD); Nikiel, Carsten; Rai, Moni (GSE WTEC Cupertino); Rieslund, Mikael; Bauer, Jay W Subject: RE: [PHP] Re:

Re: [PHP] Send process to background

2006-10-13 Thread André Medeiros
Here's what I'm trying to do. There is a script that is called through a web request. That same script is responsible for backing up a whole site (and database) to .tar.gz files. Evidently, this will take a while. My first requirement was that it should _NOT_ deppend on external libraries (ie.

RE: [PHP] Re: Understanding persistent connections with oci8

2006-10-13 Thread Bauer, Jay W
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, October 12, 2006 5:56 PM To: Bauer, Jay W Cc: Roman Neuhauser; php-general@lists.php.net; Mendonce, Kiran (STSD); Nikiel, Carsten; Rai, Moni (GSE WTEC Cupertino); Rieslund, Mikael; Bauer, Jay W Subject:

RE: [PHP] Send process to background

2006-10-13 Thread bruce
ok.. i would assume there are a number of scripts that allow one to do a web based backup of a file system... not to question your skills, have you checked sites like freshmeat.net, sourceforge.net, hotscripts.com, etc... if none of these sites have apps that would meet your needs, we can wlak

Re: [PHP] Send process to background

2006-10-13 Thread Leif Gregory
Hello André, Friday, October 13, 2006, 10:42:58 AM, you wrote: Evidently, this will take a while. My first requirement was that it should _NOT_ deppend on external libraries (ie. pecl, modules and such). It has to be self-sustained. As such, it will take a bit longer to execute. Not knowing

Re: [PHP] Send process to background

2006-10-13 Thread Richard Lynch
On Fri, October 13, 2006 11:05 am, André Medeiros wrote: I am working on a backup system that needs to be called through a webpage to start the process. I am trying to do this on a one-file-only sollution. The thing is, the first request to the site needs to start the backup, but I didn't

Re: [PHP] Socket communications question

2006-10-13 Thread Richard Lynch
On Fri, October 13, 2006 11:15 am, Jeff Lanzarotta wrote: How did you open the socket? Did you check that it's valid? You've already written to it, right?... And Java got the data you sent? One hack would be to try opening one socket just for reading and one just for writing... Might work

RE: [PHP] readfile() problem

2006-10-13 Thread Richard Lynch
On Fri, October 13, 2006 1:28 am, Peter Lauri wrote: Hi, I am trying to do this, but now I cannot set values with ini_set. I do the following and it outputs could not set. I have also tried 0, 0, but that doesn't help. if(ini_set(output_buffering, off)) echo could set; else echo could NOT

Re: [PHP] canon jpegs

2006-10-13 Thread Richard Lynch
On Thu, October 12, 2006 7:35 pm, Emil Edeholt wrote: I'm trying to make thumbnails of uploaded jpegs via GD. It works fine on most jpegs but doesn't seem to work on canon jpegs (tried both a consumer canon and one of the finer DSLRs). When I resaved the canon jpeg in my imaging application

[PHP] Windows ENV['_'] equivalent

2006-10-13 Thread Richard Lynch
So, I have this automated testing script I wrote, and I want to make it work on more than just my computer. In cygwin, and in Linux, EVN['_'] has the nice path to the binary CLI which is running -- which I call again in a backticks for each test script in turn, to provide a consistent starting

Re: [PHP] Send process to background

2006-10-13 Thread Jon Anderson
Richard Lynch wrote: On Fri, October 13, 2006 11:05 am, André Medeiros wrote: I am working on a backup system that needs to be called through a webpage to start the process. I am trying to do this on a one-file-only sollution. The thing is, the first request to the site needs to start the

[PHP] PHP Denial of service

2006-10-13 Thread Ryan Barclay
A simple question I imagine, but I am wondering how I would combat DoS attacks by users holding the REFRESH key on their browsers? I have reproduced this error on a PHP-MYSQL website and when I hold the REFRESH key on for a while, page gen times shoot up dramatically and hundreds of processes

[PHP] Re: canon jpegs

2006-10-13 Thread Al
Emil Edeholt wrote: Hi! I'm trying to make thumbnails of uploaded jpegs via GD. It works fine on most jpegs but doesn't seem to work on canon jpegs (tried both a consumer canon and one of the finer DSLRs). When I resaved the canon jpeg in my imaging application GD could handle it. Any

Re: [PHP] Windows ENV['_'] equivalent

2006-10-13 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-10-13 13:53:56 -0500: So, I have this automated testing script I wrote, and I want to make it work on more than just my computer. In cygwin, and in Linux, EVN['_'] has the nice path to the binary CLI which is running -- which I call again in a backticks for each

[PHP] Re: Windows ENV['_'] equivalent

2006-10-13 Thread M.Sokolewicz
you've considered the fact that you might be running php as a module via ie. apache, thus not using a php.exe at all? (you'd be using a php4ts.lib/php5ts.lib instead) - tul Richard Lynch wrote: So, I have this automated testing script I wrote, and I want to make it work on more than just my

Re: [PHP] PHP Denial of service

2006-10-13 Thread Robert Cummings
On Fri, 2006-10-13 at 22:16 +0100, Ryan Barclay wrote: A simple question I imagine, but I am wondering how I would combat DoS attacks by users holding the REFRESH key on their browsers? I have reproduced this error on a PHP-MYSQL website and when I hold the REFRESH key on for a while, page

Re: [PHP] Re: Understanding persistent connections...

2006-10-13 Thread Google Kreme
On 13 Oct 2006, at 06:35 , [EMAIL PROTECTED] wrote: ATTENTION! A message you recently sent to a 0Spam.com user with the subject Re: [PHP] Re: Understanding persistent connections... was not delivered because they are using the 0Spam.com anti-spam service. Please click the link below to

Re: [PHP] PHP Denial of service

2006-10-13 Thread Ryan Barclay
Robert, Thanks for the reply. I can't seem to find ignore_user_abort in my php.ini. I would like to do it at server level, rather than individual scripts. Do you know roughly where is it? I think there were some versions with this missing in the ini, which was later fixed. I'm guessing

Re: [PHP] PHP Denial of service

2006-10-13 Thread Ryan Barclay
Robert, Thanks for the reply. I can't seem to find ignore_user_abort in my php.ini. I would like to do it at server level, rather than individual scripts. Do you know roughly where is it? I think there were some versions with this missing in the ini, which was later fixed. I'm guessing

Re: [PHP] Send process to background

2006-10-13 Thread Ed Lazor
On Oct 13, 2006, at 12:12 PM, Richard Lynch wrote: On Fri, October 13, 2006 11:05 am, André Medeiros wrote: I am working on a backup system that needs to be called through a webpage to start the process. I am trying to do this on a one-file-only sollution. The thing is, the first request to

Re: [PHP] PHP Denial of service

2006-10-13 Thread Robert Cummings
On Sat, 2006-10-14 at 01:25 +0100, Ryan Barclay wrote: Robert, Thanks for the reply. I can't seem to find ignore_user_abort in my php.ini. I would like to do it at server level, rather than individual scripts. Do you know roughly where is it? I think there were some versions with

Re: [PHP] PHP Denial of service

2006-10-13 Thread Jon Anderson
Ryan Barclay wrote: Thanks for the reply. I can't seem to find ignore_user_abort in my php.ini. I would like to do it at server level, rather than individual scripts. Do you know roughly where is it? I think there were some versions with this missing in the ini, which was later fixed.

[PHP] Re: php mailer part 2

2006-10-13 Thread Manuel Lemos
Hello, on 10/13/2006 05:22 AM Ross said the following: Thanks Richard but now. This script send out a few hundred email addresses but I do not seem to be getting any returned to from failed email addresses eg. [EMAIL PROTECTED] I don't know about PHPMailer because I do not use it,

Re: [PHP] Windows ENV['_'] equivalent

2006-10-13 Thread Ed Lazor
On Oct 13, 2006, at 11:53 AM, Richard Lynch wrote: So, I have this automated testing script I wrote, and I want to make it work on more than just my computer. In cygwin, and in Linux, EVN['_'] has the nice path to the binary CLI which is running -- which I call again in a backticks for each

[PHP] Re: Socket communications question

2006-10-13 Thread Manuel Lemos
Hello, on 10/13/2006 01:15 PM Jeff Lanzarotta said the following: I am trying to get a php web page to communicate with a java application with little success... I can get the php page to send the request to the java application, just fine. But when the java app sends the response back, the

[PHP] A no brainer...

2006-10-13 Thread Tony Di Croce
Is their a slick way of automatically serializing Objects to the session when a script exit()'s and de-serialize them in session_start()? It seems to me that object oriented PHP might actually be useful if I could persist an object across an entire session, and come to think of it, their really

Re: [PHP] PHP Denial of service

2006-10-13 Thread Ed Lazor
On Oct 13, 2006, at 2:16 PM, Ryan Barclay wrote: A simple question I imagine, but I am wondering how I would combat DoS attacks by users holding the REFRESH key on their browsers? I have reproduced this error on a PHP-MYSQL website and when I hold the REFRESH key on for a while, page gen