RE: [PHP] setting up a wiki - looking for suggestions!

2005-06-09 Thread bruce
also, -issue tracking -possible basic project management - -Original Message- From: bruce [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 11:56 PM To: php-general@lists.php.net; 'For users of Fedora Core releases' Subject: [PHP] setting up a wiki - looking for suggestions! h

[PHP] output buffering / output compression

2005-06-09 Thread Paul Birnstihl
I have recently set up a machine with PHP with both buffering and compression turned on. Some of the pages being served include up to 3MB of HTML. Can someone explain the benefit(s) of setting these ini directives to values (ie. larger than 4kb) rather than "On" ? I've played around with it

[PHP] [SPAM] YOUR EMAIL ACCOUNT IS SUSPENDED FOR SECURITY REASONS

2005-06-09 Thread register
The original message has been included as an attachment. Posible virus encontrado en el fichero adjunto. El fichero ha sido eliminado automaticamente. *** Possible virus found in this attachment. The file has be

[PHP] weird thing; downloading from a php script stops at exactly 2.000.000 bytes

2005-06-09 Thread Catalin Trifu
Hi, I installed php5 using the configue below. I tried with apache2 as well and same things. './configure' '--prefix=/usr/local/php5' '--with-apxs=/usr/local/apache/bin/apxs' '--disable-cgi' '--with-config-file-path=/etc/php5' '--with-dom' '--with-gd' '--enable-sockets' '--enable-ex

[PHP] Re: weird thing; downloading from a php script stops at exactly 2.000.000bytes

2005-06-09 Thread Catalin Trifu
I also use eaccelrator; However, even if I disable it completely, it still stops at 2.000.000 bytes. Catalin Catalin Trifu wrote: > Hi, > >I installed php5 using the configue below. I tried with apache2 as well > and same things. > > './configure' '--prefix=/usr/local/php5

[PHP] sgvpprhibxta

2005-06-09 Thread Automatic Email Delivery Software
ALERT! This e-mail, in its original form, contained one or more attached files that were infected with a virus, worm, or other type of security threat. This e-mail was sent from a Road Runner IP address. As part of our continuing initiative to stop the spread of malicious viruses, Road Runner s

Re: [PHP] Really simple regex

2005-06-09 Thread Jochem Maas
... $string="I have apples!"; $string=preg_replace("/x+/sim","x", $string); print "$string"; ... Thanks, that did it. I did not know about the +. And what is the 'sim' its not one thing but 3 things, everything that comes after a regexp closing marker (but inside the string) is

Re: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-09 Thread Marcus Bointon
On 7 Jun 2005, at 23:46, Chris Martin wrote: Is a simple CSS print stylesheet out of the question? If the site is marked up properly, this should be trivial, and would be much easier/more efficient. CSS is definitely the way to go. Here are some good articles: http://www.alistapart.com/article

RE: [PHP] Of .txt to .zip

2005-06-09 Thread Jay Blanchard
[snip] 2005/6/8, Jay Blanchard <[EMAIL PROTECTED]>: > [snip] > I want that the file with extension .TXT that this in my server, to keep packed it with extension ZIP. Somebody knows since I can do it. > [/snip] > > http://www.php.net/zip > but it says 'Read Only Access' from the document? so,the f

[PHP] Compilation trouble on OS X

2005-06-09 Thread Marcus Bointon
I've been beating my head against this - I've done this so many times on BSD and Linux but I just can't get PHP 5.0.4 to compile on OS X. Even the simplest case: ./configure make fails with: /usr/bin/ld: Undefined symbols: _mbstring_globals _php_mb_encoding_translation _php_mb_gpc_encoding

[PHP] Installation

2005-06-09 Thread afrodriguez
Hi! I am running Apache on Windows XP and would like to install PHP. I'll be using PHP within my computer for development purposes. 1st issue. When I installed Apache, the installation program self-configures. Since I use a permanent, broadband connection, I think Apache detected it and ass

RE: [PHP] Installation

2005-06-09 Thread Jay Blanchard
[snip] ... and assumed I was using Apache as a Web sever. How can I fix this? [/snip] Uh, dude, Apache is a web server. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Installation

2005-06-09 Thread Jim Moseby
Hi Tony! > 1st issue. When I installed Apache, the installation program > self-configures. Since I use a permanent, broadband > connection, I think Apache detected it and assumed I was > using Apache as a Web sever. How can I fix this? Apache *is* a web server. Nothing to fix here. You ne

Re: [PHP] Installation

2005-06-09 Thread Chris Ramsay
Go to where you extracted php (I assume it was C:\php, right?) and there is a file called install.txt - read it; it will tell you exactly what you need to know... Raz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Installation

2005-06-09 Thread Richard Davey
Hello, Thursday, June 9, 2005, 1:47:41 PM, you wrote: aan> 1st issue. When I installed Apache, the installation program aan> self-configures. Since I use a permanent, broadband connection, I aan> think Apache detected it and assumed I was using Apache as a Web aan> sever. How can I fix this? I w

[PHP] Re: output buffering / output compression

2005-06-09 Thread Matthew Weier O'Phinney
* Paul Birnstihl <[EMAIL PROTECTED]>: > I have recently set up a machine with PHP with both buffering and > compression turned on. Some of the pages being served include up to 3MB > of HTML. > > Can someone explain the benefit(s) of setting these ini directives to > values (ie. larger than 4kb)

[PHP] _construct() problem

2005-06-09 Thread Stéphane Bruno
Hello, I designed a player class with the following properties and constructor: class player { private $properties = array('firstname' => NULL, 'lastname' => NULL); function _construct($first, $last) { $this->properties['firstname'] = $first; $this->properties['lastname'] = $last; }

[PHP] setting up a wiki - looking for suggestions!

2005-06-09 Thread bruce
hi... looking for suggestions on the 'best' wiki for an app. i want to be able to: -register/login users -admin the site -multiple admins -various roles/access privs for users -enable groups -create/modify categories -allow users to modify text -allow users to make postings private/group/p

[PHP] Re: _construct() problem

2005-06-09 Thread Catalin Trifu
Hi, What aout __construct() ->thi shoul do the trick (read the manual) Catalin Stéphane Bruno wrote: > Hello, > > I designed a "player" class with the following properties and > constructor: > > class player { > private $properties = array('firstname' => NULL, 'lastname' => NULL)

[PHP] Best way how to STORE DATA

2005-06-09 Thread Martin Zvarik
Hi, what's the best way how to store a small amount of data, like list of categories or sections of a website. CVS (comma delimited text) x Database (MySQL, or other) x XML ? Which method is the fastest? Anyone has any personal experiences? Thank you in advance for replies. Martin Zvarik

Re: [PHP] _construct() problem

2005-06-09 Thread Richard Davey
Hello Stéphane, Wednesday, June 8, 2005, 10:23:22 PM, you wrote: SB> function _construct($first, $last) { SB> What did I do wrong? It's __construct() Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them."

Re: [PHP] Best way how to STORE DATA

2005-06-09 Thread Richard Davey
Hello Martin, Thursday, June 9, 2005, 2:38:23 PM, you wrote: MZ> what's the best way how to store a small amount of data, like list MZ> of categories or sections of a website. CVS (comma delimited text) MZ> x Database (MySQL, or other) x XML ? Which method is the fastest? MZ> Anyone has any perso

Re: [PHP] The "goto" discussion on the Internals List

2005-06-09 Thread Jochem Maas
Richard Lynch wrote: On Tue, June 7, 2005 10:59 am, Robert Cummings said: PHP has never purported to be an OOP only language. It advocates both procedural and OOP programming methodologies. Just ask Richard Lynch :) Don't bother asking me - Ask Rasmus :-) And, for the record, *I* sure as he

RE: [PHP] HELP! form validation

2005-06-09 Thread Dave Sayer
Hi Jim, Ive modified the code for the form by adding the style info & vars to the relevant fields and set the var for the error style but for some reason the $error_var wont pick up the syle from $error_syle_var. Eg: $error_style = 'color: rgb(255,0,0)'; if(!$name){$err1 = $error_style; $error[]

Re: [PHP] Installation

2005-06-09 Thread Lowell Allen
[EMAIL PROTECTED] wrote: Hi! I am running Apache on Windows XP and would like to install PHP. I'll be using PHP within my computer for development purposes. 1st issue. When I installed Apache, the installation program self-configures. Since I use a permanent, broadband connection, I think

RE: [PHP] HELP! form validation

2005-06-09 Thread Jim Moseby
> > Hi Jim, Ive modified the code for the form by adding the > style info & vars > to the relevant fields and set the var for the error style > but for some > reason the $error_var wont pick up the syle from $error_syle_var. > > Eg: > $error_style = 'color: rgb(255,0,0)'; > if(!$name){$err1 =

[PHP] _construct() problem

2005-06-09 Thread Stéphane Bruno
Hello, I designed a "player" class with the following properties and constructor: class player { private $properties = array('firstname' => NULL, 'lastname' => NULL); function _construct($first, $last) { $this->properties['firstname'] = $first; $this->properties['lastname'] = $last;

[PHP] PEAR AUTH - Login Session not expiring?

2005-06-09 Thread Scott Sharkey
Hi All, Trying to use the PEAR Auth library. I'm set up, and after a successful login, I'm making the $auth->setExpire(30*60) call to set up for expiration after 30 minutes. But I left the web site last night, and this morning went back, and it was still active, so it didn't ask for a passwo

Re: [PHP] HELP! form validation

2005-06-09 Thread Dave Sayer
Yes, it does. I already have set the variables manually like you say. Its just the $err1, $err2 vars do not seem to be set with the data stored in $error_style. Dave > > > -Original Message- > > From: Jim Moseby [mailto:[EMAIL PROTECTED] > > Sent: 09 June 2005 15:02 > > To: '[EMAIL PROTE

Re: [PHP] Of .txt to .zip

2005-06-09 Thread Jason Wong
On Thursday 09 June 2005 20:04, Jay Blanchard wrote: > [snip] > > 2005/6/8, Jay Blanchard <[EMAIL PROTECTED]>: > > [snip] > > I want that the file with extension .TXT that this in my server, to > > keep packed it with extension ZIP. Somebody knows since I can do it. > > > [/snip] > > > > http://www

[PHP] http to https session problem

2005-06-09 Thread Joe Harman
Hey ladies & gents I am having a little problem with users keeping the same session id when they go from http to https... is there a work around for this... I don't appear to have this problem when using openSSL just when the site has it's own certificate. should I store the session id in a cooki

[PHP] Re: weird thing; downloading from a php script stops at exactly 2.000.000bytes

2005-06-09 Thread rush
"Catalin Trifu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, >As expected the browser starts the download and reports it is expecting a file of 4.7MB. >However, the download stops at 2.000.000 bytes no matter what browser I use (normally i use > Firefox on Linux), no ma

Re: [PHP] setting up a wiki - looking for suggestions!

2005-06-09 Thread Philip Hallstrom
On Wed, 8 Jun 2005, bruce wrote: hi... looking for suggestions on the 'best' wiki for an app. i want to be able to: - [snip] any ideas/thoughts/etc... http://opensourcecms.com/ Lots of options... online demos for all... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

[Fwd: Re: [PHP] Explanation in Shiflett's PHP Security Briefing]

2005-06-09 Thread [EMAIL PROTECTED]
Hm? Didn't see this one yesterday on the list? Let's try again :) -afan Chris Shiflett wrote: You forgot to filter your input. Shame! :-) Escaping alone can save you in many cases, but always filter input and escape output. I confess: I didn't forget. I did it just wrong :( Even I thought

Re: [PHP] Compilation trouble on OS X

2005-06-09 Thread John DeSoi
On Jun 9, 2005, at 8:32 AM, Marcus Bointon wrote: I've been beating my head against this - I've done this so many times on BSD and Linux but I just can't get PHP 5.0.4 to compile on OS X. Even the simplest case: Do you have the latest XCode installed? I think there was a recent update f

RE: [PHP] HELP! form validation

2005-06-09 Thread Jim Moseby
> > > > Eg: > > > > $error_style = 'color: rgb(255,0,0)'; > > > > if(!$name){$err1 = $error_style; $error[]="*please enter > > > > your name\n";} > > > > > > Does it re-populate the fields with the previously entered data? > > Yes, it does. I already have set the variables manually like > you

Re: [PHP] Really simple regex

2005-06-09 Thread Dotan Cohen
On 6/8/05, John Nichel <[EMAIL PROTECTED]> wrote: > preg_replace ( "/x+/", "x", $string ); > preg_replace ( "/x{1,}/", "x", $string ); > > But those will also change a letter 'x' in a word, so you'll probably > need to tinker with that part too. > > -- > John C. Nichel > ÜberGeek > KegWorks.com >

Re: [PHP] Objects and Performance

2005-06-09 Thread Greg Donald
On 6/8/05, Greg Beaver <[EMAIL PROTECTED]> wrote: > If you want to compare object methods versus functions, you should > compare identical code inside a method to code inside a function. > Greg's benchmarks compare two different ideological code structures. > Quite honestly, the wrapping of mt_sran

Re: [PHP] The "goto" discussion on the Internals List

2005-06-09 Thread Greg Donald
On 6/9/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > whats your take on ifsetor()?, personally I would like to see it. I think > its a great way to teach newbies about checking vars before use (if nothing > else) That and error_reporting( E_ALL ); -- Greg Donald Zend Certified Engineer http://de

[PHP] Firefox ABOUT: parameters list

2005-06-09 Thread Alessandro Rosa
I know there's not quite the right place to ask for that, but how can one know which are all the parameters one can type after about: in Firefox 1.0.4 ? That is, as far as I know, one can enter about:config about:plugins Thanks and Regards Alessandro Rosa _

[PHP] Firefox ABOUT: parameters list

2005-06-09 Thread Alessandro Rosa
I know this is not quite the right place to ask for that, but how can one know which are all the parameters one can type after about: in Firefox 1.0.4 ? That is, as far as I know, one can enter about:config about:plugins Thanks and Regards Alessandro Rosa _

RE: [PHP] HELP! form validation

2005-06-09 Thread Dave Sayer
Thanks jim, sorry for troubling you. Ive done that now and can see that all vars are being set but the code in the form to return the contents of $err1 doesn’t display the contents, just emptiness. Thanks for your help, I will keep on playing with it. Cheers Dave > -Original Message- > F

Re: [PHP] The "goto" discussion on the Internals List

2005-06-09 Thread Jason Wong
On Thursday 09 June 2005 23:08, Greg Donald wrote: > On 6/9/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > > whats your take on ifsetor()?, personally I would like to see it. I > > think its a great way to teach newbies about checking vars before use > > (if nothing else) > > That and error_reporting

[PHP] Is there a big speed difference...

2005-06-09 Thread Brian Dunning
I have an include file with about 6 lines of code, just text parsing. If I have to loop through 5000 records, is there a big difference between (a) calling this include file 5000 times, and (b) defining a function and just calling the function 5000 times? -- PHP General Mailing List (http:/

Re: [PHP] Is there a big speed difference...

2005-06-09 Thread Jochem Maas
Brian Dunning wrote: I have an include file with about 6 lines of code, just text parsing. If I have to loop through 5000 records, is there a big difference between (a) calling this include file 5000 times, and (b) defining a function and just calling the function 5000 times? or (c) just p

Re: [PHP] Compilation trouble on OS X

2005-06-09 Thread Marcus Bointon
On 9 Jun 2005, at 15:46, John DeSoi wrote: Do you have the latest XCode installed? I think there was a recent update for OS X 10.4. I did not have any problems compiling PHP 5.0.4 with OS X 10.3, but I have not tried 10.4 yet. I do have XCode 2.1, but I don't think it has anything to do wit

Re: [PHP] Is there a big speed difference...

2005-06-09 Thread Brian Dunning
On Jun 9, 2005, at 9:48 AM, bruce wrote: bian... giave a psuedocode example of what you're trying to compare.. i think i know what you're asking, but i want to be sure.. OK, this is *pseudocode* remember... :) Is either of these SIGNIFICANTLY slower: === Example 1 === while(loops 5000

Re: [PHP] Is there a big speed difference...

2005-06-09 Thread Brian Dunning
On Jun 9, 2005, at 9:44 AM, Jochem Maas wrote: or (c) just placing the code inside the loop - no function call , no include, just wash and go ;-) - whichever is faster of (a) and (b), my (c) will be faster still. :-) I agree (c) would be swell but this is a function that I call from many

Re: [PHP] Compilation trouble on OS X

2005-06-09 Thread Brent Baisley
I'm pretty sure you have to install the developer tools in order to get the gcc compiler installed. So while you don't need XCode to compile, you do need the developer tools, which is almost synonymous with XCode. Doesn't 10.4 ship with gcc 4? I know I read about some bugs and problem with gcc

Re: [PHP] Is there a big speed difference...

2005-06-09 Thread Brent Baisley
Not sure which is faster, you would have to run a quick test to truly see. From a design standpoint, I would put the function in a class and load the class early in the file. You can then override the function, make changes to the number of parameters or other "flexibility" actions. The functio

[PHP] XSLT processor and xsl:param - expected behavior?

2005-06-09 Thread John Browne
Question.. I'm using PHP 5.0.4 with the built-in libxslt-based xsl extension. I'm passing XSL parameters to the XSL processor like so: $xslt_proc->setParameter('', 'param_test', "some test value"); My question is, is it *required* to declare this parameter in the XSL stylesheet with: What I h

[PHP] Printing functions under PHP 4.3.11

2005-06-09 Thread Fausto Mira
Hi! First off, thank you very much for your efforts. I have set up my php.ini file properly with the extension_dir tag. I am running under Windows XP Apache 2.0.50 and PHP 4.3.11. I have noticed that php_printer.dll was no longer part of these late versions 4.3.11 and 4.3.10. I tried an unconventi

Re: [PHP] Is there a big speed difference...

2005-06-09 Thread Jochem Maas
Brian Dunning wrote: On Jun 9, 2005, at 9:44 AM, Jochem Maas wrote: or (c) just placing the code inside the loop - no function call , no include, just wash and go ;-) - whichever is faster of (a) and (b), my (c) will be faster still. :-) I agree (c) would be swell but this is a function t

Re: [PHP] Is there a big speed difference...

2005-06-09 Thread Brian Dunning
On Jun 9, 2005, at 10:54 AM, Jochem Maas wrote: unless you intend to make a call to your function from inside the include file, No, the question is which of the two to use, not both. :) I've built a version that uses a function, will test, and will post the results. -- PHP General Mailin

Re: [PHP] Is there a big speed difference...

2005-06-09 Thread Jochem Maas
Brent Baisley wrote: Not sure which is faster, you would have to run a quick test to truly see. From a design standpoint, I would put the function in a class and load the class early in the file. You can then override the function, make changes to the number of parameters or other "flexibility"

Re: [PHP] Is there a big speed difference...

2005-06-09 Thread Chris Shiflett
Brian Dunning wrote: I have an include file with about 6 lines of code, just text parsing. If I have to loop through 5000 records, is there a big difference between (a) calling this include file 5000 times, and (b) defining a function and just calling the function 5000 times? Yes, there is a bi

[PHP] Re: weird thing; downloading from a php script stops at exactly 2.000.000bytes

2005-06-09 Thread Catalin Trifu
Hi, Thanks for the answer; the amount of memory configured is 64MB. readfile does no buffering and such things; it simply spits the file on the wire. Other suggestions ? C. rush wrote: > "Catalin Trifu" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>

[PHP] Can't connect to local MySQL server through socket.. ?

2005-06-09 Thread [EMAIL PROTECTED]
I have an admin area for one page on shared hosting. And I wanted to protect it by shared SSL from my hosting company. I got from them Your domain, afan.net, can now access our shared SSL certificate. To securely access the documents folder, go to ... https://secure.inetwave.com/afan/filename But

RE: [PHP] Is there a big speed difference...

2005-06-09 Thread bruce
in all honesty, it would really depend on how good the compiler/optimizer is.. but since you're dealing with php.. and i assume that there's not a good (if any) optimization process... i would tend to say, include the function/file once, use the function as required... -bruce -Original Mess

Re: [PHP] Can't connect to local MySQL server through socket.. ?

2005-06-09 Thread [EMAIL PROTECTED]
According to Google, my MySQL db is not on secure.inetwave.com server and have to use "something else" instead of "localhost" for host in mysql_connect(), right? -afan [EMAIL PROTECTED] wrote: I have an admin area for one page on shared hosting. And I wanted to protect it by shared SSL from

Re: [PHP] Can't connect to local MySQL server through socket.. ?

2005-06-09 Thread Richard Davey
Hello afan, Thursday, June 9, 2005, 7:07:26 PM, you wrote: aan> I have an admin area for one page on shared hosting. And I wanted to aan> protect it by shared SSL from my hosting company. I got from them aan> Your domain, afan.net, can now access our shared SSL certificate. aan> To securely acce

Re[2]: [PHP] Can't connect to local MySQL server through socket.. ?

2005-06-09 Thread Richard Davey
Hello afan, Thursday, June 9, 2005, 7:18:46 PM, you wrote: aan> According to Google, my MySQL db is not on secure.inetwave.com aan> server and have to use "something else" instead of "localhost" aan> for host in mysql_connect(), right? Sure.. you could the domain name of the server that MySQL is

Re: [PHP] Can't connect to local MySQL server through socket.. ?

2005-06-09 Thread [EMAIL PROTECTED]
Just as I thought :( Thanks Richard. -afan Richard Davey wrote: Hello afan, Thursday, June 9, 2005, 7:07:26 PM, you wrote: aan> I have an admin area for one page on shared hosting. And I wanted to aan> protect it by shared SSL from my hosting company. I got from them aan> Your domain, afan

Re: [PHP] Is there a big speed difference...

2005-06-09 Thread Chris Shiflett
bruce wrote: in all honesty, it would really depend on how good the compiler/optimizer is. No, it doesn't. Path resolution must still be performed, and this is going to result in at least one stat() and one realpath() call. These are expensive. Chris -- Chris Shiflett Brain Bulb, The PHP C

Re: [PHP] XSLT processor and xsl:param - expected behavior?

2005-06-09 Thread Christian Stocker
On 6/9/05, John Browne <[EMAIL PROTECTED]> wrote: > Question.. I'm using PHP 5.0.4 with the built-in libxslt-based xsl > extension. I'm passing XSL parameters to the XSL processor like so: > > $xslt_proc->setParameter('', 'param_test', "some test value"); > > My question is, is it *required* to

Re: [PHP] _construct() problem

2005-06-09 Thread Stéphane Bruno
Thanks, Richard It now works. It was not obvious in the book I was using. The author should have put a side note stating it is two underscores instead of one. Stéphane On Thu, 2005-06-09 at 08:42, Richard Davey wrote: > Hello Stéphane, > > Wednesday, June 8, 2005, 10:23:22 PM, you wrote: > > S

Re: [PHP] Compilation trouble on OS X

2005-06-09 Thread Marcus Bointon
On 9 Jun 2005, at 18:11, Brent Baisley wrote: I'm pretty sure you have to install the developer tools in order to get the gcc compiler installed. So while you don't need XCode to compile, you do need the developer tools, which is almost synonymous with XCode. Of course I have the develope

[PHP] [? BUG ?] weird thing; downloading from a php script stops at exactly 2.000.000 bytes

2005-06-09 Thread Catalin Trifu
Hi, I installed php5 using the configue below. I tried with apache2 as well and same things. './configure' '--prefix=/usr/local/php5' '--with-apxs=/usr/local/apache/bin/apxs' '--disable-cgi' '--with-config-file-path=/etc/php5' '--with-dom' '--with-gd' '--enable-sockets' '--enable-exif' '--w

RE: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-09 Thread Matt Babineau
Ok all - I've been playing with this print styl sheet thing. I can get the media="print" to behave correctly, but I cannot get table background colors set. I want to print the table bg colors and background images. I was hoping this was possible with CSS2. Does anyone have any input on this? I buil

Re: [PHP] Objects and Performance

2005-06-09 Thread Matthew Weier O'Phinney
* Greg Donald <[EMAIL PROTECTED]> : > On 6/8/05, Greg Beaver <[EMAIL PROTECTED]> wrote: > > If you want to compare object methods versus functions, you should > > compare identical code inside a method to code inside a function. > > Greg's benchmarks compare two different ideological code structure

RE: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-09 Thread Matt Babineau
Unfortunately you can't override this setting. It is really quite frustrating overall - I'm sure some of you have used background color to create an excel style table...or maybe I'm just doing things totally wrong. Customers get to login to get their invoices, so I really want them to be able to pr

Re: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-09 Thread Leif Gregory
Hello Matt, Thursday, June 9, 2005, 2:47:51 PM, you wrote: M> Ok all - I've been playing with this print styl sheet thing. I can M> get the media="print" to behave correctly, but I cannot get table M> background colors set. I want to print the table bg colors and M> background images. I was hoping

RE: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-09 Thread Warren Vail
Isn't this a user selectable option, which by default is turned off (on most browsers)? My Internet explorer has an advance configuration option that enables "Print background colors and images". Don't think you can override the users selection on this. Warren Vail [EMAIL PROTECTED] > -Orig

Re: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-09 Thread Kristen G. Thorson
Most web browsers I know of don't print anything specified as background by default. I imagine that functionality extends to CSS-defined background colors and images. I doubt there's a way to change that preference other than setting it manually. If changing the print settings on your machin

RE: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-09 Thread Matt Babineau
Yeah I do understand this. That is primarily what I was trying to find a workaround for. It doesn't seem like CSS will save me on this one. I can't seem to get table borders to look identical in ff/ie using CSS they render differently. My Diagrams mostly rely on bg colors, so I'm really up a creek

RE: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-09 Thread Chris W. Parker
Leif Gregory on Thursday, June 09, 2005 2:29 PM said: > You realize that the printing of background colors is determined > primarily by the user's browser right? > > In IE: > Tools / Internet Options / Advanced / Under Printing section. > > In Firefox: > File / Pag

[PHP] Php.net/pdf -> Making a PDF from the invoice

2005-06-09 Thread Matt Babineau
Speaking of PDF...I was looking at php.net/pdf and couldn't figure out if there was a way I could just dump in the html of the page and have it output as a pdf? Does anyone have any sample code for dumping HTML to PDF format? (Using PDFlib). Didn't seem like the samples on php.net were that good...

Re: [PHP] Objects and Performance

2005-06-09 Thread Greg Donald
On 6/9/05, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > Actually, that is the point. If I decide the write a script, and it is my idea, then the point of the script is my own. It's a simple benchmark. I doubt a client would ever come to me and say "Can you write me a script to add two ra

Re: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-09 Thread Leif Gregory
Hello Matt, Thursday, June 9, 2005, 3:34:30 PM, you wrote: M> Yeah I do understand this. That is primarily what I was trying to M> find a workaround for. It doesn't seem like CSS will save me on M> this one. I can't seem to get table borders to look identical in M> ff/ie using CSS they render diff

RE: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-09 Thread Warren Vail
One option I had considered, before I gave up struggling with this question, was to change all the colors to foreground colors by using tags and creating the images on the fly with PHP in the proper color (with text if I want to)> (images will print by default in most browsers. But hold on for the

RE: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-09 Thread Matt Babineau
Yikeshas anyone got a url for a good "Make PDF From HTML Class" that uses my newly installed PDFlib library? Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Leif Gregory [mailto:[EMAIL PROTECTED] Sent: Thursday,

Re: [PHP] [? BUG ?] weird thing; downloading from a php script stops at exactly 2.000.000 bytes

2005-06-09 Thread Rory Browne
I've never came across that problem, but try this function output_file($filename){ $fp = fopen($filename, "r"); while(!feof($fp)){ echo fread($fp, 1024000); } } On 6/9/05, Catalin Trifu <[EMAIL PROTECTED]> wrote: > Hi, > >I installed php5 using the configue below. I tried with apache2 as w

[PHP] Three queries. One Form.

2005-06-09 Thread jack jackson
Hi, I am trying to make one form on a single page insert info into three tables; query 1 creates an art_id (auto-increment) for the newly created row in table art; query2 creates a media_id in table media. Then I need to get the art_id and media_id created by the first two queries to insert int

Re: [PHP] [? BUG ?] weird thing; downloading from a php script stops at exactly 2.000.000 bytes

2005-06-09 Thread Catalin Trifu
Hi, Tried it and it works indeed, but it's quite annoying to make such tricks and is not the best solution either; fopen and fread are "expensive". I can't say if it's a bug in PHP or some config option. C. Rory Browne wrote: > I've never came across that problem, but try this > > fun

RE: [PHP] Three queries. One Form.

2005-06-09 Thread Matt Babineau
Well after the first query you could do this: $art_id = mysql_insert_id(); There is your new unique art_id you just created. Do this for the next table, the do the insert on your 3rd table. Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Or

Re: [PHP] Three queries. One Form.

2005-06-09 Thread Richard Davey
Hello jack, Friday, June 10, 2005, 12:05:35 AM, you wrote: jj> I am trying to make one form on a single page insert info into three jj> tables; query 1 creates an art_id (auto-increment) for the newly jj> created row in table art; jj> query2 creates a media_id in table media. jj> Then I need t

[PHP] Returned mail: Data format error

2005-06-09 Thread Automatic Email Delivery Software
ALERT! This e-mail, in its original form, contained one or more attached files that were infected with a virus, worm, or other type of security threat. This e-mail was sent from a Road Runner IP address. As part of our continuing initiative to stop the spread of malicious viruses, Road Runner s

Re: [PHP] Three queries. One Form.

2005-06-09 Thread jack jackson
On 6/9/05, Matt Babineau <[EMAIL PROTECTED]> wrote: > Well after the first query you could do this: > > $art_id = mysql_insert_id(); > > There is your new unique art_id you just created. > > Do this for the next table, the do the insert on your 3rd table. Thanks, Matt! > > > Matt Babineau >

[PHP] Making a page loop with header('Location: ...

2005-06-09 Thread Joe Harman
is it possible to make a page loop with header('Location : page.php')??? I've ran into a little bit of a snag with php execution time... so, i need to execute the page a few times so that I can split the operation up into multiple parts... my other option would be to make a javascript reload --

Re: [PHP] Three queries. One Form.

2005-06-09 Thread jack jackson
Thanks for this Richard! On 6/9/05, Richard Davey <[EMAIL PROTECTED]> wrote: > Hello jack, > > Friday, June 10, 2005, 12:05:35 AM, you wrote: > > jj> I am trying to make one form on a single page insert info into three > jj> tables; query 1 creates an art_id (auto-increment) for the newly > jj>

Re: [PHP] Making a page loop with header('Location: ...

2005-06-09 Thread Richard Davey
Hello Joe, Friday, June 10, 2005, 12:36:13 AM, you wrote: JH> is it possible to make a page loop with header('Location : JH> page.php')??? JH> I've ran into a little bit of a snag with php execution time... JH> so, i need to execute the page a few times so that I can split the JH> operation up i

Re: [PHP] Making a page loop with header('Location: ...

2005-06-09 Thread Marek Kilimajer
Joe Harman wrote: is it possible to make a page loop with header('Location : page.php')??? I've ran into a little bit of a snag with php execution time... so, i need to execute the page a few times so that I can split the operation up into multiple parts... my other option would be to make a jav

Re: [PHP] Making a page loop with header('Location: ...

2005-06-09 Thread Joe Harman
On 6/9/05, Richard Davey <[EMAIL PROTECTED]> wrote: > Hello Joe, > > Friday, June 10, 2005, 12:36:13 AM, you wrote: > > JH> is it possible to make a page loop with header('Location : > JH> page.php')??? > > JH> I've ran into a little bit of a snag with php execution time... > JH> so, i need to e

Re: [PHP] Making a page loop with header('Location: ...

2005-06-09 Thread Marek Kilimajer
Joe Harman wrote: On 6/9/05, Richard Davey <[EMAIL PROTECTED]> wrote: Hello Joe, Friday, June 10, 2005, 12:36:13 AM, you wrote: JH> is it possible to make a page loop with header('Location : JH> page.php')??? JH> I've ran into a little bit of a snag with php execution time... JH> so, i need

[PHP] Getting checkboxes as array

2005-06-09 Thread jack jackson
HI I have a form which pulls values from the db, and thanks to help from the irc chat, hopefully makes any checkboxes which are selected part of an array to be gotten in post: while ($media_rows = mysql_fetch_assoc($media_result)){ $checkbox_media[] = "{$media_ro

Re: [PHP] Getting checkboxes as array

2005-06-09 Thread Richard Davey
Hello jack, Friday, June 10, 2005, 2:16:06 AM, you wrote: jj> $query = "INSERT INTO media_art (media_art_id,art_id, media_id) jj> VALUES ('','" . $art_id . "','" . $media_types[2]. "')"; jj> repeat as many or few times as possible to account for the number of jj> checked boxes, such

Re: [PHP] Getting checkboxes as array

2005-06-09 Thread Sebastian
Don't forget to mention that even if you don't select a checkbox it will still add a empty record to the db.. i know for sure the foreach loop will add a record even if a box is not check, so you have to check its actually set before you start inserting. Richard Davey wrote: Hello jack, Fri

Re: [PHP] [? BUG ?] weird thing; downloading from a php script stops at exactly 2.000.000 bytes

2005-06-09 Thread Rory Browne
It's probably something to do with maximum memory, or something like that, but taking into account that your method is stretching the resources, fopen/fread may be a better solution. I'd be curious to see the benchmarked differences - but couldn't be bothered at this minute doing the benchmarking

Re: [PHP] Getting checkboxes as array

2005-06-09 Thread jack jackson
Thank you Sebastian! Saved me some hell there!! On 6/9/05, Sebastian <[EMAIL PROTECTED]> wrote: > Don't forget to mention that even if you don't select a checkbox it will > still add a empty record to the db.. i know for sure the foreach loop > will add a record even if a box is not check, so you

[PHP] Eiuqltbuwmpuzaims

2005-06-09 Thread The Post Office
ALERT! This e-mail, in its original form, contained one or more attached files that were infected with a virus, worm, or other type of security threat. This e-mail was sent from a Road Runner IP address. As part of our continuing initiative to stop the spread of malicious viruses, Road Runner s

  1   2   >