php-general Digest 22 May 2009 08:07:18 -0000 Issue 6134

2009-05-22 Thread php-general-digest-help
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:

Re: [PHP] Forms validation and creation- easier solution?

2009-05-22 Thread Manuel Lemos
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

Re: [PHP] Shared memory - linx and PHP newbie

2009-05-22 Thread Richard W
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

[PHP] reference variables

2009-05-22 Thread kranthi
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 )

[PHP] session.auto_start

2009-05-22 Thread Sumit Sharma
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

Re: [PHP] SECURITY PRECAUTION BEFORE SUBMITTING DATA IN DATABASE

2009-05-22 Thread Andrew Williams
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,

[PHP] apache user cannot execute useradd via sudo :(

2009-05-22 Thread vuthecuong
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

RE: [PHP] Forms validation and creation- easier solution?

2009-05-22 Thread Angelo Zanetti
-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:

[PHP] urgent CSS question

2009-05-22 Thread PJ
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

Re: [PHP] urgent CSS question

2009-05-22 Thread Benjamin Hawkes-Lewis
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

Re: [PHP] apache user cannot execute useradd via sudo :(

2009-05-22 Thread Michael A. Peters
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

Re: [PHP] urgent CSS question

2009-05-22 Thread Michael A. Peters
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

Re: [PHP] urgent CSS question

2009-05-22 Thread Benjamin Hawkes-Lewis
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

Re: [PHP] WHY ARE lists.php.ne USER EMAIL BEING PUBLISH ON THE INTERNET

2009-05-22 Thread Per Jessen
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.

Re: [PHP] urgent CSS question

2009-05-22 Thread PJ
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

RE: [PHP] WHY ARE lists.php.ne USER EMAIL BEING PUBLISH ON THE INTERNET

2009-05-22 Thread HallMarc Websites
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

Re: [PHP] WHY ARE lists.php.ne USER EMAIL BEING PUBLISH ON THE INTERNET

2009-05-22 Thread Andrew Williams
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:

Re: [PHP] urgent CSS question

2009-05-22 Thread Benjamin Hawkes-Lewis
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

[PHP] Re: reference variables

2009-05-22 Thread Shawn McKenzie
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

Re: [PHP] WHY ARE lists.php.ne USER EMAIL BEING PUBLISH ON THE INTERNET

2009-05-22 Thread HallMarc Websites
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

Re: [PHP] Re: reference variables

2009-05-22 Thread kranthi
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

Re: [PHP] WHY ARE lists.php.ne USER EMAIL BEING PUBLISH ON THE INTERNET

2009-05-22 Thread help
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

Re: [PHP] Re: reference variables

2009-05-22 Thread Ashley Sheridan
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 (

Re: [PHP] apache user cannot execute useradd via sudo :(

2009-05-22 Thread Ashley Sheridan
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

Re: [PHP] urgent CSS question

2009-05-22 Thread Ashley Sheridan
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

Re: [PHP] urgent CSS question

2009-05-22 Thread Ashley Sheridan
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

Re: [PHP] Forms validation and creation- easier solution?

2009-05-22 Thread Paul M Foster
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

Re: [PHP] WHY ARE lists.php.ne USER EMAIL BEING PUBLISH ON THE INTERNET

2009-05-22 Thread Matty Sarro
, 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

Re: [PHP] SECURITY PRECAUTION BEFORE SUBMITTING DATA IN DATABASE

2009-05-22 Thread Andrew Ballard
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

Re: [PHP] Why are lists.php.net user email being publish on the internet

2009-05-22 Thread Per Jessen
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

[PHP] DOM Source of Selection

2009-05-22 Thread harihara krishnan
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 .

Re: [PHP] Why are lists.php.net user email being publish on the internet

2009-05-22 Thread Michael A. Peters
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

Re: [PHP] session.auto_start

2009-05-22 Thread kranthi
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...

Re: [PHP] SECURITY PRECAUTION BEFORE SUBMITTING DATA IN DATABASE

2009-05-22 Thread kranthi
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

Re: [PHP] urgent CSS question

2009-05-22 Thread Daniel Brown
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 ||

Re: [PHP] urgent CSS question

2009-05-22 Thread Ashley Sheridan
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. --

Re: [PHP] DOM Source of Selection

2009-05-22 Thread kranthi
http://www.jonasjohn.de/lab/htmlsql.htm ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] WHY ARE lists.php.ne USER EMAIL BEING PUBLISH ON THE INTERNET

2009-05-22 Thread Daniel Brown
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

Re: [PHP] Re: reference variables

2009-05-22 Thread Shawn McKenzie
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);

[PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Dee Ayy
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

RE: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread kyle.smith
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

Re: [PHP] WHY ARE lists.php.ne USER EMAIL BEING PUBLISH ON THE INTERNET

2009-05-22 Thread Lester Caine
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

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Bastien Koert
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]

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Dee Ayy
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

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Andrew Ballard
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);

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Bastien Koert
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

[PHP] Legal $_SESSION names

2009-05-22 Thread tedd
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

Re: [PHP] Legal $_SESSION names

2009-05-22 Thread Ashley Sheridan
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

Re: [PHP] urgent CSS question

2009-05-22 Thread Shawn McKenzie
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

Re: [PHP] urgent CSS question

2009-05-22 Thread Eddie Drapkin
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

Re: [PHP] urgent CSS question

2009-05-22 Thread Bastien Koert
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

Re: [PHP] Legal $_SESSION names

2009-05-22 Thread tedd
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 =

RE: [PHP] urgent CSS question

2009-05-22 Thread abdulazeez alugo
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

Re: [PHP] Legal $_SESSION names

2009-05-22 Thread Ashley Sheridan
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

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Dee Ayy
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');

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Dee Ayy
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

Re: [PHP] urgent CSS question

2009-05-22 Thread Dee Ayy
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

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Bastien Koert
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.

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Eddie Drapkin
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

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Dee Ayy
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

[PHP] Unsubscribe from php-general@lists.php.net

2009-05-22 Thread Tom Merriam
-- Tom Merriam Cell: 512.639.5589 Home: 512.869.6401 twmerr...@gmail.com

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Ashley Sheridan
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:

Re: [PHP] Unsubscribe from php-general@lists.php.net

2009-05-22 Thread Ashley Sheridan
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 :-/

Re: [PHP] urgent CSS question

2009-05-22 Thread PJ
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

[PHP] Rogue 'if - elseif' code

2009-05-22 Thread Andre Dubuc
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

[PHP] Re: Rogue 'if - elseif' code

2009-05-22 Thread Nathan Rixham
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

Re: [PHP] urgent CSS question

2009-05-22 Thread Benjamin Hawkes-Lewis
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

[PHP] A Rich Ajax Application Frameowrk for PHP

2009-05-22 Thread Raymond Irving
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.

Re: [PHP] Forms validation and creation- easier solution?

2009-05-22 Thread Manuel Lemos
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

Re: [PHP] Forms validation and creation- easier solution?

2009-05-22 Thread phphelp -- kbk
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

Re: [PHP] urgent CSS question

2009-05-22 Thread PJ
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

Re: [PHP] apache user cannot execute useradd via sudo :(

2009-05-22 Thread vuthecuong
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;

Re: [PHP] apache user cannot execute useradd via sudo :(

2009-05-22 Thread Michael A. Peters
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

[PHP] How to assign eval() to variable?

2009-05-22 Thread Afan Pasalic
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) {