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 c

Re: [PHP] -less layouts; Ideas welcome

2009-05-22 Thread Manuel Lemos
Hello, Jim Lucas wrote: > Since this has been a topic of dicussion, I figured I would add my > thoughts. > > I have been toying with the idea of doing a -less layouts > involving tabular data, calendars, etc... > > Recent threads have finally made me do it. Let me know what you think. > > ht

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 ('eclips

[PHP] reference variables

2009-05-22 Thread kranthi
i have this script 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 ) any ideas why this is happening?? or am i missing something..? the same is the case when i rep

[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

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

2009-05-22 Thread Sumit Sharma
Thanks to [0] => Ashley, [1] =>Bruce, [2] => Michael, [3] => Shawn, [4] => Eddie and php-general list for all your support from bottom of my heart. Now it seems as if I will be able to design my project more secured than before. If you get any other idea please suggest me. 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.com&sourceid=navclient-ff&ie=UTF-8&rlz=1B3GGGL_enGB303GB303&aq=t On Fri, May 22, 2009 at 11:28 AM, Sumit Sharma wrote: > Thanks to [0] => Ashley, [1] =>Bruce, [2] => Michae

[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 í: http://www.nabble.com/apache-user-cannot-execute-useradd-via-sudo-%3A%28-tp23668764p23668764.html Sen

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: > Bot

[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 chan

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 page

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 í: That's not a very secure sudoers file. But you probably don't want to use sudo

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" attr

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.com&sourceid=navclient-ff&ie=UTF-8&rlz=1B3GGGL_enGB303GB303&aq=t > Isn't it common knowledge that places such as marc.info carry archives of

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 comp

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

2009-05-22 Thread HallMarc Websites
hp.net/unsub.php __ Information from ESET 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 wrote: > Andrew Williams wrote: > > > WHY IS php-general@lists.php.net PUBLISHING USER EMAIL ON THE > > INTERNET: > > > > > > http://www.

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 > > $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

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

2009-05-22 Thread HallMarc Websites
t/) 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://www.eset.com <http://www.eset.com/> -- PHP General Mailing

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 is array(1) { [0]=> &int(1) } while for it is int(1) can u tell me what & signifies here??

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

2009-05-22 Thread help
/) > 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://www.eset.com > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Best Wishes A Williams

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 > > > > > $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] =>

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 wa

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

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

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

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

2009-05-22 Thread Matty Sarro
at gmane.org > <http://gmane.org/> . > > Why are you writing in capitals - are you 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 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 Wishes > A Williams > > > >

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 wrote: > WHY IS php-general@lists.php.net PUBLISHING USER EMAIL ON THE INTERNET: > > http://www.google.co.uk/search?q=sumitphp5%40gmail.com&sourceid=navclient-ff&ie=UTF-8&rlz=1B3GGGL_enGB303GB303&aq=t > > On Fri, May 22, 2009 at 11:28 AM, Sumit Shar

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 (http

[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 . Is

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 wan

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... http://in2.php.net/manual/en/intro.s

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 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.br...@parasane.net || danbr...@php.net http://www.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 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 wrote: > WHY IS php-general@lists.php.net PUBLISHING USER EMAIL ON THE INTERNET: > > http://www.google.co.uk/search?q=sumitphp5%40gmail.com&sourceid=navclient-ff&ie=UTF-8&rlz=1B3GGGL_enGB303GB303&aq=t This has been the case for many, many years,

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 > > $x = 1; > $a1 = array(&$x); > var_dump($a1); > ?> > > is > array(1) { > [0]=> &int(1) > } > > while for > > $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;

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 ca

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.com&sourceid=navclient-ff&ie=UTF-8&rlz=1B3GGGL_enGB303GB303&aq=t Many private lists are redistributed via archive services. Not a lot we can do abo

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 wrote: > 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

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 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"); > header("Cont

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 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" from > IE.

[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 a

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 ses

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 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 what led t

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 wrote: > Daniel Brown wrote: > > On Fri, May 22, 2009 at 08:02, Michael A. Peters > wrote: > >> If I recall - it is illegal to end a css class

Re: [PHP] urgent CSS question

2009-05-22 Thread Bastien Koert
On Fri, May 22, 2009 at 11:50 AM, Eddie Drapkin 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 >wrote: > > > Daniel Brown wrote: > > > On Fri, May 22, 2009 at 08:02, Michael A

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 = $_SESSION['1myvar

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 wrote: > > > Moral of the story: if you use css class

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 tha

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'); header('

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 alway

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 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. > > urlencode puts a p

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 wrote: > On Fri, May 22, 2009 at 1:36 PM, Dee Ayy wrote: > > > Acceptable results, but could be better. > > > > basename works correctly for only Safari (filenames with spaces are

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

2009-05-22 Thread Dee Ayy
>> 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. -- 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 Dee Ayy
On Fri, May 22, 2009 at 1:24 PM, Eddie Drapkin 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 str_replace. Thank

[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] Unsubscribe from php-general@lists.php.net

2009-05-22 Thread Eddie Drapkin
:( On Fri, May 22, 2009 at 2:55 PM, Tom Merriam wrote: > -- > 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("Cont

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 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 :-/ Tom,

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: > > c

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

2009-05-22 Thread Dee Ayy
That's what I had in my first post. What are the rest of your headers? This is what is now deployed and I consider this issue resolved, but allowing spaces in the filename across IE, FF, and Safari browsers would be the real solution. It's untested on other browsers: header('Content-Description

Re: [PHP] urgent CSS question

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

Re: [PHP] urgent CSS question

2009-05-22 Thread Dee Ayy
I had an id killing me the other day. Turned out I was going blind. A different font or glasses would have helped me see that I was not using the id I thought I was. Just a thought. The following are 5 different characters: iIl1! Also, the debug tools I mentioned should confirm that they have

[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 cha

[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. To

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 develo

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

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 í: >> > $username="hixhi

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 m

[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) { c

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

2009-05-22 Thread oorza2k5
short hack, assuming your eval echo's out to the browser (which I can't see how else you'd expect something to 'return' from an eval'd statement ob_start(); eval($foo); $result = ob_get_clean(); On May 23, 2009 1:46am, Afan Pasalic wrote: hi, I have on one website boxes with information, pu

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

2009-05-22 Thread Afan Pasalic
short hack works like a charm! :-) thanks! afan oorza...@gmail.com wrote: short hack, assuming your eval echo's out to the browser (which I can't see how else you'd expect something to 'return' from an eval'd statement ob_start(); eval($foo); $result = ob_get_clean(); On May 23, 2009 1:4

[PHP] fgets function for very large files

2009-05-22 Thread shahrzad khorrami
hi all, I have a csv file with more than 100,000 lines. I want to insert each line as a record in a database. but for the reason of very number of lines, I put a button with caption Next, when we click on it, 1000 line will insert into db and then again click next button and insert next 1000 line

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

2009-05-22 Thread Ashley Sheridan
On Fri, 2009-05-22 at 14:41 -0500, Dee Ayy wrote: > That's what I had in my first post. What are the rest of your headers? > > This is what is now deployed and I consider this issue resolved, but > allowing spaces in the filename across IE, FF, and Safari browsers > would be the real solution. I

Re: [PHP] fgets function for very large files

2009-05-22 Thread Ashley Sheridan
On Sat, 2009-05-23 at 10:41 +0430, shahrzad khorrami wrote: > hi all, > > I have a csv file with more than 100,000 lines. I want to insert each line > as a record in a > database. but for the reason of very number of lines, > I put a button with caption Next, when we click on it, 1000 line will >