Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Per Jessen
Richard Heyes wrote: I am wondering if there is a way to block out email addresses in specific format from a form? We ahve a form that people have to enter an email address, and the form has been getting used by bots to send spam to a listserv. The email address they enter is in this type

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Richard Heyes
I am wondering if there is a way to block out email addresses in specific format from a form? We ahve a form that people have to enter an email address, and the form has been getting used by bots to send spam to a listserv. The email address they enter is in this type of format [EMAIL

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Javier Huerta
The bad thing about using only registered users is that we have this form set in our Smart classrooms to give us feedback about any issues they encountered while using the AV equipment. We have to keep the form open to non-university users. When I implemented the Captcha code, I thought that

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Wolf
Eric Butera [EMAIL PROTECTED] wrote: On Jan 18, 2008 9:50 AM, Javier Huerta [EMAIL PROTECTED] wrote: I am wondering if there is a way to block out email addresses in specific format from a form? We ahve a form that people have to enter an email address, and the form has been getting

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Richard Heyes
Or even a simple text CAPTCHA What is 16 divided by 4?. Careful though, I made a class which converted numbers to text (TextualNumbers IIRC) and it got broken. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software that eases your support burden and helps

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Eric Butera
On Jan 18, 2008 9:50 AM, Javier Huerta [EMAIL PROTECTED] wrote: I am wondering if there is a way to block out email addresses in specific format from a form? We ahve a form that people have to enter an email address, and the form has been getting used by bots to send spam to a listserv. The

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Silvio Porcellana
Javier Huerta wrote: I am wondering if there is a way to block out email addresses in specific format from a form? We ahve a form that people have to enter an email address, and the form has been getting used by bots to send spam to a listserv. The email address they enter is in this type of

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Javier Huerta
Hi Javier! At my work we had tons of issues with spam bots randomly hitting our contact forms. They would inject all sorts of random garbage along with the standard email header injection attempts to try and send mass mails through the forms. We've worked on a standardized form

RE: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Andrés Robinet
-Original Message- From: Andrew Ballard [mailto:[EMAIL PROTECTED] Sent: Friday, January 18, 2008 6:10 PM To: PHP General list Subject: Re: [PHP] Question About Blocking Email Addresses in Forms On Jan 18, 2008 10:18 AM, Richard Heyes [EMAIL PROTECTED] wrote: I am wondering

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Richard Lynch
On Fri, January 18, 2008 8:50 am, Javier Huerta wrote: I am wondering if there is a way to block out email addresses in specific format from a form? We ahve a form that people have to enter an email address, and the form has been getting used by bots to send spam to a listserv. The email

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Stephen
Javier Huerta wrote: I am wondering if there is a way to block out email addresses in specific format from a form? We ahve a form that people have to enter an email address, and the form has been getting used by bots to send spam to a listserv. The email address they enter is in this type of

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Richard Lynch
On Fri, January 18, 2008 9:31 am, Richard Heyes wrote: Or even a simple text CAPTCHA What is 16 divided by 4?. Careful though, I made a class which converted numbers to text (TextualNumbers IIRC) and it got broken. Almost any CAPTCHA can be broken if somebody wants it badly enough. Some are

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Andrew Ballard
On Jan 18, 2008 10:18 AM, Richard Heyes [EMAIL PROTECTED] wrote: I am wondering if there is a way to block out email addresses in specific format from a form? We ahve a form that people have to enter an email address, and the form has been getting used by bots to send spam to a listserv.

Re: [PHP] question about $_POST ['something'] array

2008-01-15 Thread Richard Lynch
On Tue, January 15, 2008 1:27 am, Luká¹ Moravec wrote: I am trying to use a form and php in a same file and when I am using the form for the first time, Any $_POST index which I use in the form is not defined (which is logical)...how can I remove any warning about undefined index of $_POST

Re: [PHP] [QUESTION] MAIL: Send a NOOP instead of DATA

2008-01-15 Thread Wang Chen
Wang Chen said the following on 2008-1-16 11:38: I wrote a class to send mail by remote mail server. But it was failed. So I captured the network packets by tcpdump, and found that there is a strange packet NOOP was sent. But in the source code I mean to send command DATA. I don't know why a

Re: [PHP] question about $_POST ['something'] array

2008-01-14 Thread Brady Mitchell
On Jan 14, 2008, at 1127PM, Lukáš Moravec wrote: I have one question about $_POST ['something'] array... I am trying to use a form and php in a same file and when I am using the form for the first time, Any $_POST index which I use in the form is not defined (which is logical)...how can I

Re: [PHP] Question regarding linking PHP Parser library into my private Http server

2007-12-30 Thread Nathan Nobbe
On Dec 30, 2007 4:02 AM, Talya Nevo [EMAIL PROTECTED] wrote: Hi, I am porting my software from Linux to µC/OS-II OS. On Linux I ran the Boa Web server with PHP. The µC/OS-II has a basic open source Http Server that does not support PHP or CGI. What I was able to do - is from the Http

Re: [PHP] Question about sqli class

2007-12-30 Thread Nathan Nobbe
On Dec 30, 2007 2:11 PM, alvaro [EMAIL PROTECTED] wrote: I don´t know if this is the correct place to ask this questions but I haver some doubts about using mysqli class in php. I am designing a web place using wamp2 (php5, mysql 5.0.x ). My databases have been done using phpmyadmin so

Re: [PHP] Question about sqli class

2007-12-30 Thread Larry Garfield
Both ext/mysql and ext/mysqli work exclusively with MySQL databases. They could not talk to SQLite, which is a different database engine entirely. If you have the choice and are using MySQL 5 and PHP 5, ext/mysqli is generally faster than ext/mysql. More importantly, it supports native

Re: [PHP] Question about sqli class

2007-12-30 Thread Richard Lynch
On Sun, December 30, 2007 1:11 pm, alvaro wrote: I don´t know if this is the correct place to ask this questions but I haver some doubts about using mysqli class in php. I am designing a web place using wamp2 (php5, mysql 5.0.x ). My databases have been done using phpmyadmin so they are

Re: [PHP] Question regarding linking PHP Parser library into my private Http server

2007-12-30 Thread Richard Lynch
On Sun, December 30, 2007 3:02 am, Talya Nevo wrote: I am porting my software from Linux to µC/OS-II OS. On Linux I ran the Boa Web server with PHP. The µC/OS-II has a basic open source Http Server that does not support PHP or CGI. What I was able to do - is from the Http server, each time

Re: [PHP] Question regarding linking PHP Parser library into my private Http server

2007-12-30 Thread Nathan Nobbe
On Dec 30, 2007 7:57 PM, Richard Lynch [EMAIL PROTECTED] wrote: On Sun, December 30, 2007 3:02 am, Talya Nevo wrote: I am porting my software from Linux to µC/OS-II OS. On Linux I ran the Boa Web server with PHP. The µC/OS-II has a basic open source Http Server that does not support PHP

Re: [PHP] Question about authenticating people...

2007-11-28 Thread [EMAIL PROTECTED]
Jason Pruim wrote: Set the main page, so that when you login, it accesses a master database, which has the username, password, and database name stored in it. Write the database name to a session variable, which I could then use in my mysql connect file for the database... This sounds

Re: [PHP] Question about authenticating people...

2007-11-28 Thread Jason Pruim
On Nov 27, 2007, at 6:01 PM, Stut wrote: Jason Pruim wrote: Just for my own curiosity, why do you think sessions are evil? I haven't found a better way to store my variables between different pages... Other then always posting them in either $_POST or $_GET each time... But that can add

Re: [PHP] Question about authenticating people...

2007-11-28 Thread Stut
Jason Pruim wrote: On Nov 27, 2007, at 6:01 PM, Stut wrote: Jason Pruim wrote: Just for my own curiosity, why do you think sessions are evil? I haven't found a better way to store my variables between different pages... Other then always posting them in either $_POST or $_GET each time...

Re: [PHP] Question about authenticating people...

2007-11-28 Thread Stut
Jason Pruim wrote: On Nov 28, 2007, at 12:07 PM, Stut wrote: Jason Pruim wrote: One of the things I have in a session variable, is a search function through the database, and then an export to excel option. Would I be better to store that in a cookie rather then a session variable? Not

Re: [PHP] Question about authenticating people...

2007-11-28 Thread Jason Pruim
On Nov 28, 2007, at 12:52 PM, Stut wrote: Jason Pruim wrote: The search results arn't stored in a session, just the search variable (IE: What they searched for) It was the only way I could get it to export the search results to my excel file... It may be because I have everything in

Re: [PHP] Question about authenticating people...

2007-11-28 Thread Jason Pruim
On Nov 28, 2007, at 12:07 PM, Stut wrote: Jason Pruim wrote: On Nov 27, 2007, at 6:01 PM, Stut wrote: Jason Pruim wrote: Just for my own curiosity, why do you think sessions are evil? I haven't found a better way to store my variables between different pages... Other then always posting

Re: [PHP] Question about authenticating people...

2007-11-27 Thread Stut
Jason Pruim wrote: The subject might be a little misleading... But I couldn't think of how better to describe it in a small sentence :) What I'm wondering is, I have a program that accesses a database and displays the info in that database... I know, nothing revolutionary about it... I plan

Re: [PHP] Question about authenticating people...

2007-11-27 Thread Stut
Jason Pruim wrote: On Nov 27, 2007, at 3:48 PM, Stut wrote: Jason Pruim wrote: The subject might be a little misleading... But I couldn't think of how better to describe it in a small sentence :) What I'm wondering is, I have a program that accesses a database and displays the info in that

Re: [PHP] Question about authenticating people...

2007-11-27 Thread Jason Pruim
On Nov 27, 2007, at 3:56 PM, Stut wrote: Jason Pruim wrote: On Nov 27, 2007, at 3:48 PM, Stut wrote: Jason Pruim wrote: The subject might be a little misleading... But I couldn't think of how better to describe it in a small sentence :) What I'm wondering is, I have a program that accesses

Re: [PHP] Question about authenticating people...

2007-11-27 Thread Jason Pruim
On Nov 27, 2007, at 3:48 PM, Stut wrote: Jason Pruim wrote: The subject might be a little misleading... But I couldn't think of how better to describe it in a small sentence :) What I'm wondering is, I have a program that accesses a database and displays the info in that database... I

RE: [PHP] Question about authenticating people...

2007-11-27 Thread Bastien Koert
adding a client name to the login process might make that easier and it forces a sort of 2 factor authentication making the database 'hopefully' harder to crack bastien From: [EMAIL PROTECTED] To: php-general@lists.php.net Date: Tue, 27 Nov 2007 15:30:32 -0500 Subject: [PHP] Question about

Re: [PHP] Question about authenticating people...

2007-11-27 Thread Stut
Jason Pruim wrote: Just for my own curiosity, why do you think sessions are evil? I haven't found a better way to store my variables between different pages... Other then always posting them in either $_POST or $_GET each time... But that can add up quite a bit on a complicated site though...

Re: [PHP] question regarding type hinting parameters of php functions

2007-11-26 Thread T . Lensselink
On Mon, 26 Nov 2007 10:29:40 +0100, Dirk Thomas / 4wd media [EMAIL PROTECTED] wrote: Hi, i have tried a current snapshot of PHP 5.3 and have a question regarding type hinting. For example when using the function array_slice(array $array, int $offset, int $length) with a non-integer

Re: [PHP] Question about urlencode....

2007-11-22 Thread TG
Unless your URL is more complicated than your example, you shouldn't need to use urlencode() at all. You'd need to use it in a case where your string may contain characters that aren't valid in URLs like spaces and such: $baseurl = http://www.somesearchsite.com/search=;; $searchfor = Grace

Re: [PHP] Question about arrays

2007-11-13 Thread Jason Pruim
On Nov 13, 2007, at 1:34 AM, Jim Lucas wrote: Jason Pruim wrote: Hi Everyone, I have a question, and to avoid getting flammed until the morning, I waited to ask until the end of my day :) Or near it at least. I have a small simple script I'm writing so that I can calculate how much a

Re: [PHP] Question about arrays

2007-11-12 Thread David Giragosian
On 11/12/07, Jason Pruim [EMAIL PROTECTED] wrote: Hi Everyone, I have a question, and to avoid getting flammed until the morning, I waited to ask until the end of my day :) Or near it at least. I have a small simple script I'm writing so that I can calculate how much a certain number of

Re: [PHP] Question about arrays

2007-11-12 Thread Daniel Brown
On Nov 12, 2007 3:59 PM, Jason Pruim [EMAIL PROTECTED] wrote: [snip] echo HTML form method='GET' action='index.php' P/Number of text boxes needed: input type='text' size='5' name='txtNumber' value='{$TextBoxes}' input type='submit'/P /form

Re: [PHP] Question about arrays

2007-11-12 Thread Jason Pruim
On Nov 12, 2007, at 4:14 PM, Daniel Brown wrote: On Nov 12, 2007 3:59 PM, Jason Pruim [EMAIL PROTECTED] wrote: [snip] echo HTML form method='GET' action='index.php' P/Number of text boxes needed: input type='text' size='5' name='txtNumber' value='{$TextBoxes}'

Re: [PHP] Question about arrays

2007-11-12 Thread Jim Lucas
Jason Pruim wrote: Hi Everyone, I have a question, and to avoid getting flammed until the morning, I waited to ask until the end of my day :) Or near it at least. I have a small simple script I'm writing so that I can calculate how much a certain number of pieces weigh, The page can be seen

Re: [PHP] Question about php.ini file

2007-11-04 Thread Cristian Vrabie
You must take in count that before php even gets to receive something, it all passes through the HTTP server (apache or something). for most of these settings there are equivalents in the config file of the server that you need to change accordingly. this might be the cause of the weird

Re: [PHP] Question about php.ini file

2007-11-04 Thread Jon Westcot
Hi Cristian: Thanks for the replies. In this case, what I've been noticing is that most of the values have gone DOWN (i.e., gotten smaller) after I placed my own php.ini file in place. For example, upload_max_filesize was 8M before I placed my file, but, afterwards, it was 2M! I'm

Re: [PHP] Question about php.ini file

2007-11-04 Thread Nathan Nobbe
On 11/4/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi Cristian: Thanks for the replies. In this case, what I've been noticing is that most of the values have gone DOWN (i.e., gotten smaller) after I placed my own php.ini file in place. For example, upload_max_filesize was 8M before

Re: [PHP] Question about php.ini file

2007-11-04 Thread Jon Westcot
: [PHP] Question about php.ini file On 11/4/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi Cristian: Thanks for the replies. In this case, what I've been noticing is that most of the values have gone DOWN (i.e., gotten smaller) after I placed my own php.ini file in place

Re: [PHP] Question about php.ini file

2007-11-04 Thread Jon Westcot
to place in the full value? Thanks again; this solution may be exactly what we need! Jon - Original Message - From: Nathan Nobbe To: Jon Westcot Cc: PHP General Sent: Sunday, November 04, 2007 5:05 PM Subject: Re: [PHP] Question about php.ini file On 11/4/07, Jon Westcot

Re: [PHP] Question about php.ini file

2007-11-04 Thread Jochem Maas
To: Jon Westcot Cc: PHP General Sent: Sunday, November 04, 2007 5:05 PM Subject: Re: [PHP] Question about php.ini file On 11/4/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi Cristian: Thanks for the replies. In this case, what I've been noticing is that most

Re: [PHP] Question

2007-10-26 Thread Dan Shirah
This is a PHP users mailing list. If you have a question, you can send it to php-general@lists.php.net and whoever can help you with it will reply. On 10/26/07, arash moosavi [EMAIL PROTECTED] wrote: I have Question In PHP Where Can I send it to Give my answer?

Re: [PHP] Question

2007-10-26 Thread Zoltán Németh
2007. 10. 26, péntek keltezéssel 15.26-kor arash moosavi ezt írta: I have Question In PHP Where Can I send it to Give my answer? for example to this list ;) (it's not sure you will get the exact answer you want, but the chances are pretty good) greets Zoltán Németh -- PHP General Mailing List

Re: [PHP] Question

2007-10-26 Thread Daniel Brown
On 10/26/07, Zoltán Németh [EMAIL PROTECTED] wrote: 2007. 10. 26, péntek keltezéssel 15.26-kor arash moosavi ezt írta: I have Question In PHP Where Can I send it to Give my answer? [snip!] http://web.ics.purdue.edu/~ssanty/cgi-bin/eightball.cgi -- Daniel P. Brown [office] (570-) 587-7080

Re: [PHP] Question about time...

2007-10-25 Thread Jason Pruim
On Oct 24, 2007, at 6:10 PM, Instruct ICC wrote: I want to be able to display something like an image of a turkey during the month of november from now until I'm dead. And how will the application know when you are dead? Well, I code all of my applications to receive RFID signals, and I

Re: [PHP] Question about time...

2007-10-25 Thread Jason Pruim
On Oct 24, 2007, at 9:01 PM, tedd wrote: At 3:10 PM -0700 10/24/07, Instruct ICC wrote: I want to be able to display something like an image of a turkey during the month of november from now until I'm dead. And how will the application know when you are dead? When you stop paying for

Re: [PHP] Question about time...

2007-10-25 Thread Zoltán Németh
2007. 10. 25, csütörtök keltezéssel 09.01-kor Jason Pruim ezt írta: On Oct 24, 2007, at 9:01 PM, tedd wrote: At 3:10 PM -0700 10/24/07, Instruct ICC wrote: I want to be able to display something like an image of a turkey during the month of november from now until I'm dead. And how

Re: [PHP] Question about time...

2007-10-25 Thread Daniel Brown
On 10/25/07, Zoltán Németh [EMAIL PROTECTED] wrote: 2007. 10. 25, csütörtök keltezéssel 09.01-kor Jason Pruim ezt írta: On Oct 24, 2007, at 9:01 PM, tedd wrote: At 3:10 PM -0700 10/24/07, Instruct ICC wrote: I want to be able to display something like an image of a turkey during

Re: [PHP] Question about time...

2007-10-25 Thread tedd
At 3:13 PM +0200 10/25/07, Zoltán Németh wrote: 2007. 10. 25, csütörtök keltezéssel 09.01-kor Jason Pruim ezt írta: That's actually where I got the idea, just couldn't remember who on what list said they did it :) using variables in css is it as easy as just putting in a quick ?PHP echo

RE: [PHP] Question about time...

2007-10-25 Thread Instruct ICC
I want to be able to display something like an image of a turkey during the month of november from now until I'm dead. And how will the application know when you are dead? Well, I code all of my applications to receive RFID signals, and I had a RFID transmitter embedded into me that

Re: [PHP] Question about time...

2007-10-24 Thread Daniel Brown
On 10/24/07, Jason Pruim [EMAIL PROTECTED] wrote: Hi Everyone, I am attempting to get the logic of something figured out and I thought someone might be able to confirm what I'm thinking :) I want to be able to display something like an image of a turkey during the month of november from now

Re: [PHP] Question about time...

2007-10-24 Thread Jason Pruim
Errr... Never mind... Soon as I hit send I got a brain storm... I just do this: ?PHP $month = date('m'); if ($month == 11){ echo turkey; }else{ echo No turkey; } ? Or something similar, I'll try and feather it out and see how it works for multiple holidays :) (IE:

Re: [PHP] Question about time...

2007-10-24 Thread Richard Heyes
I am attempting to get the logic of something figured out and I thought someone might be able to confirm what I'm thinking :) I want to be able to display something like an image of a turkey during the month of november from now until I'm dead. I was playing around with mktime and it showed

Re: [PHP] Question about time...

2007-10-24 Thread Daniel Brown
On 10/24/07, Daniel Brown [EMAIL PROTECTED] wrote: On 10/24/07, Jason Pruim [EMAIL PROTECTED] wrote: Hi Everyone, I am attempting to get the logic of something figured out and I thought someone might be able to confirm what I'm thinking :) I want to be able to display something like

Re: [PHP] Question about time...

2007-10-24 Thread Jason Pruim
On Oct 24, 2007, at 4:09 PM, Richard Heyes wrote: I am attempting to get the logic of something figured out and I thought someone might be able to confirm what I'm thinking :) I want to be able to display something like an image of a turkey during the month of november from now until I'm

RE: [PHP] Question about time...

2007-10-24 Thread Instruct ICC
I want to be able to display something like an image of a turkey during the month of november from now until I'm dead. And how will the application know when you are dead? _ Windows Live Hotmail and Microsoft Office Outlook –

Re: [PHP] Question about time...

2007-10-24 Thread Daniel Brown
On 10/24/07, Instruct ICC [EMAIL PROTECTED] wrote: I want to be able to display something like an image of a turkey during the month of november from now until I'm dead. And how will the application know when you are dead? _

RE: [PHP] Question about time...

2007-10-24 Thread Bastien Koert
what about if (date(m) == 11){ echo ; } bastien To: php-general@lists.php.net From: [EMAIL PROTECTED] Date: Wed, 24 Oct 2007 15:57:38 -0400 Subject: [PHP] Question about time... Hi Everyone, I am attempting to get the logic of something

RE: [PHP] Question about time...

2007-10-24 Thread tedd
At 3:10 PM -0700 10/24/07, Instruct ICC wrote: I want to be able to display something like an image of a turkey during the month of november from now until I'm dead. And how will the application know when you are dead? When you stop paying for hosting, the application get's the idea when

RE: [PHP] Question about time...

2007-10-24 Thread Instruct ICC
I want to be able to display something like an image of a turkey during the month of november from now until I'm dead. And how will the application know when you are dead? When you stop paying for hosting, the application get's the idea when it's bits go poof! Yep, that will do

Re: [PHP] Question about ereg_replace and urlencode...

2007-10-02 Thread Stut
Venkatesh M. S. wrote: Hello! i am trying to make links clickable on a page. I would like to urlencode the URL so that it is well passed to a redirect.php file, which would do somethings and then also do a meta http refresh I am trying to use a function like the following, but it doesn't work.

Re: [PHP] Question about ereg_replace and urlencode...

2007-10-02 Thread Venkatesh M. S.
Many thanks Stut The problem is that the rest of the $str is actually a big post from a blog, which will have many other text and info apart from the URL, and i don't want to urlencode everything in there! Venky On 02/10/2007, Stut [EMAIL PROTECTED] wrote: Venkatesh M. S. wrote: Hello! i

Re: [PHP] question about making modules

2007-09-01 Thread Robert Degen
Maybe you should deal with some things like * Plugin-Architecture * Extension Points * States !? A look at wikipedia might give most information you need. Regards rob On Sa, Sep 01, 2007 at 11:23:31 +0200, Mark wrote: Hey, i've been trying alot to make php modules (php based.. not

Re: [PHP] question about note on php.net

2007-08-13 Thread Richard Lynch
On Sat, August 11, 2007 1:54 pm, Michael Cooper wrote: Hello, I have a question--is the note from equazcion here correct? It is left unchallenged on the page but I can't see how it is correct since I am under the impression that the environment is refreshed each page load and the function or

Re: [PHP] question about note on php.net

2007-08-12 Thread Stut
brian wrote: Michael Cooper wrote: Hello, I have a question--is the note from equazcion here correct? It is left unchallenged on the page but I can't see how it is correct since I am under the impression that the environment is refreshed each page load and the function or method definitions

Re: [PHP] question about note on php.net

2007-08-11 Thread Stut
Michael Cooper wrote: Hello, I have a question--is the note from equazcion here correct? It is left unchallenged on the page but I can't see how it is correct since I am under the impression that the environment is refreshed each page load and the function or method definitions (including

Re: [PHP] question about note on php.net

2007-08-11 Thread brian
Michael Cooper wrote: Hello, I have a question--is the note from equazcion here correct? It is left unchallenged on the page but I can't see how it is correct since I am under the impression that the environment is refreshed each page load and the function or method definitions (including

Re: [PHP] Question about passing date in sql...

2007-08-07 Thread Richard Lynch
On Wed, August 1, 2007 5:00 pm, Michael Preslar wrote: I know it has to do with date='`date +%Y%m%d`', because if I remove it works. Are you trying to use perl's back tic operator in php here? Close. He's trying to use the shell's back tick operator in MySQL. I think. It would actually

Re: [PHP] Question about passing date in sql...

2007-08-02 Thread Payne
Stut wrote: Michael Preslar wrote: I know it has to do with date='`date +%Y%m%d`', because if I remove it works. Are you trying to use perl's back tic operator in php here? PHP also supports the that. However, I think the OP's problem is that it's inside other quotes and is therefore not

Re: [PHP] Question about passing date in sql...

2007-08-02 Thread Payne
Payne wrote: Stut wrote: Michael Preslar wrote: I know it has to do with date='`date +%Y%m%d`', because if I remove it works. Are you trying to use perl's back tic operator in php here? PHP also supports the that. However, I think the OP's problem is that it's inside other quotes and is

Re: [PHP] Question about passing date in sql...

2007-08-01 Thread Brad Bonkoski
Payne wrote: Guys, Got a quick question. I got a sql statement works when I pass it from the cli. but if I try in php I get nothing. This is the statement. Select ip, date, time, CONCAT(city, ', ',country) as location from ips where country !=' ' and date='`date +%Y%m%d`' order by country

Re: [PHP] Question about passing date in sql...

2007-08-01 Thread Michael Preslar
I know it has to do with date='`date +%Y%m%d`', because if I remove it works. Are you trying to use perl's back tic operator in php here? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about passing date in sql...

2007-08-01 Thread Stut
Michael Preslar wrote: I know it has to do with date='`date +%Y%m%d`', because if I remove it works. Are you trying to use perl's back tic operator in php here? PHP also supports the that. However, I think the OP's problem is that it's inside other quotes and is therefore not being

Re: [PHP] Question re virtual and scope of definitions

2007-07-04 Thread Chris
(Karl Pflästerer) wrote: Hi, today I wanted to use virtual (an `include' wasn't an option) to get the output from another PHP script. I got errors about functions being already defined, which is true since in both scripts are functions of the same name. I always thought virtual makes an Apache

RE: [PHP] Question on Connecting to Microsoft SQL Server from PHP

2007-06-12 Thread Edward Kay
All: I can't seem to connect to a SQL Server database with PHP. I have read the php.net documentation and so many other forums on the Internet that my eyes were literally blood shot. Today I thought I would try this route. I have PHP and Apache installed on my local machine. They work fine

Re: [PHP] Question on Connecting to Microsoft SQL Server from PHP

2007-06-12 Thread Dan Shirah
In my PHP page I have the following: $sql = mssql_connect (xx.xx.xx.xx:, xx, xx); $conn=mssql_select_db(xx, $sql); Since both servers are within your local network, you should be able to connect as follows: $connection = mssql_connect('SERVERNAME','username','password') or die ('Cannot

Re: [PHP] Question on Connecting to Microsoft SQL Server from PHP

2007-06-12 Thread Richard Lynch
You may want to try using the Sybase drivers. MS basically bought Sybase and re-named it MS SQL and then broke a lot of stuff :-) One of the things they haven't broken (yet) is the basic Sybase driver functionality to send queries. For sure, ' versus won't make any difference. You may want to

Re: [PHP] Question on Connecting to Microsoft SQL Server from PHP

2007-06-12 Thread David Giragosian
Tommy, Since SQL Server may loom on my horizon, I've tried connecting to a SQL Server 2000 db on my network. I got it to work _without_ any port after the IP in mssql_connect(). I'm using PHP 5.2.0 from windows XP to a Windows 2000 box running SQL Server. I used SQL Server Authentication to

Re: [PHP] Question about using ftp_put() for copying files

2007-05-24 Thread Richard Lynch
On Thu, May 24, 2007 2:37 pm, Al wrote: Can anyone explain what's going on. If I assign $source= $source_dir . $file; $source_dir is the absolute path i.e., /home/x/public_html/EditPage/ And $dist= $dist_dir . $file; $dist_dir is simply relative to $_SERVER[document_root]; i.e., just

Re: [PHP] Question about using ftp_put() for copying files

2007-05-24 Thread Al
What puzzles me is that one path must be absolute and the other relative to the root. And, I've got chdir to the destination dir. I know about ftp having its own root. In my code, I have a check to make certain the ftp root is the same as the $_SERVER[document_root]. Richard Lynch wrote:

Re: [PHP] Question

2007-05-15 Thread Alister Bulman
On 13/05/07, Robert Cummings [EMAIL PROTECTED] wrote: On Sat, 2007-05-12 at 23:03 -0500, Richard Lynch wrote: You may find this entertaining, and even useful: http://richardlynch.blogspoot.com I'm sure Richard meant http://richardlynch.blogspot.com Unless he's trying to promote bondage

Re: [PHP] Question

2007-05-15 Thread Robert Cummings
On Tue, 2007-05-15 at 16:57 +0100, Alister Bulman wrote: On 13/05/07, Robert Cummings [EMAIL PROTECTED] wrote: On Sat, 2007-05-12 at 23:03 -0500, Richard Lynch wrote: You may find this entertaining, and even useful: http://richardlynch.blogspoot.com I'm sure Richard meant

Re: [PHP] Question

2007-05-13 Thread Robert Cummings
On Sun, 2007-05-13 at 00:33 -0500, Richard Lynch wrote: Here's your cookie: http://l-i-e.com/cookie.php :-) Bah, I was hoping for something a bit more tasty :/ ;) PS Does the one where I juke the URL to just be iwant.xyz work right at least?... Yep. Cheers, Rob. --

RE: [PHP] Question

2007-05-13 Thread WeberSites LTD
Notice the 1st code example : http://www.php-code-search.com/?q=how%20to%20force%20the%20user%20to%20downl oad%20a%20file berber -Original Message- From: Dusan Novakovic [mailto:[EMAIL PROTECTED] Sent: Sunday, May 13, 2007 2:19 AM To: php-general@lists.php.net Subject: [PHP] Question

Re: [PHP] Question

2007-05-12 Thread Richard Lynch
On Sat, May 12, 2007 7:19 pm, Dusan Novakovic wrote: Hi! I need a script which will run pop-up menu with the Save As button when I click on a link (e.g. a href=file.txtClick/a ) so that I could save that file on my computer. In the example I wrote file.txt file opens in browser, which I

Re: [PHP] Question

2007-05-12 Thread Robert Cummings
On Sat, 2007-05-12 at 23:03 -0500, Richard Lynch wrote: On Sat, May 12, 2007 7:19 pm, Dusan Novakovic wrote: Hi! I need a script which will run pop-up menu with the Save As button when I click on a link (e.g. a href=file.txtClick/a ) so that I could save that file on my computer. In the

Re: [PHP] Question

2007-05-12 Thread Robert Cummings
On Sun, 2007-05-13 at 00:24 -0400, Robert Cummings wrote: On Sat, 2007-05-12 at 23:03 -0500, Richard Lynch wrote: On Sat, May 12, 2007 7:19 pm, Dusan Novakovic wrote: Hi! I need a script which will run pop-up menu with the Save As button when I click on a link (e.g. a

Re: [PHP] Question

2007-05-12 Thread Richard Lynch
On Sat, May 12, 2007 11:40 pm, Robert Cummings wrote: BTW Richard, my Opera browser (9.10 linux) opened up this link as a page containing text: http://l-i-e.com/blogger/download.php?filename=iwant.xyz If Opera IGNORES the RFC-mandated application/octet-stream as forcing a download, it's

Re: [PHP] Question about OO design

2007-04-11 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-09 15:29:01 -0700: (I'm dealing with PHP4.) class User { var id; var name; var email; var balance; var accrual; var is_manager; function User($user_id) { $this-id = $user_id;

Re: [PHP] Question on Portfoilo's

2007-04-10 Thread clive
Larry Garfield wrote: This is why one should work on an open source project. Much easier to show off legally. :-) unfortunately we aren't all fortunate enough to work for an open source project and earn a living, except Paul of course. Regards, Clive. {No electrons were harmed in the

RE: [PHP] Question about OO design

2007-04-10 Thread Chris W. Parker
On Monday, April 09, 2007 4:24 PM Jochem Maas mailto:[EMAIL PROTECTED] said: Ok. I see what you're saying. If I populate all that data during the constructor why would I ever call the function again right? you could refresh the data if needed - but basically the idea is to cut down the user

Re: [PHP] Question about OO design

2007-04-09 Thread Jochem Maas
Chris W. Parker wrote: Hello, I'm working on a project now and I'd like to get some feedback on how to implement a proper class (or two). This is an application that records an employee's used vacation time. There are two tables: (1) events, (2) users. Users: id (int) name

RE: [PHP] Question about OO design

2007-04-09 Thread Chris W. Parker
On Monday, April 09, 2007 3:51 PM Jochem Maas mailto:[EMAIL PROTECTED] said: Thanks for the response Jochem. Chris W. Parker wrote: [snip] you probably only want one DB call to populate the User object with all the relevant user data at the point where the object is created. [snip] Ok. I

Re: [PHP] Question about OO design

2007-04-09 Thread Jochem Maas
Chris W. Parker wrote: On Monday, April 09, 2007 3:51 PM Jochem Maas mailto:[EMAIL PROTECTED] said: Thanks for the response Jochem. Chris W. Parker wrote: [snip] you probably only want one DB call to populate the User object with all the relevant user data at the point where the

<    1   2   3   4   5   6   7   8   9   10   >