Re: [PHP] Parse error: syntax error, unexpected ',' in

2006-05-23 Thread Mark Sargent
Chris wrote: Since there aren't actually 18 lines this isn't the real code.. true, as I only posted the php code The problem is here: echo $currentValue "\n"; it should be echo $currentValue . "\n"; or echo $currentValue , "\n"; thanx to all. The book is Beginning PHP, Apache, MySQL, We

Re: [PHP] Parse error: syntax error, unexpected ',' in

2006-05-23 Thread Chris
Mark Sargent wrote: Hi All, this code, "; echo "My favourite flavours are:"; foreach ($flavour as $currentValue) { //these lines will execute as long as there is a value in $flavour echo $currentValue "\n"; } ?> gives this, *Parse error*: syntax error, unexpected T_CONS

Re: [PHP] Parse error: syntax error, unexpected ',' in

2006-05-23 Thread Robin Vickery
On 24/05/06, Mark Sargent <[EMAIL PROTECTED]> wrote: Hi All, this code, "; echo "My favourite flavours are:"; foreach ($flavour as $currentValue) { //these lines will execute as long as there is a value in $flavour echo $currentValue "\n"; } ?> gives this, *Parse er

Re: [PHP] Parse error: syntax error, unexpected ',' in

2006-05-23 Thread Stut
Mark Sargent wrote: Hi All, this code, "; echo "My favourite flavours are:"; foreach ($flavour as $currentValue) { //these lines will execute as long as there is a value in $flavour echo $currentValue "\n"; } ?> gives this, *Parse error*: syntax error, unexpected T_CONS

Re: [PHP] Can a script run twice?

2006-05-23 Thread Robert Cummings
On Wed, 2006-05-24 at 01:45, Lester Caine wrote: > > The double click 'problem' was a sideline to the original problem, which > I found while trying to track things. The original problem *IS* that PHP > can run two copies of a script in parallel and the second copy does NOT > see the 'locking'

Re: [PHP] Can a script run twice?

2006-05-23 Thread Stut
Lester Caine wrote: The double click 'problem' was a sideline to the original problem, which I found while trying to track things. The original problem *IS* that PHP can run two copies of a script in parallel and the second copy does NOT see the 'locking' in place on the first copy. I had alway

[PHP] Parse error: syntax error, unexpected ',' in

2006-05-23 Thread Mark Sargent
Hi All, this code, "; echo "My favourite flavours are:"; foreach ($flavour as $currentValue) { //these lines will execute as long as there is a value in $flavour echo $currentValue "\n"; } ?> gives this, *Parse error*: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING,

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

2006-05-23 Thread Stut
Adam Zey wrote: Tunelling arbitrary TCP packets. Similar idea to SSH port forwarding, except tunneling over HTTP instead of SSH. A good example might be encapsulating an IRC (or telnet, or pop3, or ssh, etc) connection inside of an HTTP connection such that incomming IRC traffic goes over a GET

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

2006-05-23 Thread Chris
Brian A. Seklecki wrote: 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, tr

Re: [PHP] Can a script run twice?

2006-05-23 Thread Lester Caine
Robert Cummings wrote: These are called race conditions for a reason. They are racing against all kinds of things. Network latency, filesystem, processor, etc etc. One site has take down it's Cisco backbone and replaced it with simple hubs. Problems disappeared overnight! ( That was not just

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

2006-05-23 Thread Dotan Cohen
On 5/24/06, Martin Alterisio <[EMAIL PROTECTED]> wrote: 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

RE: [PHP] Going through 2 arrays at once

2006-05-23 Thread Pavleck, Jeremy D.
Thanks for all the replies guys, it really helped me pick up a few things. One I ended up doing was using array_combine, like so: $d = array_combine($arrLogDrive, $logicalDrive); print_r($d); for (reset($d); $j = key($d); next($d)) { echo "$j: $d[$j]\n"; } Now, while it works spot on

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 (I.E.

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]\n"; > } > > for (reset($logicalDrive); $i = key($logicalDrive); next($logicalDrive)) > { > echo "$i: $logical

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 b

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 is

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 firs

[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 a

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] > wrote: *snip* Regards, Adam Zey. -- P

[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

[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() fuctio

[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:

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 betw

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

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] 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. W

[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]\n"; } for (reset($logicalD

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 < sizeof($logicalDr

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. U

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 muc

[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]\n"; } for (reset($logicalDrive); $i = key($logicalDrive)

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 that

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 c

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] 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

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 lots

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 period

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 t

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 Ope

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] 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(...) t

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 POS

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 m

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

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] 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: 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: http://ww

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 rig

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] 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 i

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] 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 a

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 input,

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 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. S

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 http://www.domain.com/subd

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

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 mistak

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 ex

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 differe

[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 sour

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] 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 o

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, Fi

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 referenc

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'2"x2'4", or sky's blue, or "cool" stuff). I validate what I got using mysql_real_escape_string() an

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 ins

[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: http://www.

[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 Arr

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

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 s

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 and

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 prob

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 whi

[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 differe

[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: http://w

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: 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

[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=en&q=php+convert+word+doc+to+html Thanks, Jay. I mostly found Windows software on google that would do the job. So I decided to

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, th

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=en&q=php+convert+word+doc+to+html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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 on

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

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 ANY_GIF_FOOTERS_HERE should according to file be a gif, but contains embedded php. Rory: I'm not disagreeing wi

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] 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 cre

[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] 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 tabi

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 th

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? Wh

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.

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: 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: http://www.php.n

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: [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 n

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: chri

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]> wr

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 pro

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 i

[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 an

  1   2   >