Re: [PHP] Re: Scratch that

2008-01-10 Thread mike
you're still issuing an HTTP request to get it, or executing perl on the command line... if it's a true non-profit 503(c)(3), you could offer someone the chance to write off their services... non-profits may not have a lot of money to spare but they do typically have money to fund things in the

[PHP] Get Parameters in Includes [SOLVED!!!]

2008-01-10 Thread Liam
mike wrote: you're still issuing an HTTP request to get it, or executing perl on the command line... if it's a true non-profit 503(c)(3), you could offer someone the chance to write off their services... non-profits may not have a lot of money to spare but they do typically have money to fund

Re: [PHP] Get Parameters in Includes [SOLVED!!!]

2008-01-10 Thread mike
yeah - well you said you can't issue an http request although it depends - if your reporting is javascript/browser-executable, or if it's a server-side increment. if it's javascript, no worries, the curl request won't execute it. On 1/10/08, Liam [EMAIL PROTECTED] wrote: mike wrote: you're

Re: [PHP] Get Parameters in Includes [SOLVED!!!]

2008-01-10 Thread Liam
mike wrote: yeah - well you said you can't issue an http request although it depends - if your reporting is javascript/browser-executable, or if it's a server-side increment. if it's javascript, no worries, the curl request won't execute it. On 1/10/08, Liam [EMAIL PROTECTED] wrote: mike

[PHP] Closures in PHP

2008-01-10 Thread John Papas
Is there any functionality in PHP similar to closures? Are there any plans to add it..? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Closures in PHP

2008-01-10 Thread Jochem Maas
John Papas schreef: Is there any functionality in PHP similar to closures? Are there any plans to add it..? read the archives of the php internals or all posts pertaining to closures, that will answer all your questions. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Get Parameters in Includes [SOLVED!!!]

2008-01-10 Thread Daniel Brown
On Jan 10, 2008 4:00 AM, Liam [EMAIL PROTECTED] wrote: Thanks everyone for your assistance, I'll be sure to come back here and frustrate you with any future problems I have. :] :P That's fine, and it's for that reason this list exists, but here's a couple of pointers: 1.) Keep the

Re: [PHP] PHP Jpeg Uploads Corrupting

2008-01-10 Thread Daniel Brown
On Jan 9, 2008 7:57 PM, Jim Lucas [EMAIL PROTECTED] wrote: Scott Wilcox wrote: Greetings folks, I'm having a few issues with PHP this evening. I'm uploading various jpg images, doing a resize via GD, and then storing the image in a database. [snip!] First, start your own thread next

Re: [PHP] PHP Jpeg Uploads Corrupting

2008-01-10 Thread Lester Caine
Daniel Brown wrote: On Jan 9, 2008 7:57 PM, Jim Lucas [EMAIL PROTECTED] wrote: Scott Wilcox wrote: Greetings folks, I'm having a few issues with PHP this evening. I'm uploading various jpg images, doing a resize via GD, and then storing the image in a database. [snip!] First, start your own

Re: [PHP] PHP Jpeg Uploads Corrupting

2008-01-10 Thread Jim Lucas
Lester Caine wrote: Daniel Brown wrote: On Jan 9, 2008 7:57 PM, Jim Lucas [EMAIL PROTECTED] wrote: Scott Wilcox wrote: Greetings folks, I'm having a few issues with PHP this evening. I'm uploading various jpg images, doing a resize via GD, and then storing the image in a database. [snip!]

Re: [PHP] PHP Jpeg Uploads Corrupting

2008-01-10 Thread Daniel Brown
On Jan 10, 2008 11:12 AM, Lester Caine [EMAIL PROTECTED] wrote: Daniel - all the messages in this thread have a message id of References: [EMAIL PROTECTED] So correct threading will group them altogether. If an existing message is 'replied to' even if the title is changed, the threading

Re: [PHP] PHP Jpeg Uploads Corrupting

2008-01-10 Thread Jim Lucas
Daniel Brown wrote: On Jan 10, 2008 11:12 AM, Lester Caine [EMAIL PROTECTED] wrote: Daniel - all the messages in this thread have a message id of References: [EMAIL PROTECTED] So correct threading will group them altogether. If an existing message is 'replied to' even if the title is changed,

[PHP] Dependant listboxes

2008-01-10 Thread Humani Power
Hi everybody. I have a page with 3 combo box that contains rows from an oracle database. What I want to do, is to make those list dependant one from another. Let say that I have the combo boxes on a page1.php, then on change the first list box, reload the page1.php and make the selection of the

Re: [PHP] Dependant listboxes

2008-01-10 Thread Daniel Brown
On Jan 10, 2008 11:43 AM, Humani Power [EMAIL PROTECTED] wrote: Hi everybody. I have a page with 3 combo box that contains rows from an oracle database. What I want to do, is to make those list dependant one from another. Let say that I have the combo boxes on a page1.php, then on change the

Re: [PHP] Unable to override status code in certain installations..?

2008-01-10 Thread RavenWorks
It's the exact same situation as this bug: http://bugs.php.net/bug.php?id=24177 except, that bug was fixed back in PHP 4... In my case, the server that works is running PHP 5.2.2, and the server that DOESN'T work is running PHP 5.2.3! So either it's a bug that cropped up (again) after 5.2.2, or

Re: [PHP] Dependant listboxes

2008-01-10 Thread Zoltán Németh
2008. 01. 10, csütörtök keltezéssel 10.43-kor Humani Power ezt írta: Hi everybody. I have a page with 3 combo box that contains rows from an oracle database. What I want to do, is to make those list dependant one from another. Let say that I have the combo boxes on a page1.php, then on

RE: [PHP] Dependant listboxes

2008-01-10 Thread Warren Vail
There are several ways of doing it and all involve javascript, some more than others. Here are some of the problems; . without javascript the only thing that will cause a form to be submitted to the server for rebuilding, is clicking a submit button. . with a minimal amount of javascript you can

[PHP] uh oh, I defined a resoruce

2008-01-10 Thread reese
I have been using define to create a constant for the link resource returned by mysql pconnect like so: $PL = @mysql_pconnect(localhost, $DBUser, $DBPass); define(SITE_DB,$PL); Later I use the constant to select my databases. mysql_select_db($SrcdbID ,SITE_DB); This code

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Eric Butera
On Jan 10, 2008 1:33 PM, [EMAIL PROTECTED] wrote: I have been using define to create a constant for the link resource returned by mysql pconnect like so: $PL = @mysql_pconnect(localhost, $DBUser, $DBPass); define(SITE_DB,$PL); Later I use the constant to select my databases.

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Eric Butera
On Jan 10, 2008 2:02 PM, Philip Thompson [EMAIL PROTECTED] wrote: On Jan 10, 2008, at 12:48 PM, Eric Butera wrote: On Jan 10, 2008 1:33 PM, [EMAIL PROTECTED] wrote: I have been using define to create a constant for the link resource returned by mysql pconnect like so: $PL =

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread David Giragosian
On 1/10/08, Eric Butera [EMAIL PROTECTED] wrote: On Jan 10, 2008 2:02 PM, Philip Thompson [EMAIL PROTECTED] wrote: On Jan 10, 2008, at 12:48 PM, Eric Butera wrote: On Jan 10, 2008 1:33 PM, [EMAIL PROTECTED] wrote: I have been using define to create a constant for the link resource

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Philip Thompson
On Jan 10, 2008, at 12:48 PM, Eric Butera wrote: On Jan 10, 2008 1:33 PM, [EMAIL PROTECTED] wrote: I have been using define to create a constant for the link resource returned by mysql pconnect like so: $PL = @mysql_pconnect(localhost, $DBUser, $DBPass); define(SITE_DB,$PL); Later I use

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Eric Butera
On Jan 10, 2008 2:28 PM, David Giragosian [EMAIL PROTECTED] wrote: On 1/10/08, Eric Butera [EMAIL PROTECTED] wrote: On Jan 10, 2008 2:02 PM, Philip Thompson [EMAIL PROTECTED] wrote: On Jan 10, 2008, at 12:48 PM, Eric Butera wrote: On Jan 10, 2008 1:33 PM, [EMAIL PROTECTED] wrote:

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread David Giragosian
On 1/10/08, Eric Butera [EMAIL PROTECTED] wrote: On Jan 10, 2008 2:28 PM, David Giragosian [EMAIL PROTECTED] wrote: On 1/10/08, Eric Butera [EMAIL PROTECTED] wrote: On Jan 10, 2008 2:02 PM, Philip Thompson [EMAIL PROTECTED] wrote: On Jan 10, 2008, at 12:48 PM, Eric Butera wrote:

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread David Giragosian
On 1/10/08, David Giragosian [EMAIL PROTECTED] wrote: On 1/10/08, Eric Butera [EMAIL PROTECTED] wrote: On Jan 10, 2008 2:28 PM, David Giragosian [EMAIL PROTECTED] wrote: On 1/10/08, Eric Butera [EMAIL PROTECTED] wrote: On Jan 10, 2008 2:02 PM, Philip Thompson [EMAIL

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Eric Butera
On Jan 10, 2008 3:34 PM, David Giragosian [EMAIL PROTECTED] wrote: On 1/10/08, David Giragosian [EMAIL PROTECTED] wrote: On 1/10/08, Eric Butera [EMAIL PROTECTED] wrote: On Jan 10, 2008 2:28 PM, David Giragosian [EMAIL PROTECTED] wrote: On 1/10/08, Eric Butera [EMAIL

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Stut
Eric Butera wrote: Haha. Thank you for all that insightful research. Seriously though, using globals you might already be in hell! =\ IMHO global variables are evil in the same way that register_globals were. Despite everything you've probably heard it is actually possible to create a

[PHP] PHP MS-Word plugin

2008-01-10 Thread Douglas Temple
Hi everyone, I'm pretty sure that this question has been asked to death in the past, but I'm just curoius as to whether there is a plugin that can edit Microsoft Office Word documents in PHP. I'm interested in this because I am trying to put a text watermark on each page, but doing it online,

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Eric Butera
On Jan 10, 2008 4:00 PM, Stut [EMAIL PROTECTED] wrote: Eric Butera wrote: Haha. Thank you for all that insightful research. Seriously though, using globals you might already be in hell! =\ IMHO global variables are evil in the same way that register_globals were. Despite everything

Re: [PHP] PHP MS-Word plugin

2008-01-10 Thread Jochem Maas
Douglas Temple schreef: Hi everyone, I'm pretty sure that this question has been asked to death in the past, but I'm just curoius as to whether there is a plugin that can edit Microsoft Office Word documents in PHP. I'm interested in this because I am trying to put a text watermark on each

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Jochem Maas
Eric Butera schreef: On Jan 10, 2008 4:00 PM, Stut [EMAIL PROTECTED] wrote: Eric Butera wrote: Haha. Thank you for all that insightful research. Seriously though, using globals you might already be in hell! =\ IMHO global variables are evil in the same way that register_globals were.

Re: [PHP] PHP MS-Word plugin

2008-01-10 Thread James Colannino
Jochem Maas wrote: that said I have no idea if there are any *nix based word doc manipulators, if there are they probably won't work with all versions of word documents - the file format is closed and changes from version to version. OpenOffice.org (the website is the same as the name) is

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Eric Butera
On Jan 10, 2008 4:41 PM, Jochem Maas [EMAIL PROTECTED] wrote: Eric Butera schreef: On Jan 10, 2008 4:00 PM, Stut [EMAIL PROTECTED] wrote: Eric Butera wrote: Haha. Thank you for all that insightful research. Seriously though, using globals you might already be in hell! =\ IMHO global

[PHP] /etc/php.init changes not honored

2008-01-10 Thread Ryan H. Madison
Hello, I am trying to increase upload_max_filesize beyond the 2M limit. I've set this in my /etc/php.ini file, but every time I look at the output of phpinfo(); the changes I make in /etc/php.init don't seem to be honored. This isn't limited to upload_max_filesize, I've changed

Re: [PHP] /etc/php.init changes not honored

2008-01-10 Thread Wolf
reload apache Ryan H. Madison [EMAIL PROTECTED] wrote: Hello, I am trying to increase upload_max_filesize beyond the 2M limit. I've set this in my /etc/php.ini file, but every time I look at the output of phpinfo(); the changes I make in /etc/php.init don't seem to

Re: [PHP] /etc/php.init changes not honored

2008-01-10 Thread Wolf
restart the server process that is reading it, otherwise the server is using the original settings. You can do some override by using the .htaccess file and setting specific things in specific folders, but if you are setting global changes, you have to restart the server process for the

RE: [PHP] /etc/php.init changes not honored

2008-01-10 Thread Ryan H. Madison
Done several times in several different ways. - Same result in the phpinfo.php output. $ sudo apachectl graceful $ sudo apachectl stop $ sudo apachectl start $ sudo service httpd restart Stopping httpd:[ OK ] Starting httpd:

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Sancar Saran
Well, ADODB and TYPO3 are successfull oss procjecs which uses PHP and they utilizes globals at large. Regards. Sancar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] /etc/php.init changes not honored

2008-01-10 Thread Eric Butera
On Jan 10, 2008 5:59 PM, Ryan H. Madison [EMAIL PROTECTED] wrote: Hello, I am trying to increase upload_max_filesize beyond the 2M limit. I've set this in my /etc/php.ini file, but every time I look at the output of phpinfo(); the changes I make in /etc/php.init don't seem to be

Re: [PHP] /etc/php.init changes not honored

2008-01-10 Thread Daniel Brown
On Jan 10, 2008 6:09 PM, Ryan H. Madison [EMAIL PROTECTED] wrote: Done several times in several different ways. - Same result in the phpinfo.php output. $ sudo apachectl graceful $ sudo apachectl stop $ sudo apachectl start $ sudo service httpd restart Stopping httpd:

RE: [PHP] /etc/php.init changes not honored

2008-01-10 Thread Ryan H. Madison
-Original Message- From: Eric Butera [mailto:[EMAIL PROTECTED] Sent: Thursday, January 10, 2008 3:16 PM To: Ryan H. Madison Cc: php-general@lists.php.net Subject: Re: [PHP] /etc/php.init changes not honored On Jan 10, 2008 5:59 PM, Ryan H. Madison [EMAIL PROTECTED] wrote: Hello,

[PHP] Re: Dependant listboxes

2008-01-10 Thread Manuel Lemos
Hello, on 01/10/2008 02:43 PM Humani Power said the following: Hi everybody. I have a page with 3 combo box that contains rows from an oracle database. What I want to do, is to make those list dependant one from another. Let say that I have the combo boxes on a page1.php, then on change the

[PHP] Re: PHP MS-Word plugin

2008-01-10 Thread Manuel Lemos
Hello, on 01/10/2008 07:10 PM Douglas Temple said the following: Hi everyone, I'm pretty sure that this question has been asked to death in the past, but I'm just curoius as to whether there is a plugin that can edit Microsoft Office Word documents in PHP. I'm interested in this because I

[PHP] PHP shell commands

2008-01-10 Thread Lucas Prado Melo
Hello, Some php applications store database passwords into files which can be read by the user www-data. So, a malicious user which can write php scripts could read those passwords. What should I do to prevent users from viewing those passwords? regards -- PHP General Mailing List

[PHP] Why is some_function()[some_index] invalid syntax?

2008-01-10 Thread Arlen Christian Mart Cuss
Hi there, Why is it that if I try to evaluate an index of an array returned by a function immediately, a syntax error is produced? (unexpected '[', expecting ',' or ';') Thanks, Arlen. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why is some_function()[some_index] invalid syntax?

2008-01-10 Thread Jim Lucas
Arlen Christian Mart Cuss wrote: Hi there, Why is it that if I try to evaluate an index of an array returned by a function immediately, a syntax error is produced? (unexpected '[', expecting ',' or ';') Thanks, Arlen. I asked that question years ago. It was explained to me that php does

Re: [PHP] Why is some_function()[some_index] invalid syntax?

2008-01-10 Thread Casey
On Jan 10, 2008, at 8:00 PM, Arlen Christian Mart Cuss [EMAIL PROTECTED] wrote: Hi there, Why is it that if I try to evaluate an index of an array returned by a function immediately, a syntax error is produced? (unexpected '[', expecting ',' or ';') Thanks, Arlen. I've run into this

Re: [PHP] Why is some_function()[some_index] invalid syntax?

2008-01-10 Thread Nathan Nobbe
On Jan 10, 2008 11:00 PM, Arlen Christian Mart Cuss [EMAIL PROTECTED] wrote: Hi there, Why is it that if I try to evaluate an index of an array returned by a function immediately, a syntax error is produced? (unexpected '[', expecting ',' or ';') thats hillarious, i literally brought this

Re: [PHP] Why is some_function()[some_index] invalid syntax?

2008-01-10 Thread Jim Lucas
Nathan Nobbe wrote: On Jan 10, 2008 11:00 PM, Arlen Christian Mart Cuss [EMAIL PROTECTED] wrote: Hi there, Why is it that if I try to evaluate an index of an array returned by a function immediately, a syntax error is produced? (unexpected '[', expecting ',' or ';') thats hillarious, i

Re: [PHP] Why is some_function()[some_index] invalid syntax?

2008-01-10 Thread Nathan Nobbe
On Jan 11, 2008 12:25 AM, Jim Lucas [EMAIL PROTECTED] wrote: So, make all your functions return objects, and have the object have a method called get or index or something like that that returns the index requested. :) Better yet, make everything an object: String, Numeric, Array, etc i

Re: [PHP] PHP shell commands

2008-01-10 Thread Chris
Lucas Prado Melo wrote: Hello, Some php applications store database passwords into files which can be read by the user www-data. So, a malicious user which can write php scripts could read those passwords. What should I do to prevent users from viewing those passwords? Not too much really.