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
pe
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: http://w
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 wa
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 c
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 t
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 ;-)
Anyway,
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 t
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 functio
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
f
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
why,
Shaun wrote:
Hi,
The following code matches all occurences of tags within an html page
and wraps form tags around it:
echo preg_replace(
'/]*>(.*?)<\/p>/ms',
'action="'.$CFG->edit_pages_adm.'/index.php?action=edit_paragraph"
method="post">
$1
',
file_get_conte
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){
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 wro
Hi All,
I was wondering how do in trick in PHP page 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 wi
[snip]
I was wondering how do in trick in PHP page 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 with t
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
Brai
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]>;
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), NY
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
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
y
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 G:\ap
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 wo
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
s
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 P
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:
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 used.
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: imagettf
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:
In some cases, the page output is different with 4.4.1 than it is with
4.3.10. In the worst cases, Apache gives a segmentation fault, and
the page is bla
[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:
In some cases, the page output is different with 4.4.1 than it is with
4.3.10. In the worst cases, Apache gives a segmentation fault, and
the page is blan
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:
>
>
> In some cases, the page output is different with 4.4.1 than it is with
> 4.3.10. In the
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 to
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 setting
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=subcategory&id=7&top=%2Fpage.p
hp%3Fpage%3D33&page=33?action=listentries&category
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 unsubscrib
[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
http:/
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 ste
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:
I
Try
a bit dirty but works... :-/
Sebastian Konstanty Zdrojewski
URL: http://www.en3py.net/
E-Mail: [EMAIL PROTECTED]
Le informazioni contenute in questo messaggio sono riservate e
confidenziali. Il loro utilizzo è consentit
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
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
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 ($this->sta
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') change
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 un
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. Kirc
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 L
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
46 matches
Mail list logo