[PHP] Re: Graphics generation.

2006-05-23 Thread Barry
Carles Xavier Munyoz Baldó schrieb: Hi, Is there any free PHP class with which I can create lines and bars graphics ? For example, for represent temperature samples over time, population of a country over time, etc. Greegints. --- Carles Xavier Munyoz Baldó [EMAIL PROTECTED]

[PHP] Getting an advanced foreach to work

2006-05-23 Thread Jonas Rosling
I got the code as follows bellow. I'm having some problems to get it to work. Maybe some of you are able to help me a bit. First of all I got an array (salespersons) containing names of dynamic array names. For example it can contain Johan, Mark, Jenny, Bill etc. By calling for the possision in

SV: [PHP] Getting an advanced foreach to work SOLVED

2006-05-23 Thread Jonas Rosling
-Ursprungligt meddelande- Från: Jonas Rosling [mailto:[EMAIL PROTECTED] Skickat: den 23 maj 2006 10:06 Till: PHP List Ämne: [PHP] Getting an advanced foreach to work Should look like this: foreach (${$salespersons[$count]} AS $key = $value) { -- PHP General Mailing List

Re: [PHP] Getting an advanced foreach to work

2006-05-23 Thread cajbecu
this shoul work: while ($count count($salespersons)) { foreach ($salespersons[$count] AS $key = $value) { echo htmlentities($key).' - '.$value; $count++; } } On 5/23/06, Jonas Rosling [EMAIL PROTECTED] wrote: I got the code as follows

Re: [PHP] Getting an advanced foreach to work

2006-05-23 Thread Chris
Jonas Rosling wrote: ... while ($count count($salespersons)) { I see you have solved it - just one comment. This particular line will get evaluated every time. If you have a large number of elements in $salespersons, it will slow things down considerably. From a performance point of

Re: [PHP] Re: Security Concerns with Uploaded Images:

2006-05-23 Thread Rory Browne
Use the unix command file to determiner what file you have. I have had the same problem... Don't depend on it. graphic.php GIF89 ?php do_bad_stuff(); ? ANY_GIF_FOOTERS_HERE should according to file be a gif, but contains embedded php. Many thanks! Greetings Michelle Konzack --

SV: [PHP] Getting an advanced foreach to work

2006-05-23 Thread Jonas Rosling
-Ursprungligt meddelande- Från: Chris [mailto:[EMAIL PROTECTED] Skickat: den 23 maj 2006 10:24 Till: Jonas Rosling Kopia: PHP List Ämne: Re: [PHP] Getting an advanced foreach to work From a performance point of view you're much better off doing: $sales_count = count($salespersons);

[PHP] date iteration

2006-05-23 Thread Dave Goodchild
Hi all, I am writing an app that runs a prize draw, wherein the admin chooses the duration by adding a start date and number of days for the draw to run. These values are passed into a small function that generates an array holding the start date, end date and all dates in between as follows:

[PHP] One works, but the other doesn't

2006-05-23 Thread Jonas Rosling
I find this problem very strange. I've got two parts of code (allmost the same) in different TD's with vars and arrays (with same name) but it's only the top code that gives result. I've allso tryied to rename the vars and TD's in the bottom without any luck. The only vars/arrays that I haven't

Re: [PHP] date iteration

2006-05-23 Thread Rabin Vincent
On 5/23/06, Dave Goodchild [EMAIL PROTECTED] wrote: Hi all, I am writing an app that runs a prize draw, wherein the admin chooses the duration by adding a start date and number of days for the draw to run. These values are passed into a small function that generates an array holding the start

Re: [PHP] One works, but the other doesn't

2006-05-23 Thread chris smith
On 5/23/06, Jonas Rosling [EMAIL PROTECTED] wrote: I find this problem very strange. I've got two parts of code (allmost the same) in different TD's with vars and arrays (with same name) but it's only the top code that gives result. I've allso tryied to rename the vars and TD's in the bottom

SV: [PHP] One works, but the other doesn't

2006-05-23 Thread Jonas Rosling
-Ursprungligt meddelande- Från: chris smith [mailto:[EMAIL PROTECTED] Skickat: den 23 maj 2006 13:38 Till: Jonas Rosling Kopia: PHP List Ämne: Re: [PHP] One works, but the other doesn't On 5/23/06, Jonas Rosling [EMAIL PROTECTED] wrote: I find this problem very strange. I've got two

[PHP] Can a script run twice?

2006-05-23 Thread Lester Caine
I'm having very occasional problems with my PHP5 applications which only seem to be explained if the script is run twice. Example - page has 'Add Ticket' button, which adds a record and marks it as being processed by the location that created it. 99.99% of the time no problems, but just now

Re: [PHP] Can a script run twice?

2006-05-23 Thread chris smith
On 5/23/06, Lester Caine [EMAIL PROTECTED] wrote: I'm having very occasional problems with my PHP5 applications which only seem to be explained if the script is run twice. Example - page has 'Add Ticket' button, which adds a record and marks it as being processed by the location that created

Re: [PHP] Can a script run twice?

2006-05-23 Thread Stut
Lester Caine wrote: I'm having very occasional problems with my PHP5 applications which only seem to be explained if the script is run twice. Example - page has 'Add Ticket' button, which adds a record and marks it as being processed by the location that created it. 99.99% of the time no

Re: [PHP] One works, but the other doesn't

2006-05-23 Thread chris smith
On 5/23/06, Jonas Rosling [EMAIL PROTECTED] wrote: -Ursprungligt meddelande- Från: chris smith [mailto:[EMAIL PROTECTED] Skickat: den 23 maj 2006 13:38 Till: Jonas Rosling Kopia: PHP List Ämne: Re: [PHP] One works, but the other doesn't On 5/23/06, Jonas Rosling [EMAIL PROTECTED]

SV: [PHP] One works, but the other doesn't

2006-05-23 Thread Jonas Rosling
-Ursprungligt meddelande- Från: chris smith [mailto:[EMAIL PROTECTED] Skickat: den 23 maj 2006 14:13 Till: Jonas Rosling Kopia: PHP List Ämne: Re: [PHP] One works, but the other doesn't On 5/23/06, Jonas Rosling [EMAIL PROTECTED] wrote: -Ursprungligt meddelande- Från: chris

RE: [PHP] Can a script run twice?

2006-05-23 Thread Chris Kay
OK I found this out last week... if its not a coding error... its this.. There is a bug with IE7, I have some billing scripts for a large Sydney ISP and I was working on a script on my laptop which I recently updated to IE7... after tipping my hair out for a few hours cause I was certain it was

Re: [PHP] One works, but the other doesn't

2006-05-23 Thread chris smith
On 5/23/06, Jonas Rosling [EMAIL PROTECTED] wrote: -Ursprungligt meddelande- Från: chris smith [mailto:[EMAIL PROTECTED] Skickat: den 23 maj 2006 14:13 Till: Jonas Rosling Kopia: PHP List Ämne: Re: [PHP] One works, but the other doesn't On 5/23/06, Jonas Rosling [EMAIL PROTECTED]

Re: SV: [PHP] One works, but the other doesn't

2006-05-23 Thread Barry
- Well, I'm kind of a newbie at this. So you think this will solve my problem? Why don't you test it? -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Can a script run twice?

2006-05-23 Thread Chris Kay
Futher to this... I found thatit does not do it with all my scripts... well as far as I am aware... how much is IE7 stuffing up I have NFI CK -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Tuesday, 23 May 2006 10:06 PM To: Lester Caine Cc: PHP List Subject: Re:

Re: [PHP] Getting an advanced foreach to work

2006-05-23 Thread Greg Beaver
Chris wrote: Jonas Rosling wrote: ... while ($count count($salespersons)) { I see you have solved it - just one comment. This particular line will get evaluated every time. If you have a large number of elements in $salespersons, it will slow things down considerably. Quick

SV: SV: [PHP] One works, but the other doesn't

2006-05-23 Thread Jonas Rosling
-Ursprungligt meddelande- Från: Barry [mailto:[EMAIL PROTECTED] Skickat: den 23 maj 2006 14:24 Till: php-general@lists.php.net Ämne: Re: SV: [PHP] One works, but the other doesn't - Well, I'm kind of a newbie at this. So you think this will solve my problem? Why

Re: [PHP] Can a script run twice?

2006-05-23 Thread Lester Caine
Stut wrote: Lester Caine wrote: I'm having very occasional problems with my PHP5 applications which only seem to be explained if the script is run twice. Example - page has 'Add Ticket' button, which adds a record and marks it as being processed by the location that created it. 99.99% of

RE: [PHP] Need Help Please

2006-05-23 Thread Jay Blanchard
[snip] While tabindex is a neat thing to use it does not necessarily give focus to the first element of the form, it merely dictates the order in which form elements will be given focus when the tab key is pressed. The action may vary from browser to browser. Likely, when going to a form with

[PHP] 3DES w/ openssl_{csr,pkey}_new ?

2006-05-23 Thread Brian A. Seklecki
Does anyone know how to specify the encryption cipher used in this funciton as documented in OpenSSL's genrsa(1)? Why isn't the encryption method a value in [array configargs] ? -des|-des3|-idea These options encrypt the private key with the DES, triple DES, or

Re: [PHP] Can a script run twice?

2006-05-23 Thread Jochem Maas
Lester Caine wrote: Stut wrote: Lester Caine wrote: I'm having very occasional problems with my PHP5 applications which only seem to be explained if the script is run twice. Example - page has 'Add Ticket' button, which adds a record and marks it as being processed by the location that

Re: SV: SV: [PHP] One works, but the other doesn't

2006-05-23 Thread Jochem Maas
some one is about to run out of karma. Jonas Rosling wrote: -Ursprungligt meddelande- Från: Barry [mailto:[EMAIL PROTECTED] Skickat: den 23 maj 2006 14:24 Till: php-general@lists.php.net Ämne: Re: SV: [PHP] One works, but the other doesn't - Well, I'm kind of

Re: [PHP] Re: Security Concerns with Uploaded Images:

2006-05-23 Thread tedd
At 9:45 AM +0100 5/23/06, Rory Browne wrote: Use the unix command file to determiner what file you have. I have had the same problem... Don't depend on it. graphic.php GIF89 ?php do_bad_stuff(); ? ANY_GIF_FOOTERS_HERE should according to file be a gif, but contains embedded php. Rory:

Re: [PHP] Can a script run twice?

2006-05-23 Thread Anthony Ettinger
Is the 'Add Ticket' button a GET or POST request? If it's a POST then chances are the script itself has a logic error since the user would get asked if they wanted to repost the data. If it's a get then you've violated one of the cardinal rules of web-based application development - GETs

[PHP] Can php convert doc to HTML?

2006-05-23 Thread Dotan Cohen
This may be far-fetched, but can php convert a doc file to HTML? I vaguely remember a thread that discussed converting pdf's, but I cannot find reference to either that or to doc in the manual. Any input would be appreciated. If php cannot do this, then could someone recommend a tool that runs

RE: [PHP] Can php convert doc to HTML?

2006-05-23 Thread Jay Blanchard
[snip] This may be far-fetched, but can php convert a doc file to HTML? [/snip] http://www.google.com/search?hl=enq=php+convert+word+doc+to+html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can php convert doc to HTML?

2006-05-23 Thread tedd
At 7:09 PM +0300 5/23/06, Dotan Cohen wrote: This may be far-fetched, but can php convert a doc file to HTML? I vaguely remember a thread that discussed converting pdf's, but I cannot find reference to either that or to doc in the manual. Any input would be appreciated. If php cannot do this,

[PHP] Re: Can php convert doc to HTML?

2006-05-23 Thread Dotan Cohen
On 5/23/06, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] This may be far-fetched, but can php convert a doc file to HTML? [/snip] http://www.google.com/search?hl=enq=php+convert+word+doc+to+html Thanks, Jay. I mostly found Windows software on google that would do the job. So I decided to

[PHP] Re: Can php convert doc to HTML?

2006-05-23 Thread Dotan Cohen
On 5/23/06, tedd [EMAIL PROTECTED] wrote: At 7:09 PM +0300 5/23/06, Dotan Cohen wrote: This may be far-fetched, but can php convert a doc file to HTML? I vaguely remember a thread that discussed converting pdf's, but I cannot find reference to either that or to doc in the manual. Any input would

Re: [PHP] Can php convert doc to HTML?

2006-05-23 Thread Koen Martens
Dotan Cohen wrote: This may be far-fetched, but can php convert a doc file to HTML? I vaguely remember a thread that discussed converting pdf's, but I cannot find reference to either that or to doc in the manual. Any input would be appreciated. If php cannot do this, then could someone

[PHP] Re: Generating thumbnails from tiff images

2006-05-23 Thread Al
mbneto wrote: Hi, I am looking for sample code/class that can generate a thumbnail (can be a png/jpeg) image from a tiff image. So far I've only found examples using png/jpg/gif as input. Any tips? ImageMagick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] getting subdirectory

2006-05-23 Thread Dallas Cahker
how do I get the subdirectory that a page is being pulled from. say I have three sites running the same script and I need to determine which site is which. http://www.domain.com/subdir1 http://www.domain.com/subdir2 http://www.domain.com/subdir3 and subdir1, subdir2 and subdir3 all need

Re: [PHP] getting subdirectory

2006-05-23 Thread Brad Bonkoski
Perhaps check out some of these http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server -Brad Dallas Cahker wrote: how do I get the subdirectory that a page is being pulled from. say I have three sites running the same script and I need to determine which site is

Re: [PHP] Can a script run twice?

2006-05-23 Thread Lester Caine
Lester Caine wrote: I'm having very occasional problems with my PHP5 applications which only seem to be explained if the script is run twice. Example - page has 'Add Ticket' button, which adds a record and marks it as being processed by the location that created it. 99.99% of the time no

Re: [PHP] getting subdirectory

2006-05-23 Thread Miles Thompson
At 02:29 PM 5/23/2006, Dallas Cahker wrote: how do I get the subdirectory that a page is being pulled from. say I have three sites running the same script and I need to determine which site is which. http://www.domain.com/subdir1 http://www.domain.com/subdir2 http://www.domain.com/subdir3

Re: [PHP] getting subdirectory

2006-05-23 Thread D. Dante Lorenso
Dallas Cahker wrote: how do I get the subdirectory that a page is being pulled from. say I have three sites running the same script and I need to determine which site is which. http://www.domain.com/subdir1 http://www.domain.com/subdir2 http://www.domain.com/subdir3 and subdir1, subdir2 and

Re: [PHP] Can a script run twice?

2006-05-23 Thread Robert Cummings
On Tue, 2006-05-23 at 14:08, Lester Caine wrote: I can't believe that this has not surfaced before. I should not need to prevent duplicate actions, but it looks as that is required by the Mozilla browsers :( Why not? Why is it the browser's responsibility? Are you suggesting that when I

[PHP] PHP SNMP

2006-05-23 Thread Pavleck, Jeremy D.
Greetings, Seem to have a bit of a problem I can't figure out. I'm trying to query servers via SNMP with PHP's snmpget function. Everything seems to work fine, no problems at all - except I'd like the web page to print the string value instead of the numeric value (I.E. OK for the Compaq Drive

[PHP] New PostgreSQL

2006-05-23 Thread Martin Marques
A new version on PostgreSQL came out with a security SQL-injection hole fixed. Reading the docs, I find that clients have to be rebuilt, and with changes in regard to the use of the libpq library. Is there going to be a new version of PHP4 and 5 to ajust to this? Here is the data:

Re: [PHP] storing single and double quote in MySQL

2006-05-23 Thread Martin Marques
On Mon, 22 May 2006, John Nichel wrote: Brad Bonkoski wrote: Looks good to me, just make sure you use: http://www.php.net/manual/en/function.stripslashes.php if you have to dump that information back to the users. (you might want to check out: addslashes() to add the slashes before your DB

Re: [PHP] storing single and double quote in MySQL

2006-05-23 Thread Martin Marques
On Mon, 22 May 2006, Richard Lynch wrote: On Mon, May 22, 2006 11:25 am, [EMAIL PROTECTED] wrote: After the form is submitted, some fields are filled with single and/or double quote info (like: 1'2x2'4, or sky's blue, or cool stuff). I validate what I got using mysql_real_escape_string() and

Re: [PHP] Re: Can php convert doc to HTML?

2006-05-23 Thread Martin Alterisio
2006/5/23, Dotan Cohen [EMAIL PROTECTED]: On 5/23/06, tedd [EMAIL PROTECTED] wrote: At 7:09 PM +0300 5/23/06, Dotan Cohen wrote: This may be far-fetched, but can php convert a doc file to HTML? I vaguely remember a thread that discussed converting pdf's, but I cannot find reference to

Re: [PHP] Can a script run twice?

2006-05-23 Thread Paul Novitski
At 11:08 AM 5/23/2006, Lester Caine wrote: I could not believe that double clicking a link would run the link twice. It just does not make any sense. So I've been round the browsers. IE does NOT process the link twice how ever I try and since all the user sites are IE they should be OK. Moz,

[PHP] How to disable PHP's POST caching?

2006-05-23 Thread Adam Zey
PHP seems to cache POST data, and waits for the entire POST to finish sending before it makes it available to php://input. I'd like to be able to read the post data from php://input while the client is still uploading it. How can I cause PHP to make the POST data available right away instead

Re: [PHP] Can a script run twice?

2006-05-23 Thread Robert Cummings
On Tue, 2006-05-23 at 15:01, Paul Novitski wrote: At 11:08 AM 5/23/2006, Lester Caine wrote: I could not believe that double clicking a link would run the link twice. It just does not make any sense. So I've been round the browsers. IE does NOT process the link twice how ever I try and

[PHP] Re: Can php convert doc to HTML?

2006-05-23 Thread tedd
Thanks for the example, Tedd. That script would work if I already had the files in HTML format. Try searching the site using html, I found 85 examples that did something with html and php. Searching Google, presented this: http://www.needscripts.com/Resource/15472.html That's another

Re: [PHP] getting subdirectory

2006-05-23 Thread tedd
how do I get the subdirectory that a page is being pulled from. say I have three sites running the same script and I need to determine which site is which. http://www.domain.com/subdir1 http://www.domain.com/subdir2 http://www.domain.com/subdir3 and subdir1, subdir2 and subdir3 all need

Re: [PHP] Can a script run twice?

2006-05-23 Thread Richard Lynch
You have users who double-click on their submit button. Deal with it. :-) Add a token to the form and mark it used in the database on first submit. On Tue, May 23, 2006 6:55 am, Lester Caine wrote: I'm having very occasional problems with my PHP5 applications which only seem to be

Re: [PHP] Windows/Apache Shopping Cart Software

2006-05-23 Thread Michael Crute
On 5/23/06, P. Guethlein [EMAIL PROTECTED] wrote: Anyone have any recommendations/Links to Shopping Cart Software that will run on Windows/Apache/PHP ? Thanks, -Pete Have you tried OSCommerce? -Mike -- Michael E. Crute http://mike.crute.org It is a mistake

Re: [PHP] Can a script run twice?

2006-05-23 Thread Paul Novitski
On Tue, 2006-05-23 at 15:01, Paul Novitski wrote: An additional strategy to make your system more robust is to use three pages for your form submission: 1) the form itself, which submits to: 2) the script that processes input, which redirects to: 3) the page that displays the results (or

Re: [PHP] getting subdirectory

2006-05-23 Thread Eric Butera
On 5/23/06, Dallas Cahker [EMAIL PROTECTED] wrote: how do I get the subdirectory that a page is being pulled from. say I have three sites running the same script and I need to determine which site is which. http://www.domain.com/subdir1 http://www.domain.com/subdir2

Re: [PHP] Can a script run twice?

2006-05-23 Thread Ray Hauge
On Tuesday 23 May 2006 13:40, Richard Lynch wrote: You have users who double-click on their submit button. Deal with it. :-) Add a token to the form and mark it used in the database on first submit. You could even go so far as to disable the form element with the onClick event. Should

Re: [PHP] Can a script run twice?

2006-05-23 Thread tedd
At 4:02 PM -0400 5/23/06, Robert Cummings wrote: On Tue, 2006-05-23 at 15:01, Paul Novitski wrote: At 11:08 AM 5/23/2006, Lester Caine wrote: I could not believe that double clicking a link would run the link twice. It just does not make any sense. So I've been round the browsers. IE does

Re: [PHP] Can a script run twice?

2006-05-23 Thread Lester Caine
Paul Novitski wrote: An additional strategy to make your system more robust is to use three pages for your form submission: 1) the form itself, which submits to: So I need separate forms for each function on the main page rather than just a link to ... 2) the script that processes

Re: [PHP] Re: Can php convert doc to HTML?

2006-05-23 Thread Dotan Cohen
On 5/23/06, Martin Alterisio [EMAIL PROTECTED] wrote: If that's the case, why don't you just use the export as web page or save as web page tools of MS Word (if you don't have it anymore you can as someone who still has it, or I think OpenOffice also has a similar tool). Because there are

Re: [PHP] Can a script run twice?

2006-05-23 Thread Lester Caine
Richard Lynch wrote: You have users who double-click on their submit button. Deal with it. :-) Add a token to the form and mark it used in the database on first submit. As I have indicated - the code SHOULD have delt with it - that is part of the problem :( I just had not anticipated a

Re: [PHP] Can a script run twice?

2006-05-23 Thread Robert Cummings
On Tue, 2006-05-23 at 16:47, tedd wrote: Considering that everyone is putting in their $0.02, here's my suggestion. 1. Keep the form and processing on one page. The number of pages is not the problem -- double clicking is. 2. Start a session. 3. Initialize a variable that is

Re: [PHP] Can a script run twice?

2006-05-23 Thread Richard Lynch
On Tue, May 23, 2006 1:08 pm, Lester Caine wrote: IE does NOT process the link twice how ever I try and since all the user sites are IE they should be OK. Moz, Firefox and Sea Monkey *DO* run the link twice, and any code attached to that link. I can't believe that this has not surfaced

Re: [PHP] How to disable PHP's POST caching?

2006-05-23 Thread Jochem Maas
Adam Zey wrote: PHP seems to cache POST data, and waits for the entire POST to finish sending before it makes it available to php://input. I'd like to be able to read the post data from php://input while the client is still uploading it. How can I cause PHP to make the POST data available

Re: SV: [PHP] One works, but the other doesn't

2006-05-23 Thread Richard Lynch
On Tue, May 23, 2006 7:19 am, Jonas Rosling wrote: Well, I'm kind of a newbie at this. So you think this will solve my problem? Yes, as we told you a week ago. :-) -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Can a script run twice?

2006-05-23 Thread Paul Novitski
At 01:50 PM 5/23/2006, Lester Caine wrote: 2) the script that processes input, which redirects to: Yep that is the one, and it does check if the user already has an existing ticket, but it does not see the ticket created by the first click of double click in Moz :( *THAT* should prevent the

Re: [PHP] date iteration

2006-05-23 Thread Richard Lynch
mktime() args are hour/minute/second/month/day/year or somesuch. You are passing in a string, which PHP tries to convert to int, which results in who knows what, on the line that starts $added = On Tue, May 23, 2006 6:11 am, Dave Goodchild wrote: Hi all, I am writing an app that runs a prize

Re: [PHP] Re: Security Concerns with Uploaded Images:

2006-05-23 Thread Richard Lynch
On Tue, May 23, 2006 3:45 am, Rory Browne wrote: Use the unix command file to determiner what file you have. I have had the same problem... Don't depend on it. http://php.net/getimagesize would be slightly better, as it tries to dig out width/height and number of colors for any given format,

Re: [PHP] Re: Security Concerns with Uploaded Images:

2006-05-23 Thread Richard Lynch
On Tue, May 23, 2006 9:52 am, tedd wrote: At 9:45 AM +0100 5/23/06, Rory Browne wrote: I'm not disagreeing with you, but how would that work? The file would still have a suffix of .gif and as such wouldn't be recognized as code to execute. Unless you have ANOTHER bug somewhere in those

Re: [PHP] How to disable PHP's POST caching?

2006-05-23 Thread Adam Zey
Jochem Maas wrote: Adam Zey wrote: PHP seems to cache POST data, and waits for the entire POST to finish sending before it makes it available to php://input. I'd like to be able to read the post data from php://input while the client is still uploading it. How can I cause PHP to make the

Re: [PHP] Generating thumbnails from tiff images

2006-05-23 Thread Richard Lynch
On Mon, May 22, 2006 5:10 pm, mbneto wrote: I am looking for sample code/class that can generate a thumbnail (can be a png/jpeg) image from a tiff image. So far I've only found examples using png/jpg/gif as input. In those examples, change the line that reads: imagecreatefromjpeg(...) to

Re: [PHP] How to disable PHP's POST caching?

2006-05-23 Thread Richard Lynch
On Tue, May 23, 2006 4:39 pm, Adam Zey wrote: The only other approach I can figure out is to send periodic POST requests with the latest data, the downside of which is a huge increase in latency between data production and consumption. Sounds like you maybe want to run your own server...

Re: [PHP] Re: Can php convert doc to HTML?

2006-05-23 Thread Martin Alterisio
2006/5/23, Dotan Cohen [EMAIL PROTECTED]: On 5/23/06, Martin Alterisio [EMAIL PROTECTED] wrote: If that's the case, why don't you just use the export as web page or save as web page tools of MS Word (if you don't have it anymore you can as someone who still has it, or I think OpenOffice

Re: [PHP] How to disable PHP's POST caching?

2006-05-23 Thread Adam Zey
Richard Lynch wrote: On Tue, May 23, 2006 4:39 pm, Adam Zey wrote: The only other approach I can figure out is to send periodic POST requests with the latest data, the downside of which is a huge increase in latency between data production and consumption. Sounds like you maybe want

Re: [PHP] How to disable PHP's POST caching?

2006-05-23 Thread Jochem Maas
Adam Zey wrote: Jochem Maas wrote: ... Essentially what I want is a persistant HTTP connection over which I can stream data and have the server-side PHP script process the data as it arrives, rather than when all the data is sent. The only other approach I can figure out is to send

Re: [PHP] How to disable PHP's POST caching?

2006-05-23 Thread Adam Zey
Jochem Maas wrote:. ... Richard's suggestion is most likely the best option (assuming you want to use php) otherwise you'll probably end up hacking webserver and/or php sources (painful, time consuming and a probable maintainance nightmare) ... which also comes with the risk of breaking

Re: [PHP] Re: Can php convert doc to HTML?

2006-05-23 Thread Jochem Maas
my 2cents Martin Alterisio wrote: 2006/5/23, Dotan Cohen [EMAIL PROTECTED]: On 5/23/06, Martin Alterisio [EMAIL PROTECTED] wrote: If that's the case, why don't you just use the export as web page or save as web page tools of MS Word (if you don't have it anymore you can as someone

Re: [PHP] How to disable PHP's POST caching?

2006-05-23 Thread Jochem Maas
Adam Zey wrote: Jochem Maas wrote:. ... Richard's suggestion is most likely the best option (assuming you want to use php) otherwise you'll probably end up hacking webserver and/or php sources (painful, time consuming and a probable maintainance nightmare) ... which also comes with the risk

Re: [PHP] How to disable PHP's POST caching?

2006-05-23 Thread Adam Zey
Jochem Maas wrote: why is port 80 a requirement - HTTP can technically over any port. It must be accessible to any client, no matter what sort of firewall or proxy they go through. The only way to absolutely assure that is, as far as I know, to use port 80. It is the only port that you can

RE: [PHP] How to disable PHP's POST caching?

2006-05-23 Thread Jay Blanchard
[snip] As I mentioned in my more recent mail, this unfortunately isn't an option since I need to run on port 80 without disturbing the existing webserver, which requirse that the script be running through the webserver :( [/snip] I have been reading this thread with much interest and think

[PHP] Going through 2 arrays at once

2006-05-23 Thread Pavleck, Jeremy D.
Greetings, PHP Rookie here with a quick question - how do I go through 2 arrays at once with different keys? I'd like to combine these 2 arrays into one: for ( $i = 0; $i sizeof($logicalDrive); $i++) { echo $arrLogDrive[$i]br /\n; } for (reset($logicalDrive); $i =

Re: [PHP] How to disable PHP's POST caching?

2006-05-23 Thread Adam Zey
Jay Blanchard wrote: [snip] As I mentioned in my more recent mail, this unfortunately isn't an option since I need to run on port 80 without disturbing the existing webserver, which requirse that the script be running through the webserver :( [/snip] I have been reading this thread with

Re: [PHP] Re: Security Concerns with Uploaded Images:

2006-05-23 Thread tedd
At 4:34 PM -0500 5/23/06, Richard Lynch wrote: On Tue, May 23, 2006 9:52 am, tedd wrote: At 9:45 AM +0100 5/23/06, Rory Browne wrote: I'm not disagreeing with you, but how would that work? The file would still have a suffix of .gif and as such wouldn't be recognized as code to execute.

Re: [PHP] Going through 2 arrays at once

2006-05-23 Thread Jochem Maas
Pavleck, Jeremy D. wrote: Greetings, PHP Rookie that explains why you may not have bumped into 'foreach' yet :-) ... here with a quick question - how do I go through 2 arrays at once with different keys? I'd like to combine these 2 arrays into one: for ( $i = 0; $i

[PHP] Re: Going through 2 arrays at once

2006-05-23 Thread Adam Zey
Pavleck, Jeremy D. wrote: Greetings, PHP Rookie here with a quick question - how do I go through 2 arrays at once with different keys? I'd like to combine these 2 arrays into one: for ( $i = 0; $i sizeof($logicalDrive); $i++) { echo $arrLogDrive[$i]br /\n; } for

RE: [PHP] How to disable PHP's POST caching?

2006-05-23 Thread Jay Blanchard
[snip] Essentially, I'm looking to write something in the same vein as GNU httptunnel, but in PHP, and running on port 80 serverside. [/snip] All of that was nice, but still does not explain what you are trying to accomplish other than maintaining a connection state between client and server.

Re: [PHP] Going through 2 arrays at once

2006-05-23 Thread tedd
At 5:33 PM -0500 5/23/06, Pavleck, Jeremy D. wrote: Greetings, PHP Rookie here with a quick question - how do I go through 2 arrays at once with different keys? I'd like to combine these 2 arrays into one: Jeremy: array_merge Review this: http://www.weberdev.com/array_merge hth's tedd

Re: [PHP] Re: Can php convert doc to HTML?

2006-05-23 Thread Martin Alterisio
2006/5/23, Jochem Maas [EMAIL PROTECTED]: my 2cents Martin Alterisio wrote: 2006/5/23, Dotan Cohen [EMAIL PROTECTED]: On 5/23/06, Martin Alterisio [EMAIL PROTECTED] wrote: If that's the case, why don't you just use the export as web page or save as web page tools of MS Word (if

Re: [PHP] How to disable PHP's POST caching?

2006-05-23 Thread Adam Zey
Jay Blanchard wrote: [snip] Essentially, I'm looking to write something in the same vein as GNU httptunnel, but in PHP, and running on port 80 serverside. [/snip] All of that was nice, but still does not explain what you are trying to accomplish other than maintaining a connection state

[PHP] Formatting of a.m. and p.m.

2006-05-23 Thread Kevin Murphy
date(a); output = AM Is there any easy way to change the formatting of the output of above from am to a.m. in order to conform to AP style? Something like this below would work, but I'm wondering if there is something I could do differently in the date() fuction to make it work: $date

[PHP] Re: Formatting of a.m. and p.m.

2006-05-23 Thread Adam Zey
Kevin Murphy wrote: date(a); output = AM Is there any easy way to change the formatting of the output of above from am to a.m. in order to conform to AP style? Something like this below would work, but I'm wondering if there is something I could do differently in the date() fuction to

[PHP] how include works?

2006-05-23 Thread Mindaugas L
Hi can anybody explain how require works, and what's the difference between _once and regular? What's going on when php file is processed? In manual is written just, that it's readed once if include_once. What does to mean readed? Thank You -- Mindaugas

Re: [PHP] How to disable PHP's POST caching?

2006-05-23 Thread Adam Zey
Mindaugas L wrote: I'm still new in php:) what about using cookies? nobody mentioned anything? store info in client cookie, and read it from server the same time? :)) On 5/24/06, *Adam Zey* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: *snip* Regards, Adam Zey. -- PHP

[PHP] Re: how include works?

2006-05-23 Thread Adam Zey
Mindaugas L wrote: Hi can anybody explain how require works, and what's the difference between _once and regular? What's going on when php file is processed? In manual is written just, that it's readed once if include_once. What does to mean readed? Thank You The difference between include

Re: [PHP] Can a script run twice?

2006-05-23 Thread Robert Cummings
On Tue, 2006-05-23 at 17:26, Paul Novitski wrote: At 01:50 PM 5/23/2006, Lester Caine wrote: 2) the script that processes input, which redirects to: Yep that is the one, and it does check if the user already has an existing ticket, but it does not see the ticket created by the first click

Re: [PHP] New PostgreSQL

2006-05-23 Thread Chris
Martin Marques wrote: A new version on PostgreSQL came out with a security SQL-injection hole fixed. Reading the docs, I find that clients have to be rebuilt, and with changes in regard to the use of the libpq library. Is there going to be a new version of PHP4 and 5 to ajust to this? Here

Re: [PHP] How to disable PHP's POST caching?

2006-05-23 Thread Adam Zey
jekillen wrote: On May 23, 2006, at 3:37 PM, Adam Zey wrote: Essentially, I'm looking to write something in the same vein as GNU httptunnel, but in PHP, and running on port 80 serverside. The server-client part is easy, since a never-ending GET request can stream the data and be consumed

Re: [PHP] Going through 2 arrays at once

2006-05-23 Thread David Tulloh
Pavleck, Jeremy D. wrote: how do I go through 2 arrays at once with different keys? for ( $i = 0; $i sizeof($logicalDrive); $i++) { echo $arrLogDrive[$i]br /\n; } for (reset($logicalDrive); $i = key($logicalDrive); next($logicalDrive)) { echo $i:

Re: [PHP] PHP SNMP

2006-05-23 Thread Chris
Pavleck, Jeremy D. wrote: Greetings, Seem to have a bit of a problem I can't figure out. I'm trying to query servers via SNMP with PHP's snmpget function. Everything seems to work fine, no problems at all - except I'd like the web page to print the string value instead of the numeric value

  1   2   >