On Wed, 2008-04-16 at 23:37 -0400, Nathan Nobbe wrote:
all,
i have heard from various sources that using the in php can at times be
costly, and therefore, it should not be used when it is not needed. for
example, passing an array by reference because you think youre passing the
actual
Jason Pruim wrote:
On Apr 16, 2008, at 5:37 PM, Chris wrote:
Jason Pruim wrote:
Hi Everyone!
I'm back with yet another question But getting closer to sounding
like I know what I'm talking about and that's all thanks to all of
you. A free beer (Or beverage of choice)* for everyone who
vester_s wrote:
I need to get the list for all of the people that subscribing to this
newsreader, this list will be used to modify the other mailing list
programs.
Basically by getting the list of the people that subscribing on this
newsgroup, then i could migrate it to our new forum
Hi all.
We have taken over a site and a problem we have is that French special
characters aren't displaying correctly, they are displaying a weird square
block.
I have checked the content type and it's as follows:
meta http-equiv=Content-Type content=text/html;charset=utf-8
I also notice
On 16 Apr 2008, at 23:50, vester_s wrote:
I need to get the list for all of the people that subscribing to this
newsreader, this list will be used to modify the other mailing list
programs.
Basically by getting the list of the people that subscribing on this
newsgroup, then i could migrate it
-Original Message-
From: Angelo Zanetti [mailto:[EMAIL PROTECTED]
Sent: 17 April 2008 09:48
To: php-general@lists.php.net
Subject: [PHP] FRench characters not displayed correctly
Hi all.
We have taken over a site and a problem we have is that French special
characters aren't
Hello!
Seems that PHP gets more and more object oriented, which is good.
I am now running a course in PHP, using PHP 5, where we are going to
use the *DOM* interface. I am trying to teach them good OO practices,
meaning that we insistently hide properties and expose them as get or
set methods.
On Thu, 2008-04-17 at 09:47 +0200, Angelo Zanetti wrote:
Hi all.
We have taken over a site and a problem we have is that French special
characters aren't displaying correctly, they are displaying a weird square
block.
I have checked the content type and it's as follows:
meta
Angelo Zanetti wrote:
I have also found that we can do this:
html lang=fr
But I am interested in finding out if the doctype declaration is a
contributing factor.
Neither will affect the character set used when rendering the page.
The meta http-equiv=Content-Type in a page is ignored by
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: 17 April 2008 10:38
To: Angelo Zanetti
Cc: php-general@lists.php.net
Subject: Re: [PHP] FRench characters not displayed correctly
On Thu, 2008-04-17 at 09:47 +0200, Angelo Zanetti wrote:
Hi all.
We have taken
On Thu, 2008-04-17 at 10:57 +0200, Angelo Zanetti wrote:
Thanks Robert,
I have the following headers:
http://fr..com/student/themes/english/locker_room/student.html
GET /student/themes/english/locker_room/student.html? HTTP/1.1
Host: fr..com
User-Agent: Mozilla/5.0
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: 17 April 2008 11:05
To: Angelo Zanetti
Cc: php-general@lists.php.net
Subject: RE: [PHP] FRench characters not displayed correctly
On Thu, 2008-04-17 at 10:57 +0200, Angelo Zanetti wrote:
Thanks Robert,
I
On 17 Apr 2008, at 10:05, David BERCOT wrote:
I've got a problem with DateTime. I have a short code which gives an
error :
CODE
$date = new DateTime(date(d/m/Y));
$date-modify(-1 month);
$mois_en_cours1 = $date-format(Y-m);
$date-modify(-1 month);
$mois_en_cours2 = $date-format(Y-m);
On Thu, 2008-04-17 at 11:11 +0200, Angelo Zanetti wrote:
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: 17 April 2008 11:05
To: Angelo Zanetti
Cc: php-general@lists.php.net
Subject: RE: [PHP] FRench characters not displayed correctly
On Thu,
On 17/04/2008, at 9:05, David BERCOT wrote:
Hi,
I've got a problem with DateTime. I have a short code which gives an
error :
CODE
$date = new DateTime(date(d/m/Y));
$date-modify(-1 month);
$mois_en_cours1 = $date-format(Y-m);
$date-modify(-1 month);
$mois_en_cours2 = $date-format(Y-m);
Hi,
I've got a problem with DateTime. I have a short code which gives an
error :
CODE
$date = new DateTime(date(d/m/Y));
$date-modify(-1 month);
$mois_en_cours1 = $date-format(Y-m);
$date-modify(-1 month);
$mois_en_cours2 = $date-format(Y-m);
$date-modify(-1 month);
$mois_en_cours3 =
Angelo Zanetti wrote:
Thanks again, but as far as I have read, it seems that UTF-8 has
better handling for French characters?
Not really - I'm pretty certain ISO-8859-1 will cover all of the special
french characters. But it's irrelevant - if your code/pages are
written in UTF8, you won't get
Robert Cummings wrote:
No, that's what kind of content the server is willing to accept from
various sources such as POST. You want the following somewhere near
the beginning of your script:
?php
header( 'Content-type: text/html; charset=iso-8859-1' );
?
I think that is better done
On 16/04/2008, Tony Marston [EMAIL PROTECTED] wrote:
-Original Message-
From: Robin Vickery [mailto:[EMAIL PROTECTED]
Sent: 16 April 2008 17:23
To: Jay Blanchard
Cc: Tony Marston; php-general@lists.php.net
Subject: Re: [PHP] What is the practical use of abstract
and
On Thu, 2008-04-17 at 11:39 +0200, Per Jessen wrote:
Robert Cummings wrote:
No, that's what kind of content the server is willing to accept from
various sources such as POST. You want the following somewhere near
the beginning of your script:
?php
header( 'Content-type:
Robert Cummings wrote:
?php
header( 'Content-type: text/html; charset=iso-8859-1' );
?
I think that is better done with the default_charset setting in
php.ini.
I don't. But then I have several projects and some use utf-8
(preferred) and some use iso-8859-1 (not preferred). I
On Apr 17, 2008, at 5:37 AM, Nathan Nobbe wrote:
all,
i have heard from various sources that using the in php can at
times be
costly, and therefore, it should not be used when it is not
needed. for
example, passing an array by reference because you think youre
passing the
actual array
Hi again,
Le Thu, 17 Apr 2008 21:10:44 +1200,
Simon Welsh [EMAIL PROTECTED] a écrit :
On 17/04/2008, at 9:05, David BERCOT wrote:
Hi,
I've got a problem with DateTime. I have a short code which gives an
error :
CODE
$date = new DateTime(date(d/m/Y));
$date-modify(-1 month);
Le Thu, 17 Apr 2008 10:19:10 +0100,
Stut [EMAIL PROTECTED] a écrit :
On 17 Apr 2008, at 10:05, David BERCOT wrote:
I've got a problem with DateTime. I have a short code which gives an
error :
CODE
$date = new DateTime(date(d/m/Y));
$date-modify(-1 month);
$mois_en_cours1 =
Can you explain this in more detail for me. Sounds like this code is providing the entry point for
the other hack code.
Greg Bowser wrote:
I can sort of figure what is doing; but, I can't figure out what the hacker
is using it for.
It will allow him to upload and execute arbitrary code on
On Apr 17, 2008, at 2:16 AM, Chris wrote:
Jason Pruim wrote:
On Apr 16, 2008, at 5:37 PM, Chris wrote:
Jason Pruim wrote:
Hi Everyone!
I'm back with yet another question But getting closer to
sounding like I know what I'm talking about and that's all thanks
to all of you. A free beer
On Apr 16, 2008, at 10:55 AM, Richard Heyes wrote:
I'm back with yet another question But getting closer to
sounding like I know what I'm talking about and that's all thanks
to all of you. A free beer (Or beverage of choice)* for everyone
who has helped me over the years!
I would
On 17 Apr 2008, at 13:33, Jason Pruim wrote:
Maybe I'm showing my ignorance here in programming... Maybe it's
because I delt with a kid who decided to scream for a good share of
the night and I'm sleep deprived :) But in my current system I have
this:
echo HTML
div
When I try to use the Kadm5_init_with_password function, or any of the
kerberos (kadm5) functions, I get an error that tells me that it is an
undefined function, yet it is supposed to be part of the php core. What
do I need to do to use this function??
Thanks,
Donald Miller
[EMAIL PROTECTED]
On Wed, Apr 16, 2008 at 1:35 PM, Donald Miller
[EMAIL PROTECTED] wrote:
When I try to use the Kadm5_init_with_password function, or any of the
kerberos (kadm5) functions, I get an error that tells me that it is an
undefined function, yet it is supposed to be part of the php core. What
do I
On Thu, Apr 17, 2008 at 8:15 AM, Al [EMAIL PROTECTED] wrote:
Can you explain this in more detail for me. Sounds like this code is
providing the entry point for the other hack code.
It probably is, by reading the code from the malicious /tmp files
(/tmp should not allow any execution, by the
On Thu, Apr 17, 2008 at 8:38 AM, Jason Pruim [EMAIL PROTECTED] wrote:
I took a quick look at it, and quickly realized you know more then me :P
I'll dig into it more today hopefully once the caffeine kicks in better and
I can make a full sentence without having it take me 5 minutes :)
For
Daniel Brown wrote:
On Thu, Apr 17, 2008 at 8:38 AM, Jason Pruim [EMAIL PROTECTED] wrote:
I took a quick look at it, and quickly realized you know more then me :P
I'll dig into it more today hopefully once the caffeine kicks in better and
I can make a full sentence without having it take me 5
SASH
That should have been SSH of course - seems my spell checker isn't very
technical...
--
Richard Heyes
+-+
|Access SSH through a Windows mapped drive|
|http://www.phpguru.org/sftpdrive |
+-+
--
PHP
On Thu, Apr 17, 2008 at 10:19 AM, Richard Heyes [EMAIL PROTECTED] wrote:
Daniel Brown wrote:
On Thu, Apr 17, 2008 at 8:38 AM, Jason Pruim [EMAIL PROTECTED] wrote:
I took a quick look at it, and quickly realized you know more then me
:P
I'll dig into it more today hopefully once the
On Apr 17, 2008, at 10:26 AM, Daniel Brown wrote:
On Thu, Apr 17, 2008 at 10:19 AM, Richard Heyes
[EMAIL PROTECTED] wrote:
Daniel Brown wrote:
On Thu, Apr 17, 2008 at 8:38 AM, Jason Pruim [EMAIL PROTECTED]
wrote:
I took a quick look at it, and quickly realized you know more
then me
:P
On Thu, Apr 17, 2008 at 10:24 AM, Richard Heyes [EMAIL PROTECTED] wrote:
SASH
That should have been SSH of course - seems my spell checker isn't very
technical...
+-+
|Access SSH through a Windows mapped drive|
|
And since no word in the English language begins with FT
You're forgetting Ftork...
--
Richard Heyes
+-+
|Access SSH through a Windows mapped drive|
|http://www.phpguru.org/sftpdrive |
+-+
--
PHP General
Fellows, I need to change this configuration from my httpd.conf file to an
.htacces file so my scripts can work in any apache without having access (or
change) the server httpd.conf file
Here's the piece of the httpd.conf
RewriteEngine On
RewriteLogLevel 9
RewriteLog
On Thu, Apr 17, 2008 at 10:44 PM, Alberto García Gómez
[EMAIL PROTECTED] wrote:
Fellows, I need to change this configuration from my httpd.conf file to an
.htacces file so my scripts can work in any apache without having access (or
change) the server httpd.conf file
Here's the piece of the
Alberto García Gómez [EMAIL PROTECTED] wrote:
Fellows, I need to change this configuration from my httpd.conf file to an
.htacces file so my scripts can work in any apache without having access (or
change) the server httpd.conf file
Here's the piece of the httpd.conf
Stut wrote:
On 17 Apr 2008, at 13:33, Jason Pruim wrote:
Maybe I'm showing my ignorance here in programming... Maybe it's
because I delt with a kid who decided to scream for a good share of
the night and I'm sleep deprived :) But in my current system I have this:
echo HTML
div
HI!
I have a question about read to qmail.
I try to read qmail using php. But I can not
read it.
the code is below-
?php
$file=213434534.domain.com;
$fp = fopen($file, r);
while(!feof($fp)) {
$data = fgets($fp, 1024);
echo $data br;
}
fclose($fp);
[snip]
I have a question about read to qmail.
I try to read qmail using php. But I can not
read it.
the code is below-
?php
$file=213434534.domain.com;
$fp = fopen($file, r);
while(!feof($fp)) {
$data = fgets($fp, 1024);
echo $data br;
}
fclose($fp);
I do not get it.
I do not where code has basic mistake.
I do not have any error message.
When I read qmail. My browser is stopped.
Regards,
yui
2008/4/18, Jay Blanchard [EMAIL PROTECTED]:
[snip]
I have a question about read to qmail.
I try to read qmail using php. But I can not
read
[snip]
I do not get it.
I do not where code has basic mistake.
[/snip]
And that is why putting in basic error checking will help, for instance;
$fp = fopen($file, r);
if($fp){
while(!feof($fp)) {
$data = fgets($fp, 1024);
echo $data br;
}
} else {
On Thu, Apr 17, 2008 at 3:42 AM, Robin Vickery [EMAIL PROTECTED] wrote:
On 16/04/2008, Tony Marston [EMAIL PROTECTED] wrote:
-Original Message-
From: Robin Vickery [mailto:[EMAIL PROTECTED]
Sent: 16 April 2008 17:23
To: Jay Blanchard
Cc: Tony Marston;
On Thu, Apr 17, 2008 at 12:14 AM, Robert Cummings [EMAIL PROTECTED]
wrote:
If it's faster, it's faster so that would suggest a performance gain...
but as many will tell you, and you most likely already know... is the
gain worth the effort? BTW, rote replacement of references like that,
may
On Thu, Apr 17, 2008 at 4:57 AM, Bojan Tesanovic [EMAIL PROTECTED]
wrote:
in PHP5 by default Objects are passed by reference and as you can see at
this graph passing array by reference in PHP5 is slower
http://nathan.moxune.com/arrayVsArrayIteratorReport.php
wow, thats hilarious, thats my
On Apr 15, 2008, at 5:26 PM, tedd wrote:
At 10:41 AM -0500 4/15/08, Steve Marquez wrote:
Greetings,
Can any of you point me in the right direction on how to use PHP to
create a
most viewed or most clicked articles list? Can it be done with PHP?
Thank you so much,
Steve Marquez
[EMAIL
Daniel Brown has written on 4/16/2008 5:20 PM:
On Wed, Apr 16, 2008 at 5:14 PM, Pete Holsberg [EMAIL PROTECTED] wrote:
Why do I need both from_addr and field_4 (Email Address)? Could I just use
$from = $_POST['field_4']?
Sorry, I noticed it after I started rewriting the form
I try your code;
It is great.
But I get faile.
It means I can not open the file, which is from qmail.
It may be different format of qmail
I get below from code
failed for 1208434346177.9690.domain.com
code---
?php
$file = 1208434346177.9690.domain.com;
$fp =
On Thu, Apr 17, 2008 at 12:17 PM, Pete Holsberg [EMAIL PROTECTED] wrote:
[snip!]
OK. Here's what I have now for processor.php:
?php
//
$where_form_is=http://.$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),/));
$where_form_is =
On Thu, Apr 17, 2008 at 12:07 PM, Philip Thompson
[EMAIL PROTECTED] wrote:
[snip]
If you want to take it a step further and only record a *click* if a person
hasn't clicked this article before, you have several options. You can save a
cookie on their computer saying they've clicked that
Daniel Brown has written on 4/17/2008 12:29 PM:
I'll reiterate:
Note the mail() parameters. There's no header information there.
RTFM: http://php.net/mail
You just have your mail() function wrong. Reiterating my code as
well (with updated field_4 data):
?php
If you want to take it a step further and only record a *click* if a person
hasn't clicked this article before, you have several options. You can save a
cookie on their computer saying they've clicked that article - of course
they can delete the cookie, which may skew the count. Or you can save
On Thu, Apr 17, 2008 at 12:37 PM, Pete Holsberg [EMAIL PROTECTED] wrote:
OK. I don't see a mail() in your code. Would it be
mail($to, $subject, $body, $headers);
?
Entirely my fault, Pete. I'm a moron sometimes. Could've sworn
it was in there. Sorry about that.
Yes, you've
Ooops!
processor.php is now:
?php
$where_form_is =
http://.$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF'])./;
$to = [EMAIL PROTECTED],[EMAIL PROTECTED];
$subject = SUBSCRIBE;
//$from = $_POST['field_4']; == this was the culprit
$body = Form data:
Name: .$_POST['field_1'].
[snip]
I try your code;
It is great.
But I get faile.
[/snip]
If you get a failure then you might not have permission to open the
file.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, Apr 17, 2008 at 12:50 PM, Pete Holsberg [EMAIL PROTECTED] wrote:
1E6 thank yous!!
My TI SR-10 couldn't handle that calculation and blew up in my hand. ;-P
--
/Daniel P. Brown
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Thank you!
the perssion is 600
even when I try to change permission.
This mail will return 600 soon.
Regards,
yui
2008/4/18, Jay Blanchard [EMAIL PROTECTED]:
[snip]
I try your code;
It is great.
But I get faile.
[/snip]
If you get a failure then you might not have permission to
I read the source yes, but my C skills are not good enought to say.
I think about an Apache problem as well, I dont see why it would have been
hardcoded into PHP source (and I cant find it hardcoded anyway ...).
I will try another language, or even another server, to see
thx:)
Julien.P
On Thu, Apr 17, 2008 at 12:00 PM, Nathan Nobbe [EMAIL PROTECTED] wrote:
On Thu, Apr 17, 2008 at 4:57 AM, Bojan Tesanovic [EMAIL PROTECTED]
wrote:
in PHP5 by default Objects are passed by reference and as you can see at
this graph passing array by reference in PHP5 is slower
On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote:
Stut wrote:
On 17 Apr 2008, at 13:33, Jason Pruim wrote:
Maybe I'm showing my ignorance here in programming... Maybe it's
because I delt with a kid who decided to scream for a good share
of the night and I'm sleep deprived :) But in my current
Hi,
i face now a little issue regarding how end user can access to some modules
of my web portal.
Let imagine we have several modules (let say: mod1, mod 2, mod3) and 2 users
(usr1, usr2).
i would like to use a simple way how to established access rights for each
user to grant/forbidden access to
Jason Pruim wrote:
On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote:
Stut wrote:
On 17 Apr 2008, at 13:33, Jason Pruim wrote:
Maybe I'm showing my ignorance here in programming... Maybe it's
because I delt with a kid who decided to scream for a good share of
the night and I'm sleep deprived :)
On Apr 17, 2008, at 2:12 PM, Jim Lucas wrote:
Jason Pruim wrote:
On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote:
Stut wrote:
[/snip]
Both ideas worked great... Thank you!
Now I do still have one question, I decided that what Jim put up
worked a little bit better for me so I'm going
Jim Lucas wrote:
Jason Pruim wrote:
On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote:
Stut wrote:
On 17 Apr 2008, at 13:33, Jason Pruim wrote:
Maybe I'm showing my ignorance here in programming... Maybe it's
because I delt with a kid who decided to scream for a good share of
the night and I'm
Jason Pruim wrote:
On Apr 17, 2008, at 2:12 PM, Jim Lucas wrote:
Jason Pruim wrote:
On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote:
Stut wrote:
[/snip]
Both ideas worked great... Thank you!
Now I do still have one question, I decided that what Jim put up
worked a little bit better for
Jim Lucas wrote:
Jim Lucas wrote:
Jason Pruim wrote:
On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote:
Stut wrote:
On 17 Apr 2008, at 13:33, Jason Pruim wrote:
Maybe I'm showing my ignorance here in programming... Maybe it's
because I delt with a kid who decided to scream for a good share
of
On Apr 17, 2008, at 2:22 PM, Jim Lucas wrote:
Jim Lucas wrote:
Jim Lucas wrote:
Jason Pruim wrote:
On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote:
Stut wrote:
On 17 Apr 2008, at 13:33, Jason Pruim wrote:
Maybe I'm showing my ignorance here in programming... Maybe
it's because I delt with
Hello,
I am writing a PHP script for a local application (not web/html based).
My script is taking a longer time to execute than I want. The source
code is a few thousand lines, so I will spare you all this level of
detail.
I prefer to write in PHP because that is what I know best.
On Thu, Apr 17, 2008 at 3:30 PM, Daniel Kolbo [EMAIL PROTECTED] wrote:
Hello,
I am writing a PHP script for a local application (not web/html based).
My script is taking a longer time to execute than I want. The source code
is a few thousand lines, so I will spare you all this level of
On Thu, Apr 17, 2008 at 11:51 AM, Eric Butera [EMAIL PROTECTED] wrote:
On Thu, Apr 17, 2008 at 12:00 PM, Nathan Nobbe [EMAIL PROTECTED]
wrote:
On Thu, Apr 17, 2008 at 4:57 AM, Bojan Tesanovic [EMAIL PROTECTED]
wrote:
in PHP5 by default Objects are passed by reference and as you can
Hi can you put a loop inside a loop?
what I want to do is have something looping every 1 second and then
something else looping once every 10 seconds.
something like a combination of these two..
$x = 0;
while ($x 1000) {
echo 1;
$x++;
sleep(1);
}
$y = 0;
while ($y 100) {
echo 2;
$y++;
Yup.. you can do that. Easiest way to find out is to give it a try :)
As long as your loop conditions don't conflict or you do stuff to change
variables in a counter-productive way (ie. breaking your logic) then you
should be ok.
-TG
- Original Message -
From: Alan Willsher [EMAIL
On Thu, Apr 17, 2008 at 6:51 PM, Alan Willsher
[EMAIL PROTECTED] wrote:
Hi can you put a loop inside a loop?
what I want to do is have something looping every 1 second and then
something else looping once every 10 seconds.
something like a combination of these two..
$x = 0;
while ($x
On Thu, Apr 17, 2008 at 7:10 PM, Nathan Nobbe [EMAIL PROTECTED] wrote:
On Thu, Apr 17, 2008 at 11:51 AM, Eric Butera [EMAIL PROTECTED] wrote:
On Thu, Apr 17, 2008 at 12:00 PM, Nathan Nobbe [EMAIL PROTECTED]
wrote:
On Thu, Apr 17, 2008 at 4:57 AM, Bojan Tesanovic [EMAIL PROTECTED]
On Thu, Apr 17, 2008 at 5:30 PM, Daniel Kolbo [EMAIL PROTECTED] wrote:
Hello,
I am writing a PHP script for a local application (not web/html based). My
script is taking a longer time to execute than I want. The source code is a
few thousand lines, so I will spare you all this level of
On 17 April 2008 10:05, Robert Cummings advised:
On Thu, 2008-04-17 at 10:57 +0200, Angelo Zanetti wrote:
Thanks Robert,
I have the following headers:
http://fr..com/student/themes/english/locker_room/student.html
GET /student/themes/english/locker_room/student.html? HTTP/1.1
On Thu, 2008-04-17 at 11:24 +0100, Ford, Mike wrote:
On 17 April 2008 10:05, Robert Cummings advised:
On Thu, 2008-04-17 at 10:57 +0200, Angelo Zanetti wrote:
Thanks Robert,
I have the following headers:
http://fr..com/student/themes/english/locker_room/student.html
81 matches
Mail list logo