php-general Digest 28 Apr 2009 07:52:15 - Issue 6091
Topics (messages 292038 through 292060):
error in printer_open function
292038 by: AYAN PAL
Re: utf-8 ?
292039 by: Tom Worster
292040 by: Tom Worster
292041 by: 9el
292042 by: PJ
292044 by:
2009/4/27 9el le...@phpxperts.net:
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 =
Thats why I used a (?) after exactly. PJ didn't have a need for the value.
;)
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-
Prabal Cable
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. if u hav not noticed a
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. but assignment is not the ONLY
$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 clarifying this
Richard Quadling wrote:
2009/4/27 9el le...@phpxperts.net:
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 +
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
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 like your
Hi all,
I had to create a PHP extension and I read this article:
http://www.talkphp.com/vbarticles.php?do=articlearticleid=49title=creating-custom-php-extensionshttp://www.talkphp.com/vbarticles.ph...php-extensions
Everything worked fine if I keep Debug as Active solution
configuration in
hi all,
$dateNow = date('Y-m-d H:i:s');
echo pstrong.$dateNow ./strong/p;
can some see why the date time is lagging or late by 30 minutes from the
server time even when server time are correct
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
?php
session_start();
I get this:
Warning: session_start() [function.session-start]: Cannot send session
cookie - headers
On Tue, Apr 28, 2009 at 3:45 PM, Andrew Williams
andrew4willi...@gmail.comwrote:
hi all,
$dateNow = date('Y-m-d H:i:s');
echo pstrong.$dateNow ./strong/p;
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
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
?php
session_start();
I get this:
Warning: session_start()
At 3:16 PM -0700 4/27/09, Daevid Vincent wrote:
http://webbytedd.com/b/color-rows/
you know you can do this too:
tr class=?= (($r = !$r) ? 'row0' : 'row1' ) ?
No -- never use the short tag.
Use:
tr class=?php echo( (($r = !$r) ? 'row0' : 'row1' )); ?
How come you don't have a way to
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
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
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
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 I
2009/4/28 Jay Blanchard jblanch...@pocket.com:
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;
On Tue, Apr 28, 2009 at 11:40, Jay Blanchard jblanch...@pocket.com 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
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
Btw, if you're thinking of buying it lemme know - I probably have mine
kicking around somewhere.
2009/4/28 Jay Blanchard jblanch...@pocket.com:
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
2009/4/28 Jay Blanchard jblanch...@pocket.com:
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;
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 =
Stuart wrote:
2009/4/28 Jay Blanchard jblanch...@pocket.com:
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;
2009/4/28 Jan G.B. ro0ot.w...@googlemail.com
2009/4/28 Jay Blanchard jblanch...@pocket.com:
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
On Tue, 28 Apr 2009 10:40:31 -0500, Jay Blanchard jblanch...@pocket.com
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.
2009/4/28 Luke l...@blog-thing.com:
2009/4/28 Jan G.B. ro0ot.w...@googlemail.com
2009/4/28 Jay Blanchard jblanch...@pocket.com:
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),
2009/4/28 Jan G.B. ro0ot.w...@googlemail.com
2009/4/28 Luke l...@blog-thing.com:
2009/4/28 Jan G.B. ro0ot.w...@googlemail.com
2009/4/28 Jay Blanchard jblanch...@pocket.com:
Our company wants to do e-mail verification and does not want to use
the
requests / response method
2009/4/28 Miller, Terion tmil...@springfi.gannett.com:
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.%';
On 4/28/09 11:23 AM, Jan G.B. ro0ot.w...@googlemail.com wrote:
2009/4/28 Miller, Terion tmil...@springfi.gannett.com:
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 =
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 =
On 4/28/09 12:27 PM, Lex Braun lex.br...@gmail.com wrote:
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
2009/4/28 Per Jessen p...@computer.org:
Stuart wrote:
2009/4/28 Jay Blanchard jblanch...@pocket.com:
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
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
?php
session_start();
I get this:
Warning: session_start()
PJ wrote:
Tom Worster wrote:
On 4/27/09 4:25 PM, PJ af.gour...@videotron.ca 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
Tom Worster wrote:
On 4/27/09 4:25 PM, PJ af.gour...@videotron.ca 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
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
Thanks folks!!
On 4/28/09 12:30 PM, Miller, Terion tmil...@springfi.gannett.com wrote:
On 4/28/09 12:27 PM, Lex Braun lex.br...@gmail.com wrote:
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,
On 4/28/09 4:05 PM, Reese howel...@inkworkswell.com 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
Ashley
Thanks for your reply, but no, that is not it. There was no other code
prior.
Gary
Ashley Sheridan a...@ashleysheridan.co.uk 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
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 a...@ashleysheridan.co.uk wrote in message
news:1240945179.3494.61.ca...@localhost.localdomain...
On Tue, 2009-04-28 at 10:48
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
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
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
processing
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
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.
?php
session_start();
setcookie('sale_cookie','$sale_value', time()-3600);
setcookie('assess_cookie','$assess_value', time()-3600);
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.
?php
session_start();
setcookie('sale_cookie','$sale_value', time()-3600);
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
a...@ashleysheridan.co.uk wrote:
On Tue, 2009-04-28 at 16:38
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
a...@ashleysheridan.co.ukwrote:
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
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.
?php
session_start();
setcookie('sale_cookie','$sale_value', time()-3600);
Eugenio Tacchini wrote:
Hi all,
I had to create a PHP extension and I read this article:
http://www.talkphp.com/vbarticles.php?do=articlearticleid=49title=creating-custom-php-extensionshttp://www.talkphp.com/vbarticles.ph...php-extensions
Everything worked fine if I keep Debug as Active
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
$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
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
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.
?php
session_start();
setcookie('sale_cookie','$sale_value', time()-3600);
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
60 matches
Mail list logo