[PHP] 5.0.0 NT and Mail()

2004-08-09 Thread Michael Purdy
Folks Has anyone running php 5.0.0 on NT ran into the MAIL() error Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing I have tried numerous syntax changes to sendmail_from in the PHP.INI as well as setting headers without success. Mike

Re: [PHP] Incorrect trans-sid placement in PHP Version 4.3.6

2004-08-09 Thread Torsten Scheck
Justin Patrin wrote: > On Mon, 09 Aug 2004 10:02:23 +0200, Torsten Scheck > <[EMAIL PROTECTED]> wrote: > >>Hi, >> >>I just stumbled over a problem after I had updated PHP, and I >>thought I should share my experience: >> >>I use PHP Version 4.3.6 with '--enable-trans-sid' and >>deactivated cookies:

Re: [PHP] PHP5 - OOP Question

2004-08-09 Thread Curt Zirzow
* Thus wrote Hardik Doshi: > Hello Group, > > I would like to know which one is the most appropriate > way to implement the following scenario. > > For example, I want to display a products catalogue of > 100 products. I do have a base class of product which > contains all the basic property of t

Re: [PHP] PHP5 - OOP Question

2004-08-09 Thread Robby Russell
On Mon, 2004-08-09 at 19:29, Hardik Doshi wrote: > Hello Group, > > I would like to know which one is the most appropriate > way to implement the following scenario. > > For example, I want to display a products catalogue of > 100 products. I do have a base class of product which > contains all t

Re: [PHP] PHP5 - OOP Question

2004-08-09 Thread Robert Cummings
On Mon, 2004-08-09 at 22:29, Hardik Doshi wrote: > Hello Group, > > I would like to know which one is the most appropriate > way to implement the following scenario. > > For example, I want to display a products catalogue of > 100 products. I do have a base class of product which > contains all t

[PHP] PHP5+OpenSSL extension not using args nor proper cnf extensions

2004-08-09 Thread User1001
The "openssl_csr_sign" function forces the use of certificate request specifications in the 'openssl.cnf' (configuration) file, and completely ignores the extension sections passed in the "configargs" array. The (CA) signing functions allow for configuration extensions that are not defined nor use

[PHP] PHP5 - OOP Question

2004-08-09 Thread Hardik Doshi
Hello Group, I would like to know which one is the most appropriate way to implement the following scenario. For example, I want to display a products catalogue of 100 products. I do have a base class of product which contains all the basic property of the product (Product title, product descript

Re[2]: [PHP] complex array and smarty

2004-08-09 Thread adwinwijaya
Hello John, Tuesday, August 10, 2004, 12:35:30 AM, you wrote: JWH> From: "adwinwijaya" <[EMAIL PROTECTED]> >> Assume I have array that looks like : >> >> Array( >> 'type'->'Fiction', >> 'notes'->'Fiction books from a-z', >> 'list'-> Array( >> 'list'-> [0]->array( >>

Re: [PHP] SQL Join query

2004-08-09 Thread Mattias Thorslund
(Sorry about all the quoting but I thought it makes sense for clarity - Mattias) Curt Zirzow wrote: * Thus wrote Lenar Lhmus: Mattias Thorslund wrote: Though, (regardless of SQL database platform) in a case like this, it MAY be both more straightforward and efficient to use two separate q

Re: [PHP] How PHP handles multiple inclusions of the same file?

2004-08-09 Thread Justin Patrin
On Mon, 09 Aug 2004 20:04:50 -0400, Gambler ZG <[EMAIL PROTECTED]> wrote: > > Much better to use a *function* which is parsed once > > then include()ing or eval()ing the same code over and over to > (possibly) be > > re-parsed. > > //I read file once: > $handle = fopen($fileName, "r"); > $scrip

Re: [PHP] How PHP handles multiple inclusions of the same file?

2004-08-09 Thread Gambler ZG
> Much better to use a *function* which is parsed once > then include()ing or eval()ing the same code over and over to (possibly) be > re-parsed. //I read file once: $handle = fopen($fileName, "r"); $script = 'function use_cached_code(){ ?>'; $script. = fread($handle, filesize($fileName)); $scrip

Re: [PHP] how to configure sessions

2004-08-09 Thread Justin Patrin
Please don't send the same message twice. Response below. On Mon, 9 Aug 2004 20:32:12 -0300, Naty <[EMAIL PROTECTED]> wrote: > Hi !!! > I'm new with php, I just install php and apache, I test with info.php and > all > it's working. > Now I'm trying to install a thirds party webapp that seams to h

[PHP] how to configure sessions

2004-08-09 Thread Naty
Hi !!! I'm new in php, I just install php and apache, i test with info.php and all it's working. Now I'm trying to install a thirds party webapp and seams to have problems with sessions, I receive a warning error like "Warning: Cannot modify header information - headers already sent by (output sta

[PHP] how to configure sessions

2004-08-09 Thread Naty
Hi !!! I'm new with php, I just install php and apache, I test with info.php and all it's working. Now I'm trying to install a thirds party webapp that seams to have problems with sessions, I received a warning error like "Warning: Cannot modify header information - headers already sent by (output

Re: [PHP] PHP/MySQL based webmail?

2004-08-09 Thread Hardik Doshi
I strongly recommend Horde web mail. We are currently using it in our institute and it scales better. Thanks, Hardik --- Matthew Sims <[EMAIL PROTECTED]> wrote: > > On Mon, 2004-08-09 at 14:28, Alex Shi wrote: > >> Hi All, > >> > >> Can any one recommend a strong/stable PHP/MySQL > based web >

Re: [PHP] PHP/MySQL based webmail?

2004-08-09 Thread Matthew Sims
> On Mon, 2004-08-09 at 14:28, Alex Shi wrote: >> Hi All, >> >> Can any one recommend a strong/stable PHP/MySQL based web >> mail system? It must support large mail transfer, some times may be >> more than 10 MB for a single message. >> >> Alex > > The message size limit is controlled by your maile

Re: [PHP] PHP/MySQL based webmail?

2004-08-09 Thread Robby Russell
On Mon, 2004-08-09 at 14:28, Alex Shi wrote: > Hi All, > > Can any one recommend a strong/stable PHP/MySQL based web > mail system? It must support large mail transfer, some times may be > more than 10 MB for a single message. > > Alex The message size limit is controlled by your mailer. (post

[PHP] PHP/MySQL based webmail?

2004-08-09 Thread Alex Shi
Hi All, Can any one recommend a strong/stable PHP/MySQL based web mail system? It must support large mail transfer, some times may be more than 10 MB for a single message. Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How PHP handles multiple inclusions of the same file?

2004-08-09 Thread Justin Patrin
On Mon, 9 Aug 2004 15:14:57 -0400, John W. Holmes <[EMAIL PROTECTED]> wrote: > From: "Justin Patrin" <[EMAIL PROTECTED]> > > > eval($script); > > > use_cached_code(); > > > > Ick! eval() is evil! > > You have benchmarks to back that up or experience? > Well, I didn't mean speed-wise necessarily,

[PHP] PHP 4 equivalent for convert_uuencode

2004-08-09 Thread Vidyut Luther
Hello, I'm looking at the PHP manual which has http://us3.php.net/convert_uuencode convert_uuencode as a function, but it's only a PHP 5 function. Is there a PHP 4 equivalent for this function ?. Really appreciate any help on this. -- Vidyut Luther -- PHP General Mailing List (http://www.php.

RE: [PHP] Working with a new design client

2004-08-09 Thread Robby Russell
heh, think you missed the point. It's not for designing the site, it's for your clients who don't know HTML markup and can edit their pages. -Robby On Mon, 2004-08-09 at 13:16, Scott Hyndman wrote: > I would kill myself if I ever had to use a web-based app to design a > site. Gross! > > (sorry

RE: [PHP] Working with a new design client

2004-08-09 Thread Scott Hyndman
I would kill myself if I ever had to use a web-based app to design a site. Gross! (sorry I sent it to just you, I still haven't got used to this thing) -Original Message- From: Robby Russell [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 11:15 AM To: charles kline Cc: [EMAIL PRO

Re: [PHP] How PHP handles multiple inclusions of the same file?

2004-08-09 Thread Curt Zirzow
* Thus wrote John W. Holmes: > From: "Justin Patrin" <[EMAIL PROTECTED]> > > > eval($script); > > > use_cached_code(); > > > > Ick! eval() is evil! > > You have benchmarks to back that up or experience? > > I did a benchmark between using include(), eval(), smarty, pattemplate, and > a few others

Re: [PHP] Need Some Direction

2004-08-09 Thread Jason Wong
On Tuesday 10 August 2004 03:29, Aaron Todd wrote: > When you say "outside of the webroot" do you mean. Can you give me an > example. The root of my web is in /var/www/html/. Thats where you are > taken when you punch in my domain. Currently I have a directory called > /test/ which is protected

Re: [PHP] Need Some Direction

2004-08-09 Thread Jason Davidson
if you have /var/www/html/ defined as documentroot, as you mentioend then outside is anything outside the directory html/ so /var/www/php/ could hold all your php files, and be outside the docroot. JAson "Aaron Todd" <[EMAIL PROTECTED]> wrote: > > When you say "outside of the webroot" do you m

Re: [PHP] Need Some Direction

2004-08-09 Thread Aaron Todd
When you say "outside of the webroot" do you mean. Can you give me an example. The root of my web is in /var/www/html/. Thats where you are taken when you punch in my domain. Currently I have a directory called /test/ which is protected by .htaccess but it is inder the webroot.../var/www/html/t

Re: [PHP] How PHP handles multiple inclusions of the same file?

2004-08-09 Thread John W. Holmes
From: "Justin Patrin" <[EMAIL PROTECTED]> > > eval($script); > > use_cached_code(); > > Ick! eval() is evil! You have benchmarks to back that up or experience? I did a benchmark between using include(), eval(), smarty, pattemplate, and a few others and include() and eval() are always the fastest.

[PHP] "count" index prevents ldap_add() after ldap_search() directly

2004-08-09 Thread Chris Shenton
I'm doing a bunch of LDAP work with PHP-4.3.6 and keep running up against this annoyance. If I do an ldap_search() and get the first entry, I can't then tweak some of the attribute/values and then directly use ldap_add() to put a new version into the directory. The reason is that the ldap_get_en

Re: [PHP] Access CLIENTNAME

2004-08-09 Thread Lester Caine
Scot L. Harris wrote: I'm running a PHP system that relies on knowing the location of the terminal to handle a lot of '911' (999) type things. I know that REMOTE_ADDR can not be relied on, but with fixed IP addresses on a local network it works fine. However I now have a customer who has a Termi

Re: [PHP] How PHP handles multiple inclusions of the same file?

2004-08-09 Thread Justin Patrin
On Mon, 09 Aug 2004 02:11:14 -0400, Gambler ZG <[EMAIL PROTECTED]> wrote: > > what do you mean by that? > > Nothing. The statement was based on the erroneous assumption that > anonimous functions allow to go into HTML mode with '?>'. But this will > not stop me, for there is eval()! The general id

Re: [PHP] SQL Join query

2004-08-09 Thread Curt Zirzow
* Thus wrote Jonathan Haddad: > The only problem there is when you group the LEFT JOIN pictures that > have a count of 0 return a count of 1. Unfortunately there's no single > query that I figured out when I did this same project that would give > accurate results. SELECT pics.*, pic_comm

Re: [PHP] MAIL function sends as anonymouse@mydomain.com instead of what I specify in php.ini?

2004-08-09 Thread Jason Wong
On Monday 09 August 2004 23:56, BOOT wrote: > I am sure that this is a problem with my MTA configuration not PHP itself, > but any help would be appreciated. > > PHP is set to use sendmail (although I understand that my server may be > using qmail and not really sendmail?) Makes no practical diff

Re: [PHP] Access CLIENTNAME

2004-08-09 Thread Scot L. Harris
On Mon, 2004-08-09 at 03:16, Lester Caine wrote: > At the risk of getting my head bitten off I ask this again, as I am not > getting any help anywhere. > > I'm running a PHP system that relies on knowing the location of the > terminal to handle a lot of '911' (999) type things. I know that > RE

Re: [PHP] base64_decode an image, works on blank page, not on page where text is..

2004-08-09 Thread Justin Patrin
On Mon, 9 Aug 2004 14:23:22 -0700, Josh Acecool M <[EMAIL PROTECTED]> wrote: > If I try to base64_decode an image which was encoded with base64_encode on a > blank page, it works, if I try on a page with stuff already on it, it just > shows me the source code to the image... > > Example: Run this

Re: [PHP] WYSIWyG

2004-08-09 Thread Matthew Sims
> Matthew Sims wrote: > >>And how does this relate to PHP?? >> >> >> > Matthew, > you are now sure to be flamed by all those who believe off topic > maililngs by those who do not read the newby guide should be allowed and > encouraged. > > > > > -- > Raditha Dissanayake. Well dammit all. I was hop

Re: [PHP] SQL Join query

2004-08-09 Thread Jonathan Haddad
The only problem there is when you group the LEFT JOIN pictures that have a count of 0 return a count of 1. Unfortunately there's no single query that I figured out when I did this same project that would give accurate results. John Holmes wrote: Mattias Jönsson wrote: SELECT pics.*, pic_comme

Re: [PHP] Incorrect trans-sid placement in PHP Version 4.3.6

2004-08-09 Thread Justin Patrin
On Mon, 09 Aug 2004 10:02:23 +0200, Torsten Scheck <[EMAIL PROTECTED]> wrote: > Hi, > > I just stumbled over a problem after I had updated PHP, and I thought I > should share my experience: > > I use PHP Version 4.3.6 with '--enable-trans-sid' and deactivated cookies: > session.use_cookies Off >

Re: [PHP] MAIL function sends as anonymouse@mydomain.com instead of what I specify in php.ini?

2004-08-09 Thread Robby Russell
On Mon, 2004-08-09 at 08:56, BOOT wrote: > I am sure that this is a problem with my MTA configuration not PHP itself, > but any help would be appreciated. > > PHP is set to use sendmail (although I understand that my server may be > using qmail and not really sendmail?) > > It seems that whatever

[PHP] MAIL function sends as anonymouse@mydomain.com instead of what I specify in php.ini?

2004-08-09 Thread BOOT
I am sure that this is a problem with my MTA configuration not PHP itself, but any help would be appreciated. PHP is set to use sendmail (although I understand that my server may be using qmail and not really sendmail?) It seems that whatever SMPT settings I place in php.ini ignores. (SMTP server

Re: [PHP] Re: [Q] How to setup Dreamweaver so that PHP scripts are executed?

2004-08-09 Thread Jonathan Haddad
And if you want to be really extreme, you can edit httpd.conf to use virtual hosting and recognize each of the sites you have as individual web servers. Then, edit your hosts file to match the domains.. say I am working on my own web site, oldirtyhaddad.com (shameless plug). I have set up my

[PHP] Re: Session problems under heavy load???

2004-08-09 Thread BOOT
Thanks for the replies. For those who mentioned load balancing I am using my own server so that is not an issue. Loads should typically not hit what they did while the raid array was rebuilding, however this does seem a little alarming from a security standpoint! How do security conscious sites dea

[PHP] LDAP Group query examples?

2004-08-09 Thread Sam Evans
Hello.. I am wondering if someone could point me in the general direction of some examples which show how to query an LDAP group for user membership? Thanks, Sam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Working with a new design client

2004-08-09 Thread Robby Russell
On Mon, 2004-08-09 at 07:58, charles kline wrote: > Hi all, > > I have a new client (a design company). They have never developed a > dynamic website at all and do all their HTML editing using Dreamweaver. > Are opposed to using something different for their general HTML editing? You might be

Re: [PHP] Working with a new design client

2004-08-09 Thread John W. Holmes
From: "charles kline" <[EMAIL PROTECTED]> > I have never used Smarty, which I understand might be a big help in > these situations. One concern of mine is that I have a tight budget on > this project and don't want to spend a lot of time learning a new > system unless I have to. Smarty is one sol

Re: [PHP] no select()-function?

2004-08-09 Thread Robby Russell
On Mon, 2004-08-09 at 07:35, Marten Lehmann wrote: > Hello, > > I'm missing the select-function in PHP. It's a low-level function call > to the same-called C-function and also available in Perl. I need this > for nonblocking socket calls. Which function within PHP do I have to use > instead? >

[PHP] Working with a new design client

2004-08-09 Thread charles kline
Hi all, I have a new client (a design company). They have never developed a dynamic website at all and do all their HTML editing using Dreamweaver. When I build sites, I am used to using a class for pages. Many of the pages in this site are totally static except for a few elements (Bread Crumb,

Re: [PHP] complex array and smarty

2004-08-09 Thread John W. Holmes
From: "adwinwijaya" <[EMAIL PROTECTED]> > Assume I have array that looks like : > > Array( > 'type'->'Fiction', > 'notes'->'Fiction books from a-z', > 'list'-> Array( > 'list'-> [0]->array( > 'title'->'xzy', > 'id'->'1') >

[PHP] no select()-function?

2004-08-09 Thread Marten Lehmann
Hello, I'm missing the select-function in PHP. It's a low-level function call to the same-called C-function and also available in Perl. I need this for nonblocking socket calls. Which function within PHP do I have to use instead? Regards Marten Lehmann -- PHP General Mailing List (http://www.ph

Re: [PHP] How PHP handles multiple inclusions of the same file?

2004-08-09 Thread Curt Zirzow
* Thus wrote Gambler ZG: > >what do you mean by that? > > Nothing. The statement was based on the erroneous assumption that > anonimous functions allow to go into HTML mode with '?>'. But this will > not stop me, for there is eval()! The general idea is simple - to use > some file's code multip

[PHP] XSLT select syntax

2004-08-09 Thread Pasha Zubkov
Hi, In php5.0.0 I can use next select syntax: but in php5.1.0-dev I see this warning Warning: XSLTProcessor::transformToDoc() [function.transformToDoc]: Invalid type in /mnt/data/www/html/web/Includes/Theme.php on line 117 Warning: XSLTProcessor::transformToDoc() [function.transformToDoc]: runtim

[PHP] base64_decode an image, works on blank page, not on page where text is..

2004-08-09 Thread Josh Acecool M
If I try to base64_decode an image which was encoded with base64_encode on a blank page, it works, if I try on a page with stuff already on it, it just shows me the source code to the image... Example: Run this code as a blank page, no spaces before or after the PS: phpBB2 somehow got it to wor

[PHP] GENERAL DIGEST MAILLIST ALLOWS POST

2004-08-09 Thread Alfonso Baqueiro
If you are viewing this, means that been suscribed only to the general-digest, you are able to post. This is very useful for mozilla clients, cause you have mozilla to see the message list for new messages without the inconvenience of recieving a lot of mail daily. :) -- PHP General Mailing Li

[PHP]

2004-08-09 Thread hino masako
@lists.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] locate PID & Kill

2004-08-09 Thread Jason Wong
On Monday 09 August 2004 19:00, Curlys wrote: > it doesn't work , when it is running , errors r bellow > > sh: line 1: kill: r: invalid signal specification Well specify a VALID signal then. This is not a PHP problem. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software

[PHP] Re: Getting data from table as a tree

2004-08-09 Thread pt2002
Hi Brian I was almost, almost, almost there :) but I was missing a bit of the logic. Thank you very much. You solve my present and future problems. Greetings pt2002 "Brian Kell" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Well, first off, a little bit of formatting (line n

[PHP] Re: I CANT POST

2004-08-09 Thread Alfonso Baqueiro
Correction, Mozilla reply works fine, with php.general only. Alfonso Baqueiro wrote: Alfonso Baqueiro wrote: > Is there a manual of how tu use a mailing list for the newcomers? > Is not so obvious as could be. I supose the steps required to post are: 1. Request registering via the http://www.php.

[PHP] Re: I CANT POST

2004-08-09 Thread Alfonso Baqueiro
Alfonso Baqueiro wrote: > Is there a manual of how tu use a mailing list for the newcomers? > Is not so obvious as could be. I supose the steps required to post are: 1. Request registering via the http://www.php.net/mailing-lists.php 2. Reply the message recibed acording to its instructions. (This

Re: [PHP] locate PID & Kill

2004-08-09 Thread Curlys
it doesn't work , when it is running , errors r bellow sh: line 1: kill: r: invalid signal specification plz help - Original Message - From: "Matthew Runo" <[EMAIL PROTECTED]> To: "Curlys" <[EMAIL PROTECTED]> Cc: "PHP" <[EMAIL PROTECTED]> Sent: Monday, August 09, 2004 12:38 PM Subject:

[PHP] I CANT POST

2004-08-09 Thread Alfonso Baqueiro
Is there a manual of how tu use a mailing list for the newcomers? Is not so obvious as could be. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: GD/PHP question

2004-08-09 Thread Kevin
This might be helpful to you. http://in2.php.net/manual/en/function.imagecopymerge.php Kevin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] annoying autoreplies

2004-08-09 Thread Ford, Mike [LSS]
On 08 August 2004 03:25, Robby Russell wrote: > To all those who have auto-replys set for their email, please > turn them > off. ;-) If you're referring to SpamCease, it seems that these are, on the whole, not genuine auto-replies but are themselves from a spam email address harvester masqueradin

RE: [PHP] Local version works - production breaks

2004-08-09 Thread Ford, Mike [LSS]
On 08 August 2004 14:20, Josh Acecool M wrote: > Try adding > if (!function_exists("function_name")) { > function function_name ($blah) { > // Function Code > } > } > for each function. As I understand it, that will *not* work in PHP 5 as it still parses the entire file, barfing

RE: [PHP] Flush()....go to bottom of page (might be 0T)

2004-08-09 Thread Ford, Mike [LSS]
On 07 August 2004 23:24, PHP Gen wrote: > This is what i am using: > > for($i=0; $i<1000;$i++) > { > echo "something"; > echo str_repeat(" ", 256); flush(); ob_flush(); > sleep(1); > } Regardless of solving your scrolling problem, these flush calls are the wrong way round -- ob_flush() flush

Re: [PHP] safe_mode restriction

2004-08-09 Thread Jason Wong
On Sunday 08 August 2004 17:30, Kevin wrote: > > please show us the output of 'ls -al' of the directories in question. > > Yes, I have seen the permission and its rwx-rwx-rwx i.e 777. The full output showing the owner.group would have been nice. Anyway: > Warning: mkdir(): SAFE MODE Restriction

[PHP] Incorrect trans-sid placement in PHP Version 4.3.6

2004-08-09 Thread Torsten Scheck
Hi, I just stumbled over a problem after I had updated PHP, and I thought I should share my experience: I use PHP Version 4.3.6 with '--enable-trans-sid' and deactivated cookies: session.use_cookies Off session.use_trans_sid On And when I use PHP's session feature together with an empty XML tag, PH

Re: [PHP] Access CLIENTNAME

2004-08-09 Thread icpcnn
- Original Message - From: "Lester Caine" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 09, 2004 3:16 PM Subject: [PHP] Access CLIENTNAME > At the risk of getting my head bitten off I ask this again, as I am not > getting any help anywhere. > > I'm running a PHP sys

[PHP] Access CLIENTNAME

2004-08-09 Thread Lester Caine
At the risk of getting my head bitten off I ask this again, as I am not getting any help anywhere. I'm running a PHP system that relies on knowing the location of the terminal to handle a lot of '911' (999) type things. I know that REMOTE_ADDR can not be relied on, but with fixed IP addresses o

Re: [PHP] ImageColorTransparent Problem

2004-08-09 Thread Lester Caine
Kevin wrote: Yes, I have tried making the image with imagecreate() function and it was transparent. Using imagecreate() function I was only able to make 256 colors but the image was transparent. I want real colors so I used imagecreatetruecolor() and now the same is not transparent. THAT is a bug i