Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Carlos Medina
Michael Kubler schrieb: The easiest way would be to use GET parameters (i.e data in the actual URL). There are a number of ways you can structure a HTML link to get what you want. You can have something basic (but not very elegant looking), like a href=index.php?page=HomeHome/a Then in

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Carlos Medina
Christopher W schrieb: Mr. Kubler, Thank you for the help. I have to admit, I am still in over my head, I think. Perhaps I should just stick to static pages... Anyway what I was attempting to do, in the full picture, was be able to just switch the text in the text area without actually

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Ashley Sheridan
On Sun, 2009-01-25 at 10:51 +0100, Carlos Medina wrote: Michael Kubler schrieb: The easiest way would be to use GET parameters (i.e data in the actual URL). There are a number of ways you can structure a HTML link to get what you want. You can have something basic (but not very

Re: [PHP] New PHP User with a simple question OT

2009-01-25 Thread Carlos Medina
Hi Ashley, yes this is the right answer. The Problem is not a PHP Question but a programming question. To be clear: i think, the Problem can you solve, if you get two or tree books or tutorials about the programming language. You should *try* to solve the problem self and then to post a

[PHP] Captha Image Matching the Session Value.

2009-01-25 Thread Stephen Alistoun
Hi all, My captha code is working but the session code is not matching image code(captha code). How do i get them to match each other. PHP CAPTHA session_start(); $fontArray = array('arial.tff' , 'impact.tff' , 'tahoma.tff' , 'tunga.tff' , 'verdana.tff');

Re: [PHP] Captha Image Matching the Session Value.

2009-01-25 Thread Ashley Sheridan
On Sun, 2009-01-25 at 03:25 -0800, Stephen Alistoun wrote: Hi all, My captha code is working but the session code is not matching image code(captha code). How do i get them to match each other. PHP CAPTHA session_start(); $fontArray = array('arial.tff' , 'impact.tff'

Re: [PHP] Captha Image Matching the Session Value.

2009-01-25 Thread Stephen Alistoun
Hi ash, Thanks for your reply but the image does change when i refresh the page but the session value is one before the image value. If this is a cache problem how would i prevent this? Thanks, Stephen -- View this message in context:

Re: [PHP] Captha Image Matching the Session Value.

2009-01-25 Thread Richard Heyes
... 1. It's captcha, not captha - http://en.wikipedia.org/wiki/Captcha 2. As far as I can see (and that's not too far), you appear to be sending HTML along with the image. You need to have one script to generate the page, and another to create and send the captcha image. -- Richard

Re: [PHP] Captha Image Matching the Session Value.

2009-01-25 Thread Stephen Alistoun
Hey Richard, Thanks for your reply but the Captcha php code is a seperate file to the html code but the code is working but the values are not matching. Thanks, Stephen -- View this message in context: http://www.nabble.com/Captha-Image-Matching-the-Session-Value.-tp21650616p21651034.html

Re: [PHP] Re: process creation

2009-01-25 Thread Tom Sinclair
Per Jessen wrote: Török Alpár wrote: as i said it's hate here, and i might be wrong but consider the following : for($icount=0;$icount11;$icount++) { $iPid = pcntl_fork(); $iChildrenCount = 0; if ($iPid == 0) { // child echo (child $icount\n); } else {

Re: [PHP] Captha Image Matching the Session Value.

2009-01-25 Thread Ashley Sheridan
On Sun, 2009-01-25 at 04:09 -0800, Stephen Alistoun wrote: Hey Richard, Thanks for your reply but the Captcha php code is a seperate file to the html code but the code is working but the values are not matching. Thanks, Stephen -- View this message in context:

Re: [PHP] Captha Image Matching the Session Value.

2009-01-25 Thread Stephen Alistoun
Hey Ash, Is I have but the Session Value is one before the Captha Image Value. Regards, Stephen -- View this message in context: http://www.nabble.com/Captha-Image-Matching-the-Session-Value.-tp21650616p21651258.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP

Re: [PHP] Re: process creation

2009-01-25 Thread Per Jessen
Tom Sinclair wrote: Per Jessen wrote: for($icount=0;$icount11;$icount++) Iterates 10 times?? Hmm 10, 11 - no big difference is there? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Captha Image Matching the Session Value.

2009-01-25 Thread tedd
At 4:33 AM -0800 1/25/09, Stephen Alistoun wrote: Hey Ash, Is I have but the Session Value is one before the Captha Image Value. Regards, Stephen Stephen: It's looks to me that your code is generating a CAPTCHA from a key, but your key is not being recorded in the SESSION as what is

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread tedd
At 2:29 AM -0500 1/25/09, Christopher W wrote: My problem is that I can't figure out how to get the link-click to assign the value to the variable. I didn't try any php for that end because I really didn't know where to begin. It sounds to me like you're trying to create a smart menu. Perhaps

Re: [PHP] Re: process creation

2009-01-25 Thread Michael Kubler
Hmm, are people getting confused between and = ? for($icount=0;$icount11;$icount++) (is less than 11) for($icount=0;$icount=10;$icount++) (is less than or equal to 10) Both iterate 10 times. Michael Kubler *G*rey *P*hoenix *P*roductions http://www.greyphoenix.biz Per Jessen wrote: Tom

Re: [PHP] Re: process creation

2009-01-25 Thread Ashley Sheridan
On Mon, 2009-01-26 at 00:42 +1030, Michael Kubler wrote: Hmm, are people getting confused between and = ? for($icount=0;$icount11;$icount++) (is less than 11) for($icount=0;$icount=10;$icount++) (is less than or equal to 10) Both iterate 10 times. Michael Kubler *G*rey *P*hoenix

Re: [PHP] New PHP User with a simple question OT

2009-01-25 Thread tedd
At 11:56 AM +0100 1/25/09, Carlos Medina wrote: Hi Ashley, yes this is the right answer. The Problem is not a PHP Question but a programming question. To be clear: i think, the Problem can you solve, if you get two or tree books or tutorials about the programming language. You should *try* to

Re: [PHP] New PHP User with a simple question OT

2009-01-25 Thread Jason Pruim
On Jan 25, 2009, at 9:19 AM, tedd wrote: At 11:56 AM +0100 1/25/09, Carlos Medina wrote: Hi Ashley, yes this is the right answer. The Problem is not a PHP Question but a programming question. To be clear: i think, the Problem can you solve, if you get two or tree books or tutorials about

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Jason Pruim
On Jan 24, 2009, at 11:06 PM, Christopher W wrote: At least I hope it is simple... I am trying to get an HTML menu link to set a variable's value. For example, when a user clicks the Home button on my page it would cause $page = home; or clicking the About Us button will set

Re: [PHP] Authentication by client certificate

2009-01-25 Thread Edmund Hertle
2009/1/23 Jesus Campos jesus...@cm-barcelos.pt Hi there, I would like to create a application that can be able to authenticate by client certificate. Can I make this by apache/php? Anyone can recomend me documantation? Thanks, JCampos http://www.php.net/unsub.php Hey, I do not really

[PHP] Dirty Button

2009-01-25 Thread tedd
Hi gang: I had a problem and solved it -- here's the write-up: http://www.webbytedd.com/b/update-select/index.php What do you think of the solution? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

[PHP] Dirty Button

2009-01-25 Thread tedd
Hi gang: I had a problem and solved it -- here's the write-up: http://www.webbytedd.com/b/update-select/index.php What do you think of the solution? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

Re: [PHP] Dirty Button

2009-01-25 Thread Robert Cummings
On Sun, 2009-01-25 at 12:55 -0500, tedd wrote: Hi gang: I had a problem and solved it -- here's the write-up: http://www.webbytedd.com/b/update-select/index.php What do you think of the solution? Dirty button is all fine and dandy, but since you're using JavaScript to update the

Re: [PHP] Dirty Button

2009-01-25 Thread Edmund Hertle
2009/1/25 tedd t...@sperling.com Hi gang: I had a problem and solved it -- here's the write-up: http://www.webbytedd.com/b/update-select/index.php What do you think of the solution? Cheers, tedd http://www.php.net/unsub.php Hey, It does not work as described, because the button

Re: [PHP] Captha Image Matching the Session Value.

2009-01-25 Thread Al
Stephen Alistoun wrote: Hi all, My captha code is working but the session code is not matching image code(captha code). How do i get them to match each other. PHP CAPTHA session_start(); $fontArray = array('arial.tff' , 'impact.tff' , 'tahoma.tff' , 'tunga.tff' ,

Re: [PHP] Dirty Button

2009-01-25 Thread Nitsan Bin-Nun
Since you are using JS why not just update the content straight away? (ajax/etc) On Sun, Jan 25, 2009 at 7:55 PM, tedd tedd.sperl...@gmail.com wrote: Hi gang: I had a problem and solved it -- here's the write-up: http://www.webbytedd.com/b/update-select/index.php What do you think of the

Re: [PHP] Dirty Button

2009-01-25 Thread tedd
At 1:02 PM -0500 1/25/09, Robert Cummings wrote: On Sun, 2009-01-25 at 12:55 -0500, tedd wrote: Hi gang: I had a problem and solved it -- here's the write-up: http://www.webbytedd.com/b/update-select/index.php What do you think of the solution? Dirty button is all fine and dandy, but

Re: [PHP] Dirty Button

2009-01-25 Thread Edmund Hertle
2009/1/25 tedd tedd.sperl...@gmail.com At 1:02 PM -0500 1/25/09, Robert Cummings wrote: On Sun, 2009-01-25 at 12:55 -0500, tedd wrote: Hi gang: I had a problem and solved it -- here's the write-up: http://www.webbytedd.com/b/update-select/index.php What do you think of the

Re: [PHP] Dirty Button

2009-01-25 Thread tedd
At 1:18 PM -0500 1/25/09, tedd wrote: At 1:02 PM -0500 1/25/09, Robert Cummings wrote: Dirty button is all fine and dandy, but since you're using JavaScript to update the button's CSS (or colour), then why not update the information similarly so that the information is up to date? Cheers, Rob.

Re: [PHP] Dirty Button

2009-01-25 Thread Ashley Sheridan
On Sun, 2009-01-25 at 19:04 +0100, Edmund Hertle wrote: 2009/1/25 tedd t...@sperling.com Hi gang: I had a problem and solved it -- here's the write-up: http://www.webbytedd.com/b/update-select/index.php What do you think of the solution? Cheers, tedd

Re: [PHP] Dirty Button

2009-01-25 Thread tedd
At 7:02 PM + 1/25/09, Ashley Sheridan wrote: Tedd, what about having it reset if you then go back and select the original option without submitting, i.e. you originally selected and submitted on A, then selected B, then selected A again? That's a good idea. Now I just have to figure out

[PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-25 Thread Per Jessen
I am writing a small(ish) site which will eventually need to be available in several different languages. This needs to more or less transparent to the user, so I am using Apaches content negotiation features, which is working very well. The issues arise once I start looking at PHP and

[PHP] [HEADSUP] New Google Summer of Code Mailinglist

2009-01-25 Thread Hannes Magnusson
Hello all, and sorry for the massive cross-posting :) As of now we have a list dedicated to Google Summer Of Code[1] discussions. It is our hope that everyone who are interested in PHP and GSOC subscribe[2] to the list and participate in the discussions, or just lurk and follow the fun. Among

[PHP] Multiple queries in PHP

2009-01-25 Thread Ashley Sheridan
Hi all, I've run into a bit of a problem. I put together a query using mysql variables in the form set @m:= 0; with the select that uses it directly after. For any wondering, the select was using it as an incremental value which can't be hard coded, as the value will depend on the ordering of the

Re: [PHP] Multiple queries in PHP

2009-01-25 Thread Stuart
2009/1/25 Ashley Sheridan a...@ashleysheridan.co.uk: I've run into a bit of a problem. I put together a query using mysql variables in the form set @m:= 0; with the select that uses it directly after. For any wondering, the select was using it as an incremental value which can't be hard coded,

[PHP] Re: Multiple queries in PHP

2009-01-25 Thread Shawn McKenzie
Ashley Sheridan wrote: Hi all, I've run into a bit of a problem. I put together a query using mysql variables in the form set @m:= 0; with the select that uses it directly after. For any wondering, the select was using it as an incremental value which can't be hard coded, as the value will

Re: [PHP] Re: Multiple queries in PHP

2009-01-25 Thread Ashley Sheridan
On Sun, 2009-01-25 at 15:07 -0600, Shawn McKenzie wrote: Ashley Sheridan wrote: Hi all, I've run into a bit of a problem. I put together a query using mysql variables in the form set @m:= 0; with the select that uses it directly after. For any wondering, the select was using it as an

Re: [PHP] Dirty Button

2009-01-25 Thread Robert Cummings
On Sun, 2009-01-25 at 13:49 -0500, tedd wrote: At 1:18 PM -0500 1/25/09, tedd wrote: At 1:02 PM -0500 1/25/09, Robert Cummings wrote: Dirty button is all fine and dandy, but since you're using JavaScript to update the button's CSS (or colour), then why not update the information similarly so

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Paul M Foster
On Sun, Jan 25, 2009 at 02:40:08AM -0500, Christopher W wrote: Mr. Kubler, Thank you for the help. I have to admit, I am still in over my head, I think. Perhaps I should just stick to static pages... Anyway what I was attempting to do, in the full picture, was be able to just switch

Re: [PHP] Dirty Button

2009-01-25 Thread Micah Gersten
tedd wrote: At 7:02 PM + 1/25/09, Ashley Sheridan wrote: Tedd, what about having it reset if you then go back and select the original option without submitting, i.e. you originally selected and submitted on A, then selected B, then selected A again? That's a good idea. Now I just have

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Paul M Foster
On Sun, Jan 25, 2009 at 02:29:50AM -0500, Christopher W wrote: Sorry, I am also new to the etiquette of these mail lists. Anyway what I was attempting to do, in the full picture, was be able to just switch the text in the text area without actually changing pages. For example, if the user

Re: [PHP] Dirty Button

2009-01-25 Thread tedd
At 3:41 PM -0600 1/25/09, Micah Gersten wrote: tedd wrote: At 7:02 PM + 1/25/09, Ashley Sheridan wrote: Tedd, what about having it reset if you then go back and select the original option without submitting, i.e. you originally selected and submitted on A, then selected B, then

Re: [PHP] Captha Image Matching the Session Value.

2009-01-25 Thread Petar Dzhambazov
Hey guys sorry to interrupt but, the problem is rather obvious if you try and put the img src='captcha.php' / - which is the captcha image it self - anywhere in the script you are effectively overwriting the session variable - since you are initializing the form file session in the very

Re: [PHP] Captha Image Matching the Session Value.

2009-01-25 Thread Petar Dzhambazov
Hey guys sorry to interrupt but, the problem is rather obvious if you try and put the img src='captcha.php' / - which is the captcha image it self - anywhere in the script you are effectively overwriting the session variable - since you are initializing the form file session in the very

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Kevin Waterson
Sorry, I am also new to the etiquette of these mail lists. Hope this will get you started, http://www.phpro.org/tutorials/Introduction-to-PHP-templating.html Kevin http://phpro.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Jim Lucas
Christopher W wrote: At least I hope it is simple... I am trying to get an HTML menu link to set a variable's value. For example, when a user clicks the Home button on my page it would cause $page = home; or clicking the About Us button will set $page=about_us; etc. I think this should be

Re: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-25 Thread Phpster
Dunno if it's a best practice, but I store all the translations in the db for easy manipulation and extraction to a file for others to translate. That obviously involves both import and export utilities. At work we to the translation in real time thru a render page that combined the data

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Richard Lynch
You may or may not find this worth reading: http://richardlynch.blogspot.com/2007/07/php-in-html.html Bottom line is that what you are trying to do can't be done in PHP. You'll have to resort to Javascript and DIV tags with display: none; switching to display: block; -- Some people ask for

Re: [PHP] Captha Image Matching the Session Value.

2009-01-25 Thread Richard Lynch
Configure your browser to prompt you for cookies. That will make sure you are doing the session bit the way you think you are. Then add some error_log statements when you set or read the secret word. You'll soon figure out exactly how/why your session has the OLD secret word in it. -- Some

Re: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-25 Thread Richard Lynch
I can't help with the bits you are asking about, but I can give this advice: Don't rely solely on the Apache/browser content-negotiation, please. This one time... I was in Paris. I was at an Internet Cafe. I couldn't change browser settings. Some sites that I knew were available in English

Re: [PHP] Multiple queries in PHP

2009-01-25 Thread Richard Lynch
PHP/MySQL and the various functionality such as @var are all per-connection expressly so that you CAN do this type of stuff. I'd be pretty shocked if you had any problems. -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com/search/from/lynch

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Micah Gersten
Paul M Foster wrote: snip In case this has yet to be answered to your satisfaction... Your page will *have* to reload when the user presses the button, but the majority of content can look the same, except for the content you want to change. /snip This is absolutely not true. You can

Re: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-25 Thread Per Jessen
Richard Lynch wrote: I can't help with the bits you are asking about, but I can give this advice: Don't rely solely on the Apache/browser content-negotiation, please. Don't worry, the site already has a user-override option. /Per Jessen, Zürich -- PHP General Mailing List