Try doing an explain $query query.
I *think* MySQL might cache the query/results enough that you'd get an
accurate estimate...
You could also turn MySQL Logging on.
Or, rather crudely, time it in PHP:
$query_start_time = microtime();
$result = mysql_query($query);
$query_end_time =
Check if you've got leftover 0.9.7 library sitting around.
Perhaps you put 0.9.8 in /usr/local/lib, but 0.9.7 is still in /usr/lib
If you have locate you can just do:
locate libssl.so
and see what turns up
On Mon, July 11, 2005 10:09 am, [EMAIL PROTECTED] said:
Hello,
I've upgraded to
On Mon, July 11, 2005 10:04 am, Alessandro Rosa said:
As far as I know, its not a security issue, but a structure/design
issue.
The issue is that in php you can't definitely say what type a variable
is , whereas in c++ you can say this variable is a string, this one a
int,
.
But, right
Try closing your cURL handle and making a new one before you get the page
that's giving you trouble.
Sometimes cURL maintains state that it shouldn't.
You'll maybe need to get the Cookies by hand from the header and send
them back as headers -- Not sure a Cookie Jar can survive a new handle.
On
On Mon, July 11, 2005 9:53 am, Psystorm said:
Burhan Khalid wrote:
Alessandro Rosa wrote:
Thanks to all for clear responses!
So just a question now, why have not multiple constructors been
implemented?
Are there some security issues related to them ?
As far as I know, its not a
On Mon, July 11, 2005 10:58 pm, William Stokes said:
I would like to add a visitor counter to my site. I know that there are
plenty of free and nice applications/scripts for this avalable but I would
like to write my own. I'm at the moment thinking either to make graphical
or
text based user
Hi,
I have a line:
$sql=select u.*, p.name_lt as pareiga from nese_users u left join
nese_pareigos p on p.id=u.pareiga order by data desc;
As I understand there are 2 tables: nese_users and nese_pareigos
I need to know what atributes belong to what table form that line.
Thanks
--
PHP
Hello everybody!
I've problems to build php 4 on Centos 4.1 @AMD64. Problem seems to be
in lib64 dir which is ignored by configure script. For example libjpeg
is in /usr/lib64 and configure script is:
for i in $PHP_JPEG_DIR /usr/local /usr; do
test -f
Hello all,
I have some questions and I hope someone could answer them
1. Is there a way to find out how many users currently browsing pages at
my web site?
2. If I write down the IP of a user that log on my web site, can I check
later if the IP still browsing pages at my web
DIA with the estension xml2php5
Le Mon, 11 Jul 2005 15:22:32 +0200, Pascual De Ruvo [EMAIL PROTECTED] a
écrit:
Hi,
Can someone suggest a free CASE Tool for UML modelling that generates
PHP 5
code?
Thanks in advance,
Pascual De Ruvo
--
PHP General Mailing List (http://www.php.net/)
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello all,
I have some questions and I hope someone could answer them
1. Is there a way to find out how many users currently browsing pages
at my web site?
2. If I write down the IP of a user that log on my web site, can
Chris W. Parker wrote:
Robert Cummings mailto:[EMAIL PROTECTED]
on Friday, July 08, 2005 5:25 PM said:
Thus siteMask should have one of the following values:
(1 1) == 2 // only site1 can use the product.
(1 2) == 4 // only site2 can use the
Thanks george,
But i want to read for multiple such files and i have many other keywords match
which should be deleted.The array of keywords are
([,TYP,P_MPP,I_MPP,V_MPP,T=,FIT,INTENSITAET);
and i aslo want to write back the reamaining lines after deleting into the same
file but not in a
babu wrote:
Hi i have a txt file like
[SUBSTRAT]
TYP=25x25_10
SUBSTRATNAME=S112
PIXEL=5
OPERATOR=Zi
KOMMENTAR=dunkel
INTENSITAET=1000.00
[MESSUNG]
DATUM=03.01.2005
UHRZEIT=11:22
MESSUNG=SWEEP_UI
i want to delete lines which start with '[' and 'TYP'. i have multiple such files.i have used
LacaK wrote:
I see contents using Network Monitor, so I se response header and
contents andthey are uncompressed, so somresion does not uccured.
It's likely the browser is uncomressing it before you ever see it. I
would telnet to port 80 and make an HTTP request to see for sure.
To turn
adolfas [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I have a line:
$sql=select u.*, p.name_lt as pareiga from nese_users u left join
nese_pareigos p on p.id=u.pareiga order by data desc;
As I understand there are 2 tables: nese_users and nese_pareigos
I need to know what
Thank you,
I know this technique : ob_start('ob_gzhandler');
but I am interesting on : ini_set('zlib.output_compression', true);
/this is preffered method as stated in manual :
Also note that using ini.zlib.output_compression is preferred over
ob_gzhandler(). /
And I do not understand, why it
M. Sokolewicz wrote:
babu wrote:
Hi i have a txt file like [SUBSTRAT]
TYP=25x25_10
SUBSTRATNAME=S112
PIXEL=5
OPERATOR=Zi
KOMMENTAR=dunkel
INTENSITAET=1000.00
[MESSUNG]
DATUM=03.01.2005
UHRZEIT=11:22
MESSUNG=SWEEP_UI
i want to delete lines which start with '[' and 'TYP'. i have multiple
Is your browser sending an accept-encoding header containing gzip?
(eg. Accept-Encoding: gzip,deflate). If not, then PHP will reason it
should not send gzip-encoded content because the browser won't understand.
- tul
LacaK wrote:
Thank you,
I know this technique : ob_start('ob_gzhandler');
Hi guys!! I'm just getting back into harness after 4 months off work
following major surgery, so I'm well behind on all the PHP groups. It's
nice to be back!
Forgive me for responding to this one over a month later, but I haven't seen
anybody else pointing this out:
On 13 June 2005 13:30,
Yes, my browser send Accept-Encoding: gzip,deflate
When I alter : zlib.output_compression=on in php.ini it works fine !
Only runtime alter : ini_set('zlib.output_compression', true); does not
work !?
LacaK.
M. Sokolewicz wrote:
Is your browser sending an accept-encoding header containing
Hi,
How can i destroy an array?
I mean i have a loop and for each new value in the loop i want to destroy the
array. Something like that:
while($row = mysql_fetch_array($result))
{
$product[] = $product_id;
// some code here
}
I've tried this but doesn't
HI all.
Is it possible to determine if a mail was sent successfully or not
delivered using PHP? Obviously using PHP to send the emails.
thanks in advance
ANgelo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
You may try unset($product) in your loop if you want to delete this var.
Your code $product=array(); must work too...
Another way, must be to use something like this $product[id]=$product_id;
But i dont think it's your real goal?!
Could you give some more information about that?
Olivier
do not forget to remove ob_start, also you'll make double compression
regards
Le Tue, 12 Jul 2005 12:29:02 +0200, LacaK [EMAIL PROTECTED] a
écrit:
Thank you,
I know this technique : ob_start('ob_gzhandler');
but I am interesting on : ini_set('zlib.output_compression', true);
/this is
On 24 June 2005 15:03, Jason Barnett wrote:
Robert Cummings wrote:
...
There's a difference between a reference to a reference and a copy
of a reference *hehehe*.
Cheers,
Rob.
Dear diary: jackpot!
Now that makes sense. And am I correctly filling in the
blanks when I
On 12/07/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
How can i destroy an array?
I mean i have a loop and for each new value in the loop i want to destroy the
array. Something like that:
while($row = mysql_fetch_array($result))
{
$product[] = $product_id;
Hi you all!
That's my problem: I have a configuration files with the following
structure...
$vars['varname'] = 'varvalue';
And I would like to have a module to change those parameters, but I
don't know how to write a pattern to match it...
Thanks in advance...
Best Regards,
Bruno B B
of course I have removed ob_start(...)
david forums wrote:
do not forget to remove ob_start, also you'll make double compression
regards
Le Tue, 12 Jul 2005 12:29:02 +0200, LacaK [EMAIL PROTECTED]
a écrit:
Thank you,
I know this technique : ob_start('ob_gzhandler');
but I am interesting
hi,
This looks like imposible. Because generaly, SMTP is running asyncron
mode.
Maybe you can do it mail's return-path's mailbox checking. But this
will not be syncron too.
Best Regards.
-Cafer
Angelo Zanetti [EMAIL PROTECTED] writes:
HI all.
Is it possible to determine if a mail was
Richard Davey wrote:
I gave several valid good usability reasons, that I've yet to see
anyone provide a coherent reason not to use.
The usability arguments in favor of BBCode are fine. I'm not interested
in that debate. I just don't want more people thinking that allowing
BBCode somehow
I am having a problem with sessions. For some reason it keeps creating
a new session for every page link you click and not using the original
session created when session_start() gets called. Below is the code I
am testing with.
[one.php]
?php
$SessionID = md5( uniqid( rand () ) );
Evert|Rooftop wrote:
If you for example only allow iu and b doing this with bbcode
would require extra cpu-cycles to convert [i] to i
I don't really agree with this, because I think escaping the html +
replacing bbcode would require less cpu cycles then scanning the string
for invalid html and
Hi,
I believe SOAP can be used inside of PHP. Can I use
SAML in SOAP, which is in PHP?
If yes, where can I find docs/info for that?
If no, is there a SAML mailing list that I can join to
get help on SAML?
Thanks,
Joe
hi sokolewicz,
i get this error, wehn i try to run the file
Parse error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in
C:\apachefriends\xampp\htdocs\fmf\IV-test-files\200501t\dirread2.php on line 21
M. Sokolewicz [EMAIL PROTECTED] wrote:
babu wrote:
Hi i have a txt file
I can see the .htm/.html file just fine. So, what settings should I be
looking at for the problems with PHP?
Steve
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 12, 2005 12:12 AM
To: Grosz, Steve (IPG IT)
Subject: Re: [PHP] Problem installing in
On 7/12/05, daro [EMAIL PROTECTED] wrote:
I don't know where should I put this script to be able to receive all datas
and respond
with proper strings.
You would run the script as a shell script from the command line.
On windows you can just save the code as a regular php script then
start
On Tue, 2005-07-12 at 16:49 +0200, daro wrote:
Hi.
I'm writing a TCP/IP server and client.
On your website I found ready php script http://pl2.php.net/sockets but I
have a question.
For TCP/IP server the example script from your website has to be put on
server as index.php file and the
You should use/run it via PHP-CLI. It is a shell script.
Ex: /usr/local/bin/php socket.php (on linux) or
C:\PHP\php.exe socket.php (on windooz/M$-dos)
Good luck.
Hidayet Dogan
On Tue, 12 Jul 2005, daro wrote:
Hi.
I'm writing a TCP/IP server and client.
On your website I found ready php
On Tue, 2005-07-12 at 09:58 -0500, Greg Donald wrote:
On 7/12/05, daro [EMAIL PROTECTED] wrote:
I don't know where should I put this script to be able to receive all
datas and respond
with proper strings.
You would run the script as a shell script from the command line.
On windows
Each time i try setting MAX_FILE_SIZE in a form and using the upload
error code to check if the file is large it always uploads the entire
file before showing the error that the file is too big.. either the
manual is incorrect or this does not work as every method i've tried
always waits for
On 7/11/05, x [EMAIL PROTECTED] wrote:
Since we can see the time cost each time we query MySQL through MySQL
console (such as 75 rows in set (0.01 sec)), so I am wondering there is
already an existing function which will return the value...
I think you are confusing two things: mysql server
Sebastian wrote:
Each time i try setting MAX_FILE_SIZE in a form and using the upload
error code to check if the file is large it always uploads the entire
file before showing the error that the file is too big.. either the
manual is incorrect or this does not work as every method i've tried
On Tue, 2005-07-12 at 11:35 -0400, Sebastian wrote:
Each time i try setting MAX_FILE_SIZE in a form and using the upload
error code to check if the file is large it always uploads the entire
file before showing the error that the file is too big.. either the
manual is incorrect or this does
Hi all,
i have a text file as shown below, which contains records like varaiable, value
pairs seperated by '=' .there are many such records, each record is starts with
first variable 'SUBSTRATNAME'.
SUBSTRATNAME=S112 --
PIXEL=5
OPERATOR=Zi
KOMMENTAR=dunkel
DATUM=03.01.2005
UHRZEIT=11:22
Ahmed Saad wrote:
hi Sebastain,
On 7/12/05, Sebastian [EMAIL PROTECTED] wrote:
yet it waits for file to upload before error.
I've been using php for serveral years and i cant remember ever getting
this to work like the manual states.
Quoting the *php manual*
The MAX_FILE_SIZE
Please, PLEASE Reply to All!
Yes, you have to add something like
--8-
while(true) {
// code here
if( $someConditionThatWillMakeMeExit ) {
break;
}
sleep(1); // to prevent excessive processor
Sebastian wrote:
snip
it doesnt seem to work on IE or Firefox.. two of the most popular
browsers..
this shoudn't even be in the manual then because if it doesnt work for
these two browsers then i would consider it pointless to use.
/snip
It may not be your browser that it's not working
On Tue, 2005-07-12 at 12:38 -0400, John Nichel wrote:
Sebastian wrote:
snip
it doesnt seem to work on IE or Firefox.. two of the most popular
browsers..
this shoudn't even be in the manual then because if it doesnt work for
these two browsers then i would consider it pointless to use.
I guess your purpose is to just save the row data from the mysql to the
array each unit. So may be the result that you expected is sth like:
$product[0] = 1;
$product[1] = 2;
$product[2] = 3;
..
If you just loop for each new value in the loop and to destroy the array,
you second example is okey.
Yeah, mysql_escape_string() will help you.
Best regards,
Shiqi Yang
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Monday, July 11, 2005 9:42 AM
To: Daniel Baughman
Cc: php-general@lists.php.net
Subject: RE: [PHP] back slashes
On Fri, July 8, 2005 12:48
hi all,
On Tue, 2005-07-12 at 16:49 +0200, daro wrote:
Also remember to set_time_limit(0) ;)
PHP ENTER CONFUSION
The *CLI* version of php has no max execution time by default (0)
- Where's the php CLI version in php4?
[PHP_HOME]/cli/php.exe and it reads a php.ini if it was in the SAME
Yes, mysql will cache your same query every time. So what you need is to
just test the microtime before and after your query script.
If you just want to know how about the efficiency about your sql script, you
can use the mysql_command line and explain it.
Otherwise, I think trying to catch the
Firstly, I don't know why you want to change your configuration in real
time?
Then if you just keep your configuration in an array, then when you want to
change and use it in your script, you can just $vars['varname'] = sth
else.
So pls give us more detail.
Best regards,
Shiqi Yang
Since there was no reference to that on the PHP manual, I thought about
mentioning it just to be safe.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The current users' num is actually not exactly and it's just an estimated
one.
You can save your users' data in an array, and every time receive a request
from a browser you should modify your array and then you can get how many
users are online. And also there need another function to clean up
You can use select u.a as u.a, v.a as v.a ..
Best regards,
Shiqi Yang
-Original Message-
From: adolfas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 12, 2005 2:42 PM
To: php-general@lists.php.net
Subject: [PHP] Plz, help
Hi,
I have a line:
$sql=select u.*, p.name_lt as pareiga
On 7/12/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
2. If I write down the IP of a user that log on my web site, can I check
later if the IP still browsing pages at my web site or if he had left my
website?
Don't assume that every IP maps to only ONE user. IPs are often
masqueraded so
Explain select will only explain how mysql is going to use different
keys and indexes to optimize query not actually give you a time
estimate. The actual time it takes to handle indexes and such,
especially if you are using joins, has to do with the Key_buffer and
join_buffer values in
André Medeiros wrote:
On Tue, 2005-07-12 at 12:38 -0400, John Nichel wrote:
Sebastian wrote:
snip
it doesnt seem to work on IE or Firefox.. two of the most popular
browsers..
this shoudn't even be in the manual then because if it doesnt work for
these two browsers then i would
On Mon, 2005-07-11 at 14:29, Chris W. Parker wrote:
Robert Cummings mailto:[EMAIL PROTECTED]
on Friday, July 08, 2005 5:25 PM said:
Thus siteMask should have one of the following values:
(1 1) == 2 // only site1 can use the product.
(1 2) == 4
Robert Cummings mailto:[EMAIL PROTECTED]
on Tuesday, July 12, 2005 11:47 AM said:
Sorry to respond so late, my free time these days is sporadic :)
No problem.
My example suggested one database to host all products for both sites.
The bitmask is used as a filter to determine which sites
Hi all,
I've been around this list for a month or something but i just
discovered today that all my replies weren't sent to the list but
instead to the individual who sent the message. I haven't administered
any list systems before but at Apache for example it appends a
reply-to header pointing
On Tue, 2005-07-12 at 14:50, Chris W. Parker wrote:
Robert Cummings mailto:[EMAIL PROTECTED]
on Tuesday, July 12, 2005 11:47 AM said:
Sorry to respond so late, my free time these days is sporadic :)
No problem.
My example suggested one database to host all products for both sites.
Ahmed Saad wrote:
Hi all,
I've been around this list for a month or something but i just
discovered today that all my replies weren't sent to the list but
instead to the individual who sent the message. I haven't administered
any list systems before but at Apache for example it appends a
I have been using Sparx Systems Enterprise Architect.
david forums [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
DIA with the estension xml2php5
Le Mon, 11 Jul 2005 15:22:32 +0200, Pascual De Ruvo [EMAIL PROTECTED] a
écrit:
Hi,
Can someone suggest a free CASE Tool for UML
Ahmed Saad mailto:[EMAIL PROTECTED]
on Tuesday, July 12, 2005 11:24 AM said:
Can the list administators can fix this? (appending the correct
reply-to header)
This has come up many times in the past and so far it has not changed.
Just hit the Reply to All button and you'll be fine.
Hi Chris
On 7/12/05, Chris W. Parker [EMAIL PROTECTED] wrote:
This has come up many times in the past and so far it has not changed.
Just hit the Reply to All button and you'll be fine.
thanks for pointing that out
-ahmed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
On 7/12/05, John Nichel [EMAIL PROTECTED] wrote:
Can of Worms Status : Open
oh yeah sure
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am trying to use a font on my webpage that I have on my system only
after a friend sent it to me. But its a neat little font that I want
to use in a couple place on my site, like some of the headers. So I
have two options I think one is to find a way to have the font
download and work on the
Chris W. Parker wrote:
This has come up many times in the past and so far it has not changed.
Just hit the Reply to All button and you'll be fine.
The problem with that is that people then get a personal message *and *a
list message. Why can't this group be set up properly so reply goes to
Alan Milnes wrote:
Chris W. Parker wrote:
This has come up many times in the past and so far it has not changed.
Just hit the Reply to All button and you'll be fine.
The problem with that is that people then get a personal message *and *a
list message. Why can't this group be set up
Hi Bruno,
On 7/12/05, Bruno B B Magalhães [EMAIL PROTECTED] wrote:
Hi you all!
$vars['varname'] = 'varvalue';
And I would like to have a module to change those parameters, but I
don't know how to write a pattern to match it...
i think you mean an API to help you manage and persist your
LacaK wrote:
Yes, my browser send Accept-Encoding: gzip,deflate
When I alter : zlib.output_compression=on in php.ini it works fine !
Only runtime alter : ini_set('zlib.output_compression', true); does not
work !?
LacaK.
I'm pretty sure this behaviour is by design -- it doesn't make sense to
Hi André,
On 7/12/05, André Medeiros [EMAIL PROTECTED] wrote:
Since there was no reference to that on the PHP manual, I thought about
mentioning it just to be safe.
yeah the manual is completely drak when it comes to php CLI binary
--
PHP General Mailing List (http://www.php.net/)
To
On 7/12/05, Ahmed Saad [EMAIL PROTECTED] wrote:
yeah the manual is completely drak when it comes to php CLI binary
`php -h` tells you all the command line options.. and all the basic
fuctionality is covered in the manual online. Seems complete to me.
--
Greg Donald
Zend Certified Engineer
On 7/13/05, Greg Donald [EMAIL PROTECTED] wrote:
`php -h` tells you all the command line options.. and all the basic
fuctionality is covered in the manual online. Seems complete to me.
ehmm you weren't refering to the CLI version but anyways, I'd be
grateful to anyone who points me to more
Alan Milnes mailto:[EMAIL PROTECTED]
on Tuesday, July 12, 2005 1:28 PM said:
Chris W. Parker wrote:
This has come up many times in the past and so far it has not
changed. Just hit the Reply to All button and you'll be fine.
The problem with that is that people then get a personal
On 7/13/05, Chris W. Parker [EMAIL PROTECTED] wrote:
I've been doing that forever and I've never had anyone complain? Did you
get this message twice?
i fell it my inbox though normally the filter would just skip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On 7/13/05, Ahmed Saad [EMAIL PROTECTED] wrote:
i fell it my inbox though normally the filter would just skip
sorry i meant it fell in my inbox where my gmail filters would
normally skip te inbox step and just apply the label
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Hello,
I am trying to add a PHP search to my site and the read me file says to:
2. In the server, create a database in MySQL to hold Sphider data.
a) at command prompt type (to log into MySQL):
mysql -u your username -p
Enter your password when prompted.
b) in MySQL, type:
CREATE DATABASE
Bruce Gilbert wrote:
Hello,
I am trying to add a PHP search to my site and the read me file says to:
2. In the server, create a database in MySQL to hold Sphider data.
a) at command prompt type (to log into MySQL):
mysql -u your username -p
Enter your password when prompted.
b) in MySQL,
Thanks for reply,
In documentation is stated, than zlib.output_compression is changeable
at PHP_INI_ALL. If there is no possibility to change it in script, why
it is not PHP_INI_SYSTEM|PHP_INI_PERDIR ?
And at second :
When I set zlib.output_compression=on in php.ini, then I CAN turn it
off
83 matches
Mail list logo