php-general Digest 22 May 2009 08:07:18 - Issue 6134
Topics (messages 292908 through 292918):
Re: PHP class question
292908 by: Peter van der Does
292911 by: Shawn McKenzie
292912 by: Shawn McKenzie
292914 by: Nathan Rixham
Re: CSS tables
292909 by:
Hello,
on 05/20/2009 11:09 AM Paul M Foster said the following:
Both this class and Manuel Lemos' form generation class (from
phpclasses.org) will create beautiful forms for you. However, you may
find that the amount of [repetitive] typing you do will be equivalent or
greater than simply
Thanks Daniel for your suggestions.
What I have found are:
1) I'm assuming the key is good. A value of 1947143245 is returned.
2) I have set the permission of the shared memory (program.SCShared) to
777 octal (full read/write/execute access). The group and owner of the file
is my login
i have this script
?php
$x = 1;
$y = 2;
$a1 = array($x, $y);
$a2 = array($x, $y);
$a2[0] = 3;
print_r($a1);
print_r($a2);
?
i am expecting
Array
(
[0] = 3
[1] = 2
)
Array
(
[0] = 3
[1] = 2
)
while i m getting
Array
(
[0] = 1
[1] = 2
)
Array
(
[0] = 3
[1] = 2
)
Hi All,
are there any *disadvantages of setting session.auto_start to true in terms
of system resources or security or any other*. I have set this element to
true in php.ini as follows.
session.auto_start = 1.
Millions of thanks,
Sumit
WHY IS php-general@lists.php.net PUBLISHING USER EMAIL ON THE INTERNET:
http://www.google.co.uk/search?q=sumitphp5%40gmail.comsourceid=navclient-ffie=UTF-8rlz=1B3GGGL_enGB303GB303aq=t
On Fri, May 22, 2009 at 11:28 AM, Sumit Sharma sumitp...@gmail.com wrote:
Thanks to [0] = Ashley, [1] =Bruce,
Hi all
My server is centos 5.1 with php 5.1.6.
In my app I want apache to add user through sudo.
My sudoers file is:
%apache ALL=(ALL) NOPASSWD: ALL
%tony ALL=(ALL) NOPASSWD: ALL
My test.php í:
?php
$username=hixhix;
system(/usr/bin/sudo /usr/sbin/useradd -s /sbin/nologin -M
-Original Message-
From: Manuel Lemos [mailto:mle...@acm.org]
Sent: 22 May 2009 09:56
To: Paul M Foster
Cc: php-general@lists.php.net; Angelo Zanetti
Subject: Re: [PHP] Forms validation and creation- easier solution?
Hello,
on 05/20/2009 11:09 AM Paul M Foster said the following:
Sorry, but no one suggested a mailing list for CSS and the W3 Schools
Forum has problems.
This is the only reliable mailing list with professionals, so please
excuse my off-path question as it is rather urgent.
Why do I get completely different formatting with two identical classes?
I want to
On 22/5/09 12:49, PJ wrote:
Sorry, but no one suggested a mailing list for CSS and the W3 Schools
Forum has problems.
Actually, I did:
http://www.css-discuss.org/
Why do I get completely different formatting with two identical classes?
I want to change part of the formatting on just one
vuthecuong wrote:
Hi all
My server is centos 5.1 with php 5.1.6.
In my app I want apache to add user through sudo.
My sudoers file is:
%apache ALL=(ALL) NOPASSWD: ALL
%tony ALL=(ALL) NOPASSWD: ALL
My test.php í:
?php
$username=hixhix;
system(/usr/bin/sudo /usr/sbin/useradd -s /sbin/nologin -M
PJ wrote:
Sorry, but no one suggested a mailing list for CSS and the W3 Schools
Forum has problems.
This is the only reliable mailing list with professionals, so please
excuse my off-path question as it is rather urgent.
Why do I get completely different formatting with two identical classes?
I
On 22/5/09 13:02, Michael A. Peters wrote:
If I recall - it is illegal to end a css class name is a number.
Those are actually id names not class names, but it's not illegal in
either case.
HTML id attributes must follow this:
http://www.w3.org/TR/html401/types.html#type-id
XML id
Andrew Williams wrote:
WHY IS php-general@lists.php.net PUBLISHING USER EMAIL ON THE
INTERNET:
http://www.google.co.uk/search?q=sumitphp5%40gmail.comsourceid=navclient-ffie=UTF-8rlz=1B3GGGL_enGB303GB303aq=t
Isn't it common knowledge that places such as marc.info carry archives
of e.g.
Benjamin Hawkes-Lewis wrote:
On 22/5/09 12:49, PJ wrote:
Sorry, but no one suggested a mailing list for CSS and the W3 Schools
Forum has problems.
Actually, I did:
http://www.css-discuss.org/
My apologies... wasn't at the top of my attention at that point. :-[
Why do I get completely
Smart Security, version of virus signature
database 4096 (20090522) __
The message was checked by ESET Smart Security.
http://www.eset.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have no problem with it at least user email address should be removed off
the publication.
- Show quoted text -
On Fri, May 22, 2009 at 1:21 PM, Per Jessen p...@computer.org wrote:
Andrew Williams wrote:
WHY IS php-general@lists.php.net PUBLISHING USER EMAIL ON THE
INTERNET:
On 22/5/09 13:27, PJ wrote:
Ok, I have duplicate classes - #frame and #frame1.
Let's get our terminology straight:
ids are not classes; classes are not ids.
ids look like:
id=thing
and are selected like:
#thing
classes look like:
class=thing other-thing
and are selected like
.thing
kranthi wrote:
i have this script
?php
$x = 1;
$y = 2;
$a1 = array($x, $y);
$a2 = array($x, $y);
$a2[0] = 3;
print_r($a1);
print_r($a2);
?
i am expecting
Array
(
[0] = 3
[1] = 2
)
Array
(
[0] = 3
[1] = 2
)
while i m getting
Array
(
[0] = 1
from ESET Smart Security, version of virus signature
database 4096 (20090522) __
The message was checked by ESET Smart Security.
http://www.eset.com http://www.eset.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Best
thank you for the reply.
i had a small misunderstanding regarding variable reference...now its clear
but..
the output of
?php
$x = 1;
$a1 = array($x);
var_dump($a1);
?
is
array(1) {
[0]= int(1)
}
while for
?php
$x = 1;
$a1 = array($x);
var_dump($a1[0]);
?
it is
int(1)
can u tell me
angry?
/Per
--
Per Jessen, Zürich (18.3°C)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
__ Information from ESET Smart Security, version of virus signature
database 4096 (20090522) __
The message was checked
On Fri, 2009-05-22 at 07:44 -0500, Shawn McKenzie wrote:
kranthi wrote:
i have this script
?php
$x = 1;
$y = 2;
$a1 = array($x, $y);
$a2 = array($x, $y);
$a2[0] = 3;
print_r($a1);
print_r($a2);
?
i am expecting
Array
(
[0] = 3
[1] = 2
)
Array
(
On Fri, 2009-05-22 at 05:01 -0700, Michael A. Peters wrote:
Make damn sure you validate the $username variable whatever solution
you
end up using.
Yeah, I have a funny story along those lines. I was doing the same sort
of thing, but allowing it to change passwords for a user. Luckily it was
On Fri, 2009-05-22 at 12:59 +0100, Benjamin Hawkes-Lewis wrote:
On 22/5/09 12:49, PJ wrote:
Sorry, but no one suggested a mailing list for CSS and the W3 Schools
Forum has problems.
Actually, I did:
http://www.css-discuss.org/
Why do I get completely different formatting with two
On Fri, 2009-05-22 at 13:19 +0100, Benjamin Hawkes-Lewis wrote:
On 22/5/09 13:02, Michael A. Peters wrote:
If I recall - it is illegal to end a css class name is a number.
Those are actually id names not class names, but it's not illegal in
either case.
HTML id attributes must follow
On Fri, May 22, 2009 at 04:56:01AM -0300, Manuel Lemos wrote:
Hello,
on 05/20/2009 11:09 AM Paul M Foster said the following:
Both this class and Manuel Lemos' form generation class (from
phpclasses.org) will create beautiful forms for you. However, you may
find that the amount of
, Zürich (18.3°C)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
__ Information from ESET Smart Security, version of virus signature
database 4096 (20090522) __
The message was checked by ESET Smart Security.
http
On Fri, May 22, 2009 at 6:35 AM, Andrew Williams
andrew4willi...@gmail.com wrote:
WHY IS php-general@lists.php.net PUBLISHING USER EMAIL ON THE INTERNET:
http://www.google.co.uk/search?q=sumitphp5%40gmail.comsourceid=navclient-ffie=UTF-8rlz=1B3GGGL_enGB303GB303aq=t
On Fri, May 22, 2009 at
Andrew Williams wrote:
I have no problem with it at least user email address should be
removed off the publication.
- Show quoted text -
Don't worry, at e.g. marc.info the addresses have been appropriately
obscured.
/Per
--
Per Jessen, Zürich (20.4°C)
--
PHP General Mailing List
Hi
I am working on a project wherein i have to extract information from a
webpage and use it for processing. However that information becomes
available only when i manually select a part of the webpage and view its
source information (DOM source of selection ). Now i want this to be
automated .
Per Jessen wrote:
Andrew Williams wrote:
I have no problem with it at least user email address should be
removed off the publication.
- Show quoted text -
Don't worry, at e.g. marc.info the addresses have been appropriately
obscured.
Bottom line is when using a public list, if you don't
1. If you do turn on session.auto_start then you cannot put objects
into your sessions since the class definition has to be loaded before
starting the session in order to recreate the objects in your session.
but the official php manual suggests a workaround...
not related to SQl but u may want to look at
http://php-ids.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, May 22, 2009 at 08:02, Michael A. Peters mpet...@mac.com wrote:
If I recall - it is illegal to end a css class name is a number.
I'm not positive though.
You are correct. They just executed a man in Texas for this.
--
/Daniel P. Brown
daniel.br...@parasane.net ||
On Fri, 2009-05-22 at 10:37 -0400, Daniel Brown wrote:
On Fri, May 22, 2009 at 08:02, Michael A. Peters mpet...@mac.com wrote:
If I recall - it is illegal to end a css class name is a number.
I'm not positive though.
You are correct. They just executed a man in Texas for this.
--
http://www.jonasjohn.de/lab/htmlsql.htm ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, May 22, 2009 at 06:42, Andrew Williams
andrew4willi...@gmail.com wrote:
WHY IS php-general@lists.php.net PUBLISHING USER EMAIL ON THE INTERNET:
http://www.google.co.uk/search?q=sumitphp5%40gmail.comsourceid=navclient-ffie=UTF-8rlz=1B3GGGL_enGB303GB303aq=t
This has been the case
kranthi wrote:
thank you for the reply.
i had a small misunderstanding regarding variable reference...now its clear
but..
the output of
?php
$x = 1;
$a1 = array($x);
var_dump($a1);
?
is
array(1) {
[0]= int(1)
}
while for
?php
$x = 1;
$a1 = array($x);
The following code has been working for about 6 years. The only
change I am aware of is that now it is being served from a server
requiring SSL to access it.
header(Content-type: $type);
header(Content-length: $size);
header(Content-Disposition: attachment; filename=\$name\);
echo $data;
It
SSL occurs a layer above HTTP, so HTTP/1.1 is correct. HTTPS is not a
different data protocol, but a different transport protocol.
HTH,
Kyle
-Original Message-
From: Dee Ayy [mailto:dee@gmail.com]
Sent: Friday, May 22, 2009 11:05 AM
To: php-general@lists.php.net
Subject: [PHP] IE
Andrew Williams wrote:
WHY IS php-general@lists.php.net PUBLISHING USER EMAIL ON THE INTERNET:
http://www.google.co.uk/search?q=sumitphp5%40gmail.comsourceid=navclient-ffie=UTF-8rlz=1B3GGGL_enGB303GB303aq=t
Many private lists are redistributed via archive services. Not a lot we
can do about
On Fri, May 22, 2009 at 11:07 AM, kyle.smith kyle.sm...@inforonics.comwrote:
SSL occurs a layer above HTTP, so HTTP/1.1 is correct. HTTPS is not a
different data protocol, but a different transport protocol.
HTH,
Kyle
-Original Message-
From: Dee Ayy [mailto:dee@gmail.com]
Kyle,
Well I guess that is good news. But I don't trust these headers since
the filename is not being set. But that was even before this IE
issue.
Bastien,
I don't understand how I could save the file to the hard disk from
IE. But yes, I save the file (it gets saved as my_php_file.php on the
On Fri, May 22, 2009 at 11:04 AM, Dee Ayy dee@gmail.com wrote:
The following code has been working for about 6 years. The only
change I am aware of is that now it is being served from a server
requiring SSL to access it.
header(Content-type: $type);
header(Content-length: $size);
On Fri, May 22, 2009 at 11:21 AM, Dee Ayy dee@gmail.com wrote:
Kyle,
Well I guess that is good news. But I don't trust these headers since
the filename is not being set. But that was even before this IE
issue.
Bastien,
I don't understand how I could save the file to the hard disk
Hi gang:
While we're discussing what's legal in css, here's a couple of things
I've found about sessions.
I found that starting a session with a number doesn't work.
$myvar = $_SESSION['1myvar'];
I also found that dumping a session to a variable with the same name
may cause problems, such
On Fri, 2009-05-22 at 11:30 -0400, tedd wrote:
Hi gang:
While we're discussing what's legal in css, here's a couple of things
I've found about sessions.
I found that starting a session with a number doesn't work.
$myvar = $_SESSION['1myvar'];
I also found that dumping a session to a
Daniel Brown wrote:
On Fri, May 22, 2009 at 08:02, Michael A. Peters mpet...@mac.com wrote:
If I recall - it is illegal to end a css class name is a number.
I'm not positive though.
You are correct. They just executed a man in Texas for this.
Yes we did, however that infraction is
Moral of the story: if you use css classes ending in numbers, you're
probably a rapist and/or murderer.
On Fri, May 22, 2009 at 11:46 AM, Shawn McKenzie nos...@mckenzies.netwrote:
Daniel Brown wrote:
On Fri, May 22, 2009 at 08:02, Michael A. Peters mpet...@mac.com
wrote:
If I recall - it
On Fri, May 22, 2009 at 11:50 AM, Eddie Drapkin oorza...@gmail.com wrote:
Moral of the story: if you use css classes ending in numbers, you're
probably a rapist and/or murderer.
On Fri, May 22, 2009 at 11:46 AM, Shawn McKenzie nos...@mckenzies.net
wrote:
Daniel Brown wrote:
On Fri, May
At 4:52 PM +0100 5/22/09, Ashley Sheridan wrote:
On Fri, 2009-05-22 at 11:30 -0400, tedd wrote:
Hi gang:
While we're discussing what's legal in css, here's a couple of things
I've found about sessions.
I found that starting a session with a number doesn't work.
$myvar =
Date: Fri, 22 May 2009 11:55:55 -0400
From: phps...@gmail.com
To: oorza...@gmail.com
CC: nos...@mckenzies.net; php-general@lists.php.net
Subject: Re: [PHP] urgent CSS question
On Fri, May 22, 2009 at 11:50 AM, Eddie Drapkin oorza...@gmail.com wrote:
Moral of the story: if you use
On Fri, 2009-05-22 at 12:01 -0400, tedd wrote:
At 4:52 PM +0100 5/22/09, Ashley Sheridan wrote:
On Fri, 2009-05-22 at 11:30 -0400, tedd wrote:
Hi gang:
While we're discussing what's legal in css, here's a couple of things
I've found about sessions.
I found that starting a session
I went with this, modified from http://php.he.net/readfile docs example 1:
header('Content-Description: File Transfer');
header('Content-Type: '.$type);
header('Content-Disposition: attachment; filename='.basename($name));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
Acceptable results, but could be better.
basename works correctly for only Safari (filenames with spaces are correct).
FF truncates the name starting with the first space.
IE puts an underscore in place of a space.
urlencode puts a plus sign in place of a space for all 3 browsers.
But I've
Find the Computed Style and how it was inherited (cascaded).
In Safari, use Web Inspector.
In Firefox, use Firebug.
In Internet Explorer, use DebugBar.
All free as in $0.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, May 22, 2009 at 1:36 PM, Dee Ayy dee@gmail.com wrote:
Acceptable results, but could be better.
basename works correctly for only Safari (filenames with spaces are
correct).
FF truncates the name starting with the first space.
IE puts an underscore in place of a space.
or even just str_replace(' ' , '_', $name) consistent and works, no?
On Fri, May 22, 2009 at 2:21 PM, Bastien Koert phps...@gmail.com wrote:
On Fri, May 22, 2009 at 1:36 PM, Dee Ayy dee@gmail.com wrote:
Acceptable results, but could be better.
basename works correctly for only Safari
On Fri, May 22, 2009 at 1:24 PM, Eddie Drapkin oorza...@gmail.com wrote:
or even just str_replace(' ' , '_', $name) consistent and works, no?
Good one.
Put it back on me rather than the browser developers.
But that's in line with my requesting the user to use underscores.
I'll implement this
--
Tom Merriam
Cell: 512.639.5589 Home: 512.869.6401
twmerr...@gmail.com
On Fri, 2009-05-22 at 13:26 -0500, Dee Ayy wrote:
Thoughts?
--
what about just CamelCasing the name? no spaces.
--
Bastien
I've asked the user to use underscores, but they really shouldn't have
to. Safari gets it right.
I've found that
header(Content-Disposition:
On Fri, 2009-05-22 at 15:06 -0400, Eddie Drapkin wrote:
:(
On Fri, May 22, 2009 at 2:55 PM, Tom Merriam twmerr...@gmail.com wrote:
--
Tom Merriam
Cell: 512.639.5589 Home: 512.869.6401
twmerr...@gmail.com
I don't think this worked for him, else we wouldn't have got this
message :-/
Benjamin Hawkes-Lewis wrote:
On 22/5/09 13:27, PJ wrote:
Ok, I have duplicate classes - #frame and #frame1.
Let's get our terminology straight:
ids are not classes; classes are not ids.
ids look like:
id=thing
and are selected like:
#thing
classes look like:
class=thing
Hi,
I'm having problems with a chunk of 'rogue' code that does not perform as
expected (it does not pass the expected date, but an empty value). Most of
the time, it works - so I'm wondering whether it might be a browser issue.
(The latest failure occurred with Firfeox 3.0 browser on an NT 5.1
Andre Dubuc wrote:
Hi,
I'm having problems with a chunk of 'rogue' code that does not perform as
expected (it does not pass the expected date, but an empty value). Most of
the time, it works - so I'm wondering whether it might be a browser issue.
(The latest failure occurred with Firfeox 3.0
On 22/5/09 20:31, PJ wrote:
They may have different names, but does that change their functionality?
Potentially, yes!
A selector including #frame will no longer match if id is changed to
frame1, and vice versa.
They are identical except for the 1 in the title of the id. So, if I
change
Hello Everyone,
I would like to introduce you to a new framework called Raxan PDI that I've
being working on for the past couple of months.
Raxan PDI is an Open Source PHP Framework that seamlessly blends the
unique features of modern web application development into one seamless
interface.
Viva,
on 05/22/2009 10:36 AM Paul M Foster said the following:
IMHO, creating forms by hand is by no means simpler, especially if you
want to include browser side (Javascript) validation.
I mean, I am not masochist to create something that will give me more
work in the end to develop PHP
On May 20, 2009, at 2:03 AM, Angelo Zanetti wrote:
We have done quite a few projects and we are looking to find better
ways to
implementing forms.
This is fairly simple to roll-your-own.
I do it from metadata. I check MySQL metadata for data types,
lengths, and defaults. In addition, my
Benjamin Hawkes-Lewis wrote:
On 22/5/09 20:31, PJ wrote:
They may have different names, but does that change their functionality?
Potentially, yes!
A selector including #frame will no longer match if id is changed to
frame1, and vice versa.
They are identical except for the 1 in the title
Michael A. Peters wrote:
vuthecuong wrote:
Hi all
My server is centos 5.1 with php 5.1.6.
In my app I want apache to add user through sudo.
My sudoers file is:
%apache ALL=(ALL) NOPASSWD: ALL
%tony ALL=(ALL) NOPASSWD: ALL
My test.php í:
?php
$username=hixhix;
vuthecuong wrote:
Yeah I know my script don't care at all about security. I'm keeping it fot
the sake of simplicity.
After making it 'work', I will take a look seriously about security.
So, why it not create user for me?
thanks and regards
I'm not that familiar with sudo, but I suspect it
hi,
I have on one website boxes with information, pulled from mysql. the
content can be string, php code, url of other website or url to specific
file etc.
currently, I have something like this:
// connect to db
// mysql_query() to get box content and content_type
switch($content_type)
{
74 matches
Mail list logo