php-general Digest 10 Aug 2004 09:29:07 -0000 Issue 2928

Topics (messages 193228 through 193251):

PHP/MySQL based webmail?
        193228 by: Alex Shi
        193229 by: Robby Russell
        193230 by: Matthew Sims
        193231 by: Hardik Doshi

how to configure sessions
        193232 by: Naty
        193233 by: Naty
        193234 by: Justin Patrin

Re: How PHP handles multiple inclusions of the same file?
        193235 by: Gambler ZG
        193236 by: Justin Patrin

Re: SQL Join query
        193237 by: Mattias Thorslund
        193251 by: Peter Brodersen

Re: complex array and smarty
        193238 by: adwinwijaya

PHP5 - OOP Question
        193239 by: Hardik Doshi
        193241 by: Robert Cummings
        193242 by: Robby Russell
        193243 by: Curt Zirzow

PHP5+OpenSSL extension not using args nor proper cnf extensions
        193240 by: User1001

Re: Incorrect trans-sid placement in PHP Version 4.3.6
        193244 by: Torsten Scheck

5.0.0 NT and Mail()
        193245 by: Michael Purdy
        193246 by: raditha dissanayake
        193247 by: Jason Wong

Re: PHP 5.0.0 NT Mail()
        193248 by: Michael Purdy
        193250 by: Jason Wong

why use http headers??
        193249 by: Tobias Gr�nlund

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
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. (postfix, sendmail,
qmail, etc).

Squirrelmail is a nice php-based interface.

-Robby

-- 
/***************************************
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON  | www.planetargon.com
* Portland, OR  | [EMAIL PROTECTED]
* 503.351.4730  | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
****************************************/

--- End Message ---
--- Begin Message ---
> 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. (postfix, sendmail,
> qmail, etc).
>
> Squirrelmail is a nice php-based interface.
>
> -Robby

I second that. Squirrelmail is solid. And the plugin features is great.

-- 
--Matthew Sims
--<http://killermookie.org>

--- End Message ---
--- Begin Message ---
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
> >> 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. (postfix, sendmail,
> > qmail, etc).
> >
> > Squirrelmail is a nice php-based interface.
> >
> > -Robby
> 
> I second that. Squirrelmail is solid. And the plugin
> features is great.
> 
> -- 
> --Matthew Sims
> --<http://killermookie.org>
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 



                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

--- End Message ---
--- Begin Message ---
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
started at C:\Program Files\Apache
Group\Apache2\htdocs\webappphp\index.php:3) in C:\Program Files\Apache
Group\Apache2\htdocs\webappphp\functions.php on line 26

Warning: Unknown:
open(/C:/php/sessions/\sess_452f0a7e4f766da1ecc65a4eca8d9cb8, O_RDWR)
failed: Invalid argument (22) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that
the current setting of session.save_path is correct (N;/C:/php/sessions/) in
Unknown on line 0"

In the php.ini I have
  session.save_path = "N;/C:/php/sessions/"

Maybe somebody can help me!
Regards

Naty

--- End Message ---
--- Begin Message ---
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
started at C:\Program Files\Apache
Group\Apache2\htdocs\webappphp\index.php:3) in C:\Program Files\Apache
Group\Apache2\htdocs\webappphp\functions.php on line 26

Warning: Unknown:
open(/C:/php/sessions/\sess_452f0a7e4f766da1ecc65a4eca8d9cb8, O_RDWR)
failed: Invalid argument (22) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that
the current setting of session.save_path is correct (N;/C:/php/sessions/) in
Unknown on line 0"

In the php.ini I have
  session.save_path = "N;/C:/php/sessions/"

Maybe somebody can help me!
Regards

Naty

--- End Message ---
--- Begin Message ---
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 have problems
> with sessions, I received a warning error like
> 
> "Warning: Cannot modify header information - headers already sent by (output
> started at C:\Program Files\Apache
> Group\Apache2\htdocs\webappphp\index.php:3) in C:\Program Files\Apache
> Group\Apache2\htdocs\webappphp\functions.php on line 26
> 
> Warning: Unknown:
> open(/C:/php/sessions/\sess_452f0a7e4f766da1ecc65a4eca8d9cb8, O_RDWR)
> failed: Invalid argument (22) in Unknown on line 0
> 
> Warning: Unknown: Failed to write session data (files). Please verify that
> the current setting of session.save_path is correct (N;/C:/php/sessions/) in
> Unknown on line 0"
> 
> In the php.ini I have
>   session.save_path = "N;/C:/php/sessions/"

Why do you have this in your save_path? this is definately not right. Try:
session.save_path = "C:/php/sessions/"

Make sure that the user that PHP is running as has full access to that
directory and restart Apache. Then try again.

> 
> Maybe somebody can help me!
> Regards
> 
> Naty
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> !DSPAM:411806e5291851697419290!
> 
> 


-- 
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

--- End Message ---
--- Begin Message --- > 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));
$script. = '<?php
}';

//parse it once:
eval($script);

//and use the code as much as I want:
use_cached_code();

> It just makes more sense code structure-wise as well.

Not in my case, believe me. Otherwise I would not ask about caching.
--- End Message ---
--- Begin Message ---
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");
> $script = 'function use_cached_code(){
> ?>';
> $script. = fread($handle, filesize($fileName));
> $script. = '<?php
> }';
> 
> //parse it once:
> eval($script);
> 
> //and use the code as much as I want:
> use_cached_code();
> 
>  > It just makes more sense code structure-wise as well.
> 
> Not in my case, believe me. Otherwise I would not ask about caching.

*Maybe* if you *must* use this around *someone else's* code that you
are *not allowed* to change would you use this, but I simply don't
understand why you would do such a thing. You could add the function
name and the bottom part to the file and just include() it. End of
problem.

If this is a "template" that someone else is editing, I would suggest
using a templating system already out there to do the caching and such
for you. This is really a nasty hack. If you want to use PHP-style
syntax, Savant is your friend.

> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

--- End Message ---
--- Begin Message --- (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
queries for the pictures and comments, given the one-to-many cardinality
between them. The above statement causes redundant data to be returned
- it duplicates the pics record for each new comment. If there are many
large columns in the pics table and many comments to each record there's
a lot of redundant data in a query like that.


No, I think you are wrong. There was GROUP BY pics.id so it won't return
duplicate data. And probable overhead is eliminated too I think - DBserver
will optimize and will join data from pic_comments only once for each
unique pics.id.



The results will be something like:

id submitter count pic_id comment
1  joe        4      1    comment1
1  joe        4      1    comment2
1  joe        4      1    comment3
1  joe        4      1    comment4
2  john       0      2    NULL
3  jim        5      3    comment6
3  jim        5      3    comment7
3  jim        5      3    comment8
3  jim        5      3    comment9
3  jim        5      3    comment10


Exactly.


To make it REALLY obvious, I'll point out what parts of the data set that are redundant by replacing them with stars, using Curt's example above:

id  submitter   count pic_id  comment
1   joe         4     1       comment1
*   *           *     *       comment2
*   *           *     *       comment3
*   *           *     *       comment4
2   john        0     2       NULL
3   jim         5     3       comment6
*   *           *     *       comment7
*   *           *     *       comment8
*   *           *     *       comment9
*   *           *     *       comment10


The actual table structure from the original poster (an ex-namesake of mine*) would result in seven columns with redundant data, i.e. where data is needlessly repeated for every picture that has two or more comments.. It wouldn't be hard to find worse real-world examples.


pics table:
| id | submitter | time | date | category |

pic_comments table:
| pic_id | comment |


- Mattias Thorslund

(*) My last name used to be J�nsson, too. Americans just can't pronounce it right.
--- End Message ---
--- Begin Message ---
Hi,

On Mon, 9 Aug 2004 18:12:42 +0000, in php.general you wrote:

>* 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_comments.*, 
>  count(*) + if(pic_comments.pic_id = NULL, -1, 0)

Or simply:

SELECT
  pics.*, 
  pic_comments.*, 
  count(pic_comments.pic_id)
..

COUNT() does not count fields with NULL when specifying a specific
field (as opposed to just count(*) )


.. but this is rather an SQL-related question.

--- End Message ---
--- Begin Message ---
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(
>>                               'title'->'xzy',
>>                               'id'->'1')
>>                    [1]->array(
>>                               'title'->'abcd',
>>                               'id'->'2')
>>                )
>> )
>>
>> Now, I want to display it using smarty os it looks like
>>
>> ---------------------------------------------------
>> Books Result:
>> ----------------------------------------------------
>> 1. Type: Fiction
>>    Notes: bla bla bla bla
>>    ----------------------
>>    ID |   Title
>>    ----------------------
>>    1  | xzy
>>    2  | abcd
>>    ----------------------
>> 2. Type: Non-Fiction
>>    Notes: bla bla bla bla
>>    ----------------------
>>    ID |   Title
>>    ----------------------
>>    3  | ABCDEFEGH
>>    4  | LALALALLA
>>    ----------------------
>> can I do like that with smarty ? and how to do that ?
>> I knew to use array, but for this array, I dont know how to do that

JWH> You need to come up with a better way to format that array based on how you
JWH> want to display it. You can then use {foreach}

JWH> http://smarty.php.net/manual/en/language.function.foreach.php
JWH> ---John Holmes...

yeah, I know it already,
I also tried it using section but I dont know how to translate this
code in php into smarty.

<?php
foreach($Books as $key=>$item)
{
  if($key != 'List')
    echo $key.' = '.$item ;
  else
  foreach($Books['List'] as $key2=>$item2)
   echo $key2.' = '.$item2 ;
}
?>

I tried like this :

{foreach name=main key=key item=books from=$Books}
{if $books.type != ''}
<table border="1">
        <tr>
                <td colspan="3">{$books.type} - {$books.wd_type}</td>
        </tr>
        <tr>
                <td>No</td>
                <td>Name</td>
                <td>Action</td>
        </tr>
        {foreach name=inner key=key2 item=listbook from=$books.List}
        <tr>
            <td> {$listbook.id}-  {$listbook.name} </td>
        </tr>
        {/foreach}
</table>
{/if}
{/foreach}


-- 
Best regards,
adwin

--- End Message ---
--- Begin Message ---
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 description, product price
etc)and constructor basically pulls the information
about the product from the DB based on the product
identifier (Primary key). 

Now i have two ways to display catalogue.

1. I can write only one query to pull all 100 products
information and store product information to each
product object (With out passing product id to the
constructor) into the collection and later i iterate
that collection to display product catalogue.
(Advantage: less communication with database server
and disadvantage: memory consumption is higher)

2. I can initiate an individual product object by
passing product id into the constructor and
constructor will pull an individual product
information from the DB and at the same time i can
display it (Disadvantage: Lots of communication with
database server and Advantage: memory consumption is
less) If you think about inheritance then eventually
this approach will have lots of database calls.

Please guide me as i am stuck up which way to go.

Let me know if you need more information.

Thanks,
Hardik


                
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

--- End Message ---
--- Begin Message ---
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 the basic property of the product
> (Product title, product description, product price
> etc)and constructor basically pulls the information
> about the product from the DB based on the product
> identifier (Primary key). 
> 
> Now i have two ways to display catalogue.
> 
> 1. I can write only one query to pull all 100 products
> information and store product information to each
> product object (With out passing product id to the
> constructor) into the collection and later i iterate
> that collection to display product catalogue.
> (Advantage: less communication with database server
> and disadvantage: memory consumption is higher)
> 
> 2. I can initiate an individual product object by
> passing product id into the constructor and
> constructor will pull an individual product
> information from the DB and at the same time i can
> display it (Disadvantage: Lots of communication with
> database server and Advantage: memory consumption is
> less) If you think about inheritance then eventually
> this approach will have lots of database calls.
> 
> Please guide me as i am stuck up which way to go.
> 
> Let me know if you need more information.

If you expect the products database to grow much, then solution 2 is
your best bet to accommodate much larger numbers. If you expect that you
will only ever have a couple of hundred then solution 1 will most likely
work nicely. Either way, converting from one style to the other is
merely a matter of iterating over retrieved database rows versus
iterating over an array of pre-retrieved items. It should take you less
time than it took you write your post :)

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message ---
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 the basic property of the product
> (Product title, product description, product price
> etc)and constructor basically pulls the information
> about the product from the DB based on the product
> identifier (Primary key). 
> 
> Now i have two ways to display catalogue.
> 
> 1. I can write only one query to pull all 100 products
> information and store product information to each
> product object (With out passing product id to the
> constructor) into the collection and later i iterate
> that collection to display product catalogue.
> (Advantage: less communication with database server
> and disadvantage: memory consumption is higher)
> 

You can do both. You can create an object for products and have it
designed to give you details for a specific product, and then you can
have a function that will return products based on a filter...
(sometimes your users want to search for products)..so the same query
can be used but append a filter to it.


> 2. I can initiate an individual product object by
> passing product id into the constructor and
> constructor will pull an individual product
> information from the DB and at the same time i can
> display it (Disadvantage: Lots of communication with
> database server and Advantage: memory consumption is
> less) If you think about inheritance then eventually
> this approach will have lots of database calls.
> 
> Please guide me as i am stuck up which way to go.
> 
> Let me know if you need more information.
> 
> Thanks,
> Hardik
> 
> 
>               
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We finish.
> http://promotions.yahoo.com/new_mail
-- 
/***************************************
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON  | www.planetargon.com
* Portland, OR  | [EMAIL PROTECTED]
* 503.351.4730  | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
****************************************/

--- End Message ---
--- Begin Message ---
* 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 the product
> (Product title, product description, product price
> etc)and constructor basically pulls the information
> about the product from the DB based on the product
> identifier (Primary key). 
> 
> Now i have two ways to display catalogue.
> 
> 1. I can write only one query to pull all 100 products
> information and store product information to each
> product object (With out passing product id to the
> constructor) into the collection and later i iterate
> that collection to display product catalogue.
> (Advantage: less communication with database server
> and disadvantage: memory consumption is higher)
> 
> 2. I can initiate an individual product object by
> passing product id into the constructor and
> constructor will pull an individual product
> information from the DB and at the same time i can
> display it (Disadvantage: Lots of communication with
> database server and Advantage: memory consumption is
> less) If you think about inheritance then eventually
> this approach will have lots of database calls.
> 
> Please guide me as i am stuck up which way to go.

With these two options I can see why it is a tough choice. There is
another option you can take. Store the result handle of the query
from #1 into an object, and retrieve a row from the database on
demand.

abstract class DbIterator implements Iterator {

  /* for me only */
  private $current = 0;
  private $data    = false;
  private $handle = null;

  /* Force extending object to define this function */
  abstract protected function &getData($handle, $function);

  public function __construct($handle) {
    $this->handle = $handle;
  }

  /* Iterator Interface: */
  public function rewind() {
    $this->current = 0;
    db_seek($this->result, $this->current);
  }
  public function current() {
    return $this->data;
  }
  public function key() {
    return $this->current;
  }
  public function next() {
    $this->data = $this->getData($handle, 'db_fetch_assoc');
    if($this->data) {
      $this->current++;
    }
    return $this->data;
  }
  public function valid() {
    return (this->data !== false);
  }
}


class dbProductClass extends DbIterator {
  public $id;
  public $name;
  
  public function __construct($handle) {
    /* let the parent decide what to do with $handle */
    parent::__construct($handle)
  }

  /* and define this required function */
  protected function &getData($handle, $func) {
    $row = $func($handle);
    if ($row == false ) {
      return $row;
    }
    $this->$id = $row['id']

    if (empty($row['name']) {
      $this->name = 'Default Name';
    } else {
      $this->name = $row['name'];
    }
    // do any special stuff here..

    return &$this; 
  }

  public function tableName {
    return 'People';
  }

  /* this is a no no */
  public function __set($name, $value) {
    throw Execption("Attempt to write to readonly property");
  }



}

// then..
$result = db_query($sql);
$product_rows = new dbProductClass($result);

// then some more..
foreach($product_rows as $row ) {
  echo $row->field_name1;
  echo $row->field_name2;
}

This will keep communication down to a minimum and memory down to a
minimum usage as well. I hope this wasn't to much, and it is
completely untested.



Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

--- End Message ---
--- Begin Message ---
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 used in generating the certificate request, but
"openssl_csr_sign" does not provide for this, forcing the use of the
request extensions, 

        if (req.request_extensions_section) {
                X509V3_CTX ctx;

                X509V3_set_ctx(&ctx, cert, new_cert, csr, NULL, 0);
                X509V3_set_conf_lhash(&ctx, req.req_config);
                if (!X509V3_EXT_add_conf(req.req_config, &ctx, 
req.request_extensions_section, new_cert)) {
                        goto cleanup;
                }
        }

just before signing the certificate request.


Setting the "configargs" array that the "openssl_csr_sign" function
supposedly provides for the PHP programmer to OVERRIDE definitions in the
OpenSSL configuration file don't appear to be picked up or used:


(debug output from modified openssl.c showing "req_extensions" from "req"
section of configuration file)

req.section_name: req
req.config_filename: /usr/local/ssl/openssl.cnf2
req.digest_name: (null)
req.extensions_section: (null)
req.request_extensions_section: v3_req


(PHP program fragment with "openssl_csr_sign" call)

  $configargs = array("req_extensions" => "ssl_only_IT_server_cert",
        "x509_extensions" => "ssl_only_IT_server_cert");
  $usercert = openssl_csr_sign($csr, $cacert, $caprivkey, 365, $configargs);


Using the OpenSSL CA.sh script, modified with desired extension sections,
works just fine in signing a certificate and adding the specific
extensions, which are NOT present in the certificate request.

--- End Message ---
--- Begin Message ---
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:
[...]
>>And when I use PHP's session feature together with an empty
>>XML tag, PHP places the Session-ID in the wrong place, if there
>>is no blank space behind the attribute:
[...]
>
> Why did you update to an older version of PHP?

Hi Justin,

the server was updated to "Fedora Core release 2 (Tettnang)" which is pretty new compared to the RedHat9 before. ;-)

I don't have root access on the production servers, so I can't enforce a certain PHP version. And as there is an easy workaround, you don't have to change to a newer PHP version, if you encounter this bug, anyway.

With my post I just wanted to assist those who update their distribution and are welcomed by their PHP-applications with a non-working PHP-session. :-)

Torsten
--- End Message ---
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Michael Purdy wrote:

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



This was discussed just a few hours ago.



--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/         | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.

--- End Message ---
--- Begin Message ---
On Tuesday 10 August 2004 14:37, Michael Purdy wrote:

> 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

This doesn't tell us anything. Show exactly what you tried then if indeed 
there is something wrong with your syntax someone might spot it and tell you 
what you're doing wrong.

> without success.

Clarify this. If you mean you keep getting the above warning then most likely 
you're editing the wrong php.ini. Use phpinfo() to find out where PHP is 
expecting to find your php.ini. And search the archives for more tips on how 
to locate the correct php.ini.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
"If a camel flies, no one laughs if it doesn't get very far."
                -- Paul White
*/

--- End Message ---
--- Begin Message ---
Jason

Thank you for your response.  In the php.ini I have tried:

; For Win32 only.
sendmail_from = [EMAIL PROTECTED]

sendmail_from = '[EMAIL PROTECTED]'

sendmail_from = "[EMAIL PROTECTED]"

This issue has been raised on other php forums, but has not received any responses.  

Mike

--- End Message ---
--- Begin Message ---
On Tuesday 10 August 2004 16:32, Michael Purdy wrote:

> ; For Win32 only.
> sendmail_from = [EMAIL PROTECTED]
>
> sendmail_from = '[EMAIL PROTECTED]'
>
> sendmail_from = "[EMAIL PROTECTED]"

OK, for each of these settings do you get the same aforementioned warning? If 
so did you read the rest of my response concerning the location php.ini? 
Otherwise what error message are you getting in response to the above 
settings?

> This issue has been raised on other php forums, but has not received any
> responses.

That could mean any number of things. 

As PHP 5.X is still new, have you checked bugs.php.net to see whether this may 
bug-related?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
The climate of Bombay is such that its inhabitants have to live elsewhere.
*/

--- End Message ---
--- Begin Message ---
Hey people,

i need some help. Im missing some arguments for using http headers, especially "content-length", for speeding up a site or just improving the quality of a site :)

any comments appreciated...
--- End Message ---

Reply via email to