[PHP] Re: Get free broadband internet from google!

2007-04-03 Thread Tijnema !
On 4/1/07, TheOldFellow [EMAIL PROTECTED] wrote: On Sun, 1 Apr 2007 15:54:33 +0200 Tijnema ! [EMAIL PROTECTED] wrote: I'm testing if it works now, I already put the cable down into my toilet and waiting for google to connect me :) I hope they work on sunday too :) I'll bet the service is

[PHP] mixture of GET and POST

2007-04-03 Thread Ross
I have 3 'action' buttons and I am trying to send the $id from the radio button and the action to the same page so I can either, Add Edit or Remove the property from the database. Any ideas how I can get this to work? I can either POST the id's or GET the action but I can't seem to return both

Re: [PHP] mixture of GET and POST

2007-04-03 Thread clive
This has nothing to do with php, I suggest you read up on how html forms work and you may need to learn some javascript. clive. I have 3 'action' buttons and I am trying to send the $id from the radio button and the action to the same page so I can either, Add Edit or Remove the property

Re: [PHP] Forking doesn't work on php 5.2.1?

2007-04-03 Thread Jochem Maas
Sebe wrote: Jochem Maas wrote: Frederic Belleudy wrote: Well Ill let you know guys if it works after I've recompiled apache try recompiling php - recompiling apache won't have an effect as far as that compile option goes. it will if php is complied statically into apache,

Re: [PHP] secure database info in different environments

2007-04-03 Thread Jochem Maas
Bruce Cowin wrote: Hi, I have a generic database class that I built to connect to our different databases. From other posts that I've read, I think the safe thing is for me to put this file outside the web root, ensure it has a .php extension, set the include path to include this folder

Re: [PHP] php 5 upgrade and background script on unix

2007-04-03 Thread Jochem Maas
Frederic Belleudy wrote: Jochem: won't it? what does it do? does it go into and endless loop and bring your machine to a halt by any chance? .. because by looking at it, as long as $in['bg'] is not set and not equal to true it's going to keep spawning sub-shells with cmdlines that call

Re: [PHP] Ide help needed

2007-04-03 Thread clive
Does anyone knows any IDE for PHP like VisualStudio.net? look at delphi for php, its not delphi the language but a IDE written by borland to develop web apps using forms/drag 'n drop and php. Windows only im afraid and the only php IDE of its kind that Ive come across. I use linux so I

[PHP] php-mysql problem

2007-04-03 Thread Me2resh Lists
hi i need help regarding a sql query in my php app. the query is : $SQL = SELECT DISTINCT(EMail) FROM mena_guests WHERE Voted = 'yes' LIMIT $startingID,$items_numbers_list; i want to sort this query by the number of the repeated EMail counts. can anyone help me with that please ?

Re: [PHP] Ide help needed

2007-04-03 Thread Johan Martin
On 4/3/07, clive [EMAIL PROTECTED] wrote: Does anyone knows any IDE for PHP like VisualStudio.net? Second the use of eclipse. Look at easyeclipse.org - they have all the necessary plug-ins and add-ons in easy an easy to install package. Packages available for Linux, Mac and Windows.

Re: [PHP] php-mysql problem

2007-04-03 Thread Jochem Maas
Me2resh Lists wrote: hi i need help regarding a sql query in my php app. the query is : $SQL = SELECT DISTINCT(EMail) FROM mena_guests WHERE Voted = 'yes' LIMIT $startingID,$items_numbers_list; i want to sort this query by the number of the repeated EMail counts. can anyone help me

[PHP] Re: Get free broadband internet from google!

2007-04-03 Thread Joris Piepers
HAHAHA nice prank! On 4/3/07, Tijnema ! [EMAIL PROTECTED] wrote: On 4/1/07, TheOldFellow [EMAIL PROTECTED] wrote: On Sun, 1 Apr 2007 15:54:33 +0200 Tijnema ! [EMAIL PROTECTED] wrote: I'm testing if it works now, I already put the cable down into my toilet and waiting for google to

Re: [PHP] Cannot remove PHP Version 5.2.1-0.dotdeb.1

2007-04-03 Thread Miles Thompson
Mario, That did it - when I tried to reload the phpinof.php script Apache did not know what to do with the file. Now I'll drag the compiler from it's dusty corner and start from scratch. Thanks a million - Miles On 4/2/07, Mario Guenterberg [EMAIL PROTECTED] wrote: On Mon, Apr 02, 2007 at

Re: [PHP] mixture of GET and POST

2007-04-03 Thread itoctopus
Mainly you have to add a javascript to submit on click (plenty of them by searching on google). You don't need the href links (I think they're wrong anyway), you can just have # instead, and you should pass the params to the submit function. Simple search on google for your case:

[PHP] Re: php-mysql problem

2007-04-03 Thread itoctopus
$sql = SELECT count(Email) as numEmails, Email FROM mena_guests WHERE Voted='yes' GROUP BY Email ORDER BY numEmails DESC LIMIT $startingID, $items_numbers_list; -- itoctopus - http://www.itoctopus.com Me2resh Lists [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi i need help

RE: [PHP] Saving css state in javascript and passing to php via form submit

2007-04-03 Thread Tim
The weather in here gets stormy easily i see :D Anyways thanks Richard, that's the kind of idea i was orginally looking for, before opting for the ajax way, which is only going to optimize my application more and give me more flexibility in doing what i need. Have looked up javascript and DOM and

Re: [PHP] Cannot remove PHP Version 5.2.1-0.dotdeb.1

2007-04-03 Thread Mario Guenterberg
On Tue, Apr 03, 2007 at 08:50:31AM -0300, Miles Thompson wrote: Mario, That did it - when I tried to reload the phpinof.php script Apache did not know what to do with the file. Now I'll drag the compiler from it's dusty corner and start from scratch. Not the debian/ubuntu way but

Re: [PHP] php-mysql problem

2007-04-03 Thread clive
Me2resh Lists wrote: the query is : $SQL = SELECT DISTINCT(EMail) FROM mena_guests WHERE Voted = 'yes' LIMIT $startingID,$items_numbers_list; the only php I see it $SQL,$startingID,$items_numbers_list. This is a mysql question. -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] php-mysql problem

2007-04-03 Thread Jim Moseby
i need help regarding a sql query in my php app. the query is : $SQL = SELECT DISTINCT(EMail) FROM mena_guests WHERE Voted = 'yes' LIMIT $startingID,$items_numbers_list; i want to sort this query by the number of the repeated EMail counts. can anyone help me with that please ? A)

Re: [PHP] php-mysql problem

2007-04-03 Thread cajbecu
clive wrote: Me2resh Lists wrote: the query is : $SQL = SELECT DISTINCT(EMail) FROM mena_guests WHERE Voted = 'yes' LIMIT $startingID,$items_numbers_list; the only php I see it $SQL,$startingID,$items_numbers_list. This is a mysql question. so, you don`t know the answer, right?

Re: [PHP] php-mysql problem

2007-04-03 Thread Jochem Maas
cajbecu wrote: clive wrote: Me2resh Lists wrote: the query is : $SQL = SELECT DISTINCT(EMail) FROM mena_guests WHERE Voted = 'yes' LIMIT $startingID,$items_numbers_list; the only php I see it $SQL,$startingID,$items_numbers_list. This is a mysql question. so, you don`t know the

Re: [PHP] Show filenames using Wildcards -- The glob() Solution!

2007-04-03 Thread Rahul Sitaram Johari
Ave, I understand what you're saying, and logically I guess I need to validate $F and verify if it contains a concoction of what I want to be publicly accessible, and nothing else. Is there any other suggestions you can provide in helping secure this flaw?

Re: [PHP] php-mysql problem

2007-04-03 Thread clive
cajbecu wrote: clive wrote: Me2resh Lists wrote: the query is : $SQL = SELECT DISTINCT(EMail) FROM mena_guests WHERE Voted = 'yes' LIMIT $startingID,$items_numbers_list; the only php I see it $SQL,$startingID,$items_numbers_list. This is a mysql question. so, you don`t know the answer,

Re: [PHP] php-mysql problem

2007-04-03 Thread clive
if I asked you whether your wife/girlfriend enjoyed having sex with your best friend while you are at work then you may or may not know the answer but it is hopefully clear that this is not the list to ask such a question (but no doubt that there is a list somewhere that caters to that kind of

[PHP] sapi_add_header_ex() violating CODING_STANDARDS

2007-04-03 Thread js
Hi list. I don't think this is the right place to talk about this, but writing PHP extensions I found that sapi_add_header_ex() in SAPI.c is violating a law of PHP CODING_STANDARDS, which says [1] Functions that are given pointers to resources should not free them *snip* Exceptions: - The

Re: [PHP] sapi_add_header_ex() violating CODING_STANDARDS

2007-04-03 Thread Jochem Maas
js wrote: Hi list. I don't think this is the right place to talk about this, but writing PHP extensions I found that sapi_add_header_ex() in SAPI.c is violating a law of PHP CODING_STANDARDS, which says [1] Functions that are given pointers to resources should not free them *snip*

Re: [PHP] mixture of GET and POST

2007-04-03 Thread tg-php
As mentioned, this isn't a PHP issue really, except a little bit on the receiving end. Why not use multiple 'submit' buttons instead of using HREF links? input type=submit name=action value=Add input type=submit name=action value=Edit input type=submit name=action value=Remove In PHP, you'd

RE: [PHP] Downloads for subsrcibers only

2007-04-03 Thread Jake McHenry
A while ago I did this, but can't find the file now... I dunno if it would work for you or not, but it did for me I took the first 10 characters of the session id and created a symlink to the doc file, or pdf in your case, then the person got the file. When they logged out, the symlink was

Re: [PHP] sapi_add_header_ex() violating CODING_STANDARDS

2007-04-03 Thread js
Hi Jochem. On 4/3/07, Jochem Maas [EMAIL PROTECTED] wrote: from your explaination above one could infer that it was a transgression with regard to CS. whether you could consider it a bug would depend on whether the code in question actually caused problems or not ... the efree() at the point

[PHP] Checking password

2007-04-03 Thread Panquekas
Hello, I just want to ask if when I have the magic_quotes_gpc ON and use the preg_quote is there an problem? One doesn't eliminate the other or does? Anyway, I'm trying to insert values to the DataBase in a secure way.. by checking the special chars (with preg_quote), htmlentities is this a

Re: [PHP] Checking password

2007-04-03 Thread Jochem Maas
Panquekas wrote: Hello, I just want to ask if when I have the magic_quotes_gpc ON and use the preg_quote is there an problem? One doesn't eliminate the other or does? magic_quotes_gpc sucks - I recommend turning it off, for portability (when your running on a machine with magic_quotes_gpc

[PHP] Question about form submitting

2007-04-03 Thread Mário Gamito
Hi, Sorry for the lame question, but i didn't find a satisfactory answer in the web. I have this subscribe form (subscribe.php) and on submit i have to check for errors: a) password and password confirmation mismatch; b) missing filled fields c) check e-mail validity d) etc. My question is how

Re: [PHP] Question about form submitting

2007-04-03 Thread Tijnema !
On 4/3/07, Mário Gamito [EMAIL PROTECTED] wrote: Hi, Sorry for the lame question, but i didn't find a satisfactory answer in the web. I have this subscribe form (subscribe.php) and on submit i have to check for errors: a) password and password confirmation mismatch; b) missing filled fields

Re: [PHP] Question about form submitting

2007-04-03 Thread Dave Goodchild
Not true. You can submit the form back to itself as many times as required by making the form action $_SERVER['PHP_SELF'] and checking for various sequences and outputting different html in each case.

Re: [PHP] Question about form submitting

2007-04-03 Thread Tijnema !
On 4/3/07, Dave Goodchild [EMAIL PROTECTED] wrote: Not true. You can submit the form back to itself as many times as required by making the form action $_SERVER['PHP_SELF'] and checking for various sequences and outputting different html in each case. You're then leaving the page and reloading

Re: [PHP] Question about form submitting

2007-04-03 Thread Myron Turner
Mário Gamito wrote: Hi, Sorry for the lame question, but i didn't find a satisfactory answer in the web. I have this subscribe form (subscribe.php) and on submit i have to check for errors: a) password and password confirmation mismatch; b) missing filled fields c) check e-mail validity d)

Re: [PHP] Google-Yahoo venture and PHP

2007-04-03 Thread Tijnema !
On 4/3/07, Chris [EMAIL PROTECTED] wrote: Matt Kay wrote: I really dont see what all the fuss is about. If MS is going to have us all running on thin clients, and Google/Yahoo want to beat them to the punch, is this really going to matter who we pay? The article on digg.com

Re: [PHP] Question about form submitting

2007-04-03 Thread Lori Lay
Tijnema ! wrote: On 4/3/07, Mário Gamito [EMAIL PROTECTED] wrote: Hi, Sorry for the lame question, but i didn't find a satisfactory answer in the web. I have this subscribe form (subscribe.php) and on submit i have to check for errors: a) password and password confirmation mismatch; b)

[PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Chris W. Parker
Hello, I have a form page and a processing page. After submitting the form the processing page does whatever it needs to do (insert a record, send back validation errors, etc.) After determing what to do it always redirects somewhere with header('Location: URL'); But sometimes when I'm back at

Re: [PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Tijnema !
On 4/3/07, Chris W. Parker [EMAIL PROTECTED] wrote: Hello, I have a form page and a processing page. After submitting the form the processing page does whatever it needs to do (insert a record, send back validation errors, etc.) After determing what to do it always redirects somewhere with

RE: [PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Jake McHenry
I've seen this a lot with IE, it even warns you about it, the warning from IE is: The page cannot be refreshed without resending the information. Click Retry to send the information again, or click Cancel to return to the page that you were trying to view. And through all my days, when you click

RE: [PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Chris W. Parker
On Tuesday, April 03, 2007 11:44 AM Tijnema ! mailto:[EMAIL PROTECTED] said: This is the only behavior i know of, a refresh action does the same action he did for loading the current page again. If you submit data to that page, it will resubmit the data. If you're using the Location:URL

Re: [PHP] Question about form submitting / clarification

2007-04-03 Thread Mário Gamito
Hi, Of the three items you specify a and b should be handled with Javascript in an onsubmit handler. The error messages would be generated by this handler. Email validity would have to be handled by the web server and your php script, usually by trying the address. I think i was

Re: [PHP] Downloads for subsrcibers only

2007-04-03 Thread Eric Butera
On 4/1/07, Mário Gamito [EMAIL PROTECTED] wrote: Hi, I made this site in PHP that has a page with some PDFs to download. My costumer wants that only subscribed people are allowed to download the PDFs. I've already made the subscrbe and login mechanism. Now, my question for you is about

Re: [PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Chris Shiflett
Hi Chris, But sometimes when I'm back at the form page (after the redirect) and I refresh the page it does the previous page's actions again. Can you provide a raw HTTP dump of the complete scenario? Chris -- Chris Shiflett http://shiflett.org/ -- PHP General Mailing List

Re: [PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Chris Shiflett
Tijnema wrote: If you're using the Location:URL header entry, the browser doesn't saves this action as an action did by the browser itself, and so it will submit the data to the page where you redirect. Either you misunderstood his question, or you misunderstand what header('Location: ...')

Re: [PHP] Question about form submitting / clarification

2007-04-03 Thread Lori Lay
Mário Gamito wrote: Hi, Of the three items you specify a and b should be handled with Javascript in an onsubmit handler. The error messages would be generated by this handler. Email validity would have to be handled by the web server and your php script, usually by trying the address.

Re: [PHP] Downloads for subsrcibers only

2007-04-03 Thread Mário Gamito
Hi, One popular method is to place your files outside of the webroot. I thought about that. This makes it so people cannot access the files directly. Then create a PHP script to read the file to the user with the correct mime type using a header() call. Humm... and how do i do this, if i

[PHP] Re: Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Mark
Do yo Chris W. Parker wrote: Quick question: Do you use frames and does the behavior of your code depend on data stored from page to page? If so, what kind of session system do you use? Hello, I have a form page and a processing page. After submitting the form the processing page does

RE: [PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Chris W. Parker
On Tuesday, April 03, 2007 12:35 PM Chris Shiflett mailto:[EMAIL PROTECTED] said: But sometimes when I'm back at the form page (after the redirect) and I refresh the page it does the previous page's actions again. Can you provide a raw HTTP dump of the complete scenario? Two things: 1. How

Re: [PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Chris Shiflett
Can you provide a raw HTTP dump of the complete scenario? Two things: 1. How do I do that? Probably the easiest thing to do these days is use a Firefox extension like Firebug or LiveHTTPHeaders. Chris -- Chris Shiflett http://shiflett.org/ -- PHP General Mailing List

Re: [PHP] Audio CAPTCHA review request

2007-04-03 Thread jochem
Since you are asking for review: this audio captcha is almost certainly easily breakable. Tijnema is right with most of his comments, open source voice recognition software (the code he pointed to like spynx) will break this. I disagree with his point 3) below, obfuscating the speech with

Re: [PHP] Downloads for subsrcibers only

2007-04-03 Thread Eric Butera
On 4/3/07, Mário Gamito [EMAIL PROTECTED] wrote: Hi, One popular method is to place your files outside of the webroot. I thought about that. This makes it so people cannot access the files directly. Then create a PHP script to read the file to the user with the correct mime type using a

[PHP] Re: php-mysql problem

2007-04-03 Thread itoctopus
$sql = SELECT count(Email) as numEmails, Email FROM mena_guests WHERE Voted='yes' GROUP BY Email ORDER BY numEmails DESC LIMIT $startingID, $items_numbers_list; I answered this morning, I don't know why it got deleted -- itoctopus - http://www.itoctopus.com Me2resh Lists [EMAIL PROTECTED] wrote

Re: [PHP] Question about form submitting

2007-04-03 Thread Philip Thompson
On Apr 3, 2007, at 1:13 PM, Mário Gamito wrote: Hi, Sorry for the lame question, but i didn't find a satisfactory answer in the web. I have this subscribe form (subscribe.php) and on submit i have to check for errors: a) password and password confirmation mismatch; b) missing filled

Re: [PHP] Google-Yahoo venture and PHP

2007-04-03 Thread Chris
Tijnema ! wrote: On 4/3/07, Chris [EMAIL PROTECTED] wrote: Matt Kay wrote: I really dont see what all the fuss is about. If MS is going to have us all running on thin clients, and Google/Yahoo want to beat them to the punch, is this really going to matter who we pay? The article on

Re: [PHP] Cannot remove PHP Version 5.2.1-0.dotdeb.1

2007-04-03 Thread Miles Thompson
Mario, Boy it's been a long day - it seems that every item I had in by configure batch had to be installed; then at the very end of the day it finally got to the --with-mysql. Had quite a scramble tryingto find the correct dev environment, then finally I was down to to two warning errors, one of

RE: [PHP] Audio CAPTCHA review request

2007-04-03 Thread Daevid Vincent
-Original Message- From: Daevid Vincent [mailto:[EMAIL PROTECTED] I will point you at http://www.cepstral.com/ for a possible solution to your .mp3 usage. You could use Cepstral's swift tool to say the text dynamically. Actually Ted, what I was referring to was that you could say

[PHP] dynamic web interface and size

2007-04-03 Thread Alain Roger
Hi, My question is not so much about PHP language but more about concept and PHP result. Basically i'm currently working on web application to administrate the web content of a website. My customer would like to have a nice web application interface, so it means a lot of images, and so on.