Re: [PHP] is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

2012-05-31 Thread Govinda
> > You need to get better tools. I found this with Notepad++ for Windows > searching "case" within *.php files filter within the root directory > of the extracted zip/tarball: > > > H:\data\Downloads\dev\PHP\htmlpurifier-4.4.0\library\HTMLPurifier\AttrDef\CSS\Font.php > (6 hits) > Line

Re: [PHP] is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

2012-05-31 Thread Tommy Pham
On Thu, May 31, 2012 at 10:48 PM, Tommy Pham wrote: > On Thu, May 31, 2012 at 10:33 PM, Govinda > wrote: >> Hi guys >> >> anyone here using HTMLpurifier and CSStidy together?  (like e.g. to allow >> users to create their own external style sheets via form input) >> >> ...for example, in the way

Re: [PHP] is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

2012-05-31 Thread Tommy Pham
On Thu, May 31, 2012 at 10:33 PM, Govinda wrote: > Hi guys > > anyone here using HTMLpurifier and CSStidy together?  (like e.g. to allow > users to create their own external style sheets via form input) > > ...for example, in the way this post's answer explains how to use > HTMLpurifier and CSSt

[PHP] is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

2012-05-31 Thread Govinda
Hi guys anyone here using HTMLpurifier and CSStidy together? (like e.g. to allow users to create their own external style sheets via form input) ...for example, in the way this post's answer explains how to use HTMLpurifier and CSStidy together: http://stackoverflow.com/questions/3241616/ If

[PHP] Re: cyberweaponry

2012-05-31 Thread Ross McKay
On Thu, 31 May 2012 13:21:07 -0400, Tedd Sperling wrote: >[...] >I watched a interview today where an security expert claimed that >the Flame Virus was written in a scripted language named lua >(http://www.lua.org/). That's surprising... I'm intrigued, can you supply a link? >He said that this

Re: [PHP] Uploading large files with HTTP_Request class

2012-05-31 Thread Matijn Woudt
On Thu, May 31, 2012 at 12:28 PM, Voß, Marko wrote: > Hello, > > I need to perform uploading of large files using the HTTP_Request class: > > http://pear.php.net/manual/package.http.http-request.php > > I am *not* using this one: > > http://php.net/manual/en/class.httprequest.php > > > The HTTP_Re

Re: [PHP] Uploading large files with HTTP_Request class

2012-05-31 Thread tamouse mailing lists
On Thu, May 31, 2012 at 5:28 AM, Voß, Marko wrote: > I need to perform uploading of large files using the HTTP_Request class: > http://pear.php.net/manual/package.http.http-request.php > The HTTP_Request class support the following functions: > setBody() and addFile() Reading the above, and check

Re: [PHP] Uploading large files with HTTP_Request class

2012-05-31 Thread tamouse mailing lists
On Thu, May 31, 2012 at 5:28 AM, Voß, Marko wrote: > Hello, > > I need to perform uploading of large files using the HTTP_Request class: > > http://pear.php.net/manual/package.http.http-request.php > > I am *not* using this one: > > http://php.net/manual/en/class.httprequest.php > > > The HTTP_Req

Re: [PHP] cyberweaponry

2012-05-31 Thread tamouse mailing lists
On Thu, May 31, 2012 at 12:21 PM, Tedd Sperling wrote: > I watched a interview today where an security expert claimed that the Flame > Virus was written in a scripted language named lua (http://www.lua.org/). Is the interview online someplace? (Youtube?) -- PHP General Mailing List (http://www

Re: [PHP] Re: Function size

2012-05-31 Thread tamouse mailing lists
On Tue, May 29, 2012 at 2:52 AM, Tony Marston wrote: > On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: >>  A rule of thumb is no more than 50 lines per >> function, most much less. Back in the day when we didn't have nifty >> gui screens and an 24 line terminals (yay green on black!), if

Re: [PHP] Uploading large files with HTTP_Request class

2012-05-31 Thread Jim Lucas
On 05/31/2012 11:34 AM, Bastien Koert wrote: On Thu, May 31, 2012 at 12:24 PM, Jim Lucas wrote: On 05/31/2012 03:28 AM, Voß, Marko wrote: Hello, I need to perform uploading of large files using the HTTP_Request class: http://pear.php.net/manual/package.http.http-request.php How am I suppos

Re: [PHP] Uploading large files with HTTP_Request class

2012-05-31 Thread Bastien Koert
On Thu, May 31, 2012 at 12:24 PM, Jim Lucas wrote: > On 05/31/2012 03:28 AM, Voß, Marko wrote: >> >> Hello, >> >> I need to perform uploading of large files using the HTTP_Request class: >> >> http://pear.php.net/manual/package.http.http-request.php >> >> How am I supposed to do that with this cla

RE: [PHP] cyberweaponry

2012-05-31 Thread HallMarc Websites
> -Original Message- > From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of > Daniel Brown > Sent: Thursday, May 31, 2012 1:52 PM > To: Tedd Sperling > Cc: php-general General > Subject: Re: [PHP] cyberweaponry > > On Thu, May 31, 2012 at 1:21 PM, Tedd Sperling wrote: > > > >

Re: [PHP] cyberweaponry

2012-05-31 Thread Daniel Brown
On Thu, May 31, 2012 at 1:21 PM, Tedd Sperling wrote: > > So, my question to the group -- has PHP produced any viruses? If not, could > it? If so, can anyone elaborate on the details? To my own memory, viruses by definition, no. However, with that said, there's tons of PHP malware, includin

RE: [PHP] cyberweaponry

2012-05-31 Thread HallMarc Websites
> -Original Message- > From: Tedd Sperling [mailto:t...@sperling.com] > Sent: Thursday, May 31, 2012 1:21 PM > To: php-general General > Subject: [PHP] cyberweaponry > > Hi gang: > > This is a little early for Friday's "Open Comment" day, but my memory is > increasingly more short term an

Re: [PHP] cyberweaponry

2012-05-31 Thread Joseph Moniz
There was the Never Ever No Sanity worm ( http://news.cnet.com/Net-worm-using-Google-to-spread/2100-7349_3-5499725.html ). One variant of it was written in php the other in perl. - Joseph Moniz On Thu, May 31, 2012 at 10:21 AM, Tedd Sperling wrote: > Hi gang: > > This is a little early for Fri

[PHP] cyberweaponry

2012-05-31 Thread Tedd Sperling
Hi gang: This is a little early for Friday's "Open Comment" day, but my memory is increasingly more short term and by tomorrow I might forget -- so, here goes. I watched a interview today where an security expert claimed that the Flame Virus was written in a scripted language named lua (http://

RE: [PHP] [foreach] - is it proper to...

2012-05-31 Thread Mackintosh, Mike
-Original Message- From: Tedd Sperling [mailto:t...@sperling.com] Sent: Thursday, May 31, 2012 1:01 PM To: php-general General Cc: Tristan Subject: Re: [PHP] [foreach] - is it proper to... On May 31, 2012, at 12:48 PM, Tristan wrote: > I'm using Zend Studio and it had a suggestion that I

Re: [PHP] [foreach] - is it proper to...

2012-05-31 Thread Tedd Sperling
On May 31, 2012, at 12:48 PM, Tristan wrote: > I'm using Zend Studio and it had a suggestion that I do a foreach as such > > foreach($entry as $entry){ > > } > > instead of > > foreach($entries as $entry){ > > } > > they both seem to work but, from a readability standpoint and just makes > m

Re: [PHP] [foreach] - is it proper to...

2012-05-31 Thread Tristan
Thanks, well that's why I was asking because we just let a guy go for doing stuff like that among other obvious bad coding issues and terrible logic. The guy didn't know what he was doing but, I wanted to make sure I wasn't out of my mind by pointing that out. I am new to Zend Studio so I don't kno

Re: [PHP] passing /n into query ERROR

2012-05-31 Thread David OBrien
On Thu, May 31, 2012 at 12:55 PM, David OBrien wrote: > On Thu, May 31, 2012 at 12:46 PM, Don Wieland wrote: > >> I have a query below. When I try to run it with PHP it errors: >> >> DATABASE_ERROR: You have an error in your SQL syntax; check the manual >> that corresponds to your MySQL server v

RE: [PHP] passing /n into query ERROR

2012-05-31 Thread Mackintosh, Mike
-Original Message- From: Don Wieland [mailto:d...@pointmade.net] Sent: Thursday, May 31, 2012 12:46 PM To: php-general@lists.php.net Subject: [PHP] passing /n into query ERROR I have a query below. When I try to run it with PHP it errors: DATABASE_ERROR: You have an error in your SQL syn

Re: [PHP] passing /n into query ERROR

2012-05-31 Thread David OBrien
On Thu, May 31, 2012 at 12:46 PM, Don Wieland wrote: > I have a query below. When I try to run it with PHP it errors: > > DATABASE_ERROR: You have an error in your SQL syntax; check the manual > that corresponds to your MySQL server version for the right syntax to use > near 'LINES TERMINATED BY

Re: [PHP] [foreach] - is it proper to...

2012-05-31 Thread Daniel Brown
On Thu, May 31, 2012 at 12:48 PM, Tristan wrote: > I'm using Zend Studio and it had a suggestion that I do a foreach as such > > foreach($entry as $entry){ > > } which would be the same as `foreach ($entry)` --- a syntax option that doesn't exist, but would be ideal. > foreach($entries

[PHP] [foreach] - is it proper to...

2012-05-31 Thread Tristan
I'm using Zend Studio and it had a suggestion that I do a foreach as such foreach($entry as $entry){ } instead of foreach($entries as $entry){ } they both seem to work but, from a readability standpoint and just makes more sense to me to use method 2. Is it bad practice to go with the 1st met

[PHP] passing /n into query ERROR

2012-05-31 Thread Don Wieland
I have a query below. When I try to run it with PHP it errors: DATABASE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LINES TERMINATED BY '\n'' at line 38 IN BUT where I copy the echoed query and

Re: [PHP] Dynamically Populating Multi-Dimensional Arrays

2012-05-31 Thread shiplu
On Thursday, May 31, 2012, Mackintosh, Mike wrote: > Hi All, > > > > I was working on a project and needed to dynamically populate a > multi-dimensional array based on the size of an array. The script does > exactly what I want it to do, but I can't imagine that it's done in the > best way. I used

Re: [PHP] Uploading large files with HTTP_Request class

2012-05-31 Thread Jim Lucas
On 05/31/2012 03:28 AM, Voß, Marko wrote: Hello, I need to perform uploading of large files using the HTTP_Request class: http://pear.php.net/manual/package.http.http-request.php How am I supposed to do that with this class? Are there any alternatives, which do not force me to add new PHP dep

Re: [PHP] Differences between PHP on LAMP and PHP on Windows Servers

2012-05-31 Thread Bastien Koert
On Thu, May 31, 2012 at 9:38 AM, Matijn Woudt wrote: > On Thu, May 31, 2012 at 3:29 PM, Gates, Jeff wrote: >> From: Matijn Woudt mailto:tijn...@gmail.com>> >> Date: Wednesday, May 23, 2012 3:59 PM >> To: "a...@ashleysheridan.co.uk" >> mailto:a...@ashleysheridan.

[PHP] Dynamically Populating Multi-Dimensional Arrays

2012-05-31 Thread Mackintosh, Mike
Hi All, I was working on a project and needed to dynamically populate a multi-dimensional array based on the size of an array. The script does exactly what I want it to do, but I can't imagine that it's done in the best way. I used an eval to construct the array based on the number of values pa

Re: [PHP] Differences between PHP on LAMP and PHP on Windows Servers

2012-05-31 Thread Matijn Woudt
On Thu, May 31, 2012 at 3:29 PM, Gates, Jeff wrote: > From: Matijn Woudt mailto:tijn...@gmail.com>> > Date: Wednesday, May 23, 2012 3:59 PM > To: "a...@ashleysheridan.co.uk" > mailto:a...@ashleysheridan.co.uk>> > Cc: Jeff Gates mailto:gat...@si.edu>>, > "php-gen

Re: [PHP] Differences between PHP on LAMP and PHP on Windows Servers

2012-05-31 Thread Gates, Jeff
From: Matijn Woudt mailto:tijn...@gmail.com>> Date: Wednesday, May 23, 2012 3:59 PM To: "a...@ashleysheridan.co.uk" mailto:a...@ashleysheridan.co.uk>> Cc: Jeff Gates mailto:gat...@si.edu>>, "php-general@lists.php.net" mailto:php

[PHP] Uploading large files with HTTP_Request class

2012-05-31 Thread Voß , Marko
Hello, I need to perform uploading of large files using the HTTP_Request class: http://pear.php.net/manual/package.http.http-request.php I am *not* using this one: http://php.net/manual/en/class.httprequest.php The HTTP_Request class support the following functions: setBody() and addFile()

[PHP] LAMP appliance

2012-05-31 Thread Jordi Massaguer Pla
Hi, I've created a first version of LAMP appliance with SUSEStudio that includes phpmyadmin, webalizer and a bunch of php modules. I am contacting you because I would love to hear some feedback from php developers. A part from phpmyadmin and webalizer, what other tools do you think should