php-general Digest 29 Jan 2010 11:30:34 - Issue 6564
Topics (messages 301636 through 301648):
Good source for sample data?
301636 by: Brian Dunning
301637 by: Shawn McKenzie
301638 by: Nathan Rixham
301639 by: TG
301640 by: james stojan
exception
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
--- On Fri, 29/1/10, Michael A. Peters mpet...@mac.com 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?
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
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
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
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
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/8opnt1e
And for those
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 deal...@gmail.comwrote:
Hi Folks,
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
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,
other idea: iframes, and plain old links.
On Fri, Jan 29, 2010 at 10:32 PM, Rene Veerman rene7...@gmail.com 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 level...@gmail.com wrote:
Good Day All,
The
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,
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
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 Message
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
On Fri, Jan 29, 2010 at 5:35 PM, Mari Masuda mari.mas...@stanford.eduwrote:
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
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 program
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
On Fri, 2010-01-29 at 22:33 +0100, Rene Veerman wrote:
other idea: iframes, and plain old links.
On Fri, Jan 29, 2010 at 10:32 PM, Rene Veerman rene7...@gmail.com wrote:
flash(develop.org) perhaps? or does that also fall under their
no-active-x policy?
On Fri, Jan 29, 2010 at 9:17
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 expand
On Sat, Jan 30, 2010 at 9:00 AM, Shawn McKenzie nos...@mckenzies.netwrote:
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.';
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
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, clanc...@cybec.com.au wrote:
On Wed, 27 Jan 2010 10:21:00 -0800,
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 28, 2010 at 12:31
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, clanc...@cybec.com.au
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:
?php
function get_memory( $init=false )
{
static $base = null;
if( $base === null || $init )
{
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 to
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.
Eric Lee wrote:
On Sat, Jan 30, 2010 at 9:00 AM, Shawn McKenzie nos...@mckenzies.netwrote:
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
(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 nos...@mckenzies.net wrote:
Eric Lee wrote:
On Jan 29, 2010, at 4:38 PM, Nathan Nobbe wrote:
On Fri, Jan 29, 2010 at 5:35 PM, Mari Masuda mari.mas...@stanford.edu 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
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 mari.mas...@stanford.edu
wrote:
Hello,
I have a function that uses tidy to attempt to clean up a bunch of crappy
HTML that I inherited. In
33 matches
Mail list logo