Re: [PHP] how do I use php://memory?

2010-01-29 Thread Mari Masuda
On Jan 29, 2010, at 10:57 PM, Mari Masuda wrote: > > On Jan 29, 2010, at 4:38 PM, Nathan Nobbe wrote: > >> On Fri, Jan 29, 2010 at 5:35 PM, Mari Masuda >> wrote: >> Hello, >> >> I have a function that uses tidy to attempt to clean up a bunch of crappy >> HTML that I inherited. In order to

Re: [PHP] how do I use php://memory?

2010-01-29 Thread Mari Masuda
On Jan 29, 2010, at 4:38 PM, Nathan Nobbe wrote: > On Fri, Jan 29, 2010 at 5:35 PM, Mari Masuda wrote: > Hello, > > I have a function that uses tidy to attempt to clean up a bunch of crappy > HTML that I inherited. In order to use tidy, I write the crappy HTML to a > temporary file on disk,

Re: [PHP] Re: how do I use php://memory?

2010-01-29 Thread Daniel P. Brown
(Typing from the DROID, so forgive the top-posting.) Shawn, would you take a few moments to submit this as a bug at http://bugs.php.net/? I know you well enough that, if you say the docs suck, they probably do. On Jan 29, 2010 10:47 PM, "Shawn McKenzie" wrote: Eric Lee wrote: > On Sat, Jan 30,

Re: [PHP] Re: how do I use php://memory?

2010-01-29 Thread Shawn McKenzie
Eric Lee wrote: > On Sat, Jan 30, 2010 at 9:00 AM, Shawn McKenzie wrote: > >> Mari Masuda wrote: >> >>> Has anyone ever successfully used php://memory before? If so, what >>> can I do to use it in my code? Thank you. >> No, but I was intrigued to try it, so I tested this: >> >> $text = 'Some tex

Re: [PHP] In need of PHP to JS collapsable array printing routine?

2010-01-29 Thread Jochem Maas
Op 1/30/10 12:54 AM, Daevid Vincent schreef: > I'm wondering if anyone has a PHP debug-type routine that will take a PHP > array and output it to the web page, but make all the dimensions of the > array collapsable, ideally showing each sub-key (or index) as the name to > click to expand it again.

Re: [PHP] Sessions across subdomains

2010-01-29 Thread Jochem Maas
Op 1/30/10 2:25 AM, Ben Miller schreef: > Hi, I've always thought that session data was subdomain specific and would > not carry over between http://www.mydomain.com and > https://secure.mydomain.com, but it seems to be working for me now. Can I > rely on this and post from http://www.mydomain.com

Re: [PHP] Pointers For Newbies, Reminders For Oldies

2010-01-29 Thread clancy_1
On Thu, 28 Jan 2010 10:02:56 -0500, rob...@interjinn.com (Robert Cummings) wrote: >I don't know what you guys are doing wrong but the following should be >the correct behaviour: > > >function get_memory( $init=false ) >{ > static $base = null; > if( $base === null || $init ) > { >

Re: [PHP] Creating an Entire .html page with PHP

2010-01-29 Thread clancy_1
On Thu, 28 Jan 2010 16:23:05 -0500, pa...@quillandmouse.com (Paul M Foster) wrote: >On Fri, Jan 29, 2010 at 08:17:34AM +1100, clanc...@cybec.com.au wrote: > >> On Thu, 28 Jan 2010 21:10:42 +0100, rene7...@gmail.com (Rene Veerman) wrote: >> >> >On Thu, Jan 28, 2010 at 12:31 AM, wrote: >> >> On

Re: [PHP] Creating an Entire .html page with PHP

2010-01-29 Thread Ashley Sheridan
On Sat, 2010-01-30 at 12:34 +1100, clanc...@cybec.com.au wrote: > On Thu, 28 Jan 2010 13:39:31 -0800, mpet...@mac.com ("Michael A. Peters") > wrote: > > >clanc...@cybec.com.au wrote: > >> On Thu, 28 Jan 2010 21:10:42 +0100, rene7...@gmail.com (Rene Veerman) > >> wrote: > >> > >>> On Thu, Jan 2

Re: [PHP] Creating an Entire .html page with PHP

2010-01-29 Thread clancy_1
On Thu, 28 Jan 2010 13:39:31 -0800, mpet...@mac.com ("Michael A. Peters") wrote: >clanc...@cybec.com.au wrote: >> On Thu, 28 Jan 2010 21:10:42 +0100, rene7...@gmail.com (Rene Veerman) wrote: >> >>> On Thu, Jan 28, 2010 at 12:31 AM, wrote: On Wed, 27 Jan 2010 10:21:00 -0800, deal...@gmail.c

[PHP] Sessions across subdomains

2010-01-29 Thread Ben Miller
Hi, I've always thought that session data was subdomain specific and would not carry over between http://www.mydomain.com and https://secure.mydomain.com, but it seems to be working for me now. Can I rely on this and post from http://www.mydomain.com to https://secure.mydomain.com and simply pass

Re: [PHP] Re: how do I use php://memory?

2010-01-29 Thread Eric Lee
On Sat, Jan 30, 2010 at 9:00 AM, Shawn McKenzie wrote: > Mari Masuda wrote: > > > Has anyone ever successfully used php://memory before? If so, what > > can I do to use it in my code? Thank you. > > No, but I was intrigued to try it, so I tested this: > > $text = 'Some text.'; > file_put_content

Re: [PHP] In need of PHP to JS collapsable array printing routine?

2010-01-29 Thread Ashley Sheridan
On Fri, 2010-01-29 at 15:54 -0800, Daevid Vincent wrote: > I'm wondering if anyone has a PHP debug-type routine that will take a PHP > array and output it to the web page, but make all the dimensions of the > array collapsable, ideally showing each sub-key (or index) as the name to > click to exp

Re: [PHP] Ideas please -- take query results --- output to image

2010-01-29 Thread Ashley Sheridan
On Fri, 2010-01-29 at 22:33 +0100, Rene Veerman wrote: > other idea: s, and plain old links. > > > On Fri, Jan 29, 2010 at 10:32 PM, Rene Veerman wrote: > > flash(develop.org) perhaps? or does that also fall under their > > no-active-x policy? > > > > On Fri, Jan 29, 2010 at 9:17 PM, Haig Davis

[PHP] Re: how do I use php://memory?

2010-01-29 Thread Shawn McKenzie
Mari Masuda wrote: > Has anyone ever successfully used php://memory before? If so, what > can I do to use it in my code? Thank you. No, but I was intrigued to try it, so I tested this: $text = 'Some text.'; file_put_contents('php://memory', $text); echo file_get_contents('php://memory'); And

Re: [PHP] how do I use php://memory?

2010-01-29 Thread Jochem Maas
Op 1/30/10 1:35 AM, Mari Masuda schreef: > Hello, > > I have a function that uses tidy to attempt to clean up a bunch of crappy > HTML that I inherited. In order to use tidy, I write the crappy HTML to a > temporary file on disk, run tidy, and extract and return the clean(er) HTML. > The prog

Re: [PHP] how do I use php://memory?

2010-01-29 Thread Nathan Nobbe
On Fri, Jan 29, 2010 at 5:35 PM, Mari Masuda wrote: > Hello, > > I have a function that uses tidy to attempt to clean up a bunch of crappy > HTML that I inherited. In order to use tidy, I write the crappy HTML to a > temporary file on disk, run tidy, and extract and return the clean(er) HTML. >

[PHP] how do I use php://memory?

2010-01-29 Thread Mari Masuda
Hello, I have a function that uses tidy to attempt to clean up a bunch of crappy HTML that I inherited. In order to use tidy, I write the crappy HTML to a temporary file on disk, run tidy, and extract and return the clean(er) HTML. The program itself works fine but with all of the disk access

Re: [PHP] In need of PHP to JS collapsable array printing routine?

2010-01-29 Thread TG
Take a look at the Firebug addon for Firefox and another addon called "FirePHP" or "FireConsole" (the new name coming soon). It lets you output PHP debugging data to HTTP headers that show up in your Firebug console. I believe it supports collapsable tree type output. -TG - Original Mess

[PHP] In need of PHP to JS collapsable array printing routine?

2010-01-29 Thread Daevid Vincent
I'm wondering if anyone has a PHP debug-type routine that will take a PHP array and output it to the web page, but make all the dimensions of the array collapsable, ideally showing each sub-key (or index) as the name to click to expand it again. I'm dealing with some rather huge datasets in multi

Re: [PHP] Good source for sample data?

2010-01-29 Thread Brian Dunning
Thanks for the suggestions but I couldn't find any that suited my needs, so I made my own. Feel free to download if you can use them, I made files with up to a million unique records. Name, Company, Address, Phone, Email, etc., all are fake but are real addresses with correct area codes, zips,

Re: [PHP] Ideas please -- take query results --- output to image

2010-01-29 Thread Rene Veerman
other idea: s, and plain old links. On Fri, Jan 29, 2010 at 10:32 PM, Rene Veerman wrote: > flash(develop.org) perhaps? or does that also fall under their > no-active-x policy? > > On Fri, Jan 29, 2010 at 9:17 PM, Haig Davis wrote: >> Good Day All, >> >> The headscratcher of the day for me is a

Re: [PHP] Ideas please -- take query results --- output to image

2010-01-29 Thread Rene Veerman
flash(develop.org) perhaps? or does that also fall under their no-active-x policy? On Fri, Jan 29, 2010 at 9:17 PM, Haig Davis wrote: > Good Day All, > > The headscratcher of the day for me is as follows: > > I'm busy designing a scheduling page in a table form (actually series of > floating css

Re: [PHP] imap4 search criteria

2010-01-29 Thread Richard
Hi, > ... You might have more joy with this on the php-dev list. -- Richard Heyes HTML5 canvas graphing: RGraph - http://www.rgraph.net (updated 23rd January) Lots of PHP and Javascript code - http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Ideas please -- take query results --- output to image

2010-01-29 Thread Haig Davis
Good Day All, The headscratcher of the day for me is as follows: I'm busy designing a scheduling page in a table form (actually series of floating css divs) showing days of week across/ rooms down. thats the easy part and bookings in each cell. I know I can take the results of a query call it exp

[PHP] imap4 search criteria

2010-01-29 Thread Dominik Gehl
Hi, I noticed that the imap extension seems to support only IMAP2 search criteria. This is caused by the fact that in ext/imap/php_imap.c, the imap_search function uses a call to mail_criteria. And the University of Washington IMAP toolkit mentions in docs/internal.txt: SEARCHPGM *mail_criteria

[PHP] Sessions across subdomains

2010-01-29 Thread Ben Miller
Hi, I've always thought that session data was subdomain specific and would not carry over between http://www.mydomain.com and https://secure.mydomain.com, but it seems to be working for me now. Can I rely on this and post from http://www.mydomain.com to https://secure.mydomain.com and simply pass

Re: [PHP] Creating an Entire .html page with PHP

2010-01-29 Thread Robert Cummings
Ashley Sheridan wrote: On Fri, 2010-01-29 at 20:15 +0530, Raman . wrote: you can use Apache mod rewrite to create html pages having all programing saved in .php pages. I have never tried generating .html pages with this but have successfully generated .htm pages.. Hope this works.. On Tue, Ja

[PHP] RE: Good source for sample data?

2010-01-29 Thread Jerry Schwartz
If you need "verifiable" mailing addresses (actual street/city/state/zip combinations), you should look at some of the databases the USPS (usps.com) has available. They are mostly for tracking delivery statistics, and the like, but as a side effect they list streets all over the USA. The only th

Re: [PHP] Creating an Entire .html page with PHP

2010-01-29 Thread Ashley Sheridan
On Fri, 2010-01-29 at 20:15 +0530, Raman . wrote: > you can use Apache mod rewrite to create html pages having all programing > saved in .php pages. I have never tried generating .html pages with this but > have successfully generated .htm pages.. > > Hope this works.. > > On Tue, Jan 26, 2010 a

Re: [PHP] Creating an Entire .html page with PHP

2010-01-29 Thread Raman .
you can use Apache mod rewrite to create html pages having all programing saved in .php pages. I have never tried generating .html pages with this but have successfully generated .htm pages.. Hope this works.. On Tue, Jan 26, 2010 at 6:30 AM, deal...@gmail.com wrote: > Hi Folks, > > I would like

Re: [PHP] Do you use a public framework or roll your own?

2010-01-29 Thread Nathan Rixham
Michael A. Peters wrote: > Michael A. Peters wrote: >> Daevid Vincent wrote: >>> >>> I'm not looking to start a holy war here or re-hash the tired debate. >>> I just want some hard cold numbers to look at. >>> >>> "Do you use a public framework or roll your own?" >>> http://www.rapidpoll.net/8opn

RE: [PHP] Good source for sample data?

2010-01-29 Thread Bob McConnell
The US Census Bureau has lists of first names and surnames online with a breakdown of their frequency within the US population. It was very simple to extract just the names into arrays. We found it quite useful for generating database records for testing. YMMV. Bob McConnell -Original Message

Re: [PHP] Do you use a public framework or roll your own?

2010-01-29 Thread Phpster
I converted one that was originally in classic ASP. It's terrible, with poor design and large overhead. Used for a few projects, but now use codeigniter. It's the easiest to adapt without many of the restrictions of th larger frameworks. Bastien Sent from my iPod On Jan 29, 2010, at 5:08

Re: [PHP] Re: Good source for sample data?

2010-01-29 Thread Michael Kubler
Agree'd. I've done this a couple of times. Usually best is to grab a couple of free online dictionary lists. One for peoples names, another for business names, then just randomly pull the data from the dictionaries. Addresses, websites, phone numbers, and zip codes can all be randomly generate

Re: [PHP] Do you use a public framework or roll your own?

2010-01-29 Thread Teus Benschop
What could help a developer is to plunder the available open-source frameworks and use the loot in his own code. At times these frame-works are well thought out, and some of their classes are clean, and can easily be moved into other contexts. Teus. On Fri, 2010-01-29 at 03:30 -0800, Tom Sparks wr

Re: [PHP] Do you use a public framework or roll your own?

2010-01-29 Thread Tom Sparks
--- On Fri, 29/1/10, Michael A. Peters wrote: > Michael A. Peters wrote: > > Daevid Vincent wrote: > >>  I'm not looking to start a holy war here or > re-hash the tired debate. I just want some hard cold numbers > to look at. > >> > >> "Do you use a public framework or roll your own?" > >> http:/

Re: [PHP] Do you use a public framework or roll your own?

2010-01-29 Thread Michael A. Peters
Michael A. Peters wrote: Daevid Vincent wrote: I'm not looking to start a holy war here or re-hash the tired debate. I just want some hard cold numbers to look at. "Do you use a public framework or roll your own?" http://www.rapidpoll.net/8opnt1e And for those interested, here are the resu