Re: [PHP] Maintains a persistent connection

2003-09-24 Thread Jason Wong
On Thursday 25 September 2003 12:08, ascll wrote: > Question: > = > Could my .php page ALWAYS get the latest values WITHOUT reload the page? That would be magic. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * In

[PHP] Q on Class, inhertance, ec... (a bit long)

2003-09-24 Thread jsWalter
I have a quandary and I hope I can explain myself well enough that someone may understand and enlighten me. I am in the middle of building a (largish) Class. It is done for the most part, at least all pieces are there. Now I'm just trying to put the pieces together in a logical order. This is my i

Re: [PHP] Netcraft

2003-09-24 Thread John Nichel
Maybe if I add a second question, which I figure didn't have to be asked, since I'm asking a PHP list, would make it all better "Does anyone know how Netcraft queries a webserver to get the info it does (OS, web server software, uptime, etc.)?" Can this be done with PHP But thanks for the

Re: [PHP] Netcraft

2003-09-24 Thread Chris Shiflett
--- John Nichel <[EMAIL PROTECTED]> wrote: > Does anyone know how Netcraft queries a webserver to get the info it > does (OS, web server software, uptime, etc.)? http://uptime.netcraft.com/up/accuracy.html Please try to stick to PHP queries as much as possible. Thanks. Chris = Become a bet

[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

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 Gen

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 val

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

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

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

[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. ===

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

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

[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(): m

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

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

[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(): m

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 -

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

[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' respective

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

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. The problem with the code above is the path to the file does not show up in the , and the user would still need to click on the

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 something $str = preg_replace("!\*(.*?)\*!"," \\1\\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 i

[PHP] preg_replace help please

2003-09-24 Thread Justin French
this is supposed to any occurrence of *something* into something $str = preg_replace("!\*(.*?)\*!"," \\1\\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 is because .*? doesn't

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. >The problem with the code above is the path to the file does not show up >in the , and the user would still need to click on the >'submit button'

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 ap

[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: () both the part which shows the file and the "Browse" button get colored. Is there any way to specify "Button

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]>; <[EMAI

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 De

[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: EZ-Gimpy, Gi

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 inclu

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 blu

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?? 0 Curt -- "I used to think I was indecisive, but now I'm not so

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

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 hand

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

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 Ha

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 s

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 http://httph

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

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 n

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= > 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 \ > --with-zlib-dir=/us

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 fun

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($v

[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; foreach

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

[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 \ --with-apxs

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 determin

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

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

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/) T

[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 = ' Solicitud de Presupuesto

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 c

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 proba

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 c

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

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

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 throug

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 sa

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(*) M

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)); kinda wierd, I say blame it on the y1969 bug. make sure your day and month don't go backwards, that seems to be what t

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

2003-09-24 Thread Chris Shiflett
--- Stephan Becker <[EMAIL PROTECTED]> wrote: > With perl there is a CPAN modul that could act as a HTTPclient to > handle such HTTP issues properly. With PHP, there is PEAR: http://pear.php.net/package/HTTP http://pear.php.net/package/HTTP_Client http://pear.php.net/package/HTTP_Request Or, you

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

2003-09-24 Thread CPT John W. Holmes
From: "Ryan A" <[EMAIL PROTECTED]> > Basically trying to limit the "vote" to just 1 per person, first am checking > if the the person with username has voted, if that comes back as false then > am checking his ip (because i dont know if the person changed his username > and is trying to vote agai

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Eugene Lee
On Wed, Sep 24, 2003 at 01:04:45PM -0400, Kevin Bruce wrote: : : Thanks:) I'll give BBedit a go for a week and let you know how it turns out. : Yes, Dreamweaver does sucketh much, but it's great for hashing out the page : (WYSIWYG style) then tweeking the code. I Hate (capital H) hand typing : nes

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

2003-09-24 Thread Jeremy Russell
You might try to perform bother queries first then check then by If ($result1 || $result2) { echo "You have already voted"; } else { ... } This means that if either the username or ip or both exists in the db, then the user is denied... Hope this is along the lines of what your needing

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

2003-09-24 Thread Ryan A
Hi all, Am having a bit of a problem understanding this, can anybody tell me where i'm going wrong please? Basically trying to limit the "vote" to just 1 per person, first am checking if the the person with username has voted, if that comes back as false then am checking his ip (because i dont kno

RE: [PHP] Select form dynamic creation.

2003-09-24 Thread Jeremy Russell
Yes, that would probably work just as well, but I still am having trouble seeing how to handle things, without having 1000 if's. I now I probably need an array of the list items and then remove the item from the array when it is selected but that's as far as I've been able to think it through. >

Re: [PHP] Select form dynamic creation.

2003-09-24 Thread Marek Kilimajer
Have you considered using multiselect? Jeremy Russell wrote: Hello list, I've spent a little time looking to see if this has been done before, and haven't found it, though I'm certain it has been done. What I want to do is build a page by first having a selection form. This select state

Re: [PHP] Re: date problem

2003-09-24 Thread Robert Cummings
>From the documentation: http://ca2.php.net/manual/en/function.mktime.php "Date with year, month and day equal to zero is considered illegal (otherwise it what be regarded as 30.11.1999, which would be strange behavior)." I think the point here to think about is that the date()

[PHP] Re: date problem

2003-09-24 Thread John
For me, on Windows, it won't work because Windows won't do anything prior to 1970. On linux, I get 17 as the result. If I change the year to 2000, then I get 08 on both. John "Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Why does the following code print '00', su

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread John Nichel
I know we've discussed this numerous times, but I'll chime in again (mainly because I'm bored). By far, I have been totally satisfied with UltraEdit. Lightweight, just about any language you want to edit, user configurable syntax highlighting (for those into that), handles UNIX / DOS / Mac fil

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Clint Tredway
The new Dreamweaver is much better than the previous version. I still have not found 'the ideal' editor for me and I use several tools. The one tool that looks like it could become my tool of choice could be eclipse. because you can build custom editors (plugins) for anything you need. Clint

Re: [PHP] sql faq

2003-09-24 Thread Dan Anderson
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 = 354000 > count(*) MaeSeguro=108000 > > how i can ret

[PHP] Select form dynamic creation.

2003-09-24 Thread Jeremy Russell
Hello list, I've spent a little time looking to see if this has been done before, and haven't found it, though I'm certain it has been done. What I want to do is build a page by first having a selection form. This select statement will have a number of items within it. When a use scroll

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Kevin Bruce
Thanks:) I'll give BBedit a go for a week and let you know how it turns out. Yes, Dreamweaver does sucketh much, but it's great for hashing out the page (WYSIWYG style) then tweeking the code. I Hate (capital H) hand typing nested tables.* :P *Hwat the hell do I need typing for, I'm going to be a

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Cesar Cordovez
THE best text/code editor in this planet is BBEdit. No questions about it. It is a pitty it only runs on Macs. I have used it to write text, code fortran, pascal, c, c++, html, css and php (among others). It is great, I love it. Kudos to Bare Bones! Great find/replace utility. Incredible ad

[PHP] sql faq

2003-09-24 Thread Jonatan Pugliese.
select MaeSocio.* from MaeSocio LEFT JOIN MaeSeguro ON MaeSocio.NroSocio=MaeSeguro.NroSocio where MaeSeguro.NroSocio is null MaeSeguro.NroSocio is not null count(*) MaeSocio = 354000 count(*) MaeSeguro=108000 how i can retype this query? Jonatan Pugliese Area Sistemas ACA - Automovil club A

[PHP] date problem

2003-09-24 Thread Shaun
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)); Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Casting nulls

2003-09-24 Thread CPT John W. Holmes
From: "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?? > > Documentation aint too clear. No idea what you're doing here, but you m

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

2003-09-24 Thread Dan Anderson
On this listserv I have heard quite a bit of talk about "accelerators". And I have also seen some advertisements about "Encryptors" -- letting PHP code be sold in a byte compiled type form so your clients can't pirate your scripts. Do these things work? And if they do, can you re

Re: [PHP] Lifetime with cookie-less sessions

2003-09-24 Thread Cranky
I just come to do some test this afternoon and here are the results. Now : '.date('H:i:s'); ?> Reload And here are the results : session.use_cookie = 0; session.gc_maxlifetime = 30; // 30 seconds session.gc_probability = 100; // 100% => the gc is always called On page 2, I have : Array ( [begi

Re: [PHP] Casting nulls

2003-09-24 Thread Robert Cummings
In the time you've waited for an answer so far, you could have made yourself a 3 line script to find out. Rob. On Wed, 2003-09-24 at 11:30, 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

Re: [PHP] Accepting data from URL Parameters

2003-09-24 Thread Raquel Rice
On Wed, 24 Sep 2003 10:40:42 -0400 (EDT) Jared Steckel <[EMAIL PROTECTED]> wrote: > I appologize for what may be a newbie-like request, but I have not > been able to find this information in the PHP documentation. > > If I were to have a link on an HTML page such as the following: > > http://www

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

2003-09-24 Thread CPT John W. Holmes
From: "Raditha Dissanayake" <[EMAIL PROTECTED]> > My Impression from Jane's mail was that she was thinking of using a PHP > script on the client side and not the server side. Am i correct jane? If > so there would not be security concerns. Obviously as john has so > rightly pointed out php on the s

[PHP] Casting nulls

2003-09-24 Thread Carl Furst
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?? Documentation aint too clear. Thanks, Carl. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

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

2003-09-24 Thread Raditha Dissanayake
Hi John, My Impression from Jane's mail was that she was thinking of using a PHP script on the client side and not the server side. Am i correct jane? If so there would not be security concerns. Obviously as john has so rightly pointed out php on the server side cannot access local files. The

Re: [PHP] PHP code in form field - var_export() (slashes)?

2003-09-24 Thread Jason Wong
On Wednesday 24 September 2003 22:43, Shawn McKenzie wrote: > I'm storing some multi-dimensional associative arrays in the file and then > when I need the values somewhere I just include the file and voila my > arrays are defined. Seemed better than looping through arrays writing to a > file and

Re: [PHP] mySQL vs pgSQL | php vs others

2003-09-24 Thread Dan Anderson
> Is pgsql , better ? faster ? more reliable than mysql ? I won't speculate on which one is faster (although I think both camps would claim ownership of the trump card). But Postgresql does conform closer to the SQL standard, and there are a number of features available in it that are not

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread andu
On Wed, 24 Sep 2003 10:34:33 -0400 Kevin Bruce <[EMAIL PROTECTED]> wrote: > FYI- New to this list but have been a php coder for 2 years. > > I know a lot of you out there are going to groan inwardly, but I use > Dreamweaver, mainly because that's what I used since it's inception when I > was writ

Re: [PHP] Problem with adding text to emails using the date function

2003-09-24 Thread Marek Kilimajer
You are right, the same way as \n is interpreted as a newline. Use single quotes Shaun wrote: Hi, using the folling line fo code i am trying to add some text to an email: $subject .= "\nBooking Commences: ".date("jS F Y \a\t H\:i", strtotime($booking_start_date)); However the output is: Book

[PHP] Re: Problem with adding text to emails using the date function

2003-09-24 Thread pete M
$subject .= "\nBooking Commences: ".date("jS F Y")." at ".date("H\:i") Shaun wrote: Hi, using the folling line fo code i am trying to add some text to an email: $subject .= "\nBooking Commences: ".date("jS F Y \a\t H\:i", strtotime($booking_start_date)); However the output is: Booking Commen

Re: [PHP] Lifetime with cookie-less sessions

2003-09-24 Thread Raquel Rice
On Wed, 24 Sep 2003 11:42:12 +0200 Cranky <[EMAIL PROTECTED]> wrote: > Hello, > Is it possible to determine a lifetime for the session in the case > of a cookie-less sessions ? > > Thanks for your help. > In my sessions I set an "expire time", which is the current time (unix timestamp) plus the

  1   2   >