Re: [PHP] Credit Card encryption

2010-05-31 Thread Waynn Lue
Billing Address (at least the street number) is used in conjunction with the zip code for AVS checks. On 5/31/10, tedd wrote: > At 1:38 AM -0400 5/31/10, Paul M Foster wrote: >>On Sun, May 30, 2010 at 10:50:05AM -0400, tedd wrote: >> >> > Besides, most credit card processing agencies even requir

Re: [PHP] Method documentation

2010-05-27 Thread Waynn Lue
I've seen @inheritDoc used in Java before, though I'm not sure about the php support. Waynn On 5/27/10, Adam Richardson wrote: >> >> >> > Larry, >> > >> > I've thought about this very issue before (java developers sometimes >> lament >> > this issue, too), and I error on the side of duplication

Re: [PHP] Upgraded PHP now website doesn't work properly?

2010-01-10 Thread Waynn Lue
Emacs/xemacs does syntax highlighting too. On 1/10/10, Kaya Saman wrote: > >>> >>> >> Depending on the latency and bandwidth you could use X11 forwarding >> (granted the server supports it) so you could use a non-CLI editor. I >> think "joe" has some syntax highlighting, but I've never edited PHP

Re: [PHP] User Account Management

2009-09-23 Thread Waynn Lue
Thanks so much for all the feedback! Ben's comment was something that prompted this discussion to begin with internally, in that we didn't want to reinvent the wheel, nor make a mistake in the security implenetation of our solution. I've forwarded this thread back internally, and we'll take this

[PHP] User Account Management

2009-09-11 Thread Waynn Lue
Hello all, We're building out a system that allows for user account creation/password management, and we're hoping to use existing open source software so we don't have to reinvent the wheel. I know of Drupal, and Zend Framework (and maybe CodeIgniter?), but do people have specific preferences fo

Re: [PHP] Re: Buffered Logging?

2009-08-10 Thread Waynn Lue
Thanks for all the help! I'm going to try just writing to a database table first with INSERT DELAYED, and if there ends up being a performance hit, I'll use a MEMORY table that gets archived off every 5 minutes or so. Waynn

Re: [PHP] Re: Buffered Logging?

2009-08-07 Thread Waynn Lue
> > Hey PHPers, >> >> We've been doing sampled logging to the database in our application for >> awhile, and now I'm hoping eventually to blow that out to a larger scale. >> I'm worried about the performance implications of logging to our database >> on >> ... >> >> > If you are using mysql and MyI

[PHP] Buffered Logging?

2009-08-07 Thread Waynn Lue
Hey PHPers, We've been doing sampled logging to the database in our application for awhile, and now I'm hoping eventually to blow that out to a larger scale. I'm worried about the performance implications of logging to our database on every single page load, though, so I was wondering if anyone's

[PHP] Re: Editing PEAR packages

2009-07-05 Thread Waynn Lue
factor the underlying code base to make it easier. Waynn On 7/5/09, Greg Beaver wrote: > Waynn Lue wrote: >> I wanted to makes some local edits to a PEAR package that I downloaded in >> order to build some custom functionality into it. What's the best way to >> manage

[PHP] Editing PEAR packages

2009-07-05 Thread Waynn Lue
I wanted to makes some local edits to a PEAR package that I downloaded in order to build some custom functionality into it. What's the best way to manage this process to ensure that I don't accidentally blow away any changes if I update the package? Should I just copy the entire package to my own

Re: [PHP] cannot figure out permissions for fopen/fwrite

2009-07-02 Thread Waynn Lue
The tmp folder isn't accessible from the web though, right? Someone would first have to get access to your server for that. On 7/1/09, Mari Masuda wrote: > > On Jul 1, 2009, at 12:54, Shawn McKenzie wrote: > >> Mari Masuda wrote: >>> On Jul 1, 2009, at 12:20, Shawn McKenzie wrote: >>> Shawn

Re: [PHP] isset question

2009-06-18 Thread Waynn Lue
I notice that you're checking $_POST['mort'] but you're echoing $mort, is that your actual code? On 6/18/09, Gary wrote: > I have a form that gives the submitter a choice or either one set of > questions, or another. I am still getting the message even if the input was > left blank. So on the li

Re: [PHP] Field type for american money

2009-06-11 Thread Waynn Lue
> > Shawn McKenzie wrote: > >> Waynn Lue wrote: >> >>> For mysql, it's better to use int and then store it in cents (or >>> micros) so you can use all integer operations instead of float ones. >>> >>> >> To each his own. Speed

Re: [PHP] Field type for american money

2009-06-11 Thread Waynn Lue
For mysql, it's better to use int and then store it in cents (or micros) so you can use all integer operations instead of float ones. On 6/11/09, Shawn McKenzie wrote: > revDAVE wrote: >> Php - MySQL - newbie question >> >> - Field type for american money - int(11) seems to work fine >> >> - but

[PHP] Nagios Monitoring

2009-04-13 Thread Waynn Lue
Hey guys, I'm looking to write a nagios plugin that essentially monitors whether or not a database query returns a value > 0 at any given point. I was hoping to write this in PHP, but I haven't found too many examples of Nagios plugins in PHP ( http://www.barryodonovan.com/index.php/2007/11/02/as

Re: [PHP] Re: Fork and zombies

2009-03-18 Thread Waynn Lue
> > Yeah, that's what I ended up doing, and defining some global variables so > that I could re-use the previous functions I created, thanks for the help! > > One other question I had, is pcntl_waitpid necessary in this case? Passing > WNOHANG to it causes it to return immediately regardless of wh

Re: [PHP] "/home/{user}/directory"

2009-03-18 Thread Waynn Lue
bash also has $HOME, which maps to /home/USERNAME, just in case you wanted another way. :) On Tue, Mar 17, 2009 at 6:47 AM, George Larson wrote: > Thanks! > > On Tue, Mar 17, 2009 at 9:46 AM, Stuart wrote: > > > 2009/3/17 George Larson > > > > In my scripts, I usually define a boolean constant

Re: [PHP] Re: Fork and zombies

2009-03-18 Thread Waynn Lue
> > > Whoops, I spoke too soon, I think the sleep(3) causes the child not to > > exit before the parent. If instead I don't pass WNOHANG to the > > waitpid command, it does error out. So it looks like your theory is > > correct, and I still have that problem. I guess the only solution is > > to

Re: [PHP] Re: Fork and zombies

2009-03-17 Thread Waynn Lue
> > > Yeah, something like that. The connection is definitely closed when the >> > child exits. >> > >> >> I can confirm this. you definitely need to open a connection for each >> child process. >> if you require a db connection in the parent process, you should close >> it before forking (and then

Re: [PHP] Re: Fork and zombies

2009-03-17 Thread Waynn Lue
> > > Yeah, something like that. The connection is definitely closed when the > > child exits. > > > > I can confirm this. you definitely need to open a connection for each child > process. > if you require a db connection in the parent process, you should close > it before forking (and then reopen

[PHP] Re: Fork and zombies

2009-03-17 Thread Waynn Lue
(Apologies for topposting, I'm on my blackberry). Hm, so you think exiting from the child thread causes the db resource to get reclaimed? On 3/17/09, Per Jessen wrote: > Waynn Lue wrote: > >> Ah, I was changing it to waiting for each child to finish in order to >> see if

Re: [PHP] Fork and zombies

2009-03-17 Thread Waynn Lue
> > I think your waitpid() is in the wrong place, and at least you need use > WNOHANG - unless you specifically want to wait for each child to finish > before starting another one. > > > But it still has the same problem, and I'm also trying to avoid > > pcntl_wait or pcntl_waitpid at all because I

Re: [PHP] Fork and zombies

2009-03-17 Thread Waynn Lue
> > > Here's pseudo code for what I'm trying to do: > > > > foreach ($things as $thing) { > > info = getInfo($thing); // uses a db connection > > makeApiCall(info); > > } > > > > makeApiCall(info) { > > $pid = pcntl_fork(); > > if ($pid == -1) { > > die("could not fork"); > > } else if ($

Re: [PHP] Fork and zombies

2009-03-16 Thread Waynn Lue
> > >> > While this works, it unfortunately leaves behind a zombie process > >> > every single time. > >> > >> You need to call pcntl_wait() or pcntl_waitpid(). > >> > > > > Right, but if I do that, then the parent has to wait until the child > > completes before it exits. > > No it doesn't - just

Re: [PHP] Fork and zombies

2009-03-16 Thread Waynn Lue
> > Waynn Lue wrote: > > > I periodically run a script that makes a call against a remote API, > > which > > takes some time to return. In an attempt to increase thoroughput, I > > decided to investigate using pnctl_fork to spawn off multiple > > processes t

[PHP] Fork and zombies

2009-03-16 Thread Waynn Lue
I periodically run a script that makes a call against a remote API, which takes some time to return. In an attempt to increase thoroughput, I decided to investigate using pnctl_fork to spawn off multiple processes to make the call, since the slowest part is the network part of it (and waiting for

[PHP] Re: [PHP-DB] How important is your Express or Web Edition database? Please weigh in--

2009-03-02 Thread Waynn Lue
Yeah, that's definitely true. I've just been bitten too many times by a design that ended up being not flexible enough. :) Waynn On 2/28/09, Ashley Sheridan wrote: > On Sat, 2009-02-28 at 16:08 -0800, Waynn Lue wrote: >> Plus, last time I checked, adding an enum require

[PHP] Re: [PHP-DB] How important is your Express or Web Edition database? Please weigh in--

2009-02-28 Thread Waynn Lue
Plus, last time I checked, adding an enum required a full rebuild of the table, while having an auxiliary table allows it to happen much more quickly. Waynn On 2/28/09, Andrew Ballard wrote: > On Sat, Feb 28, 2009 at 5:13 AM, Ashley Sheridan > wrote: >> On Sat, 2009-02-28 at 01:04 -0500, Andrew

Re: [PHP] Help with MySQL

2009-02-13 Thread Waynn Lue
You can type "show create table " to see the datatypes. Waynn On 2/13/09, James Colannino wrote: > Hey everyone. I've been reading the list for a long time, but have only > really posted to the mailing list a few times. I just had a quick > question about MySQL. I'm not sure if this is exactl

[PHP] mysql_query and my.cnf?

2009-01-20 Thread Waynn Lue
Hey guys, I've been noticing that large queries cause a connection lost to mysql server problem, so I'm trying to figure out what settings I need to tweak in my my.cnf file to get it to work. I know people change the max-allowed-packet variable, but I'm trying to figure out what the correct secti

Re: [PHP] Foreign Keys Question

2008-12-12 Thread Waynn Lue
> > Waynn Lue wrote: > >> As a side note, FKs do enforce other table specific properties like >> indexes on the fields being constrained, so they do add value there as >> well. But there's of course an extra cost on updates and inserts to >> see if the FK is

Re: [PHP] Foreign Keys Question

2008-12-11 Thread Waynn Lue
As a side note, FKs do enforce other table specific properties like indexes on the fields being constrained, so they do add value there as well. But there's of course an extra cost on updates and inserts to see if the FK is violated. Waynn On 12/11/08, Colin Guthrie wrote: > 'Twas brillig, and C

[PHP] Stack Trace Length for Exceptions

2008-12-09 Thread Waynn Lue
I've been adding in exceptions at various points in the code so that I can more easily track where things are breaking and through which code path, but I just ran into a problem where it seems that the full stack trace isn't showing up in the error_logs. When I check out the logs, it only shows th

[PHP] Re: phpDesigner 2008?

2008-11-21 Thread Waynn Lue
All in one--is the other better? On 11/18/08, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Waynn Lue wrote: >> I know the IDE wars spring up occasionally, but looking through the >> archives, I haven't seen any discussions pro or con for phpDesigner 2008 ( &

[PHP] phpDesigner 2008?

2008-11-18 Thread Waynn Lue
I know the IDE wars spring up occasionally, but looking through the archives, I haven't seen any discussions pro or con for phpDesigner 2008 ( http://www.mpsoftware.dk/phpdesigner.php). Anyone had a chance to use it and think it's good or not? I just installed PDT + Eclipse today, and I'm still g

[PHP] Re: General Mysql Connect

2008-10-29 Thread Waynn Lue
> > Waynn Lue wrote: > >> Yeah, it's the same user, same everything (for now). But I wonder why >> we're seeing these "lost connection" errors and I'm trying to fix >> it--this was one of the things I was investigating. >> > > Random

Re: [PHP] General Mysql Connect

2008-10-29 Thread Waynn Lue
> > With MySQL, you can change the DB from query to query with > mysql_select_db. The alternative as I stated in my last post is to use > the fully qualified table name (database.table) in your query. MySQL > doesn't care which DB you have open if you do that. In both of these > cases, the same

[PHP] Re: General Mysql Connect

2008-10-29 Thread Waynn Lue
It's actually a deliberate design decision to have two dbs, because one's a shared database, and one's application specific. Thanks, Waynn On 10/29/08, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Thu, 2008-10-30 at 08:55 +1100, Chris wrote: >> Waynn Lue wrot

[PHP] Re: General Mysql Connect

2008-10-29 Thread Waynn Lue
Yeah, it's the same user, same everything (for now). But I wonder why we're seeing these "lost connection" errors and I'm trying to fix it--this was one of the things I was investigating. On 10/29/08, Chris <[EMAIL PROTECTED]> wrote: > Waynn Lue wrote: >> I

[PHP] General Mysql Connect

2008-10-29 Thread Waynn Lue
nt is better. In general, how have people on the list found them? For example, is having constant mysql_select_db calls a problem? Thanks, Waynn On Wed, Oct 29, 2008 at 2:47 AM, Waynn Lue <[EMAIL PROTECTED]> wrote: > We've started seeing mysql errors in the logs, and when i look a

Re: [PHP] Flags package for PHP?

2008-10-27 Thread Waynn Lue
]> wrote: > Waynn Lue wrote: > > I'm running some command-line scripts that are taking more and more > > arguments, and I'm wondering whether anyone's used a good flags package > for > > PHP? Support for string/int/boolean arguments would be ni

Re: [PHP] logic for grabbing what we need from user-input addresses for AVS?

2008-10-18 Thread Waynn Lue
AVS generally only exists for us and canada and parts of the uk, if I remember correctly. Usually they're just looking for the beginning part of the street address, not the concatenation or anything else like that. No need for apartment numbers, for example if you're just looking at avs. If you're

[PHP] Flags package for PHP?

2008-10-15 Thread Waynn Lue
I'm running some command-line scripts that are taking more and more arguments, and I'm wondering whether anyone's used a good flags package for PHP? Support for string/int/boolean arguments would be nice, otherwise I'll just hack together my own. Thanks for any advice, Waynn

Re: [PHP] date_default_timezone_set and Time Zones

2008-10-03 Thread Waynn Lue
> > Is it daylight savings time in LA on 31 January? > Wow, yeah. That makes sense, for some reason I was thinking of it in terms of today, but of course that can't be right. Thanks for that clarification, not sure what I was thinking. :)

[PHP] date_default_timezone_set and Time Zones

2008-10-02 Thread Waynn Lue
I'm using date_default_timezone_set("America/Los_Angeles") in my code, then I output it like date("m/d/y, H:i:s, O", ); But even though it's daylight savings time in Los Angeles, I get output like [01/31/08, 23:00:00, -0800] Shouldn't it instead be -0700? Am I misunderstanding how these timezo

[PHP] Re: PHP + Cron jobs

2008-10-01 Thread Waynn Lue
Oh, I thought having one for cgi and one for cli was common. Do people generally run only one, regardless of whether they're hitting it from a webserver or running it from the commandline? Thanks, Waynn On 10/1/08, Per Jessen <[EMAIL PROTECTED]> wrote: > Waynn Lue wrote: > >&

Re: [PHP] PHP + Cron jobs

2008-10-01 Thread Waynn Lue
On Mon, Sep 29, 2008 at 9:34 AM, Richard Lynch <[EMAIL PROTECTED]> wrote: > If you are running PHP as CGI, replacing the CGI with CLI could be > problematic down the road... > > Right, and I am, so I stayed away from that solution. My next attempt was to specify /usr/local/bin/php in the cron jo

Re: [PHP] How to submit form via PHP

2008-09-29 Thread Waynn Lue
Hm, it specifies base though. Does that mean the full query string won't be guaranteed to be passed along? On 9/29/08, Lupus Michaelis <[EMAIL PROTECTED]> wrote: > Ashley Sheridan a écrit : > >From the link you gave, we stick on > , so it ref

Re: [PHP] PHP + Cron jobs

2008-09-28 Thread Waynn Lue
Yup, you're completely right. I checked the cronjob and got this: PHP 5.2.6 (cgi) (built: Aug 11 2008 13:39:32) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with Advanced PHP Debugger (APD) v0.9, , by George Schlossnagle Turns out there's

Re: [PHP] How to submit form via PHP

2008-09-27 Thread Waynn Lue
>No it doesn't... without an action statement... Sorry to drag up an old thread, but I just saw this. Is that true of all browsers? I'm wondering because I just coded a site to use this behavior, then I saw that the html specification says the action attribute is required. Thanks, Waynn On 8/15/

Re: [PHP] PHP + Cron jobs

2008-09-27 Thread Waynn Lue
Hm looks like it's CLI. $ php -v PHP 5.2.6 (cli) (built: Aug 11 2008 13:36:00) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with Advanced PHP Debugger (APD) v0.9, , by George Schlossnagle

Re: [PHP] PHP + Cron jobs

2008-09-27 Thread Waynn Lue
> > > This is something that I've noticed for awhile, but last post to this > > mailing list reminded me that someone probably already knows how to > > work > > around this! I have a cron job that looks something like > > > > 12 6 * * * php /home/foo/temp.php > > > > But even if temp.php doesn't o

[PHP] PHP + Cron jobs

2008-09-27 Thread Waynn Lue
This is something that I've noticed for awhile, but last post to this mailing list reminded me that someone probably already knows how to work around this! I have a cron job that looks something like 12 6 * * * php /home/foo/temp.php But even if temp.php doesn't output anything, I still get emai

Re: [PHP] Passing Variables to an iframe

2008-09-26 Thread Waynn Lue
Ah, that makes sense. Given all the input on this thread, I'll see if I can get sessions do what I want. Thanks! Waynn

[PHP] Passing Variables to an iframe

2008-09-26 Thread Waynn Lue
This may be more a general HTML question, so let me know if I should post somewhere else. I was hoping to do some logic in a script, and then pass the results of that script to an iframe for more processing. Is it secure to include those variables as get parameters to the iframe, though? In othe

Re: [PHP] FW: [SPAM] [PHP] FIFO files on PHP?

2008-08-25 Thread Waynn Lue
On Wed, Jul 2, 2008 at 1:22 AM, Chris Scott <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Waynn Lue [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, July 01, 2008 11:06 PM > > To: php-general@lists.php.net > > Subject: [SPAM] [PHP] FI

Re: [PHP] Version Control Software

2008-08-06 Thread Waynn Lue
Does subversion meet your needs? You can check out a working copy that's your dev copy, then check in changes and push to production whenever you want. Waynn On 8/6/08, Benjamin Darwin <[EMAIL PROTECTED]> wrote: > After reading a topic on the list here about someone losing their website, > and

Re: [PHP] PHP Memory Management

2008-08-04 Thread Waynn Lue
> > Waynn Lue wrote: > >> I've been running the script below: >> >> > $appIds = getLotsOfAppIds(); >> foreach ($appIds as $appId) { >>echo "$appId\n"; >>//echo memory_get_usage() . "\n"; >>try { >>

[PHP] PHP Memory Management

2008-08-02 Thread Waynn Lue
I've been running the script below: And I get PHP Fatal Error: Allowed Memory Size Exhausted after it runs for a bit. Looking at the memory usage, it's because $getBundles (an array) is huge, and keeps growing. What I'm confused by is why setting it to something else in the next iteration of t

Re: [PHP] Math Weirdness - Can it be done with integers alone??

2008-07-15 Thread Waynn Lue
There's an algorithm known as banker's rounding that I thought all US banks used. I'm on blackberry right now so I don't have a pointer, but essentially you round to the nearest even cent. 1.5 goes to 2, as does 2.5. Waynn On 7/15/08, tedd <[EMAIL PROTECTED]> wrote: > At 4:15 PM -0400 7/14/08,

Re: [PHP] Asynchronous PHP Execution

2008-07-06 Thread Waynn Lue
On Sat, Jul 5, 2008 at 12:28 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Sat, Jul 5, 2008 at 6:01 AM, Waynn Lue <[EMAIL PROTECTED]> wrote: > > I have a system where a user clicks on a button which causes rows to > > be inserted in to the database. I'd

Re: [PHP] Asynchronous PHP Execution

2008-07-06 Thread Waynn Lue
> > > and exec/shell (but that > >> doesn't seem to be asynchronous), but neither seems optimal. >> > > It can be if you redirect the output streams and put an ampersand after it: > > exec('sleep 5 > /dev/null 2>/dev/null &'); >echo 'Script ended'; > ?> > > This tiny sample should end immed

[PHP] Asynchronous PHP Execution

2008-07-05 Thread Waynn Lue
I have a system where a user clicks on a button which causes rows to be inserted in to the database. I'd also like to run some lengthier post-processing on those rows, but don't want to put it in the critical path of the rows being inserted and returning to the user. What's the best way to either

[PHP] FIFO files on PHP?

2008-07-01 Thread Waynn Lue
I'm trying to build a queue out using FIFO files (someone on the MySQL list suggested checking them out instead of using the database), but I'm running into a problem because of the synchronous fwrite call. Here's the code: $fifoFile = '/tmp/fifo'; if (!file_exists($fifoFile)) { posix_mkfi

Re: [PHP] Good XML Parser

2008-05-13 Thread Waynn Lue
Ok, thanks so much for the help. I went with DOM-parsing to begin with, I'll explore XPath + SimpleXML later. Thanks, Waynn On Mon, May 12, 2008 at 5:23 AM, David Otton <[EMAIL PROTECTED]> wrote: > 2008/5/12 Waynn Lue <[EMAIL PROTECTED]>: >> So if I'm looking to

Re: [PHP] Good XML Parser

2008-05-12 Thread Waynn Lue
a state machine that looked for an followed by a . If I'm doing that, though, it seems like I should just start using a DOM parser instead? Thanks for any insight, Waynn On Mon, May 12, 2008 at 1:29 AM, David Otton <[EMAIL PROTECTED]> wrote: > 2008/5/12 Waynn Lue <[EMAIL PROTECTED

[PHP] Good XML Parser

2008-05-12 Thread Waynn Lue
What's the best way to pull down XML from a URL? fopen($URL), then using xml_parse? Or should I be using XML_Parser or SimpleXML? Thanks, Waynn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache child pid segfault + APD

2008-05-05 Thread Waynn Lue
12:48 AM, Mario Guenterberg <[EMAIL PROTECTED]> wrote: > On Fri, May 02, 2008 at 10:24:03PM -0700, Waynn Lue wrote: > > > *** glibc detected *** free(): invalid pointer: 0x002a9956d000 *** > > Hi Waynn, > > try to use xdebug instead of APD to profile you app. Th

[PHP] Apache child pid segfault + APD

2008-05-02 Thread Waynn Lue
I recently installed APD to help profile some code that I've written, and noticed that whenever I run it (with apd_set_pprof_trace() at the top) I get these errors in my apache logs. I spent awhile looking at different sites, but even recompiling PHP + Apache didn't help. Anyone seen this before?

Re: [PHP] mysql query and maximum characters in sql statement

2008-05-01 Thread Waynn Lue
Wouldn't using LOAD DATA INFILE be better than writing your own script? On 5/1/08, Jim Lucas <[EMAIL PROTECTED]> wrote: > Jim Lucas wrote: > > Sanjeev N wrote: > >> Hi, > >> I have written a program which imports the tab delimited file and > >> insert all > >> the line from file to the mysql lin

[PHP] mysql_connect slowness

2008-04-27 Thread Waynn Lue
Our site has been slowing down dramatically in the last few days, so I've been trying to figure out why. I ran some profiling scripts on our site and saw that we're spending between 3-9 seconds on mysql_connect. Then I connected to our db and saw that there were over 100 connections at the time,

Re: [PHP] Cannot modify header information - headers already sent by ...

2008-04-21 Thread Waynn Lue
Actually, I think I fixed it by moving the style sheets below the instantiation of the facebook client, where I *think* set_user was being called. I'm still curious if it's possible to get stack trace information on errors, though. :) Waynn On Mon, Apr 21, 2008 at 5:39 PM, Waynn L

Re: [PHP] Cannot modify header information - headers already sent by ...

2008-04-21 Thread Waynn Lue
} But the problem is I can't tell where it's being called. Is there any way to generate a stack trace from the error logs so I know what the calling function is? On Mon, Apr 21, 2008 at 4:37 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Mon, Apr 21, 2008 at 11:33 AM, Waynn L

[PHP] Cannot modify header information - headers already sent by ...

2008-04-21 Thread Waynn Lue
I fixed this last time by looking for white space both before and after the opening and closing php tags, as a Google search had revealed. But this time, I've spent an hour running down various files and not seeing what the heck is wrong. Here's the essential setup. main.php shared_style.php

Re: [PHP] PHP Serialization Performance

2008-04-21 Thread Waynn Lue
Thanks very much, I ended up using seralize in the database. On Thu, Apr 17, 2008 at 4:42 AM, Casey <[EMAIL PROTECTED]> wrote: > > On Wed, Apr 16, 2008 at 4:04 AM, Waynn Lue <[EMAIL PROTECTED]> wrote: > > I'm using PHP to cache files that are backed by the data

[PHP] PHP Serialization Performance

2008-04-16 Thread Waynn Lue
I'm using PHP to cache files that are backed by the database. In the course of writing these functions, I end up with a set of variables that are needed by my application, returned in an array. I can either directly generate the array in a .php file, then use require_once to get that variable, or