[PHP] R: [PHP] Performance question

2005-12-05 Thread Sebastian \En3pY\ Zdrojewski
Hi, I do prefer the first style programming after longer time in programming PHP. I like the idea of keeping HTML and PHP code separate for cosmetic purpose as well as mantainance. Actually a code with PHP only, I mean really with NO HTML code in it, is more portable and easy to mantain. As for

[PHP] Multiple callback_outputs for ob_start

2005-12-05 Thread Mathijs
Hello ppl, I Have a question about ob_start(). How can i add more callback_outputs to ob_start? I want to have both: ob_start('switchContent'); and: ob_start('ob_gzhandler'); How can i do that? Thx in advanced. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] template systems

2005-12-05 Thread Eternity Records Webmaster
Hi... I was wondering if there are any template systems out there that are fairly easy to use (that don't require hours and hours reading books) and that are fairly good as well? I need one also that works with pear packages since I use html_quickform a lot. I considered checking out smarty but

[PHP] Re: R: [PHP] Performance question

2005-12-05 Thread Anders Norrbring
On 2005-12-05 09:05 Sebastian En3pY Zdrojewski wrote: Hi, I do prefer the first style programming after longer time in programming PHP. I like the idea of keeping HTML and PHP code separate for cosmetic purpose as well as mantainance. Actually a code with PHP only, I mean really with NO HTML

[PHP] Re: [PHP-DEV] Zend Sudio's Optimizer / PHP 5.1.1

2005-12-05 Thread Mike Bretz
ZendOptimizer will be available for PHP5.1 within a few weeks - that's what you get from zend support. mike Joseph Crawford wrote: i keep getting an error that zend optimizer doesnt work with this version of PHP, can anyone explain why that would be? i have gone into zend studio and went to

RE: [PHP] template systems

2005-12-05 Thread Thomas
Hi, Templating systems are really a matter of taste. You have a few options, depending also on the paradigm you want to use (Model2, MVC ... maybe read up on that as that is good general knowledge). Also, please check the archives as this question has already been discussed at length ;-)

[PHP] Re: PDF Generator

2005-12-05 Thread Norbert Wenzel
Dan Harrington wrote: I have a TON of forms that I have to populate, can I make a PDF file using Acrobat Professional, and then use PHP to populate those forms and have text inserted into the pre-made text fields that I made using Acrobat? And if so, what is the best tool for that? I'd prefer

[PHP] functions that take variable arguments?

2005-12-05 Thread Eternity Records Webmaster
how do you create/use a function that takes an undefined amount of arguments? I looked at the manual but its a little confusing. for example, i want to make a function called Update inside a DB class: class DB { //vars here var $host; var $DbUser; //functions function Update(...) { //this

Re: [PHP] functions that take variable arguments?

2005-12-05 Thread Richard Heyes
Eternity Records Webmaster wrote: how do you create/use a function that takes an undefined amount of arguments? I looked at the manual but its a little confusing. for example, i want to make a function called Update inside a DB class: class DB { //vars here var $host; var $DbUser; //functions

[PHP] Re: Performance question

2005-12-05 Thread James Benson
I dont think either will give a performance decrease any less than the other will do. Anders Norrbring wrote: I've been spending some time to find performance pros and cons, but so far haven't had any real luck. Can someone on this list say which is better than the other, and also

[PHP] Re: Count and Preg_Replace Using Version 4.4.1

2005-12-05 Thread Al
Shaun wrote: Hi, The following code matches all occurences of p tags within an html page and wraps form tags around it: echo preg_replace( '/p[^]*(.*?)\/p/ms', 'form name=form target=_parent action='.$CFG-edit_pages_adm.'/index.php?action=edit_paragraph method=post input

[PHP] PHP and Flash Remoting

2005-12-05 Thread Yaswanth Narvaneni
Hi! I am using amfchat from tufat.com, and wanted to integrate it with my site's session data. amfchat uses flash remoting to communicate to the server. It initally sends sessionid=time() to gateway.php gateway.php starts a session using: function session($name=false){ if($name){

Re: [PHP] Mail SMTP settings

2005-12-05 Thread Brent Baisley
There are a lot of limitations in the built-in PHP mail function. If you want more control over how your email is sent, try using phpmailer. It's all php code, so you can customize it to your needs, not that you need to. http://phpmailer.sourceforge.net/ On Dec 3, 2005, at 2:45 AM, Dan

[PHP] Browser Control Help

2005-12-05 Thread Chirantan Ghosh
Hi All, I was wondering how do in trick in PHP page head part? I want to disable Ctrl, Atl, Print Screen and also remove the File, Edit, View menus from the browser. I already have a working version with disabled Ctrl, Atl, Print Screen ( http://www.art-nyc.us/ )but I need some help with

RE: [PHP] Browser Control Help

2005-12-05 Thread Jay Blanchard
[snip] I was wondering how do in trick in PHP page head part? I want to disable Ctrl, Atl, Print Screen and also remove the File, Edit, View menus from the browser. I already have a working version with disabled Ctrl, Atl, Print Screen ( http://www.art-nyc.us/ )but I need some help with coding

Re: [PHP] Multiple callback_outputs for ob_start

2005-12-05 Thread Chris Shiflett
Mathijs wrote: How can i add more callback_outputs to ob_start? I want to have both: ob_start('switchContent'); and: ob_start('ob_gzhandler'); I don't think you can, but you could have a single function that calls both, then specify that function in ob_start(). Chris -- Chris Shiflett

Re: [PHP] Browser Control Help

2005-12-05 Thread Chirantan Ghosh
Thanks Jay, In the site of example I did in JS :) I thought It would be improvement if there was something similar then I could use it for other things later. Thanks again, C - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: 'Chirantan Ghosh' [EMAIL PROTECTED];

Re: [PHP] Browser Control Help

2005-12-05 Thread Chirantan Ghosh
Hi Dan, You are sooo right. We know certain kindda people would love to break the code just cuz its there :D I am least worried about programmers. Its stupid rich Art collage kids I am trying to prevent using my stuff. You would be amazed to know I walked in SVA( School of Visual Arts),

RE: [PHP] Browser Control Help

2005-12-05 Thread Jim Moseby
As Dan has correctly pointed out, you can only hope to make stealing your content less convenient, though only marginally so. If you display a picture on my browser, all I have to do to steal it is hit my Print Screen button, then paste it into PhotoShop. There are any number of other ways to

Re: [PHP] Browser Control Help

2005-12-05 Thread Jason Petersen
I wish I had a dollar every time I've seen a question like yours, it seems like a lot of new developers think they need to fundamentally alter the way the browser works to protect their content. The fact is, if you're putting content on the public web, it can--and will--be downloaded by all of

[PHP] php-sqlite W2K install problem

2005-12-05 Thread Marlin Unruh
I am tiring to use sqlite which is [quote] bundled with php5 [unquote]. I am missing something somewhere. I modified the php.ini to include the php_extension=php_sqlite.dll. Following is the error I get. [05-Dec-2005 07:40:33] PHP Fatal error: Call to undefined function sqlite_open() in

Re: [PHP] Browser Control Help

2005-12-05 Thread Chirantan Ghosh
Thanks Jason, I am always ready to be enlightened by ones who know better than me. As you suggested, I really would love to get a watermark which is invisible with initial viewing but activated once a copying/printing command ( Can be Ctrl+C or Alt+Printscreen) is used. If you can help it

Re: [PHP] php-sqlite W2K install problem

2005-12-05 Thread Marlin Unruh
Marlin Unruh wrote: I am tiring to use sqlite which is [quote] bundled with php5 [unquote]. I am missing something somewhere. I modified the php.ini to include the php_extension=php_sqlite.dll. Following is the error I get. [05-Dec-2005 07:40:33] PHP Fatal error: Call to undefined function

Re: [PHP] Browser Control Help

2005-12-05 Thread Duncan Hill
On Monday 05 December 2005 16:36, Chirantan Ghosh wrote: As you suggested, I really would love to get a watermark which is invisible with initial viewing but activated once a copying/printing command ( Can be Ctrl+C or Alt+Printscreen) is used. Once the browser has the content, it's out of

RE: [PHP] Browser Control Help

2005-12-05 Thread Dan Parry
Rather than trying to prevent theft of your images why not create a little app that steganographs some copyright information... With some thought it's possible to hide textual content within an image At least then you can prove it was yours... Just a thought Dan -Original Message- From:

Re: [PHP] Browser Control Help

2005-12-05 Thread John Nichel
Chirantan Ghosh wrote: Thanks Jason, I am always ready to be enlightened by ones who know better than me. As you suggested, I really would love to get a watermark which is invisible with initial viewing but activated once a copying/printing command ( Can be Ctrl+C or Alt+Printscreen) is

[PHP] PHP Warning: imagettftext() expects parameter 2 to be double

2005-12-05 Thread James
Hi there, I have been using the GD functions from PHP5.0 on Mac OS X. I have a simple script that creates a PNG image with text on the image using fonts using FreeType 2. I am trying to use the imagettftext() function within a foreach loop ­ but I get the following error: PHP Warning:

[PHP] SSI problem with php after 4.3.10 - 4.4.1 upgrade

2005-12-05 Thread kristina clair
Hello, I'm having a problem with certain SSI files which include php scripts after upgrding php from 4.3.10 to 4.4.1. The includes look like: !--#include file=eventsdb.php?ID=81fld=2 -- In some cases, the page output is different with 4.4.1 than it is with 4.3.10. In the worst cases, Apache

RE: [PHP] SSI problem with php after 4.3.10 - 4.4.1 upgrade

2005-12-05 Thread Jay Blanchard
[snip] I'm having a problem with certain SSI files which include php scripts after upgrding php from 4.3.10 to 4.4.1. The includes look like: !--#include file=eventsdb.php?ID=81fld=2 -- In some cases, the page output is different with 4.4.1 than it is with 4.3.10. In the worst cases, Apache

Re: [PHP] SSI problem with php after 4.3.10 - 4.4.1 upgrade

2005-12-05 Thread kristina clair
On 12/5/05, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] I'm having a problem with certain SSI files which include php scripts after upgrding php from 4.3.10 to 4.4.1. The includes look like: !--#include file=eventsdb.php?ID=81fld=2 -- In some cases, the page output is different with 4.4.1

Re: [PHP] php-sqlite W2K install problem

2005-12-05 Thread Marlin Unruh
Marlin Unruh wrote: Marlin Unruh wrote: I am tiring to use sqlite which is [quote] bundled with php5 [unquote]. I am missing something somewhere. I modified the php.ini to include the php_extension=php_sqlite.dll. Following is the error I get. [05-Dec-2005 07:40:33] PHP Fatal error: Call

RE: [PHP] Mail SMTP settings

2005-12-05 Thread Mark Steudel
Also look at PEAR::Mail. If you search back through this list there was a discussion on peoples preferences. -Original Message- From: Brent Baisley [mailto:[EMAIL PROTECTED] Sent: Monday, December 05, 2005 7:04 AM To: Dan Cc: php-general@lists.php.net Subject: Re: [PHP] Mail SMTP

[PHP] Redirects Safari vs Others

2005-12-05 Thread Mark Steudel
I was wondering if folks have experienced infinite redirection loops with Safari where other browsers don't encounter the same problems. This is what safari spits out http://www.domain.com/microlibrary.php?action=subcategoryid=7top=%2Fpage.p

[PHP] String Validation / SQL Injection Vulnerbilities

2005-12-05 Thread Michael B Allen
I want to validate a string for storage into a database so that it cannot contain any content that might be interpreted as SQL, Javascript, PHP, etc. Is there a standard function or technique to perform this validation? Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] String Validation / SQL Injection Vulnerbilities

2005-12-05 Thread Jay Blanchard
[snip] I want to validate a string for storage into a database so that it cannot contain any content that might be interpreted as SQL, Javascript, PHP, etc. Is there a standard function or technique to perform this validation? [/snip] The technique is regex (regular expressions), start here

[PHP] R: [PHP] Re: Performance question

2005-12-05 Thread Sebastian \En3pY\ Zdrojewski
Hi, actually I think that if you have performance problem is when you make the calculations and process. If you make processes while giving output to the client, you might have some problems whether being somehow output buffering dependant... I would rather leave the output management as final

Re: [PHP] Redirects Safari vs Others

2005-12-05 Thread Brent Baisley
Probably not a PHP problem. And probably can't help without seeing your redirect code. I've never had a problem with redirects in any browser Safari or otherwise, but I always make sure I redirect with a full URL rather than a relative URL. On Dec 5, 2005, at 1:29 PM, Mark Steudel wrote:

[PHP] R: [PHP] how to unregister session stored as multidimensional array?

2005-12-05 Thread Sebastian \En3pY\ Zdrojewski
Try ? @reset( $_SESSION['client'] ); while ( list( $var, $val ) = @each( $_SESSION['client'] ) ) { if ( $var != 'name' ) unset( $_SESSION['client'][ $val ] ); } ? a bit dirty but works... :-/ Sebastian Konstanty Zdrojewski URL: http://www.en3py.net/

Re: [PHP] String Validation / SQL Injection Vulnerbilities

2005-12-05 Thread Curt Zirzow
On Mon, Dec 05, 2005 at 02:00:13PM -0500, Michael B Allen wrote: I want to validate a string for storage into a database so that it cannot contain any content that might be interpreted as SQL, Javascript, PHP, etc. Is there a standard function or technique to perform this validation? Trying to

Re: [PHP] how to unregister session stored as multidimensional array?

2005-12-05 Thread Curt Zirzow
On Mon, Dec 05, 2005 at 02:45:43PM -0600, [EMAIL PROTECTED] wrote: Is this possible at all: I have stored info from form in session: $_SESSION['client']['name'] = 'Name' $_SESSION['client']['address'] = 'Address' $_SESSION['client']['city'] = 'City' $_SESSION['client']['state'] = 'State'

[PHP] Pls check my style.

2005-12-05 Thread Michael B Allen
I'm very new to PHP so I have yet to develop a style. I would love to see how you would write this fragment of code so that I might get a better understanding of good PHP techniques and best practices. Consider the following fragment: class Account { function store() { switch

Re: [PHP] Sessions, Expire-headers and Firefox's back button

2005-12-05 Thread Peter Brodersen
On Sun, 4 Dec 2005 11:56:43 -0800, in php.general [EMAIL PROTECTED] (Curt Zirzow) wrote: iirc, Firefox 1.5 has improved its caching system, in paticular to the back button drama. It seems so, but the issue is still present in 1.5 and might be further on. session_cache_limiter('private') changed

[PHP] GD Graph tutorial?

2005-12-05 Thread Ashley M. Kirchner
Does anyone know of a good GD tutorial for creating graphs? I'm looking to create something like the attached one by feeding it the values and have it create the graph. Possibly with multiple lines, different colors, different types of data, etc., etc. -- W | It's not a bug - it's an

Re: [PHP] GD Graph tutorial?

2005-12-05 Thread Mark Steudel
You may have alreayd looked at this class, but this one is great for creating graphs:   http://www.aditus.nu/jpgraph/   There are some licensing issues with it so if this is for a company then you probably have to buy a license.   Mark -Original Message- From: Ashley M.

[PHP] Re: GD Graph tutorial?

2005-12-05 Thread Gustavo Narea
Hello, Ashley. Ashley M. Kirchner wrote: Does anyone know of a good GD tutorial for creating graphs? I like this one: http://www.nyphp.org/content/presentations/GDintro/ Regards. -- Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP General Mailing

[PHP] memory leaks with 5.1 and osx

2005-12-05 Thread Dan Rossi
Ive discovered these errors in the apache error logs, is this anything serious ? Is there hardlinks to the source ? /usr/share/sources/php/php-5.1.1/Zend/zend_compile.c(1862) : Freeing 0x021B4E78 (140 bytes), script=thescript.php /usr/share/sources/php/php-5.1.1/Zend/zend_hash.c(248) : Actual