Re: [PHP] Does the extension php_printer.dll work with php version 5.1.1 on a XP System

2005-12-08 Thread Curt Zirzow
On Wed, Dec 07, 2005 at 04:27:49PM -0800, james crooks wrote: > I trying to get php_printer.dll extension to work on a xp system . I > downloaded correct version of php_printer.dll to match php version 5.1.1 . > The extension_dir is set correctly , because other extensions load and work > perfectly

Re: [PHP] Mime-type handling

2005-12-08 Thread Curt Zirzow
On Thu, Dec 08, 2005 at 12:31:52PM +0100, Manuel Vacelet wrote: > Hi all, > > I'm facing a bad behaviour of 'file' command used by fileinfo PECL module > (recommanded for mime-type checking): > * Some Microsoft Excel documents are detected as Microsoft Word documents > * Some HTML files are just t

Re: [PHP] Mime-type handling

2005-12-08 Thread Curt Zirzow
On Thu, Dec 08, 2005 at 02:41:43PM -0500, Zack Bloom wrote: > mime types are very unreliable and should never be used for file type > authentication (they can also be faked by users). Instead you could try > using the extension of the file or an identifying statement in the file. He isn't using t

[PHP] paid help wanted for session management

2005-12-08 Thread sunaram patir
hi guys, anyone will like to help me out from some problem in dealing with sessions in internet explorer for some $10-$30? please send me private mail. no reply to this mailing list please. and sorry guys for sending this mail on the list. i couldn't help myself! i am damn frustrated!

[PHP] pear/Horde_Block can optionally use PHP extension "gettext" ...

2005-12-08 Thread Marc G. Fournier
'k, I searched google, and the only thing I could find was a response from someone telling someone else who asked to search the archives, the answer is there ... well, I searched both the php-general and pear-general archives, and I'm not finding any threads that talk about this :( gettext

Re: [PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread Curt Zirzow
On Thu, Dec 08, 2005 at 08:32:56AM -0500, Paul Hickey wrote: > I have PHP compiled with mysqli. > > The standard answer from the Joomla forums is that I need to have > "mysql" vice "mysqli". I was looking for a more global solution than > having to modify the code for every component, module, mamb

Re: [PHP] What software do you use for writing PHP?

2005-12-08 Thread shining
Eclipse+PHPEclipse 2005/12/9, Zack Bloom <[EMAIL PROTECTED]>: > > Notepad++ is inherently better then notepad (and textpad) and free. > > > > > > I wish I had the punch card version. I have to rewire my php box > everytime > I want to change something. > > > On 12/8/05, David Robley <[EMAIL PROTE

Re: [PHP] What software do you use for writing PHP?

2005-12-08 Thread Zack Bloom
Notepad++ is inherently better then notepad (and textpad) and free. I wish I had the punch card version. I have to rewire my php box everytime I want to change something. On 12/8/05, David Robley <[EMAIL PROTECTED]> wrote: > John Nichel wrote: > > > Miles Thompson wrote: > >> At 11:45 AM

[PHP] Curl Content-Encoding header?

2005-12-08 Thread Kenneth Andresen
Hello all, I have been trying to get the Content-Encoding header from Curl, but have yet to manage. Using curl from command line I have no problems simply using: curl --compress page_to_get -o local_page_copy -D dumpheader.txt The data gets compressed and uncompressed also in PHP, I am just l

Re: [PHP] Re: QUERY_STRING Variables and POST

2005-12-08 Thread Michael B Allen
Solved. My mistake. I was visiting the form with a URL that had QUERY_STRING parameters but when I submit the form the QUERY_STRING is not propagated. In my particular case I replaced the form tag with the following PHP: "; ?> Also, regarding my original question, I think parse_str is what I wan

Re: [PHP] QUERY_STRING Variables and POST

2005-12-08 Thread Michael Hulse
On Dec 8, 2005, at 2:46 PM, Michael B Allen wrote: I'm using the POST method but I would also like to access QUERY_STRING parameters. Is there a convienient global array for these? If not, what is the definitive method for accessing them? Not sure if this script will help, but you can point you

Re: [PHP] QUERY_STRING Variables and POST

2005-12-08 Thread Chris Shiflett
Michael B Allen wrote: I'm using the POST method but I would also like to access QUERY_STRING parameters. Is there a convienient global array for these? Yeah, $_GET. I know it seems a bit confusing, since the request method is POST, not GET, but it's a reference to how data is passed when the

Re: [PHP] Re: QUERY_STRING Variables and POST

2005-12-08 Thread Zack Bloom
use $_REQUEST['name'] to get value On 12/8/05, Michael B Allen <[EMAIL PROTECTED]> wrote: > > On Thu, 08 Dec 2005 17:56:14 -0500 > Roman Ivanov <[EMAIL PROTECTED]> wrote: > > > Michael B Allen wrote: > > > I'm using the POST method but I would also like to access QUERY_STRING > > > parameters. Is

[PHP] href difference between OS's.

2005-12-08 Thread Marlin Unruh
I have written a PHP script that creates dynamic links to CAD files on a local machine. The anchors/links work on two W2K pro machines, but does nothing on a XP pro machine where I really need the script to reside. I am stumped if it is an Apache setting, IE setting, or what. I'm getting desper

Re: [PHP] Re: QUERY_STRING Variables and POST

2005-12-08 Thread Michael B Allen
On Thu, 08 Dec 2005 17:56:14 -0500 Roman Ivanov <[EMAIL PROTECTED]> wrote: > Michael B Allen wrote: > > I'm using the POST method but I would also like to access QUERY_STRING > > parameters. Is there a convienient global array for these? If not, > > what is the definitive method for accessing them

[PHP] Re: QUERY_STRING Variables and POST

2005-12-08 Thread Roman Ivanov
Michael B Allen wrote: I'm using the POST method but I would also like to access QUERY_STRING parameters. Is there a convienient global array for these? If not, what is the definitive method for accessing them? $_GET $_REQUEST + read manual -- PHP General Mailing List (http://www.php.net/) To

[PHP] QUERY_STRING Variables and POST

2005-12-08 Thread Michael B Allen
I'm using the POST method but I would also like to access QUERY_STRING parameters. Is there a convienient global array for these? If not, what is the definitive method for accessing them? Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

RE: [PHP] broken code....

2005-12-08 Thread Mark Steudel
Good catch: So I normally do $results =& $db->query ( "SELECT * FROM table" ); What is the difference between using the & and not using the &. -Original Message- From: Ben Blay [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 10:27 AM To: php-general@lists.php.net Subject:

Re: [PHP] configuring the CLI version of PHP

2005-12-08 Thread jonathan
so the web server is running 5.0.4 and the cli version is running 4.3.11. Is there an easy way for me to switch the cli version to the web version without a recomplie? -jonathan On Dec 6, 2005, at 1:10 AM, Marco Kaiser wrote: Hi Jonathan, /usr/bin/php /usr/include/php /usr/lib/php How w

Re: [PHP] Mime-type handling

2005-12-08 Thread Zack Bloom
mime types are very unreliable and should never be used for file type authentication (they can also be faked by users). Instead you could try using the extension of the file or an identifying statement in the file. On 12/8/05, Manuel Vacelet <[EMAIL PROTECTED]> wrote: > > Hi all, > > I'm facing a

Re: [PHP] Preventing Cross Site Scripting Vulnerbilities

2005-12-08 Thread Michael B Allen
On Wed, 07 Dec 2005 14:33:07 -0500 Chris Shiflett <[EMAIL PROTECTED]> wrote: > Michael B Allen wrote: > > Can someone recommend a general method for avoiding / eliminating XSS > > vulnerbilities with PHP? > > Yeah, escape output. It's really that simple. Well after looking at this for a while I

Re: [PHP] broken code....

2005-12-08 Thread Ben Blay
> $results->query('select * from eternityrecords.journal'); Should this not be: $results = $db->query('select * from eternityrecords.journal'); See: http://pear.php.net/manual/en/package.database.db.db-result.fetchinto.php Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP] set quota to disable ...

2005-12-08 Thread Marc G. Fournier
Has something changed in recent versions of cyrus imapd? I'm trying to code up a PHP interface, or, rather, fix one ... according to the php man age, I should be able to do: imap_set_quota($mbox, 'user.'.$user, -1); to disable it ... but if I do, it doesn't do anything ... and I can't pass

RE: [PHP] broken code....

2005-12-08 Thread Mark Steudel
What happens when you print out journal?: print_r( $journal ); Are your keys the exact case as your table fields? ID vs id or Date vs date -Original Message- From: Eternity Records Webmaster [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 11:31 PM To: php-general@lists.

[PHP] Re: array carrying from one php page to another

2005-12-08 Thread Sandy Keathley
> I have an array $journal that I want to carry from a page (where it was > created) to another page (a popup that shows the variables contents). Is > this automatically available? or do I have to do something special to php?? One way: $serArray = serialize($array); At other end: $array = un

Re: [PHP] references, circular references, oop, and garbage collection in PHP5

2005-12-08 Thread Alan Pinstein
/* comments inline */ On Dec 8, 2005, at 2:34 AM, Curt Zirzow wrote: On Wed, Dec 07, 2005 at 09:30:36PM -0500, Alan Pinstein wrote: On Dec 7, 2005, at 12:36 AM, Curt Zirzow wrote: I'm not sure how you mean a weak reference, and well a refcount is rather meaning less in php userland. So, t

Re: [PHP] Non-trivial task of converting text to HTML

2005-12-08 Thread David Grant
Hi Roman, Check out this: http://www.michelf.com/projects/php-markdown/ Would this help you? Cheers, David Roman Ivanov wrote: > Task: > Create a script that converts text into HTML with paragraphs. > > Problem: > Input text could use the book notation, as well as the web notation, > plus it

Re: [PHP] Non-trivial task of converting text to HTML

2005-12-08 Thread Eric Gorr
Quoting Roman Ivanov <[EMAIL PROTECTED]>: Eric Gorr wrote: Quoting Roman Ivanov <[EMAIL PROTECTED]>: Output text should be correctly formatted without using lots of br's and  's. Doing so manually is not a problem, I would just use for web paragraphs, and for book paragraphs. However, for

Re: [PHP] PEAR Validate email question

2005-12-08 Thread David Grant
Validate::email appears to check for a MX or A record. I'm a bit rusty on my RFCs, but isn't is possible the mail host could be specified using a CNAME? Cheers, David Eric Butera wrote: > Hello, > > I'm using the PEAR Validate::email method to validate email addresses on our > contact forms si

[PHP] PEAR Validate email question

2005-12-08 Thread Eric Butera
Hello, I'm using the PEAR Validate::email method to validate email addresses on our contact forms since the spam bots have gotten so bad. I am using the "check_domain" flag which calls the php function "checkdnsrr." This form processor is used on several sites now and all is going well except on

RE: [PHP] Preventing Cross Site Scripting Vulnerbilities

2005-12-08 Thread Ford, Mike
> -Original Message- > From: Jason Gerfen [mailto:[EMAIL PROTECTED] > Sent: 07 December 2005 19:34 > To: comex > Cc: php-general@lists.php.net > Subject: Re: [PHP] Preventing Cross Site Scripting Vulnerbilities > function chk_input( $string ) { > if( eregi( "^[0-9a-z_ -]$", $string ) ) {

Re: [PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread David Grant
Hi John, John Nichel wrote: > Paul Hickey wrote: >> I don't understand why I'm getting "undefined function" errors. >> PHP.ini has no reference to mysqli. I don't know if changing this would >> enable the functions specific to PHP > 4.x. > > In your configuration line (how php was configured then

Re: [PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread John Nichel
Paul Hickey wrote: I have PHP compiled with mysqli. The standard answer from the Joomla forums is that I need to have "mysql" vice "mysqli". I was looking for a more global solution than having to modify the code for every component, module, mambot I want to use. I don't understand why I'm gett

Re: [PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread John Nichel
Paul Hickey wrote: Can someone help me overcome this recurring problem? I am using the Joomla content management system and I keep coming across the following errors. Fatal error: Call to undefined function mysql_real_escape_string() in /usr/local/apache2/htdocs/common.php on line 24 Fatal e

RE: [PHP] Class Constant PHP 5

2005-12-08 Thread Jay Blanchard
[snip] it doesn't fail and is not imho foolish by definition ... the value of the constant, although changing stays the same for the duration of the request, IIRC Rasmus himself once mentioned that it can be useful to be able to set a constant to a 'dynamic' value like this - nuff said really :-)

Re: [PHP] Re: Preventing Cross Site Scripting Vulnerbilities

2005-12-08 Thread Marco Kaiser
Hi, IMO, the best way to avoid XSS is to filter _output_. > > My script: > http://nengine.korsengineering.com/files/src/misc/HtmlFilter.phps > uhm, 1st. filter input 2nd escape output -- Marco Kaiser

Re: [PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread David Grant
Is there no way to specify the database functions in Joomla? You're getting undefined function because you haven't compiled it with mysql, but mysqli instead, which means the functions you need are prefixed with mysqli instead of mysql. Paul Hickey wrote: > I have PHP compiled with mysqli. > > T

Re: [PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread Paul Hickey
I have PHP compiled with mysqli. The standard answer from the Joomla forums is that I need to have "mysql" vice "mysqli". I was looking for a more global solution than having to modify the code for every component, module, mambot I want to use. I don't understand why I'm getting "undefined functi

Re: [PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread David Grant
Try using mysqli, instead of mysql. Have you tried Joomla! support channels? Paul Hickey wrote: > Can someone help me overcome this recurring problem? I am using the > Joomla content management system and I keep coming across the following > errors. > > Fatal error: Call to undefined function

[PHP] Mime-type handling

2005-12-08 Thread Manuel Vacelet
Hi all, I'm facing a bad behaviour of 'file' command used by fileinfo PECL module (recommanded for mime-type checking): * Some Microsoft Excel documents are detected as Microsoft Word documents * Some HTML files are just text/plain * ... I tested on multiple machines (with different version of fi

[PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread Paul Hickey
Can someone help me overcome this recurring problem? I am using the Joomla content management system and I keep coming across the following errors. Fatal error: Call to undefined function mysql_real_escape_string() in /usr/local/apache2/htdocs/common.php on line 24 Fatal error: Call to undefine

Re: [PHP] Multiple callback_outputs for ob_start

2005-12-08 Thread Jochem Maas
Chris Shiflett wrote: 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(). I th

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

2005-12-08 Thread Jochem Maas
Jeffrey Sambells wrote: You've got 83px in you XML file for the fontsize. the 'px' is messing it up change it to just 83 in the XML file or cast the value to (float) which will extract the 83 and remove the px: well spotted Jeffery; James didn't I say to var_dump() the vars you create inside

Re: [PHP] What software do you use for writing PHP?

2005-12-08 Thread Zack Bloom
I wish I had the punch card version. I have to rewire my php box everytime I want to change something. On 12/8/05, David Robley <[EMAIL PROTECTED]> wrote: > > John Nichel wrote: > > > Miles Thompson wrote: > >> At 11:45 AM 12/7/2005, Jay Blanchard wrote: > >> > >>> [snip] > >>> > Two words p

Re: [PHP] Non-trivial task of converting text to HTML

2005-12-08 Thread Jochem Maas
Roman Ivanov wrote: Task: Create a script that converts text into HTML with paragraphs. Problem: Input text could use the book notation, as well as the web notation, plus it can contain HTML. == This is a title This is a Book paragraph. This is another book paragraph. This is yet anoth

Re: [PHP] broken code....

2005-12-08 Thread Jochem Maas
Eternity Records Webmaster wrote: I have this code that doesnt print the db results like they should... it 'like it should' means what exactly? uses pear::db package for the database. Was wondering if anybody can figure out how come it doesnt work... what does not work? getMessage()); }

Re: [PHP] Class Constant PHP 5

2005-12-08 Thread Jochem Maas
Jay, gonna have to correct you on this lot (sorry ;-) Jay Blanchard wrote: [snip] is there a way to dynamically define a class constant during runtime in PHP 5? for example I would like to achieve the result of something like: class Example { const FOO = bar(); } However this

Re: [PHP] What software do you use for writing PHP?

2005-12-08 Thread David Robley
John Nichel wrote: > Jay Blanchard wrote: >> [snip] >> >man you guys are wimps.. gvim on windows... :) > Pt'Edit' in DOS. ;) >>> >>>(Pt * 2) 'edlin' in DOS. :) >> >> >> Infinitely recursive pfft A pencil and a piece of paper and >>

RE: [PHP] What software do you use for writing PHP?

2005-12-08 Thread David Robley
Jim Moseby wrote: >> >> Curt Zirzow wrote: >> > On Tue, Dec 06, 2005 at 06:36:33PM +0100, M. Sokolewicz wrote: >> > >> >>Jason Petersen wrote: >> >> >> >>>On 12/6/05, Jeff McKeon <[EMAIL PROTECTED]> wrote: >> >>> >> >>> >> Hey all, >> >> Forever now I've been using Frontpage for all

Re: [PHP] What software do you use for writing PHP?

2005-12-08 Thread David Robley
John Nichel wrote: > Miles Thompson wrote: >> At 11:45 AM 12/7/2005, Jay Blanchard wrote: >> >>> [snip] >>> > Two words punch cards. 'Nuff said. >>> > >>> >>> Come on now Jay, we know you're old and all, but everyone knows that you >>> cannot edit php with punch cards. Hanging chads will ca

Re: [PHP] Anyone getting bounces from

2005-12-08 Thread David Robley
Max Belushkin wrote: > John Nichel wrote: >> Jay Blanchard wrote: >>> [EMAIL PROTECTED] ? >>> >>> I am getting failure notices out the wazoo for some very old messages >>> to the >>> general list. > > I am too. Ask me! Ask me! No, I'm not getting them Cheers -- David Robley A clean desk is