[PHP] pear website?

2005-12-07 Thread Eternity Records Webmaster
does anybody know if the pear website is having any problems? i cant seem to be able to go there and its the only website giving me problems right now... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Why don't webhosts upgrade to PHP5 ?

2005-12-07 Thread Pugi!
My webhost doesn't want to upgrade to PHP5 because of security reasons and some scripts that will mallfunction. I find it hard to believe. Current conf of webhost is PHP 4.3.11, Apache 1.3.33 and MySQL 3.23.49. What real reasons could there be not to upgrade ? How could I convince them to upgrade

[PHP] Security question

2005-12-07 Thread Andy Pieters
Hi list I've got a concern for a user add/edit form. Right now when the user is logged in, I put its id in the session. Then when the user edits his details I put the id in the form and when it comes back I verify if the id matches the one in the session. Is it possible for someone who does

Re: [PHP] Security question

2005-12-07 Thread Łukasz Hejnak
Andy Pieters napisał(a): Is it possible for someone who does not have access to the server to edit arbitary accounts? well this depends on the forum You use, there're many many exploits out there. The best way to know is to try and keep up with places like the bugtraq@securityfocus.com list,

Re: [PHP] Why don't webhosts upgrade to PHP5 ?

2005-12-07 Thread Andy Pieters
On Wednesday 07 December 2005 08:37, Pugi! wrote: My webhost doesn't want to upgrade to PHP5 because of security reasons and some scripts that will mallfunction. I find it hard to believe. Current conf of webhost is PHP 4.3.11, Apache 1.3.33 and MySQL 3.23.49. What real reasons could there be

Re: [PHP] Security question

2005-12-07 Thread Andy Pieters
On Wednesday 07 December 2005 08:57, Łukasz Hejnak wrote: The best way to know is to try and keep up with places like the bugtraq@securityfocus.com list, or other security websites/mailing lists and such. It isn't a forum, it is software I write myself. -- Now listening to Top! Radio Live

Re: [PHP] Why don't webhosts upgrade to PHP5 ?

2005-12-07 Thread Jochem Maas
Andy Pieters wrote: On Wednesday 07 December 2005 08:37, Pugi! wrote: My webhost doesn't want to upgrade to PHP5 because of security reasons and some scripts that will mallfunction. I find it hard to believe. Current upgrade to php5 == scripts that will mallfunction == support calls ==

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

2005-12-07 Thread Arno Kuhl
Nusphere PhpED and love it. Tried a few other editors but stayed with PhpED now for the last year and about to renew my subscription. Excellent project management, brilliant debugger (local and remote), code error detection and highlighting, fast (much faster than the java editors), able to handle

RE: [PHP] Why do Sessions use Cookies?

2005-12-07 Thread Ahmed Saad
Hi Michael, On 12/3/05, Michael B Allen [EMAIL PROTECTED] wrote: Why do sessions use cookies? 'cause HTTP is a stateless protocol ... check Wikiepedia on HTTP Cookies at http://en.wikipedia.org/wiki/HTTP_cookies and RFC 2109 http://www.cse.ohio-state.edu/cgi-bin/rfc/rfc2109.html such

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

2005-12-07 Thread Ahmed Saad
Hi Jeff, On 12/6/05, Jeff McKeon [EMAIL PROTECTED] wrote: I'm sure there's better software out there that is more suited to writing and editing PHP pages. What do you all use? Eclipse + TruFoundation (PHP/Python) + JSEclipse + CSSEditor + Web Standard Tools (HTML/XML/...) Well, first of

RE: [PHP] Security question

2005-12-07 Thread Ahmed Saad
Hi Andy, On 12/7/05, Andy Pieters [EMAIL PROTECTED] wrote: Right now when the user is logged in, I put its id in the session. Then when the user edits his details I put the id in the form and when it comes back I verify if the id matches the one in the session. Well, is session data saved in

Re: [PHP] Simple Authentication Infrastructure

2005-12-07 Thread Jochem Maas
Michael B Allen wrote: Hi, I scoping out an Internet site project and my primary consideration at the moment is authentication infrastructure. Conceptually I was thinking about something like the pseudocode at the bottom of this message (pardon all the Java-esc typing). Can PHP do this

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

2005-12-07 Thread Jochem Maas
James wrote: 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

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

2005-12-07 Thread James
Title: Re: [PHP] PHP Warning: imagettftext() expects parameter 2 to be double Hi, Thank you for getting back to me, your the first. The array works fine I have tested it using var_dump(). Attached are the two files xml.test this holds the array of the text blocks which is being parsed by

[PHP] RE: XmlWriter::writeDTD bug...

2005-12-07 Thread Jared Williams
-Original Message- From: Rob Richards [mailto:[EMAIL PROTECTED] Sent: 07 December 2005 04:21 To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: XmlWriter::writeDTD bug... Jared Williams wrote: Hi, $writer = new XmlWriter(); ...

RE: [PHP] Re: XmlWriter::writeDTD bug...

2005-12-07 Thread Jared Williams
Jared Williams wrote: Hi, $writer = new XmlWriter(); ... $writer-writeDtd('html', '-//W3C//DTD XHTML 1.0 Strict//EN', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'); produces no whitespace between the public system ids like... !DOCTYPE

[PHP] how to lock multiple rows in oracle?

2005-12-07 Thread Rasim �EN
Hi friends , my code like this $sql=SELECT mid,substr(ROWID,0,100) as nROWID,MEMBER_ID, NAME, SURNAME, E_MAIL, SUBJECT, MAIL_BODY, to_char(DATE_CREATED,'DD.MM. HH24:MI:SS') as DATE_CREATED, RETRY, PRIORITY, E_MAIL_FROM, RECEIVER_MEMBER_ID, RECEIVER_NAME, RECEIVER_SURNAME, MAIL_TYPE,

[PHP] FW: Advanced search form

2005-12-07 Thread Michelle Konzack
Hello PHP-Gurus, I have already ask this on php-de and pgsql-pgp but unfortunatly gotten no answer. I have a search form and I like to add advanced search options like this is a search -XXX Test which mean, 1) this is a search must be in this order 2) -XXX

[PHP] Re: Assigns True but not false?

2005-12-07 Thread Gabe
Thanks guys, very helpful! Gabe wrote: In this if statement, if the condition is true, then it will assign true to the array (as I want it to). If the condition evaluates to false, it assigns nothing. Any idea why it won't assign false? If I switch the FALSE boolean value to the number 0,

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

2005-12-07 Thread John Nichel
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 my web work including php. I'm sure there's better software out there that is

Re: [PHP] how to lock multiple rows in oracle?

2005-12-07 Thread John Nichel
Rasim ÞEN wrote: Hi friends , my code like this $sql=SELECT mid,substr(ROWID,0,100) as nROWID,MEMBER_ID, NAME, SURNAME, E_MAIL, SUBJECT, MAIL_BODY, to_char(DATE_CREATED,'DD.MM. HH24:MI:SS') as DATE_CREATED, RETRY, PRIORITY, E_MAIL_FROM, RECEIVER_MEMBER_ID, RECEIVER_NAME,

[PHP] Anyone getting bounces from

2005-12-07 Thread Jay Blanchard
[EMAIL PROTECTED] ? I am getting failure notices out the wazoo for some very old messages to the general list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Anyone getting bounces from

2005-12-07 Thread John Nichel
Jay Blanchard wrote: [EMAIL PROTECTED] ? I am getting failure notices out the wazoo for some very old messages to the general list. I'm not. Told you Bill was going to get mad at you. ;) -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675

Re: [PHP] Anyone getting bounces from

2005-12-07 Thread Jason Gerfen
Yeah, I am recieving the same. Jay Blanchard wrote: [EMAIL PROTECTED] ? I am getting failure notices out the wazoo for some very old messages to the general list. -- Jason Gerfen Oh I have seen alot of what the world can do, and its breaking my heart in two... ~ Wild World, Cat

Re: [PHP] FW: Advanced search form

2005-12-07 Thread Brent Baisley
Here is some code that you can modify. It's design to convert a search string into a MySQL full text search string, not sure how different pgsql is. It adds * for word expansion where appropriate. It assume a space is the delimiter, but that's easy to change in the explode statement.

Re: [PHP] Anyone getting bounces from

2005-12-07 Thread Max Belushkin
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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-12-07 Thread Chris Boget
Pt'Edit' in DOS. ;) Absolutely!! It can't be beaten for undocumented features. :p thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Anyone getting bounces from

2005-12-07 Thread David Grant
Jay Blanchard wrote: [EMAIL PROTECTED] ? I am getting failure notices out the wazoo for some very old messages to the general list. Just got seven in a row, looks like the MTA is trying for three weeks and then giving up. The messages appear to be for: [EMAIL PROTECTED] Can this address

Re: [PHP] Anyone getting bounces from

2005-12-07 Thread Angelo Zanetti
me 3 Jason Gerfen wrote: Yeah, I am recieving the same. Jay Blanchard wrote: [EMAIL PROTECTED] ? I am getting failure notices out the wazoo for some very old messages to the general list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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

2005-12-07 Thread Jim Moseby
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 my web work including php. I'm sure there's better software out

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

2005-12-07 Thread Murray @ PlanetThoughtful
Jim Moseby wrote: 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 ringing people to describe the cool web site you've just drawn, -- PHP

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

2005-12-07 Thread Jay Blanchard
[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 ringing people to describe the cool web site you've just drawn, [/snip] Two words

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

2005-12-07 Thread John Nichel
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 ringing people to describe the cool web site you've just drawn,

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

2005-12-07 Thread Jay Blanchard
[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 cause too many fatal errors. ;) [/snip] ROFLMMFAO -- PHP General Mailing List (http://www.php.net/) To

[PHP] Eval To String

2005-12-07 Thread Shaun
Hi, Is it possible to return the result of eval function to a string rather than outputting directly to the browser? Thanks for your advice -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-12-07 Thread Miles Thompson
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 cause too many fatal errors. ;) [/snip] ROFLMMFAO Why these clumsy

RE: [PHP] Eval To String

2005-12-07 Thread Jay Blanchard
[snip] Is it possible to return the result of eval function to a string rather than outputting directly to the browser? Thanks for your advice [/snip] Yes. You're welcome. The first freakin' example in TFM http://www.php.net/eval is this; ?php $string = 'cup'; $name = 'coffee'; $str = 'This

Re: [PHP] Eval To String

2005-12-07 Thread David Grant
Shaun Shaun wrote: Is it possible to return the result of eval function to a string rather than outputting directly to the browser? ob_start(); eval('$eval = evil;'); $output = ob_get_clean(); Cheers, David Grant -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List

[PHP] Call to undefined function mysql_real_escape_string()

2005-12-07 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

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

2005-12-07 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

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

2005-12-07 Thread John Nichel
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 cause too many fatal errors. ;) [/snip]

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

2005-12-07 Thread Jesús Fernández
I'm using quanta on linux, it those nice things like code completion, syntax highlighting, upload the pages, etc... -- http://esu.proyectoanonimo.com http://www.proyectoanonimo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Anyone getting bounces from

2005-12-07 Thread Jesús Fernández
4 here -- http://esu.proyectoanonimo.com http://www.proyectoanonimo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-12-07 Thread Jochem Maas
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 cause too many fatal errors.

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

2005-12-07 Thread Mark Steudel
It's not a full FTP client, you can't set permissions in it. I think that's a major minus in DW's favor. Especially if you don't have access to ssh into your machine ... -Original Message- From: Michael Hulse [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 10:09 PM To: 'php'

Re: [PHP] Anyone getting bounces from

2005-12-07 Thread Stephen Leaf
had about 15 in my inbox this morning :) On Wednesday 07 December 2005 08:36, Jay Blanchard wrote: [EMAIL PROTECTED] ? I am getting failure notices out the wazoo for some very old messages to the general list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: XmlWriter::writeDTD bug...

2005-12-07 Thread Rob Richards
Jared Williams wrote: PS. Yeah, thought it was libxml, hence didn't file a pecl bug report. But there does seem a problem with this method as can't just have a publicId or a systemId, libxml function uses NULL as a parameter to specify which id you don't want to use. Which we've lost

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

2005-12-07 Thread Leif Gregory
Hello Miles, Wednesday, December 7, 2005, 8:56:23 AM, you wrote: Why these clumsy interfaces? Just plug the Firewire in your ear! So that's where it's supposed to go!?!?!? I've been doing it wrong all this time, not to mention it made sitting so very uncomfortable. grin --

RE: [PHP] Re: XmlWriter::writeDTD bug...

2005-12-07 Thread Jared Williams
Jared Williams wrote: PS. Yeah, thought it was libxml, hence didn't file a pecl bug report. But there does seem a problem with this method as can't just have a publicId or a systemId, libxml function uses NULL as a parameter to specify which id you don't want to use. Which

Re: [PHP] Class Constant PHP 5

2005-12-07 Thread Stephen Leaf
Dynamically setting a constant would break the very rule of it being a constant in the first place. a constant is something that does not change it cannot be dynamic. On Wednesday 07 December 2005 12:00, Jeffrey Sambells wrote: is there a way to dynamically define a class constant during

RE: [PHP] Class Constant PHP 5

2005-12-07 Thread Jay Blanchard
[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 would obviously give a parse error. I know it is possible with variables but I

Re: [PHP] Class Constant PHP 5

2005-12-07 Thread comex
It would be foolish (and would fail anyhow) to do something like this; Nope. :P ?php define(RANDOM, rand(5,12)); var_dump(RANDOM); ? int(12) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-12-07 Thread Ben
Murray @ PlanetThoughtful said the following on 12/07/2005 07:31 AM: Jim Moseby wrote: Pt'Edit' in DOS. ;) (Pt * 2) 'edlin' in DOS. :) Infinitely recursive pfft A pencil and a piece of paper and ringing people to describe the cool web site you've just

RE: [PHP] Class Constant PHP 5

2005-12-07 Thread Jay Blanchard
[snip] It would be foolish (and would fail anyhow) to do something like this; Nope. :P ?php define(RANDOM, rand(5,12)); var_dump(RANDOM); ? int(12) [/snip] Wow, that should fail. But you did have use var_dump() to get it, which may be slightly counter-intuitive. I just did this function

RE: [PHP] Class Constant PHP 5

2005-12-07 Thread Jay Blanchard
[snip] Wow, that should fail. But you did have use var_dump() to get it, which may be slightly counter-intuitive. I just did this function realRand($x){ $x = $x * rand(5,10); return $x; } define(RANDOM, realRand(1.2)); var_dump(RANDOM); and it returns floats. Well, I'll be

[PHP] Preventing Cross Site Scripting Vulnerbilities

2005-12-07 Thread Michael B Allen
Can someone recommend a general method for avoiding / eliminating XSS vulnerbilities with PHP? Specifically is there a library function for validating fields? If not, can someone recommend a regex that detects HTML tags? Similarly is there a library function for escaping database content for

Re: [PHP] Preventing Cross Site Scripting Vulnerbilities

2005-12-07 Thread comex
Similarly is there a library function for escaping database content for inclusion in HTML pages? http://php.net/htmlspecialchars http://php.net/htmlentities -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Preventing Cross Site Scripting Vulnerbilities

2005-12-07 Thread Chris Shiflett
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. Curt Zirzow made a nice post related to this topic yesterday., and here's a simple example: http://phpsecurity.org/code/ch01-4

Re: [PHP] Preventing Cross Site Scripting Vulnerbilities

2005-12-07 Thread Jason Gerfen
comex wrote: Similarly is there a library function for escaping database content for inclusion in HTML pages? http://php.net/htmlspecialchars http://php.net/htmlentities Or roll your own and replace the eregi regex with data that is valid to your application: function chk_input(

Re: [PHP] Preventing Cross Site Scripting Vulnerbilities

2005-12-07 Thread Ray Hauge
There's been a lot of great articles in the PHP|Architect magazine over the past 3 months or so about this (http://www.phparch.com) You do have to purchase back-issues though. Very good articles though. They cover how to make functions to filter what variables should be sent in, and how to

Re: [PHP] Preventing Cross Site Scripting Vulnerbilities

2005-12-07 Thread Chris Shiflett
Ray Hauge wrote: There's been a lot of great articles in the PHP|Architect magazine over the past 3 months or so about this (http://www.phparch.com) You do have to purchase back-issues though. Past editions of Security Corner are eventually available for free from my web site:

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

2005-12-07 Thread Roman Ivanov
I use JEdit with code browser plug-in. Once it's started, it's quite fast. It's Java-based, so it runs both on windows and linux. Very easy to configure, has many useful coding features. If you need more, just install some plug-ins. -- PHP General Mailing List (http://www.php.net/) To

[PHP] PHP 5 XML Dom, set doctype and system

2005-12-07 Thread Mariano Guadagnini
Hello, I need to set the doctype and the system dtd of a document created directly with the xml DOM. I couldn´t find any function or property to set this, i saw some examples that directly wrote onto the file manually, but i´m pretty sure thare must be a way to do this with the dom (i

Re: [PHP] Class Constant PHP 5

2005-12-07 Thread Roman Ivanov
Stephen Leaf wrote: Dynamically setting a constant would break the very rule of it being a constant in the first place. Did you say something about my Java? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-12-07 Thread Roman Ivanov
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. == h1This is a title/h1 This is a Book paragraph. This is another book paragraph. This is yet another book

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

2005-12-07 Thread Eric Gorr
Quoting Roman Ivanov [EMAIL PROTECTED]: Output text should be correctly formatted without using lots of br's and nbsp;'s. Doing so manually is not a problem, I would just use p for web paragraphs, and p class=book for book paragraphs. However, formatting such text with a scrip is very

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

2005-12-07 Thread Roman Ivanov
Eric Gorr wrote: Quoting Roman Ivanov [EMAIL PROTECTED]: Output text should be correctly formatted without using lots of br's and nbsp;'s. Doing so manually is not a problem, I would just use p for web paragraphs, and p class=book for book paragraphs. However, formatting such text with a

[PHP] Re: Preventing Cross Site Scripting Vulnerbilities

2005-12-07 Thread Roman Ivanov
Michael B Allen wrote: Can someone recommend a general method for avoiding / eliminating XSS vulnerbilities with PHP? IMO, the best way to avoid XSS is to filter _output_. My script: http://nengine.korsengineering.com/files/src/misc/HtmlFilter.phps -- PHP General Mailing List

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

2005-12-07 Thread tg-php
Maybe I'm missing some requirement, but what if you just used HTML pre tags. You can still use other HTML for formatting within the pre tags but it'll pay attention to carriage returns/line feeds and spaces without having to use brs For example, if you did the following... is it what you need

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

2005-12-07 Thread Mark Charette
TECO rox! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-12-07 Thread james crooks
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. When I execute the following code, I get ... ?php/* $handle =

Re: [PHP] Inserting a NULL value into MySQL via PHP

2005-12-07 Thread [EMAIL PROTECTED]
I tried this and it didn't work using PHP it just leaves a blank instead of a NULL setting. Any other ideas? On 11/11/05, Richard Lynch [EMAIL PROTECTED] wrote: On Thu, November 10, 2005 11:15 pm, Curt Zirzow wrote: ?php $sql_quoted = array(); // shiflett' -- style $myFieldValue =

Re: [PHP] Class Constant PHP 5

2005-12-07 Thread Jeffrey Sambells
The point was more that the constant's value is 'defined' at the beginning of the script, and is constant and non changing throughout the entire execution of the script. But I was looking for a way to give it a namespace inside a class rather than just defining in in the global scope so that I

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

2005-12-07 Thread Jeffrey Sambells
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: snip foreach ($xml-textblock as $text) {

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

2005-12-07 Thread Alan Pinstein
[ man.. I just realized that reply to this list doesn't send to the list... replies being re-sent... thanks for the help! ] On Dec 6, 2005, at 10:45 PM, Curt Zirzow wrote: I'm going to jump to the code as fast as possible to explain what I can, the key thing to remember in php5 is that the

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

2005-12-07 Thread Alan Pinstein
Hey Ray- Thanks for the link! Actually, the article didn't help directly, but it did spark an idea. My main problem all along was trying to get a true reference to $this. For some reason reading the article led me to try $this- this, which works, to my surprise! So, I now have a complete

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

2005-12-07 Thread Alan Pinstein
On Dec 7, 2005, at 12:36 AM, Curt Zirzow wrote: My original statement was to show how the the php4 = $o is different. Oh, well, sure I believe that! :) In php5 variables are just containers that point to objects, so when you make a variable a reference to another variable all you are

[PHP] ob_start session_start

2005-12-07 Thread Joe Harman
Hello, Something just crossed my mind about using output buffering is there any reason why you should start a session before calling ob_start() ??? Just curious which way would be the proper way of doing it... or doesn't it matter? Thanks -- Joe Harman - * My programs never have

Re: [PHP] ob_start session_start

2005-12-07 Thread Joe Harman
Okay.. makes sense after you spelled it out to me... LOL... I always start my session first.. so, that must why i have never had any problems Cheers Thanks! Joe On 12/7/05, Zack Bloom [EMAIL PROTECTED] wrote: yes, it will display the content in the buffer before creating the session. If your

[PHP] Re: [PHP-DB] ftp_put

2005-12-07 Thread Joe Harman
Hi Chris... sometimes there is no replacement for a FTP program... but you can use INI_SET() at in your PHP file to temporarily set the file upload size. i think you will have to change the time out settings also look at the manual on ini_set... also search this list for ini_set even better...

Re: [PHP] ob_start session_start

2005-12-07 Thread Chris Shiflett
Joe Harman wrote: Okay...makes sense after you spelled it out to me. That didn't make sense to me (and I missed the original reply). Mind elaborating? :-) Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] ob_start session_start

2005-12-07 Thread Zack Bloom
Sure, ob_start begins a buffer allowing you to display content in the browser before your script has finished executing. This is useful when loading a time intensive page to tell the user to wait. When you create a session (provide php is not configured otherwise) php attempts to store a cookie

Re: [PHP] ob_start session_start

2005-12-07 Thread Joe Harman
I guess this was just out of general curiousity... If you started 'session_start()' after 'ob_start()' would the sessions work correctly? k.. maybe I am still confused... lol... I normally do session_start() before the ob_start()... Zack Said : 'yes, it will display the content in the buffer

[PHP] array carrying from one php page to another

2005-12-07 Thread Eternity Records Webmaster
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?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] ob_start session_start

2005-12-07 Thread Curt Zirzow
On Thu, Dec 08, 2005 at 01:23:40AM -0500, Joe Harman wrote: So, the question is really... in what order is the best way to do this... I would think that you always want to start a session first... but then again, you guys are the experts... i am sure someone knows a reason when you should

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

2005-12-07 Thread Curt Zirzow
On Thu, Dec 08, 2005 at 01:33:52AM -0500, Eternity Records Webmaster wrote: 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

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

2005-12-07 Thread Ligaya Turmelle
Session variable or hidden field maybe Eternity Records Webmaster wrote: 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??

Re: [PHP] ob_start session_start

2005-12-07 Thread Chris Shiflett
Zack Bloom wrote: Sure, ob_start begins a buffer allowing you to display content in the browser before your script has finished executing. Calling ob_start() turns on PHP's output buffering. In other words, it buffers output from the moment this function is called until the buffer is flushed

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

2005-12-07 Thread Curt Zirzow
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, this gets interesting. I don't know if you're familiar with the

[PHP] broken code....

2005-12-07 Thread Eternity Records Webmaster
I have this code that doesnt print the db results like they should... it uses pear::db package for the database. Was wondering if anybody can figure out how come it doesnt work... ?php require_once 'DB.php'; error_reporting('E_ALL'); $db = DB::connect('mysql://root:[EMAIL

Re: [PHP] Anyone getting bounces from

2005-12-07 Thread Curt Zirzow
On Wed, Dec 07, 2005 at 08:36:05AM -0600, Jay Blanchard wrote: [EMAIL PROTECTED] ? I am getting failure notices out the wazoo for some very old messages to the general list. expect some more of them, if you've sent a message recently. time to get him/her unsubscribed.. Curt. -- cat

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

2005-12-07 Thread Zack Bloom
you could just pass in in the address, eg: www.example.com?var1=$var1var2=$var2 to get them use $_REQUEST['var1'] to pass an array you could use serialize($var1) and unserialize($var1) On 12/8/05, Chris Shiflett [EMAIL PROTECTED] wrote: Curt Zirzow wrote: ?php $array = array('my',

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

2005-12-07 Thread Chris Shiflett
Curt Zirzow wrote: ?php $array = array('my', 'list', 'of', 'stuff'); $_SESSION['array_for_popup'] = $array; ? And in the code that is called in the popup: ?php if(!isset($_SESSION['array_for_popup']) { die('you should not be here anyway, only on a popup is this allowed'); } $array =

Re: [PHP] ob_start session_start

2005-12-07 Thread Zack Bloom
I have never tried it but if it did work i doubt it would use cookies, it would probably pass it in the addresses or throw an error. On 12/8/05, Joe Harman [EMAIL PROTECTED] wrote: I guess this was just out of general curiousity... If you started 'session_start()' after 'ob_start()' would the

Re: [PHP] ob_start session_start

2005-12-07 Thread Zack Bloom
Sorry it looked like the rest of your email was part of the previous one. To answer your question it is better to call session_start() before ob_start() On 12/8/05, Zack Bloom [EMAIL PROTECTED] wrote: I have never tried it but if it did work i doubt it would use cookies, it would probably pass

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

2005-12-07 Thread Curt Zirzow
On Thu, Dec 08, 2005 at 02:39:46AM -0500, Zack Bloom wrote: you could just pass in in the address, eg: www.example.com?var1=$var1var2=$var2 to get them use $_REQUEST['var1'] to pass an array you could use serialize($var1) and unserialize($var1) Or just use http_build_query() (php5 only)