[PHP] Re: Class/functions question

2006-02-12 Thread M. Sokolewicz
Paul Goepfert wrote: Hi all, I building a website with PHP. I am going to be using functions to deal with vaildation. I am putting all the methods in a class called Validation. My problem is I do not know how to call the function. Well I shouldn't say that. I know how to call functlions,

Re: [PHP] Class/functions question

2006-02-12 Thread Chris Shiflett
Paul Goepfert wrote: I know how to call functlions, I just just don't know how to do it in PHP. Based on the rest of your question, I think you mean methods, not functlions. :-) If you're struggling with syntax, you should take one step at a time. Try this: ?php class myClass {

Re: [PHP] Re: Clone of the concurrent users limit of Zend Encoder 4.0 ?

2006-02-12 Thread Mark Charette
Let me give an example: on fileplanet.com, they have something so called download slot and lines. They limit the number of concurrent downloads. If there are too many users, they will disallow new user to download their files. As I know, they do it with custom HTTP server. Not so custom

[PHP] Flatfile forum?

2006-02-12 Thread Nicholas Couloute
I am interested in creating a flatfile database forum! How would I go about doing this. I know it has been done before! I want to make one from the ground up! ~Nick Couloute co-owner/Web Designer Sidekick2Music.Com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] memory leak when referencing associative arrays

2006-02-12 Thread Gonzalo MC
Hi all, I'm having some pain with this process. I'll try to explain it well, my english is little bad... :-) I've got two main loops, handled by timeouts. One loop calls to an object method every half second to do a computation. It reads from external device, creates helper arrays for

[PHP] Smart anti-aliasing

2006-02-12 Thread tedd
Hi: I know how to create a watermark by simply imposing one image on another via imagecopy() or imagecopymerge(). However, is there a way to place a watermark on a image such that the watermark is actually anti-aliased against the background of the base image? For example, please review:

Re: [PHP] Smart anti-aliasing

2006-02-12 Thread Curt Zirzow
On Sun, Feb 12, 2006 at 01:40:42PM -0500, tedd wrote: Hi: I know how to create a watermark by simply imposing one image on another via imagecopy() or imagecopymerge(). However, is there a way to place a watermark on a image such that the watermark is actually anti-aliased against the

RE: [PHP] unsupported binary characters in database,

2006-02-12 Thread Mark Steudel
Hmmm ... I guess that's an idea. Any other ways of dealing with this? -Original Message- From: Webmaster [mailto:[EMAIL PROTECTED] Sent: Saturday, February 11, 2006 6:06 PM To: Mark Steudel Subject: Re: [PHP] unsupported binary characters in database, Mark Steudel wrote: I have the

RE: [PHP] Flatfile forum?

2006-02-12 Thread Weber Sites LTD
Sorry for the lame question :) But why? Sincerely berber Visit the Weber Sites Today, To see where PHP might take you tomorrow. PHP code examples : http://www.weberdev.com PHP MySQL Forums : http://www.weberforums.com Learn PHP MySQL Playing Trivia : http://www.webertrivia.com

[PHP] PHP function called by onclick

2006-02-12 Thread Alain Roger
Hi, I have a link in my web page and when user click on this link, i would like to execute a PHP function with a parameter. how can i do it ? ex : ?php function lang($language) { $lg = $language; } ? ... A href=?php lang(eng);?test/A but this does not work :-( thanks for help. Alain

[PHP] What's the average color?

2006-02-12 Thread tedd
Hi gang: Given an image, what's the average color? Here's an example: http://www.degraeve.com/color-palette/ I would think that one could load an image (or a portion of it) and then go through it pixel by pixel to determine what the average RBG content would be. Is there a routine for that?

Re: [PHP] Smart anti-aliasing

2006-02-12 Thread tedd
Create the image you are going to watermark with as a PNG, png doesn't suffer the issues of the antialiasing issues like GIF. You just want to make sure you use the function: imagealphablending(); On the original image before you apply the watermark in your merge. $image =

Re: [PHP] Flatfile forum?

2006-02-12 Thread Rory Browne
I'm not sure what you mean. 10 different programmers would do this 10 different ways. Personally I'd create a forum-data manipulation API, and then create a frontend to access this. I suggest you abstract the data access routines into an API of its own, so that when you come to your senses, you

Re: [PHP] PHP function called by onclick

2006-02-12 Thread Chris Shiflett
Alain Roger wrote: I have a link in my web page and when user click on this link, i would like to execute a PHP function with a parameter. You'll need to initiate a new request. Browsers don't execute PHP code. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ --

Re: [PHP] PHP function called by onclick

2006-02-12 Thread Paul Novitski
At 11:46 AM 2/12/2006, Alain Roger wrote: I have a link in my web page and when user click on this link, i would like to execute a PHP function with a parameter. how can i do it ? If you're using PHP in the usual way as a server-side script, it doesn't run in the same time-frame as user

[PHP] php as a content filter?

2006-02-12 Thread Juraj Bednar
Hello, I would like to use PHP as a content filter for proxy. Has anyone tried this before? Is there a way to interface PHP with Apache2's proxy mechanism? I can fetch the page myself or let apache do it, but I would like to change the final data before it passes the client. Is it possible

Re: [PHP] Limitation on PEAR : Spreadsheet_Excel_Writer

2006-02-12 Thread Adam Ashley
On Fri, 2006-02-10 at 05:47 +0700, Bagus Nugroho wrote: Hello Everyone, I'm succesfully generate report from mysql table using PEAR : Spreadsheet_Excel_Writer, but I have problem to generate from table which contain long text, the text is not download completely. such as blablabla.

[PHP] Re: string lenght?

2006-02-12 Thread Eli
William Stokes wrote: How can I test whether a string is 1 or 2 digits long? You can use regular expressions: preg_match('/^\d{1,2}$/',$str); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP multi-threading ?

2006-02-12 Thread Eli
Hi, Is PHP gonna support multi-threading (not multi-processing) capabilities in the future? Even just for the CLI (and CGI) mode.. It would be very helpful to use PHP as server scripting language on linux (rather than perl). ;-) Where can I check the road map of PHP development? -thanks --

Re: [PHP] PHP multi-threading ?

2006-02-12 Thread Chris
Is PHP gonna support multi-threading (not multi-processing) capabilities in the future? Is this what you're after? http://www.php.net/pcntl specifically http://www.php.net/pcntl_fork Where can I check the road map of PHP development?

[PHP] string size in bytes

2006-02-12 Thread benifactor
can someone point me in the right direction... i need to know how many bytes are in a string example: $string = blah; string == how many bytes also i need to know how to find out how fast a page renders example; page rendered in 1.114 seconds any help would be greatly appreciated thank

Re: [PHP] PHP multi-threading ?

2006-02-12 Thread Eli
Chris wrote: Is this what you're after? http://www.php.net/pcntl specifically http://www.php.net/pcntl_fork Sorry, but no... This is multi-processing, not multi-threading. And it's supported on CLI mode already and not on windows. Where can I check the road map of PHP development?

Re: [PHP] string size in bytes

2006-02-12 Thread Philip Hallstrom
i need to know how many bytes are in a string example: $string = blah; string == how many bytes Well, if you're willing to ignore all the unicode stuff, you can use strlen() since 1 byte = 1 character. Check that manpage to see if there's a unicode safe version. also i need to know how

[PHP] xml-rpc and xml-rpci

2006-02-12 Thread Alex Duggan
Hello, What is the future of the xml-rpc client and server functions in php 5.x? I see the old xml-rpc extension is still marked as expirimental and the newer xml-rpci extention in pecl has not been worked on in 12 months and doesn't have server functionality. I am in the process of porting a

[PHP] Re: string size in bytes

2006-02-12 Thread Eli
benifactor wrote: also i need to know how to find out how fast a page renders example; page rendered in 1.114 seconds ?php $start_time = microtime(true); // ... code goes here ... // $end_time = microtime(true); $duration = $end_time - $start_time; echo page rendered in $duration seconds;

Re: [PHP] string size in bytes

2006-02-12 Thread Curt Zirzow
On Sun, Feb 12, 2006 at 08:13:42PM -0600, Philip Hallstrom wrote: i need to know how many bytes are in a string example: $string = blah; string == how many bytes Well, if you're willing to ignore all the unicode stuff, you can use strlen() since 1 byte = 1 character. Check that

Re: [PHP] Re: Clone of the concurrent users limit of Zend Encoder 4.0 ?

2006-02-12 Thread Curt Zirzow
On Sun, Feb 12, 2006 at 10:32:27AM -0500, Mark Charette wrote: Let me give an example: on fileplanet.com, they have something so called download slot and lines. They limit the number of concurrent downloads. If there are too many users, they will disallow new user to download their

Re: [PHP] Smart anti-aliasing

2006-02-12 Thread Curt Zirzow
On Sun, Feb 12, 2006 at 03:33:39PM -0500, tedd wrote: Create the image you are going to watermark with as a PNG, png doesn't suffer the issues of the antialiasing issues like GIF. ... First, thanks for helping. No problem Second, I wasn't using a GIF -- my copyright was a png and my

Re: [PHP] Asynchronous Processing

2006-02-12 Thread Curt Zirzow
On Sun, Feb 12, 2006 at 12:51:34AM -0200, Gustavo Rios wrote: Hey folks, i am writing a small program in C that does mysql queries. The problem i am facing is that it is done in synchronous fashion. I wonder how php does mysql queries in asynchronous fashion? How do you mean

[PHP] Where is Zend

2006-02-12 Thread Roger Thomas
I have had difficulty going to zend.com to download Zend Optimizer for php-4.4.2 since last week. Anybody that have a copy of Zend Optimizer, I would appreciate if you could provide me with a link to your server that I can download a copy. TIA. --roger

Re: [PHP] Where is Zend

2006-02-12 Thread Roger Thomas
Quoting Chris [EMAIL PROTECTED]: Roger Thomas wrote: I have had difficulty going to zend.com to download Zend Optimizer for php-4.4.2 since last week. Have you contacted zend and told them you were having a problem ? I'm sure they have an easy to fill in contact form on their site. I

Re: [PHP] Where is Zend

2006-02-12 Thread antispo
last night i've dowloaded zend studio ...zend.com... it's up an runnin'

Re: [PHP] Where is Zend

2006-02-12 Thread Chris
Roger Thomas wrote: I have had difficulty going to zend.com to download Zend Optimizer for php-4.4.2 since last week. Have you contacted zend and told them you were having a problem ? I'm sure they have an easy to fill in contact form on their site. -- PHP General Mailing List