Can I maintain just one mysql connection resource to all my pages per
user session. As far as I knows create connection is more expensive than
executing queries ?
Any reference how to make efficient for connection resources ?
Thanks,
Dino
--
PHP General Mailing List (http://www.php.net/)
To un
Mattias Thorslund wrote:
Hi,
One of my clients just received a PHP warning that session_destroy()
failed. Using the default session handler (with tmp files), what are the
most likely things that can cause session_destroy() to return false?
Thanks for any suggestions.
Mattias
The session was
Found out the issue this afternoon. I realized that my .txt file was tab
delimited and not space delimited. So I changed $space to equal $tab and
query was successful! All is working now. Thanks to all who replied. I
appreciate all.
"David Robley" <[EMAIL PROTECTED]> wrote in message
news:[
The error comes from having output before the session_start(). This
means that anything before the space.
Janet
Humani Power wrote:
Hi! Im trying to make a login page. I have searched for examples that makes
me check the user name with a database, and the one that suits better is
this code.
On Mon, 2007-06-11 at 21:28 -0500, Humani Power wrote:
>
> [-- SNIIP --]
>
> I have searched for possible answers, and all I have found is that I
> should not send any output before the session_start(); But in this
> code the session_start(); output is before anything else.
> can yo
i am using my laptop with PHP 4+ and mysql 5+, everything start to be weird
after i implement my costume sessions (storing in database).
i only use one database connection for the whole website.
what i mean is, the session and every query connect to mysqlserver using the
same user.
I am not sure
Hi,
One of my clients just received a PHP warning that session_destroy()
failed. Using the default session handler (with tmp files), what are the
most likely things that can cause session_destroy() to return false?
Thanks for any suggestions.
Mattias
--
PHP General Mailing List (http://www.php
On Mon, June 11, 2007 7:34 pm, Larry Garfield wrote:
> You may find this useful:
> http://us.php.net/manual/en/function.mb-convert-encoding.php
>
> It is frequently reasonably good at guessing the incoming character
> set, at
> least the one time we used it at work. Try running all pages/strings
>
The underlying problem is that there is no one "Extended ASCII". There's a
dozen or so different schemes for the 129-255 range, all of them
incompatible. That's why Unicode now exists. :-)
I've been tracking this issue myself on my blog, which may be of background
use for you (especially some
This may actually be a MySQL question...
Or not.
I'm scraping about 55,000 pages from a website into a MySQL database.
Some of these pages have "extended ASCII" values in their content, or,
in some cases, just plain junk ASCII values, as far as I can tell.
For example, decimal 163 is sometimes
On Mon, June 11, 2007 12:59 pm, Daniel Brown wrote:
>> > http://pilotpig.net/captcha-example.php
I would be hard-pressed to answer correctly, I think.
Which doesn't matter.
Any multiple-choice CAPTCHA is pointless.
Spammers would consider at 33% success ratio WONDERFUL.
Their entire bu
Bing Du wrote:
Hi,
RHEL 4
PHP 4.3.9
Apache 2.0.52
Without knowing much about the web application we use, can anybody tell me
what kind of situation could trigger the following 'call to undefined
function' error?
PHP Fatal error: Call to undefined function: encryptchar
code() in /data/www/htm
trim is probably sub-optimal, as you MIGHT have leading/trailing
whitespace as part of the actual data at some point.
You should trim off ONLY one last newline character, no more, no less.
I dunno why it's not working still though...
On Mon, June 11, 2007 12:14 am, kvigor wrote:
> OK, I trimmed
On Mon, June 11, 2007 9:05 am, Stefanos Harhalakis wrote:
> There is no need to include the DST information since when on DST
> the client
> will be sending the propper offset. For example, EET+2EEST is +0200
> during
> winter and +0300 during DST.
I think you are over-simplifying things too muc
On Mon, June 11, 2007 11:37 am, Michelle Konzack wrote:
> * Do not Cc: me, because I am on THIS list, if I write here.*
Actually, not everybody who posts here is subscribed... :-v
But I did remember to not Cc: you this time.
> I am working again on my PHP Admin interace an need a "tail"
On Mon, June 11, 2007 12:53 pm, PHP Mailing List wrote:
> Can I maintain just one mysql connection resource to all my pages per
> user session. As far as I knows create connection is more expensive
> than
> executing queries ?
>
> Any reference how to make efficient for connection resources ?
Yes,
Michelle Konzack wrote:
*
* Do not Cc: me, because I am on THIS list, if I write here.*
* Keine Cc: an mich, bin auf DIESER Liste wenn ich hier schreibe. *
* Ne me mettez pas en Cc:, je suis sur CETTE liste, si j'ecris
On Mon, 2007-06-11 at 16:37 -0400, Daniel Brown wrote:
> On 6/11/07, Tijnema <[EMAIL PROTECTED]> wrote:
> >
> > * At peak performance, and of course there's OS running etc.
> >
>
> Yes, but I don't think you understand that it was just an idea in
> the infantile stages. I'm going to try to kn
On 6/11/07, Tijnema <[EMAIL PROTECTED]> wrote:
On 6/11/07, Daniel Brown <[EMAIL PROTECTED]> wrote:
> On 6/11/07, Tijnema <[EMAIL PROTECTED]> wrote:
> > On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > > On Mon, 2007-06-11 at 14:29 -0400, Daniel Brown wrote:
> > > > > >To be a bit ea
Hi,
RHEL 4
PHP 4.3.9
Apache 2.0.52
Without knowing much about the web application we use, can anybody tell me
what kind of situation could trigger the following 'call to undefined
function' error?
PHP Fatal error: Call to undefined function: encryptchar
code() in /data/www/html/typo3_src/typo3
Tijnema wrote:
I think he means something like on the nvidia driver download page [1]
This is only possible with javascript, you could take a look at the
page I gave to see how they did it ;)
But Javascript != PHP, so if this is what you want, you're on the
wrong list...
Tijnema
[1] http://ww
On Jun 11, 2007, at 1:52 PM, Jay Blanchard wrote:
[snip]
Without refreshing the page would require JavaScript, but if it
doesn't matter if the page is refreshed, you could use PHP.
[/snip]
Or a combination, using AJAX.
Or you could use CSS and JS. Use PHP to populate all your lists (may
On 6/11/07, Daniel Brown <[EMAIL PROTECTED]> wrote:
On 6/11/07, Tijnema <[EMAIL PROTECTED]> wrote:
> On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > On Mon, 2007-06-11 at 14:29 -0400, Daniel Brown wrote:
> > > > >To be a bit easier, I whipped up a quick example on the web. It's
>
On Mon, 2007-06-11 at 14:57 -0400, Daniel Brown wrote:
> On 6/11/07, Tijnema <[EMAIL PROTECTED]> wrote:
> > On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > > On Mon, 2007-06-11 at 14:29 -0400, Daniel Brown wrote:
> > > > > >To be a bit easier, I whipped up a quick example on the web.
At 6/11/2007 11:38 AM, Ashley M. Kirchner wrote:
I have a page containing two drop down lists. I need to figure
out a way to populate/update the second drop down list based on a
selection of the first one (the data for both drop down lists is in
a MySQL database). Is this something I need
On 6/11/07, Tijnema <[EMAIL PROTECTED]> wrote:
On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> On Mon, 2007-06-11 at 14:29 -0400, Daniel Brown wrote:
> > > >To be a bit easier, I whipped up a quick example on the web. It's
> > > > just static images, not a working system, but you'll
On 6/11/07, Ashley M. Kirchner <[EMAIL PROTECTED]> wrote:
Tijnema wrote:
> But Javascript != PHP, so if this is what you want, you're on the
> wrong list...
Ik weet dat meneer. But I also hate JavaScript. So if I can avoid
it and use PHP, then I will. Hence me asking here first to see if I
On Mon, 2007-06-11 at 20:47 +0200, Tijnema wrote:
> On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > On Mon, 2007-06-11 at 14:29 -0400, Daniel Brown wrote:
> > > > >To be a bit easier, I whipped up a quick example on the web. It's
> > > > > just static images, not a working system, b
Tijnema wrote:
But Javascript != PHP, so if this is what you want, you're on the
wrong list...
Ik weet dat meneer. But I also hate JavaScript. So if I can avoid
it and use PHP, then I will. Hence me asking here first to see if I can
get it accomplished with PHP. :)
--
PHP General Maili
On 6/11/07, Daniel Brown <[EMAIL PROTECTED]> wrote:
On 6/11/07, Ashley M. Kirchner <[EMAIL PROTECTED]> wrote:
>
> I have a page containing two drop down lists. I need to figure out
> a way to populate/update the second drop down list based on a selection
> of the first one (the data for both
[snip]
Without refreshing the page would require JavaScript, but if it
doesn't matter if the page is refreshed, you could use PHP.
[/snip]
Or a combination, using AJAX.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ashley M. Kirchner wrote:
I have a page containing two drop down lists. I need to figure out a
way to populate/update the second drop down list based on a selection of
the first one (the data for both drop down lists is in a MySQL
database). Is this something I need to do in JavaScript?
On 6/11/07, Michelle Konzack <[EMAIL PROTECTED]> wrote:
*
* Do not Cc: me, because I am on THIS list, if I write here.*
* Keine Cc: an mich, bin auf DIESER Liste wenn ich hier schreibe. *
* Ne me mettez pas en Cc:, je s
On 6/11/07, Ashley M. Kirchner <[EMAIL PROTECTED]> wrote:
I have a page containing two drop down lists. I need to figure out
a way to populate/update the second drop down list based on a selection
of the first one (the data for both drop down lists is in a MySQL
database). Is this somethin
On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
On Mon, 2007-06-11 at 14:29 -0400, Daniel Brown wrote:
> > >To be a bit easier, I whipped up a quick example on the web. It's
> > > just static images, not a working system, but you'll see what we're
> > > getting at here:
> > >h
I have a page containing two drop down lists. I need to figure out
a way to populate/update the second drop down list based on a selection
of the first one (the data for both drop down lists is in a MySQL
database). Is this something I need to do in JavaScript? Or can I
somehow trick PH
On Mon, 2007-06-11 at 14:29 -0400, Daniel Brown wrote:
> > >To be a bit easier, I whipped up a quick example on the web. It's
> > > just static images, not a working system, but you'll see what we're
> > > getting at here:
> > >http://pilotpig.net/captcha-example.php
> > >
> >
> > You
PHP Mailing List wrote:
Can I maintain just one mysql connection resource to all my pages per
user session. As far as I knows create connection is more expensive than
executing queries ?
No, you can't store resources (of which mysql connections are one
example) in sessions.
Any reference h
>To be a bit easier, I whipped up a quick example on the web. It's
> just static images, not a working system, but you'll see what we're
> getting at here:
>http://pilotpig.net/captcha-example.php
>
You could even use a color check here to see which color matches the best ;)
Tijnema
On 6/11/07, Daniel Brown <[EMAIL PROTECTED]> wrote:
> Tijnema <[EMAIL PROTECTED]> spake the following lore:
> Convert image to fixed width + fixed height + default depth, then do
> some work on it :P
>
> Tijnema
>
Yeah, what work? Best of luck with getting a system to reliably
translate one
The (things I thought were subtle) jokes aside, hopefully the
examples can be used as some kind of point-of-reference for those who
may follow along in the future. When they Google for a solution like
the one we're discussing and the words of this motley crew come up as
one of the first result
On Mon, 2007-06-11 at 13:59 -0400, Daniel Brown wrote:
> On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > On Mon, 2007-06-11 at 13:52 -0400, Daniel Brown wrote:
> > > > Tijnema <[EMAIL PROTECTED]> spake the following lore:
> > > > Convert image to fixed width + fixed height + default dept
*
* Do not Cc: me, because I am on THIS list, if I write here.*
* Keine Cc: an mich, bin auf DIESER Liste wenn ich hier schreibe. *
* Ne me mettez pas en Cc:, je suis sur CETTE liste, si j'ecris ici. *
***
On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
On Mon, 2007-06-11 at 13:52 -0400, Daniel Brown wrote:
> > Tijnema <[EMAIL PROTECTED]> spake the following lore:
> > Convert image to fixed width + fixed height + default depth, then do
> > some work on it :P
>
> To be a bit easier, I whi
On Mon, 2007-06-11 at 13:52 -0400, Daniel Brown wrote:
> > Tijnema <[EMAIL PROTECTED]> spake the following lore:
> > Convert image to fixed width + fixed height + default depth, then do
> > some work on it :P
>
> To be a bit easier, I whipped up a quick example on the web. It's
> just static i
Can I maintain just one mysql connection resource to all my pages per
user session. As far as I knows create connection is more expensive than
executing queries ?
Any reference how to make efficient for connection resources ?
Thanks,
Dino
--
PHP General Mailing List (http://www.php.net/)
To u
On Mon, 2007-06-11 at 19:51 +0200, Tijnema wrote:
> On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > On Mon, 2007-06-11 at 19:38 +0200, Tijnema wrote:
> > > On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > >
> > > Well, if you think this is the uncrackable* solution, create it a
Tijnema <[EMAIL PROTECTED]> spake the following lore:
Convert image to fixed width + fixed height + default depth, then do
some work on it :P
Tijnema
Yeah, what work? Best of luck with getting a system to reliably
translate one Jell-o blob of an image into another accurately and
reliably.
On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
On Mon, 2007-06-11 at 19:38 +0200, Tijnema wrote:
> On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> Well, if you think this is the uncrackable* solution, create it and
> i'll see if I can crack it ;)
>
> Tijnema
>
> * I hope you do
On Mon, 2007-06-11 at 19:38 +0200, Tijnema wrote:
> On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> Well, if you think this is the uncrackable* solution, create it and
> i'll see if I can crack it ;)
>
> Tijnema
>
> * I hope you don't mean the same uncrackable as AACS did:
> "HD-DVD i
On Mon, 2007-06-11 at 13:29 -0400, Robert Cummings wrote:
> On Mon, 2007-06-11 at 18:57 +0200, Tijnema wrote:
> > On 6/11/07, Jim Lucas <[EMAIL PROTECTED]> wrote:
> > > Tijnema wrote:
> > > > On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> > >
> > > not if you are morphing/changing the
On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
On Mon, 2007-06-11 at 18:57 +0200, Tijnema wrote:
> On 6/11/07, Jim Lucas <[EMAIL PROTECTED]> wrote:
> > Tijnema wrote:
> > > On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> >
> > not if you are morphing/changing the image each page
In most systems, database connections are pooled, meaning that when you give
them up, they are not completely closed but the sql client software keeps
them in a pool available for the next script asking for a similar
connection, thus saving on the time to establish a connection.It is the
co
On Mon, 2007-06-11 at 18:57 +0200, Tijnema wrote:
> On 6/11/07, Jim Lucas <[EMAIL PROTECTED]> wrote:
> > Tijnema wrote:
> > > On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> >
> > not if you are morphing/changing the image each page load.
> >
>
> >
> > remember, change height, width, col
Stefanos Harhalakis wrote:
On Monday 11 June 2007 18:15, Lester Caine wrote:
calender of events over a change in daylight saving I NEED to know !!!
I believe that I finally understand your thoughts. You mean that you need to
use the timezone information to know when in the future the time w
On Monday 11 June 2007 18:15, Lester Caine wrote:
> calender of events over a change in daylight saving I NEED to know !!!
I believe that I finally understand your thoughts. You mean that you need to
use the timezone information to know when in the future the time will change
(or in the past).
Nah, that's what we have you for! ;-P
Just for that, I'm top-posting, too.
Gotta' love Mondays
On 6/11/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote:
On Tuesday 12 June 2007 00:22, Tijnema wrote:
> On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > On Mon, 2007-06-11 at
On Tuesday 12 June 2007 00:22, Tijnema wrote:
> On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > On Mon, 2007-06-11 at 10:38 -0400, tedd wrote:
[snip]
Tijnema, Daniel Brown, and any other guilty ones, please trim your posts!
--
Crayon
--
PHP General Mailing List (http://www.php.net/
On 6/11/07, Jim Lucas <[EMAIL PROTECTED]> wrote:
Tijnema wrote:
> On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
>> On Mon, 2007-06-11 at 10:38 -0400, tedd wrote:
>> > Gnag:
>> >
>> > I know we can beat this thing to death, as we have in previous
>> > threads and I don't anyone wants to t
Can I maintain just one mysql connection resource to all my pages per
user session. As far as I knows create connection is more expensive than
executing queries ?
Any reference how to make efficient for connection resources ?
Thanks,
Dino
--
PHP General Mailing List (http://www.php.net/)
To
Tijnema wrote:
On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
On Mon, 2007-06-11 at 10:38 -0400, tedd wrote:
> Gnag:
>
> I know we can beat this thing to death, as we have in previous
> threads and I don't anyone wants to travel previously traveled ground.
>
> However, Rob said:
>
> "A g
On 6/11/07, Tijnema <[EMAIL PROTECTED]> wrote:
On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> On Mon, 2007-06-11 at 10:38 -0400, tedd wrote:
> > Gnag:
> >
> > I know we can beat this thing to death, as we have in previous
> > threads and I don't anyone wants to travel previously travele
On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
On Mon, 2007-06-11 at 10:38 -0400, tedd wrote:
> Gnag:
>
> I know we can beat this thing to death, as we have in previous
> threads and I don't anyone wants to travel previously traveled ground.
>
> However, Rob said:
>
> "A good captcha will
On 6/11/07, Daniel Brown <[EMAIL PROTECTED]> wrote:
On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> On Mon, 2007-06-11 at 12:01 -0400, Robert Cummings wrote:
> > On Mon, 2007-06-11 at 10:38 -0400, tedd wrote:
> > > Gnag:
> > >
> > > I know we can beat this thing to death, as we have in p
On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
On Mon, 2007-06-11 at 12:01 -0400, Robert Cummings wrote:
> On Mon, 2007-06-11 at 10:38 -0400, tedd wrote:
> > Gnag:
> >
> > I know we can beat this thing to death, as we have in previous
> > threads and I don't anyone wants to travel previou
On Jun 11, 2007, at 12:01 PM, Robert Cummings wrote:
What did you hear ringing?
Possible answers... a bell, the telephone, an alarm, etc.
The problem then becomes an issue of people who can't spell or are
terrible at recognizing everyday things.
To combat that, wouldn't you be able t
On Mon, 2007-06-11 at 12:01 -0400, Robert Cummings wrote:
> On Mon, 2007-06-11 at 10:38 -0400, tedd wrote:
> > Gnag:
> >
> > I know we can beat this thing to death, as we have in previous
> > threads and I don't anyone wants to travel previously traveled ground.
> >
> > However, Rob said:
> >
>
On Mon, 2007-06-11 at 10:38 -0400, tedd wrote:
> Gnag:
>
> I know we can beat this thing to death, as we have in previous
> threads and I don't anyone wants to travel previously traveled ground.
>
> However, Rob said:
>
> "A good captcha will try to exploit a computer's weaknesses."
>
> So, le
On 6/11/07, Stefanos Harhalakis <[EMAIL PROTECTED]> wrote:
On Monday 11 June 2007 16:05, Lester Caine wrote:
By the way, what makes you think that most people have an invalid timezone
configured? Windows XP have NTP support that is enabled by default. Without a
proper timezone this should res
Stefanos Harhalakis wrote:
On Monday 11 June 2007 16:05, Lester Caine wrote:
Hope this clears things a bit...
As I actually USE a clients time offset, I know what the problem is. The DATA
is ALL stored as UTC time data, so it does not matter who enters it. It will
be stored without a tim
Gnag:
I know we can beat this thing to death, as we have in previous
threads and I don't anyone wants to travel previously traveled ground.
However, Rob said:
"A good captcha will try to exploit a computer's weaknesses."
So, let's expound on that -- what do you consider to be a computer's we
On 6/11/07, Daniel Brown <[EMAIL PROTECTED]> wrote:
On 6/11/07, Tijnema <[EMAIL PROTECTED]> wrote:
> On 6/10/07, tedd <[EMAIL PROTECTED]> wrote:
> > >Tedd:
> > >
> > >Please don't spread the code of your Audio CAPTCHA, we had a big
> > >discussion about it, and we concluded that it was quite easy
On Monday 11 June 2007 16:05, Lester Caine wrote:
> Timezone information is only of use for the CURRENT day - even if it is
> wrong. It is ESSENTIAL that any changes also include the daylight saving
> information. Since this is not included, all current sites handling event
> related information in
On 6/11/07, Tijnema <[EMAIL PROTECTED]> wrote:
On 6/10/07, tedd <[EMAIL PROTECTED]> wrote:
> >Tedd:
> >
> >Please don't spread the code of your Audio CAPTCHA, we had a big
> >discussion about it, and we concluded that it was quite easy to crack.
> >I remember i've cracked some other CAPTCHAs, but
Stefanos Harhalakis wrote:
On Sunday 10 June 2007, Richard Lynch wrote:
On Sat, June 9, 2007 8:06 am, Stefanos Harhalakis wrote:
Timezone: +0200
that will specify their timezone offset. This way scripts will be able
to
provide appropriate date/time strings/representations and/or content.
It's
[EMAIL PROTECTED] wrote:
I would like to format the output of a PHP page into a single line and use
gzip compression too.
I know that i can use something like this to get in a single line ( will
workout on this function later to remove spaces ).
And gzip compression is used with
Is there a
Hello,
I would like to format the output of a PHP page into a single line and use
gzip compression too.
I know that i can use something like this to get in a single line ( will
workout on this function later to remove spaces ).
And gzip compression is used with
Is there a way to "mix" those
Thats nice! Could "correct" mine also? ;-)
//frank
11 jun 2007 kl. 11.01 skrev [EMAIL PROTECTED]:
I have corrected your document.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsub
If you are not able to get anything into your DB (and your connection
is ok), then two things might be wrong: your input or the query
string itself.
Echo out the query string and try to use the query
"manually" (directly with a MySQL client). If the query string is ok,
you might check you
I have corrected your document.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
80 matches
Mail list logo