[PHP] Re: E-Mail Verification - Yes, I know....

2009-04-28 Thread Manuel Lemos
Hello, on 04/28/2009 12:40 PM Jay Blanchard said the following: > Our company wants to do e-mail verification and does not want to use the > requests / response method (clicking a link in the e-mail to verify the > address), which as we all know is the only way you can be truly sure. I > found thi

Re: [PHP] Re: $_session/$_cookie trouble

2009-04-28 Thread Gary
Ok, working code. I'm sure there is some left over code that is not actually working, but I have been playing frankenstein all day. Basically a vistor fills in 3 (only two set so far) inputs to see if they qualify for a rebate. If they do, they can go on to file two to submit their information

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Shawn McKenzie
Gary wrote: > Thanks again, dont see any DOM > > As I mentioned I am no longer getting error message, but not sure it is > working. > > I have this at the begining of the first file. > > session_start(); > setcookie('sale_cookie','$sale_value', time()-3600); > setcookie('assess_cookie','$a

Re: [PHP] Re: $_session/$_cookie trouble

2009-04-28 Thread Lists
Andrew Hucks wrote: $sale_value would have worked if it hadn't been in single quotes, I believe. (Assuming it was populated.). Which it wasn't.. ;-) according to Gary's last post. He assigned it now with 'sale'.. however, I think it should rather be in double quotes ("sale") if he wants to get

Re: [PHP] Re: $_session/$_cookie trouble

2009-04-28 Thread Andrew Hucks
$sale_value would have worked if it hadn't been in single quotes, I believe. (Assuming it was populated.). When you put it in quotes, you were making the cookie's value a string instead of a variable. So, the value would actually have literally been $sale_value, rather than the value for that varia

[PHP] Re: $_session/$_cookie trouble

2009-04-28 Thread Gary
Many thanks to all for persevering my ignorance! I had read that setting a cookie into the past would destroy the cookie once the browser session was over, so that is why I had set it that way. I did two things to solve the problem, and I frankly dont know which one (or both) it was. First I

Re: [PHP] Developing PHP extensions on Windows with VC++, linking problems

2009-04-28 Thread Chris
Eugenio Tacchini wrote: Hi all, I had to create a PHP extension and I read this article: http://www.talkphp.com/vbarticles.ph...php-extensions Everything worked fine if I keep "Debug" as "Active

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Lists
Gary wrote: Thanks again, dont see any DOM As I mentioned I am no longer getting error message, but not sure it is working. I have this at the begining of the first file. if (isset($_COOKIE['sale_cookie']) && isset($_COOKIE['assess_cookie'])) { $_SESSION['sale_value'] = $_COO

Re: [PHP] Re: Unit Testing

2009-04-28 Thread Nathan Rixham
Philip Thompson wrote: On Apr 27, 2009, at 11:38 AM, Simon wrote: As a programmer, i always test what I'm coding as i code it (mostly to make sure i dont include typos), but i feel it is best to make proper testing once the component is ready and working fine. If your project is large, it migh

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Igor Escobar
Make sure your file isn't a UTF-8 with DOM. Regards, Igor Escobar Systems Analyst & Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar On Tue, Apr 28, 2009 at 5:13 PM, Ashley Sheridan wrote: > On Tue, 2009-04-28 at 15:

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Andrew Hucks
Take the values out of single quotes, else it sets them as strings, and not as the variable value. Also, are you meaning to set the cookie's expiration to time()-3600? Try time()+3600. On Tue, Apr 28, 2009 at 4:49 PM, Ashley Sheridan wrote: > On Tue, 2009-04-28 at 16:38 -0400, Gary wrote: >> Than

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Ashley Sheridan
On Tue, 2009-04-28 at 16:38 -0400, Gary wrote: > Thanks again, dont see any DOM > > As I mentioned I am no longer getting error message, but not sure it is > working. > > I have this at the begining of the first file. > > session_start(); > setcookie('sale_cookie','$sale_value', time()-360

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Gary
Thanks again, dont see any DOM As I mentioned I am no longer getting error message, but not sure it is working. I have this at the begining of the first file. I have tried this echo $sale_value; echo $_SESSION['assess_value']; echo $_COOKIE['sale_cookie']; I have also removed all of t

[PHP] Project Euler [Oh, this isn't spam mail...]

2009-04-28 Thread Andrew Hucks
This isn't a question. :-D. Anyways, there's a website that I came across which has kept me up past bedtime the past few nights. "Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Although mathemati

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Ashley Sheridan
On Tue, 2009-04-28 at 15:34 -0400, Gary wrote: > Ashley > > There are 3 include files, the first is all html, but it has a form, so I > put the session_start above the DTD and I no longer get the error messages. > > I had the session_start at the beginning of the second file, the php > processi

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Gary
Ashley There are 3 include files, the first is all html, but it has a form, so I put the session_start above the DTD and I no longer get the error messages. I had the session_start at the beginning of the second file, the php processing file, but that produced the error. It seemed to be callin

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Gary
Igor Thanks for the link. It was suggested that I must put the session_start() before all code on the parent page. I am no longer getting the error messages,so I am assuming I am making progress, however I have yet to be able to get the $_SESSION or $_COOKIE to produce results...such as the

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Ashley Sheridan
On Tue, 2009-04-28 at 15:24 -0400, Gary wrote: > Ashley > > Thanks for your reply, but no, that is not it. There was no other code > prior. > > Gary > "Ashley Sheridan" wrote in message > news:1240945179.3494.61.ca...@localhost.localdomain... > > On Tue, 2009-04-28 at 10:48 -0400, Gary wrote:

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Gary
Ashley Thanks for your reply, but no, that is not it. There was no other code prior. Gary "Ashley Sheridan" wrote in message news:1240945179.3494.61.ca...@localhost.localdomain... > On Tue, 2009-04-28 at 10:48 -0400, Gary wrote: >> I am trying to set a cookie and a session, but seem to be run

Re: [PHP] utf-8 ?

2009-04-28 Thread Tom Worster
On 4/28/09 4:05 PM, "Reese" wrote: > Granted, this isn't a PHP question but I'm curious, how does UTF-8 solve > this display issue? if we're talking about web browsers, they are quite good at automatically choosing fonts that can display the unicode characters it finds in a page. -- PHP Gene

Re: [PHP] Non-Object errors (RESOLVED)

2009-04-28 Thread Miller, Terion
Thanks folks!! On 4/28/09 12:30 PM, "Miller, Terion" wrote: On 4/28/09 12:27 PM, "Lex Braun" wrote: Terion, On Tue, Apr 28, 2009 at 1:14 PM, Miller, Terion wrote: Here is my code now: $query = "select name, age, warrant, bond, wnumber, crime FROM warrants where ".$warranttype." = ".

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Igor Escobar
http://www.tech-recipes.com/rx/1489/solve-php-error-cannot-modify-header-information-headers-already-sent/ Regards, Igor Escobar Systems Analyst & Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar On Tue, Apr 28, 2009

Re: [PHP] utf-8 ?

2009-04-28 Thread Reese
Tom Worster wrote: On 4/27/09 4:25 PM, "PJ" wrote: Exactly what are the advantages of using utf-8? How will it solve my problem? actually, i have no idea because i have no idea what problem you are trying to solve and i apologize for presumptuous. i presumed that you have a php app with a bu

Re: [PHP] utf-8 ?

2009-04-28 Thread Michael A. Peters
PJ wrote: Tom Worster wrote: On 4/27/09 4:25 PM, "PJ" wrote: Exactly what are the advantages of using utf-8? How will it solve my problem? actually, i have no idea because i have no idea what problem you are trying to solve and i apologize for presumptuous. i presumed that you have a

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Ashley Sheridan
On Tue, 2009-04-28 at 10:48 -0400, Gary wrote: > I am trying to set a cookie and a session, but seem to be running into a > wall. > > I have tried different variations, and keep getting the same error message > > If I have this > > > session_start(); > > I get this: > Warning: session_start(

Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Stuart
2009/4/28 Per Jessen : > Stuart wrote: > >> 2009/4/28 Jay Blanchard : >>> Our company wants to do e-mail verification and does not want to use >>> the requests / response method (clicking a link in the e-mail to >>> verify the address), which as we all know is the only way you can be >>> truly sure

Re: [PHP] Non-Object errors

2009-04-28 Thread Miller, Terion
On 4/28/09 12:27 PM, "Lex Braun" wrote: Terion, On Tue, Apr 28, 2009 at 1:14 PM, Miller, Terion wrote: Here is my code now: $query = "select name, age, warrant, bond, wnumber, crime FROM warrants where ".$warranttype." = ".$warranttype." OR ".$searchname." = ".$searchname." ";$resu

Re: [PHP] Non-Object errors

2009-04-28 Thread Lex Braun
Terion, On Tue, Apr 28, 2009 at 1:14 PM, Miller, Terion < tmil...@springfi.gannett.com> wrote: > Here is my code now: > $query = "select name, age, warrant, bond, wnumber, crime FROM warrants > where ".$warranttype." = ".$warranttype." OR ".$searchname." = > ".$searchname." ";$result = mysq

Re: [PHP] Non-Object errors

2009-04-28 Thread Miller, Terion
On 4/28/09 11:23 AM, "Jan G.B." wrote: 2009/4/28 Miller, Terion : > Can someone help with how to make this work, trying to get the number of > rows but am getting the "trying to get property of non-object" > > Code- > > $query = "select blah, blah, blah from table where ".$type

Re: [PHP] Non-Object errors

2009-04-28 Thread Jan G.B.
2009/4/28 Miller, Terion : > Can someone help with how to make this work, trying to get the number of > rows but am getting the "trying to get property of non-object" > > Code- > > $query = "select blah, blah, blah from table where ".$type." like > '%".$name."%'"; > > $result = mysq

Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Luke
2009/4/28 Jan G.B. > 2009/4/28 Luke : > > > > > > 2009/4/28 Jan G.B. > >> > >> 2009/4/28 Jay Blanchard : > >> > Our company wants to do e-mail verification and does not want to use > the > >> > requests / response method (clicking a link in the e-mail to verify > the > >> > address), which as we

Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Jan G.B.
2009/4/28 Luke : > > > 2009/4/28 Jan G.B. >> >> 2009/4/28 Jay Blanchard : >> > Our company wants to do e-mail verification and does not want to use the >> > requests / response method (clicking a link in the e-mail to verify the >> > address), which as we all know is the only way you can be truly

Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Hawx
On Tue, 28 Apr 2009 10:40:31 -0500, "Jay Blanchard" wrote: > Our company wants to do e-mail verification and does not want to use the > requests / response method (clicking a link in the e-mail to verify the > address), which as we all know is the only way you can be truly sure. I > found this; >

Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Luke
2009/4/28 Jan G.B. > 2009/4/28 Jay Blanchard : > > Our company wants to do e-mail verification and does not want to use the > > requests / response method (clicking a link in the e-mail to verify the > > address), which as we all know is the only way you can be truly sure. I > > found this; > > >

Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Per Jessen
Stuart wrote: > 2009/4/28 Jay Blanchard : >> Our company wants to do e-mail verification and does not want to use >> the requests / response method (clicking a link in the e-mail to >> verify the address), which as we all know is the only way you can be >> truly sure. I found this; >> >> http://ve

[PHP] Non-Object errors

2009-04-28 Thread Miller, Terion
Can someone help with how to make this work, trying to get the number of rows but am getting the "trying to get property of non-object" Code- $query = "select blah, blah, blah from table where ".$type." like '%".$name."%'"; $result = mysql_query($query); $num_results = $resu

Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Jan G.B.
2009/4/28 Jay Blanchard : > Our company wants to do e-mail verification and does not want to use the > requests / response method (clicking a link in the e-mail to verify the > address), which as we all know is the only way you can be truly sure. I > found this; > > http://verify-email.org/ > > Whi

Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Stuart
Btw, if you're thinking of buying it lemme know - I probably have mine kicking around somewhere. 2009/4/28 Jay Blanchard : > Our company wants to do e-mail verification and does not want to use the > requests / response method (clicking a link in the e-mail to verify the > address), which as we al

Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Daniel Brown
Top-posting on top of it all. Disregard *everything* from my previous email. I typed it up before checking out the site, since it wouldn't work from this system when hit without the alias. Then, when I did hit it and read it, I meant to click "Discard" and clicked "Send." #...@%&. On

Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Daniel Brown
On Tue, Apr 28, 2009 at 11:40, Jay Blanchard wrote: > Our company wants to do e-mail verification and does not want to use the > requests / response method (clicking a link in the e-mail to verify the > address), which as we all know is the only way you can be truly sure. I > found this; > > http:

Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Stuart
2009/4/28 Jay Blanchard : > Our company wants to do e-mail verification and does not want to use the > requests / response method (clicking a link in the e-mail to verify the > address), which as we all know is the only way you can be truly sure. I > found this; > > http://verify-email.org/ > > Whi

Re: [PHP] I need ideas for things to code - webbytedd examples

2009-04-28 Thread tedd
At 9:10 AM -0500 4/28/09, Shawn McKenzie wrote: You would need to call yourself "tedd" not Tedd :-) -- Thanks! -Shawn That's true. I went by the name "Tedd" in my previous life, see: http://geophysics.com (I think the site is down at the moment) In my current life, I much less important so

[PHP] php forms - select menu selected behavior

2009-04-28 Thread Troy Oltmanns
I have the code below being used to rifle through a list of available categories and create select options for them. The code is being used to query the database and compare the product category to the current iteration, if there's a match, then add selected code so the category is prechosen. More

Re: [PHP] I need ideas for things to code - webbytedd examples

2009-04-28 Thread tedd
At 9:20 PM -0400 4/27/09, Paul M Foster wrote: I noticed that, too. But I have to say, this is one of the coolest sites I've ever seen. If you wanted to convince someone (a prospect) you could do something, this site would do it. Next time I talk to a prospect, I'm gonna call myself Tedd and refe

[PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Jay Blanchard
Our company wants to do e-mail verification and does not want to use the requests / response method (clicking a link in the e-mail to verify the address), which as we all know is the only way you can be truly sure. I found this; http://verify-email.org/ Which seems to be the next best deal and it

RE: [PHP] I need ideas for things to code - webbytedd examples

2009-04-28 Thread tedd
At 3:16 PM -0700 4/27/09, Daevid Vincent wrote: http://webbytedd.com/b/color-rows/ you know you can do this too: No -- never use the short tag. Use: How come you don't have a way to see/download the source code for all these examples? With some of my samples I do, but the main point he

RE: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Ford, Mike
On 28 April 2009 15:48, Gary advised: > I am trying to set a cookie and a session, but seem to be running into a > wall. > > I have tried different variations, and keep getting the same error message > > If I have this > > > session_start(); > > I get this: > Warning: session_start() [functi

Re: [PHP] date time late or lagging RESOLVED

2009-04-28 Thread Andrew Williams
On Tue, Apr 28, 2009 at 3:45 PM, Andrew Williams wrote: > hi all, > > $dateNow = date('Y-m-d H:i:s'); > echo "".$dateNow .""; > > can some see why the date time is lagging or late by 30 minutes from the > server time even when server time are correct > > > -- Best Wishes Andrew Williams www

[PHP] $_session/$_cookie trouble

2009-04-28 Thread Gary
I am trying to set a cookie and a session, but seem to be running into a wall. I have tried different variations, and keep getting the same error message If I have this http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] date time late or lagging

2009-04-28 Thread Andrew Williams
hi all, $dateNow = date('Y-m-d H:i:s'); echo "".$dateNow .""; can some see why the date time is lagging or late by 30 minutes from the server time even when server time are correct

[PHP] Developing PHP extensions on Windows with VC++, linking problems

2009-04-28 Thread Eugenio Tacchini
Hi all, I had to create a PHP extension and I read this article: http://www.talkphp.com/vbarticles.ph...php-extensions Everything worked fine if I keep "Debug" as "Active solution configuration" in

Re: [PHP] I need ideas for things to code - webbytedd examples

2009-04-28 Thread Shawn McKenzie
Paul M Foster wrote: > On Mon, Apr 27, 2009 at 03:16:10PM -0700, Daevid Vincent wrote: > >> This is tripping me out! i feel so duped! :) >> http://webbytedd.com/b1/photo-retouch/ >> >> this didn't work, maybe due to some JS errors. tried in FF3 and IE6. >> http://webbytedd.com/b/watermark/ >> >> I

[PHP] Help with scandir() -- Problem Solved

2009-04-28 Thread Deivys Delgado Hernandez
Deivys Delgado Hernandez wrote: > Hi, > I'm having problems when i try to use the function scandir() in a Novell > Netware Volumen or a Windows Shared Folder > they both are mapped as a windows network drive, so i suppose i could access > them as local drive, but i can't. instead i receive this

Re: RES: [PHP] inexplicable behaviour SOLVED

2009-04-28 Thread 9el
> >> $Count = $Count + 1; is *exactly(?)* same as $Count++; Â or ++$Count > >> But not exactly same. Â PostFix notation adds the value after assigning > . > >> PreFix notation adds the value right away. > >> But optimized programming argues about how machine is coded nowadays. > Thanks Mike for cl

Re: RES: [PHP] inexplicable behaviour SOLVED

2009-04-28 Thread PJ
Ford, Mike wrote: > On 27 April 2009 14:21, PJ advised: > > >> Ford, Mike wrote: >> >>> On 26 April 2009 22:59, PJ advised: >>> >>> >>> kranthi wrote: > if $Count1 is never referenced after this, then certainly this > assignment operation is redundent.

Re: RES: [PHP] inexplicable behaviour SOLVED

2009-04-28 Thread PJ
Richard Quadling wrote: > 2009/4/27 9el : > >>> Thanks for the clarification, Mike. In my ignorance, I was under the >>> impression that the right side of the equation was only for the use of >>> the left part. How stupid of me. So what I should have been doing was >>> $Count1 = $Count + 1; righ

RE: RES: [PHP] inexplicable behaviour SOLVED

2009-04-28 Thread Ford, Mike
On 27 April 2009 14:21, PJ advised: > Ford, Mike wrote: >> On 26 April 2009 22:59, PJ advised: >> >> >>> kranthi wrote: >>> if $Count1 is never referenced after this, then certainly this assignment operation is redundent. but assignment is not the ONLY operation of this statement

[PHP] Re: error in printer_open function

2009-04-28 Thread Peter Ford
AYAN PAL wrote: > hi, > i am using local server to print a simple text > i config the php.ini file as > ;extension=php_printer.dll > added in the extension list > and add > [printer] > printer.default_printer = "Send To OneNote 2007" > in this file > > and write a sim ple page as- > > > > >

Re: RES: [PHP] inexplicable behaviour SOLVED

2009-04-28 Thread 9el
Thats why I used a (?) after exactly. PJ didn't have a need for the value. ;)

Re: RES: [PHP] inexplicable behaviour SOLVED

2009-04-28 Thread Richard Quadling
2009/4/27 9el : >> >> Thanks for the clarification, Mike. In my ignorance, I was under the >> impression that the right side of the equation was only for the use of >> the left part. How stupid of me. So what I should have been doing was >> $Count1 = $Count + 1; right? >> $Count1 = $Count++; is n