RE: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Dan Joseph
Hi, Another way to restrict them to one vote is to set a cookie. Although not completely full-proof, its a method I've seen a lot of them use. -Dan Joseph -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 1:54 PM To:

Re: [PHP] PHP class and extends

2003-09-24 Thread Burhan Khalid
BENARD Jean-philippe wrote: [ snip ] Is there something to do in order that when I use xxx_cl_app-ExecuteQuery(), there's a function ExecuteQuery() in xxx_cl_app that do something like this : (xxx_cl_app.php) function ExecuteQuery(x,y) { $tmpResult = [herited_class]-ExecuteQuery(x,y);

Re: [PHP] date problem

2003-09-24 Thread Curt Zirzow
* Thus wrote Shaun ([EMAIL PROTECTED]): Hi, Why does the following code print '00', surely it should print '08', I'm baffled! date(H, mktime(8, 0, 0, 0, 0, 0)); ?php echo date(r, mktime(8,0,0,0,0,0)), \n; //Wed, 31 Dec 1969 23:59:59 + echo date(r, mktime(0,0,0,0,0,0)), \n; //Wed, 31

Re: [PHP] sql faq

2003-09-24 Thread Curt Zirzow
* Thus wrote Dan Anderson ([EMAIL PROTECTED]): On Wed, 2003-09-24 at 12:30, Jonatan Pugliese. wrote: select MaeSocio.* from MaeSocio LEFT JOIN MaeSeguro ON MaeSocio.NroSocio=MaeSeguro.NroSocio where MaeSeguro.NroSocio is null MaeSeguro.NroSocio is not null count(*) MaeSocio =

Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Ryan A
Hey John, Thanks for replying. Just get rid of the check for IP address. All you're going to do is restrict a bunch of people that actually haven't voted just because they have the same IP address as someone else. Some ISPs have it so that all requests look like they are coming from the same

RE: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread chris . neale
You could take it further and only allow one vote per user and then log their IP address as well. There won't be many people who are determined to sway the vote by going through the hassle of creating a new user and then voting again. But there may be some. You can weed these out by looking

Re: [PHP] How to achieve bi-directional communication between two servers?

2003-09-24 Thread Burhan Khalid
Daevid Vincent wrote: I have a script on all my client machines that checks into a master server to dump statistical information into a mysql database. That works great (using $_GET and an encrypted string). However, now I'd like to have the client check in to the master and see if it needs any

[PHP] safe_mode problem

2003-09-24 Thread Peter Torraca
I can't seem to get safe_mode working the way I need it to. I'm trying to allow users to include PEAR from their local webspace without disabling safe_mode. The docs tell me to simply use the safe_mode_include_dir directive, but php does not seem to be using it. Here's my config, set up in

Re: [PHP] sql faq

2003-09-24 Thread Dan Anderson
I just wanted to add that if you don't need all the information in MaeSocio or MaeSeguro when doing a select, it is best to use: SELECT NroSocio, whatever else you need FROM MaeSeguro; -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Jason Wong
On Thursday 25 September 2003 02:21, Ryan A wrote: If your poll is really so important that you need to limit people from voting twice, then make them log in and only allow one vote per username. I thought of that, I am making them login before voteing but whats to stop them from changing

RE: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Chris Shiflett
--- Dan Joseph [EMAIL PROTECTED] wrote: Another way to restrict them to one vote is to set a cookie. Although not completely full-proof, its a method I've seen a lot of them use. That's way too easy to avoid. You might rule out the bottom 50% of the computer illiterate, but these are probably

Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Jason Wong
On Thursday 25 September 2003 02:13, Dan Joseph wrote: Another way to restrict them to one vote is to set a cookie. Although not completely full-proof, its a method I've seen a lot of them use. This is probably the easiest 'security' measure to circumvent. How hard is it to delete a

[PHP] PHP email message composing

2003-09-24 Thread Cesar Aracena
Hi all, I am trying to create an automatic email composing script, but I have one big problem here. The message composing method I'm using is the following: /* message */ $message = ' html head titleSolicitud de Presupuesto/title

RE: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Dan Joseph
Hi, Another way to restrict them to one vote is to set a cookie. Although not completely full-proof, its a method I've seen a lot of them use. Ok, let's examine the part where I said its not full-proof... -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP email message composing

2003-09-24 Thread Jason Wong
On Thursday 25 September 2003 03:48, Cesar Aracena wrote: [snip] And after a while, I have to know which are the options the visitor has selected. The options might vary depending on two different selections, which are guided using arrays. What I've done so far, and doesn't work is: '.if

Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Jason Wong
On Thursday 25 September 2003 03:52, Dan Joseph wrote: Ok, let's examine the part where I said its not full-proof... I believe you mean fool-proof? Actually it *is* pretty fool-proof, because hopefully fools aren't smart enough to delete said cookies ;-) -- Jason Wong - Gremlins

Re: [PHP] PHP email message composing

2003-09-24 Thread Dan Anderson
Instead of putting your message in your code like that, why not just put it in a seperate text file and do: $message = implode( , file(./message)); ? This will make your code look cleaner. So you could create something like: $message = implode( , file(./message1)); if (isset($checkbox[0])) {

Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Ryan A
Hey John, Thats already done, the user has to authenticate his address by clicking on the link which contains his $CNO and $random_number But the rateing system is for webhosts, and webhosts usually have a catch all email address so they can use n number of email addresses Cheers, -Ryan So

Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Ryan A
Hey, You could take it further and only allow one vote per user and then log their IP address as well. Thats exactly what i am trying. First it will check on $username, if that passes then it checks on $IP if that passes, allow the vote if not There won't be many people who are determined

[PHP] Install problems (GD) on Red Hat

2003-09-24 Thread Donaldson Sgt Michael J
I am trying to install php-5.0.0b1 on a Red Hat 9.0 box. I had recently had it installed with apache but did not have gd support. Now that I need it I can't get it reconfigured. ### ORIGINAL WORKED ### ./configure --with-apxs2=/usr/local/apache/bin/apxs \ --with-oci8=$ORACLE_HOME \

Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Ryan A
Now THERES an idea, if 2 people are willing to vote am going on the PHP cruise :-D Cheers, -Ryan Charge them a thousand dollars for each vote. That should cut down on some of the fraud. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] rename variables

2003-09-24 Thread Boyd Pearson
I'm trying to rename some variables. first I have a function - randomize (3,4); //has created unique $numbers then I want to create a function for the renaming: renameit($sculp); //sends $sculp for the new variable name and this function (and variations) function renameit($var){ $z = 1;

RE: [PHP] rename variables

2003-09-24 Thread Jennifer Goodie
I'm trying to rename some variables. first I have a function - randomize (3,4); //has created unique $numbers then I want to create a function for the renaming: renameit($sculp); //sends $sculp for the new variable name and this function (and variations) function renameit($var){ $z =

Re: [PHP] rename variables

2003-09-24 Thread Dan J. Rychlik
Global works... - Original Message - From: Jennifer Goodie [EMAIL PROTECTED] To: Boyd Pearson [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 3:44 PM Subject: RE: [PHP] rename variables I'm trying to rename some variables. first I have a function -

Re: [PHP] Install problems (GD) on Red Hat

2003-09-24 Thread Jason Wong
On Thursday 25 September 2003 04:25, Donaldson Sgt Michael J wrote: [snip] If configure fails try --with-jpeg-dir=DIR configure: error: png.h not found. saw this in a post --with-jpeg-dir=/usr/local/src/php-5.0.0b1 \ --with-png-dir=/usr/local/src/php-5.0.0b1 \

Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Jason Wong
On Thursday 25 September 2003 04:03, Ryan A wrote: Thats already done, the user has to authenticate his address by clicking on the link which contains his $CNO and $random_number But the rateing system is for webhosts, and webhosts usually have a catch all email address so they can use n

Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Ryan A
Its already a bit of a pain in the ass, the user has to login to his email and confirm his address by clicking on a link that has his $cno and $random_word before being allowed to vote...unless he/she already has a mylist account and is logged in. Cheers, -Ryan Thats already done, the user

Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Jason Wong
On Thursday 25 September 2003 05:14, Ryan A wrote: Its already a bit of a pain in the ass, the user has to login to his email and confirm his address by clicking on a link that has his $cno and $random_word before being allowed to vote...unless he/she already has a mylist account and is

Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Ryan A
Hey, Thanks for the suggestion, didnt know it can be so automated. Can you give me any links for generating blurry images that can be human identified quickly but not so easy by automation? Thanks, -Ryan On Thursday 25 September 2003 05:14, Ryan A wrote: Its already a bit of a pain in the

Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Chris Shiflett
--- Ryan A [EMAIL PROTECTED] wrote: Can you give me any links for generating blurry images that can be human identified quickly but not so easy by automation? http://www.captcha.net/ Hope that helps. Chris = Become a better Web developer with the HTTP Developer's Handbook

Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Jason Wong
On Thursday 25 September 2003 05:44, Ryan A wrote: Can you give me any links for generating blurry images that can be human identified quickly but not so easy by automation? There's a class in www.phpclasses.org which help you generate such images, I've no idea how good it is. It's pretty

Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Ryan A
Hey, Went there, but the program just generates some clear alpha numeric images...i want something blurred or distorted like the samples there have there. Cheers, -Ryan http://www.captcha.net/ Hope that helps. Chris = Become a better Web developer with the HTTP Developer's Handbook

Re: [PHP] Casting nulls

2003-09-24 Thread Gerard Samuel
If I understood the question wouldn't this work??? if (!is_null($int) $int 1) { // do some foobar } Carl Furst wrote: IF $int is null and I have a test If($int 1) { //do some foobar } will $int be evaluated as a zero? IF I cast (int) $int.. will that turn a null $int into a zero??

Re: [PHP] IP to Postal Code CSV? anyone messed around with this and PHP

2003-09-24 Thread Raquel Rice
On Wed, 24 Sep 2003 07:35:15 +0100 Duncan Hill [EMAIL PROTECTED] wrote: On Tuesday 23 Sep 2003 19:59, Joe Harman wrote: Is there a CSV file out there for this Does anyone know where I can aquire a file that has IP address with the corresponding Postal Code? How do you handle dynamic

Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Ryan A
Hey, Tried it...not too good :-( -Ryan On Thursday 25 September 2003 05:44, Ryan A wrote: Can you give me any links for generating blurry images that can be human identified quickly but not so easy by automation? There's a class in www.phpclasses.org which help you generate such images,

Re: [PHP] Casting nulls

2003-09-24 Thread Curt Zirzow
* Thus wrote Carl Furst ([EMAIL PROTECTED]): IF $int is null and I have a test If($int 1) { //do some foobar } will $int be evaluated as a zero? IF I cast (int) $int.. will that turn a null $int into a zero?? ?php echo (int) null; ? 0 Curt -- I used to think I was indecisive, but

Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Chris Shiflett
--- Ryan A [EMAIL PROTECTED] wrote: Went there [http://www.captcha.net/], but the program just generates some clear alpha numeric images...i want something blurred or distorted like the samples there have there. What program? There are a few there, and they all generate images that are blurred

Re: [PHP] Accellerators and Encryptors: Taking Scripts to the Next Level

2003-09-24 Thread Jason Sheets
Search the archives for Turck and MMcache, yes they work, the degree differs depending on how much the database is used but you will see a performance increase. Turck is open source and very good, I wrote a web based encoder front end to it http://phpcoder.shadonet.com or you can use the

[PHP] Re: chris-Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Chris Shiflett
--- Ryan A [EMAIL PROTECTED] wrote: WHERE?? Can you point me to them? I had a tough time myself. I just went to this page: http://www.captcha.net/cgi-bin/ez-gimpy And, when I view source, I see the following in an HTML comment: The following versions are available for download: a

Re: [PHP] Re: chris-Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Chris Shiflett
--- Chris Shiflett [EMAIL PROTECTED] wrote: I had a tough time myself. I just went to this page: http://www.captcha.net/cgi-bin/ez-gimpy I meant to say that this page has the HTML comment: http://www.captcha.net/captchas/gimpy/ Chris = Become a better Web developer with the HTTP

Re: [PHP] Re: chris-Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Ryan A
Hey, Thanks dude, have downloaded both will see if i understand them now :-D cheers, -Ryan We will slaughter you all! - The Iraqi (Dis)information ministers site http://MrSahaf.com - Original Message - From: Chris Shiflett [EMAIL PROTECTED] To: Ryan A [EMAIL PROTECTED]; [EMAIL

[PHP] CSS Question

2003-09-24 Thread Dan Anderson
Can anyone either recommend a good mailing list to discuss CSS style sheets or answer the following question? When I call BACKGROUND-COLOR: #??; and COLOR: #??; on a file input: (INPUT TYPE=FILE NAME='foo') both the part which shows the file and the Browse button get colored. Is there

Re: [PHP] How can I auto upload a file to the server?

2003-09-24 Thread jane
Sorry for the delay in responding. I do not want to run PHP client side. I would rather not deal with the security and install issues. Also the users need to be able to use any browser on any machine. Here is a more detailed description of what I am trying to accomplish: I am making a CRM web

Re: [PHP] How can I auto upload a file to the server?

2003-09-24 Thread Mike Migurski
The only part i am having trouble with is making the remote script automatically look into the local computer's hard drive and grab the .txt file. snip The problem with the code above is the path to the file does not show up in the input type='file', and the user would still need to click on the

[PHP] preg_replace help please

2003-09-24 Thread Justin French
this is supposed to any occurrence of *something* into strongsomething/strong $str = preg_replace(!\*(.*?)\*!, strong\\1/strong\\2,$str); it works fine on single lines, but it breaks when there's a \n (and perhaps other white spaces?) in the string, eg: *something with a newline* I think this

Re: [PHP] preg_replace help please

2003-09-24 Thread John W. Holmes
Justin French wrote: this is supposed to any occurrence of *something* into strongsomething/strong $str = preg_replace(!\*(.*?)\*!, strong\\1/strong\\2,$str); it works fine on single lines, but it breaks when there's a \n (and perhaps other white spaces?) in the string, eg: *something with a

Re: [PHP] How can I auto upload a file to the server?

2003-09-24 Thread John W. Holmes
Mike Migurski wrote: The only part i am having trouble with is making the remote script automatically look into the local computer's hard drive and grab the .txt file. snip The problem with the code above is the path to the file does not show up in the input type='file', and the user would

Re: [PHP] Accellerators and Encryptors: Taking Scripts to the Next Level

2003-09-24 Thread Becoming Digital
IonCube Encoder looks like it has some potential. I haven't had an opportunity to play with the demo yet, but the feature list is impressive. More info can be found below. http://www.ioncube.com/sa_encoder.php Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message

[PHP] Maintains a persistent connection

2003-09-24 Thread ascll
Greetings, Could I use the PHP to maintain a persistent connection with MySQL database? My persistent connection here should work in this way: - 1) Using the .php file the retrieve data from Table_A that contain 2 fields 'Field_A' and 'Field_B', with the value 'Value_A' and 'Value_B'

Re: [PHP] Maintains a persistent connection

2003-09-24 Thread Chris Shiflett
--- ascll [EMAIL PROTECTED] wrote: Could I use the PHP to maintain a persistent connection with MySQL database? Yes: www.php.net/mysql_pconnect My persistent connection here should work in this way: - 1) Using the .php file the retrieve data from Table_A that contain 2 fields 'Field_A'

Re: [PHP] CSS Question

2003-09-24 Thread Becoming Digital
quoted from http://archivist.incutio.com/viewlist/css-discuss/1222 It is not possible to style the button on a 'file' input. This form element uses the operating system of the client machine to generate the 'browse' button. It is a total pain in the a*** I know but it just can't be done...sorry

Re: [PHP] Users Online

2003-09-24 Thread Becoming Digital
Since the release of Flash MX, using Flash for data-driven applications is actually quite easy. You can find a number of tutorials on DevShed regarding integration with PHP, all of which should prove helpful. Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message

[PHP] php x MsSql

2003-09-24 Thread João Cândido de Souza Neto
Hello to all. I'm creating a site using php with database MsSql, when i test in my server using Win XP x php 4.3.2 it's all ok, but when i send to server with linux x php 4.3.3 i can't to save accented words in database. When i try to save, i receive this error message: Warning: mssql_query():

Re: [PHP] php x MsSql

2003-09-24 Thread Curt Zirzow
* Thus wrote João Cândido de Souza Neto ([EMAIL PROTECTED]): Hello to all. I'm creating a site using php with database MsSql, when i test in my server using Win XP x php 4.3.2 it's all ok, but when i send to server with linux x php 4.3.3 i can't to save accented words in database. When i

Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): --- Ryan A [EMAIL PROTECTED] wrote: Went there [http://www.captcha.net/], but the program just generates some clear alpha numeric images...i want something blurred or distorted like the samples there have there. What program? There are a

[PHP] php x MsSql

2003-09-24 Thread João Cândido de Souza Neto
Hello to all. I'm creating a site using php with database MsSql, when i test in my server using Win XP x php 4.3.2 it's all ok, but when i send to server with linux x php 4.3.3 i can't to save accented words in database. When i try to save, i receive this error message: Warning: mssql_query():

Re: [PHP] Maintains a persistent connection

2003-09-24 Thread ascll
First of all, thank you for your reply. I have tried to use 'mysql_pconnect()' to connect to my database, but what I want to achieve are these: 1) Value for Field_A is Value_A and value for Field_B is Value_B, by default 2) I load my getData.php page and get the values (Valua_A, Valua_B) 3)

Re: [PHP] Maintains a persistent connection

2003-09-24 Thread Curt Zirzow
* Thus wrote ascll ([EMAIL PROTECTED]): [...] Question: = Could my .php page ALWAYS get the latest values WITHOUT reload the page? no. Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] [Newbie Guide] For the benefit of new members

2003-09-24 Thread tech
= This message is for the benefit of new subscribers and those new to PHP. Those who do not want to be bothered just filter out the [Newbie Guide] mails. Please feel free to add more points and send to the list.

[PHP] About php String function

2003-09-24 Thread Uma Shankari T.
Hello, I am using strpos function for finding the string position in a particular string .If the string value is equal to zero or greater than zero some steps to be executed. If the position is empty it is taking as zero value and executing the steps under equal to zero loop..Is there

[PHP] How to configure GD support in php on linux/apache?

2003-09-24 Thread Larry_Li
Could anybody show me how to configure it? Thanks!

Re: [PHP] About php String function

2003-09-24 Thread Tom Rogers
Hi, Thursday, September 25, 2003, 3:18:19 PM, you wrote: UST Hello, UST I am using strpos function for finding the string position in a UST particular string .If the string value is equal to zero or greater UST than zero some steps to be executed. If the position is empty it is taking

Re: [PHP] About php String function

2003-09-24 Thread Eugene Lee
On Thu, Sep 25, 2003 at 10:48:19AM +0530, Uma Shankari T. wrote: : : I am using strpos function for finding the string position in a : particular string .If the string value is equal to zero or greater : than zero some steps to be executed. If the position is empty it is taking : as zero

Re: [PHP] How to configure GD support in php on linux/apache?

2003-09-24 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): Could anybody show me how to configure it? Thanks! You'll find the information you need under the sections 'Requirements' and 'Installation' http://php.net/gd Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP

[PHP] Netcraft

2003-09-24 Thread John Nichel
Does anyone know how Netcraft queries a webserver to get the info it does (OS, web server software, uptime, etc.)? -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2