|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 21 Jul 2005 05:36:08 -0000 Issue 3579
php-general-digest-help
lists.php.net
Date: Thu Jul 21 2005 - 00:36:08 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 21 Jul 2005 05:36:08 -0000 Issue 3579
Topics (messages 219055 through 219086):
Cannot modify header information error........usage of header method.
219055 by: babu
219057 by: Chris W. Parker
219058 by: babu
219059 by: Mikey
219060 by: Chris W. Parker
219065 by: babu
Re: Before I pull anymore hair out.. Is anyone Using..
219056 by: Cafer Simsek
Content Header
219061 by: Christopher J. Umina
219062 by: Matthew Weier O'Phinney
219063 by: Cafer Simsek
219064 by: Cafer Simsek
redirecting some values from one page to other in php
219066 by: babu
219069 by: Mikey
219071 by: babu
219072 by: Matt Darby
219073 by: babu
219074 by: Matt Darby
Re: mysql problem- I know it isn't strictly php
219067 by: Ethilien
219070 by: Mikey
Re: preg_match_all question
219068 by: Ethilien
Delay in a mail item.
219075 by: SMTP retry
From float to hour and minutes
219076 by: Miguel Guirao
219078 by: Philip Hallstrom
adding ftp functionality into php
219077 by: Tom Cruickshank
gloabl & reference behavior question?
219079 by: Surendra Singhi
PHP and MySQL and resouce limits
219080 by: John Hinton
219082 by: Matt Darby
Re: PHP Build Issues on Soalris 9
219081 by: Jochem Maas
Attaching a pdf in email (no body text displays)
219083 by: Ade Smith
219086 by: Chris
pspell.so causes server to crash ...
219084 by: Marc G. Fournier
objects destroyed in same order as created?
219085 by: Jasper Bryant-Greene
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Hi all,
I am using header method to redirect to a certain page.my first question is
1."Is there any other alternative to this method."
2.I am getting the error by using this method. the error is "Cannot modify header information - headers already sent by".
i have seen the php documentation for header method. where there is one user comment about this.
i have followed his steps like removing blank lines, using exit method. But the 3rd point that is "HTML goes before any PHP code ", i could not follow it , can some one please explain it.
Thanks
babu
---------------------------------
Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail
attached mail follows:
babu <mailto:garavindbabu
yahoo.co.uk>
on Wednesday, July 20, 2005 10:15 AM said:
> 1."Is there any other alternative to this method."
Javascript or an html redirect.
> 2.I am getting the error by using this method. the error is "Cannot
> modify header information - headers already sent by". i have seen the
> php documentation for header method. where there is one user comment
> about this. i have followed his steps like removing blank lines,
> using exit method.
You have not removed everything. Output is still being sent to the
browser. The error message tells you which file and line is causing the
problem. I suggest you go back to it and look closely.
> But the 3rd point that is "HTML goes before any
> PHP code ", i could not follow it , can some one please explain it.
I don't follow it either.
Seinfeld anyone?
Chris.
attached mail follows:
Hi parker,
can you please tell me how to use java script or html redirect, i mean a sample.
thanks
"Chris W. Parker" <cparker
swatgear.com> wrote:
babu
on Wednesday, July 20, 2005 10:15 AM said:
> 1."Is there any other alternative to this method."
Javascript or an html redirect.
> 2.I am getting the error by using this method. the error is "Cannot
> modify header information - headers already sent by". i have seen the
> php documentation for header method. where there is one user comment
> about this. i have followed his steps like removing blank lines,
> using exit method.
You have not removed everything. Output is still being sent to the
browser. The error message tells you which file and line is causing the
problem. I suggest you go back to it and look closely.
> But the 3rd point that is "HTML goes before any
> PHP code ", i could not follow it , can some one please explain it.
I don't follow it either.
Seinfeld anyone?
Chris.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---------------------------------
Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail
attached mail follows:
babu wrote:
>Hi parker,
>can you please tell me how to use java script or html redirect, i mean a sample.
>
>thanks
>
>"Chris W. Parker" <cparker
swatgear.com> wrote:
>babu
>on Wednesday, July 20, 2005 10:15 AM said:
>
>
>
>>1."Is there any other alternative to this method."
>>
>>
>
>Javascript or an html redirect.
>
>
>
>>2.I am getting the error by using this method. the error is "Cannot
>>modify header information - headers already sent by". i have seen the
>>php documentation for header method. where there is one user comment
>>about this. i have followed his steps like removing blank lines,
>>using exit method.
>>
>>
>
>You have not removed everything. Output is still being sent to the
>browser. The error message tells you which file and line is causing the
>problem. I suggest you go back to it and look closely.
>
>
>
>>But the 3rd point that is "HTML goes before any
>>PHP code ", i could not follow it , can some one please explain it.
>>
>>
>
>I don't follow it either.
>
>
>Seinfeld anyone?
>
>Chris.
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>---------------------------------
>Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail
>
>
Javascript:
document.location = "new_url.html";
HTML:
<meta http-equiv="refresh" content="1,http://site.com/new_page.html">
HTH,
Mikey
attached mail follows:
babu <mailto:garavindbabu
yahoo.co.uk>
on Wednesday, July 20, 2005 10:33 AM said:
> Hi parker,
> can you please tell me how to use java script or html redirect, i
> mean a sample.
I must be in a good mood today. :)
html redirect (more accurately called meta refresh):
http://www.pageresource.com/html/metref.htm
Javascript:
http://www.pageresource.com/html/metref.htm
Chris.
attached mail follows:
Thanks for the help mike and parker,
I have used ob_start and ob_end_flush methods, and its working fine.
i got good idea of redirecting now.
Mikey <frak
totalise.co.uk> wrote:
babu wrote:
>Hi parker,
>can you please tell me how to use java script or html redirect, i mean a sample.
>
>thanks
>
>"Chris W. Parker" wrote:
>babu
>on Wednesday, July 20, 2005 10:15 AM said:
>
>
>
>>1."Is there any other alternative to this method."
>>
>>
>
>Javascript or an html redirect.
>
>
>
>>2.I am getting the error by using this method. the error is "Cannot
>>modify header information - headers already sent by". i have seen the
>>php documentation for header method. where there is one user comment
>>about this. i have followed his steps like removing blank lines,
>>using exit method.
>>
>>
>
>You have not removed everything. Output is still being sent to the
>browser. The error message tells you which file and line is causing the
>problem. I suggest you go back to it and look closely.
>
>
>
>>But the 3rd point that is "HTML goes before any
>>PHP code ", i could not follow it , can some one please explain it.
>>
>>
>
>I don't follow it either.
>
>
>Seinfeld anyone?
>
>Chris.
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>---------------------------------
>Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail
>
>
Javascript:
document.location = "new_url.html";
HTML:
HTH,
Mikey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---------------------------------
Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail
attached mail follows:
Hi,
You may try to run your codes with CLI, this provides to you that the
see the some errors if have. And also you have posibility strace
usage.
Best Regards.
-Cafer
Chuck Carson <chuck.carson
gmail.com> writes:
> Is anyone here using php 5.0.4 on Solaris 9 and compiled with Oracle
> 10g support and using apache 2.0.54? I have looked at every 10 times
> over. I have built php with oracle support probably 100 times on 5
> different platforms and never had as many issues as I have had so far
> with this system.
>
> After finally getting php to build with everything I needed, I am
> getting seg faults when accessing a php page that connects to the
> oracle database. (but it doesn't happen _every_ time, it is
> inconsistent)
>
> I'm at a loss and must move to tomcat/jsp/servlets if I can't get a
> stable platform up this week. =(
>
> Thx
> CC
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Hello!
I currently have a script which streams data out of a MySQL database,
and prints the content headers correctly, however, when I use the
following line:
header("Content-Disposition: attachment; filename=\"". $filename ."\"");
it prompts the user to download the file each time they go to the site.
The problem is, I want the filename to be in the header, incase
somebody right clicks and saves the file, but I don't want the user to
be prompted to download the file when they're just trying to look at
it. Does anybody know a way I can achieve this result?
Thank you!
Christopher J. Umina
attached mail follows:
* "Christopher J. Umina" <uminac
fritzilldo.com>:
> Hello!
>
> I currently have a script which streams data out of a MySQL database,
> and prints the content headers correctly, however, when I use the
> following line:
>
> header("Content-Disposition: attachment; filename=\"". $filename ."\"");
>
> it prompts the user to download the file each time they go to the site.
> The problem is, I want the filename to be in the header, incase
> somebody right clicks and saves the file, but I don't want the user to
> be prompted to download the file when they're just trying to look at
> it. Does anybody know a way I can achieve this result?
As long as the "Content-Disposition: attachment" header is present, the
browser will believe a file is being sent.
One solution is to have two different links, with an optional download
flag in the query string. Then, in your script, generate the
Content-Disposition header for 'download' requests, don't otherwise.
--
Matthew Weier O'Phinney
Zend Certified Engineer
http://weierophinney.net/matthew/
attached mail follows:
Hi,
You may try that;
header("Content-Disposition: attachment; filename=\"". $filename ."\"");
Best Regards
-Cafer
On 7/20/05, Christopher J. Umina <uminac
fritzilldo.com> wrote:
> Hello!
>
> I currently have a script which streams data out of a MySQL database,
> and prints the content headers correctly, however, when I use the
> following line:
>
> header("Content-Disposition: attachment; filename=\"". $filename ."\"");
>
> it prompts the user to download the file each time they go to the site.
> The problem is, I want the filename to be in the header, incase
> somebody right clicks and saves the file, but I don't want the user to
> be prompted to download the file when they're just trying to look at
> it. Does anybody know a way I can achieve this result?
>
> Thank you!
> Christopher J. Umina
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Sorry
it was
header("Content-Disposition: inline; filename=\"". $filename ."\"");
-Cafer
On 7/20/05, Cafer Simsek <cafers
gmail.com> wrote:
> Hi,
>
> You may try that;
>
> header("Content-Disposition: attachment; filename=\"". $filename ."\"");
>
> Best Regards
>
> -Cafer
>
> On 7/20/05, Christopher J. Umina <uminac
fritzilldo.com> wrote:
> > Hello!
> >
> > I currently have a script which streams data out of a MySQL database,
> > and prints the content headers correctly, however, when I use the
> > following line:
> >
> > header("Content-Disposition: attachment; filename=\"". $filename ."\"");
> >
> > it prompts the user to download the file each time they go to the site.
> > The problem is, I want the filename to be in the header, incase
> > somebody right clicks and saves the file, but I don't want the user to
> > be prompted to download the file when they're just trying to look at
> > it. Does anybody know a way I can achieve this result?
> >
> > Thank you!
> > Christopher J. Umina
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
attached mail follows:
I am using header method for redirecting to another php file.I also want to pass some variables to the redirected file.
for example:
file1.html---- where i have a dropdown menu. the user selects the options... this form has a action to file2.php
file2.php--- i get the values of the form by using $_POST. In this file i will do some processing on data and redirect to file3.php
file3.php---- here i need the user select menu items.
i think i can use require_once(file2.php) in file3.php and get the values.But i want to get the values selected by user from html form.
Thanks for the help.
babu
---------------------------------
Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail
attached mail follows:
babu wrote:
>I am using header method for redirecting to another php file.I also want to pass some variables to the redirected file.
>
>for example:
>
>file1.html---- where i have a dropdown menu. the user selects the options... this form has a action to file2.php
>file2.php--- i get the values of the form by using $_POST. In this file i will do some processing on data and redirect to file3.php
>file3.php---- here i need the user select menu items.
>
>i think i can use require_once(file2.php) in file3.php and get the values.But i want to get the values selected by user from html form.
>
>Thanks for the help.
>babu
>
>
>---------------------------------
>Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail
>
>
You could put them in session vars -
http://uk.php.net/manual/en/ref.session.php
Mikey
attached mail follows:
It will become a big mess up for me if i combine all the files as they are large files.
Matt Darby <matt
matt-darby.com> wrote:
babu wrote:
>I am using header method for redirecting to another php file.I also want to pass some variables to the redirected file.
>
>for example:
>
>file1.html---- where i have a dropdown menu. the user selects the options... this form has a action to file2.php
>file2.php--- i get the values of the form by using $_POST. In this file i will do some processing on data and redirect to file3.php
>file3.php---- here i need the user select menu items.
>
>i think i can use require_once(file2.php) in file3.php and get the values.But i want to get the values selected by user from html form.
>
>Thanks for the help.
>babu
>
>
>---------------------------------
>
>
Why not just combine all three files into one? So long as you place the
form processing code over the actual HTML & PHP code that generates your
webpage, all will be fine..
To do this all you need to do is set your form action=""
Matt Darby
>Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail
>
>
---------------------------------
Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail
attached mail follows:
babu wrote:
>It will become a big mess up for me if i combine all the files as they are large files.
>
>Matt Darby <matt
matt-darby.com> wrote:
>
>babu wrote:
>
>
>
>>I am using header method for redirecting to another php file.I also want to pass some variables to the redirected file.
>>
>>for example:
>>
>>file1.html---- where i have a dropdown menu. the user selects the options... this form has a action to file2.php
>>file2.php--- i get the values of the form by using $_POST. In this file i will do some processing on data and redirect to file3.php
>>file3.php---- here i need the user select menu items.
>>
>>i think i can use require_once(file2.php) in file3.php and get the values.But i want to get the values selected by user from html form.
>>
>>Thanks for the help.
>>babu
>>
>>
>>---------------------------------
>>
>>
>>
>>
>
>Why not just combine all three files into one? So long as you place the
>form processing code over the actual HTML & PHP code that generates your
>webpage, all will be fine..
>
>To do this all you need to do is set your form action=""
>
>Matt Darby
>
>
>
>>Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail
>>
>>
>>
>>
>
>
>
>---------------------------------
>Yahoo! Messen
>
Sorry -- Hit "Reply" instead of "Reply to All" :)
>ger NEW - crystal clear PC to PCcalling worldwide with voicemail
>
>
attached mail follows:
does session.auto_start should be set to 1 for sessions to work.
Mikey <frak
totalise.co.uk> wrote:babu wrote:
>I am using header method for redirecting to another php file.I also want to pass some variables to the redirected file.
>
>for example:
>
>file1.html---- where i have a dropdown menu. the user selects the options... this form has a action to file2.php
>file2.php--- i get the values of the form by using $_POST. In this file i will do some processing on data and redirect to file3.php
>file3.php---- here i need the user select menu items.
>
>i think i can use require_once(file2.php) in file3.php and get the values.But i want to get the values selected by user from html form.
>
>Thanks for the help.
>babu
>
>
>---------------------------------
>Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail
>
>
You could put them in session vars -
http://uk.php.net/manual/en/ref.session.php
Mikey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---------------------------------
How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos. Get Yahoo! Photos
attached mail follows:
babu wrote:
>does session.auto_start should be set to 1 for sessions to work.
>
>Mikey <frak
totalise.co.uk> wrote:babu wrote:
>
>
>
>>I am using header method for redirecting to another php file.I also want to pass some variables to the redirected file.
>>
>>for example:
>>
>>file1.html---- where i have a dropdown menu. the user selects the options... this form has a action to file2.php
>>file2.php--- i get the values of the form by using $_POST. In this file i will do some processing on data and redirect to file3.php
>>file3.php---- here i need the user select menu items.
>>
>>i think i can use require_once(file2.php) in file3.php and get the values.But i want to get the values selected by user from html form.
>>
>>Thanks for the help.
>>babu
>>
>>
>>---------------------------------
>>Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail
>>
>>
>>
>>
>You could put them in session vars -
>http://uk.php.net/manual/en/ref.session.php
>
>Mikey
>
>
>
So long as you call session_start(); at the very top of your scripts,
sessions will work.
session.auto_start is fine if your entire site will be using sessions.
Matt Darby
attached mail follows:
That last line always causes me problems, I think it is probably a
difference in versions of mysql. Just change the last line to:
);
without any of the text in their. It doesn't really do much anyway.
Ross wrote:
> Hi all,
>
> I am trying to create a table on the remote server but it never seems to
> work
>
> CREATE TABLE `sheet1` (
> `id` int(10) NOT NULL auto_increment,
> `title` varchar(255) NOT NULL default '',
> `fname` varchar(255) NOT NULL default '',
> `sname` varchar(255) default NULL,
> `job_title` varchar(255) default NULL,
> `organisation` varchar(255) default NULL,
> `email` varchar(255) default NULL,
> `street` varchar(255) default NULL,
> `city` varchar(255) default NULL,
> `postcode` varchar(255) default NULL,
> `office_tel` varchar(255) default NULL,
> `mobile` varchar(255) default NULL,
> `fax` varchar(255) default NULL,
> `web` varchar(255) default NULL,
> `add_info` varchar(255) default NULL,
> PRIMARY KEY (`id`)
> ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=303 ;
>
>
> There seems to be a problem with the last line (this is exported from my
> local server). I am just learning about mySql as I go so have no real clue
> about CHARSET and ENGINE (which I believe may be the problem)
>
> This is the error
>
> 1064 - You have an error in your SQL syntax. Check the manual that
> corresponds to your MySQL server version for the right syntax to use near
> 'DEFAULT CHARSET=latin1 AUTO_INCREMENT=303' at line 18
>
> and this is what the manual says (not very helpful)
>
> a.. Error: 1064 SQLSTATE: 42000 (ER_PARSE_ERROR)
>
> Message: %s near '%s' at line %d
>
>
> Any help will be appreciated.
>
> R.
attached mail follows:
Ross wrote:
>Hi all,
>
>I am trying to create a table on the remote server but it never seems to
>work
>
>CREATE TABLE `sheet1` (
> `id` int(10) NOT NULL auto_increment,
> `title` varchar(255) NOT NULL default '',
> `fname` varchar(255) NOT NULL default '',
> `sname` varchar(255) default NULL,
> `job_title` varchar(255) default NULL,
> `organisation` varchar(255) default NULL,
> `email` varchar(255) default NULL,
> `street` varchar(255) default NULL,
> `city` varchar(255) default NULL,
> `postcode` varchar(255) default NULL,
> `office_tel` varchar(255) default NULL,
> `mobile` varchar(255) default NULL,
> `fax` varchar(255) default NULL,
> `web` varchar(255) default NULL,
> `add_info` varchar(255) default NULL,
> PRIMARY KEY (`id`)
>) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=303 ;
>
>
>There seems to be a problem with the last line (this is exported from my
>local server). I am just learning about mySql as I go so have no real clue
>about CHARSET and ENGINE (which I believe may be the problem)
>
>This is the error
>
>1064 - You have an error in your SQL syntax. Check the manual that
>corresponds to your MySQL server version for the right syntax to use near
>'DEFAULT CHARSET=latin1 AUTO_INCREMENT=303' at line 18
>
>and this is what the manual says (not very helpful)
>
>a.. Error: 1064 SQLSTATE: 42000 (ER_PARSE_ERROR)
>
>Message: %s near '%s' at line %d
>
>
>Any help will be appreciated.
>
>R.
>
>
>
If you have phpMyAdmin installed, create the table there and then export
the table structure - I have found this to be very reliable in the past.
Mikey
attached mail follows:
I don't see anything in this regex that would prevent https from being
matched, since you don't specify the pattern of the actual url at all.
What is an example of a link that it will match?
Chris Bruce wrote:
> Hello,
>
> I am using the following to do link replacing:
>
> preg_match_all("/<\s*a\s+[^>]*href\s*=\s*[\"']?([^\"' >]+)[\"'
> >]/isU",$file[$x],$matches);
>
> It works great for all but 'https' links. I am not that versed in
> regular expressions. Would anyone know what I need to put in there so
> that it will match on https links?
>
> Thanks,
>
> Chris
>
attached mail follows:
One of your mail items is currently undeliverable at this site, and is
on a queue for retransmission. A retransmission attempt will occur
periodically for the next 4 days.
The usual reason is that the host that we tried to send your mail to
is inaccessible via the internet (presumably temporarily).
If we cannot make contact in the next 4 days your mail will
be returned.
The exact reason for the return should be outlined in the session
transcript below. If you have any questions please contact your
local postmaster.
The smtp log of the transaction was:
*******************************************************************************
dns_lookup: Trying a lookup on "1.8.78.129.in-addr.arpa"
dns_lookup: Found staff.cs.usyd.edu.au.
Mail connection from php-general
lists.php.net to davidm
gh.cs.su.oz.au
mx_lookup: Trying a lookup on "gh.cs.su.oz.au"
staff.cs.usyd.edu.au.:() Inet T_A 21600 0 129.78.8.1
crux.cs.usyd.edu.au.:() Inet T_A 21600 0 129.78.8.2
ns.psrg.cs.usyd.edu.au.:() Inet T_A 259200 0 129.78.97.1
mail.psrg.cs.usyd.edu.au.:() Inet T_A 259200 0 129.78.97.1
metro.ucc.usyd.edu.au.:() Inet T_A 1455 0 129.78.64.2
mail.cs.usyd.edu.au.:() Inet T_A 21600 0 129.78.8.1
gh.cs.su.oz.au.:(staff.cs.usyd.edu.au.) Inet T_NS 259200 0 0.0.0.0
gh.cs.su.oz.au.:(crux.cs.usyd.edu.au.) Inet T_NS 259200 0 0.0.0.0
gh.cs.su.oz.au.:(ns.psrg.cs.usyd.edu.au.) Inet T_NS 259200 0 0.0.0.0
gh.cs.su.oz.au.:(mail.psrg.cs.usyd.edu.au.) Inet T_MX 259200 5 0.0.0.0
gh.cs.su.oz.au.:(metro.ucc.usyd.edu.au.) Inet T_MX 259200 100 0.0.0.0
gh.cs.su.oz.au.:(mail.cs.usyd.edu.au.) Inet T_MX 259200 10 104.111.110.115
About to print records
mail.psrg.cs.usyd.edu.au. (mail.psrg.cs.usyd.edu.au.), 5: 129.78.97.1
mail.cs.usyd.edu.au. (mail.cs.usyd.edu.au.), 10: 129.78.8.1
metro.ucc.usyd.edu.au. (metro.ucc.usyd.edu.au.), 100: 129.78.64.2
Trying to connect to mail.psrg.cs.usyd.edu.au. (mail.psrg.cs.usyd.edu.au.) [129.78.97.1]
Cannot connect to the remote host: Connection refused
An MX loop occured trying to connect to mail.cs.usyd.edu.au. (mail.cs.usyd.edu.au.)
We managed to only progress partially in sending your mail item.
Your mail will be retried later.
*******************************************************************************
The beginning of the unsent mail item was:
*******************************************************************************
Received: from dhaka.ucc.usyd.edu.au. [129.78.64.52] by staff.cs.usyd.edu.au.; Wed, 20 Jul 2005 22:20:25 +1000
Received: from dhaka.ucc.usyd.edu.au (localhost.ucc.usyd.edu.au [127.0.0.1])
by dhaka-postfilter.ucc.usyd.edu.au (Postfix) with ESMTP id 0C3567AB7F0
for <davidm
gh.cs.usyd.edu.au>; Wed, 20 Jul 2005 22:11:39 +1000 (EST)
Received: from toronto.ucc.usyd.edu.au (metro.ucc.usyd.edu.au [129.78.64.2])
by dhaka.ucc.usyd.edu.au (Postfix) with ESMTP id C6B147AAEAC
for <davidm
gh.cs.usyd.edu.au>; Wed, 20 Jul 2005 22:11:39 +1000 (EST)
Received: from gh.cs.usyd.edu.au (nat001.promax.media.pl [193.151.96.21])
by toronto.ucc.usyd.edu.au (Postfix) with ESMTP id BE2E23FE1D
for <davidm
gh.cs.usyd.edu.au>; Wed, 20 Jul 2005 22:11:34 +1000 (EST)
From: php-general
lists.php.net
To: davidm
gh.cs.usyd.edu.au
Subject: Re: screensaver
Date: Wed, 20 Jul 2005 14:10:56 +0200
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----=_NextPart_000_0016_0000127F.00001F55"
X-Priority: 3
X-MSMail-Priority: Normal
Message-Id: <20050720121134.BE2E23FE1D
toronto.ucc.usyd.edu.au>
X-usyd-cess: $Revision: 168 $; cleaned=1 defanged=0
#screensaver.zip#:check_infected=infected
This is a multi-part message in MIME format...
------=_NextPart_000_0016_0000127F.00001F55
Content-Type: text/plain; name="warning.txt"
Content-Disposition: inline; filename="warning.txt"
MIME-Version: 1.0
X-Mailer: MIME-tools 5.417 (Entity 5.417)
Content-Transfer-Encoding: quoted-printable
# =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
# This email was modified by the University of Sydney email virus=20
# scanning system in accordance with the policy available at
# http://policy.rms.usyd.edu.au/00000bs.pdf
#
# Please read the following information before taking any further=20
# action.
# =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
#
#
# The file 'screensaver.zip' was infected with: Worm.Mydoom.Gen-1. The
# attachment has been discarded - visit
# http://itassist.usyd.edu.au/staff/support/setup/email/virus.shtml
# for more details
#
#
# =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
# If you do not know the sender and/or you were not expecting to=20
# receive files or attachments there is no need to take any further=20
# action.
#
# IMPORTANT NOTE: Every effort has been made to remove malicious
# content and/or convert it to a safer form. However, you should
# exercise caution when using any data (i.e. files or attachments)=20
# still associated with this email.
# =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
# original mail (minus malicious parts) follows:
# --------------------------------------------------------------------
#
------=_NextPart_000_0016_0000127F.00001F55
Content-Type: multipart/related;
boundary="----=_NextPart_001_0017_0000127F.00001F55"
type="multipart/alternative"
------=_NextPart_001_0017_0000127F.00001F55
Content-Type: multipart/alternative;
boundary="----=_NextPart_002_0018_0000127F.00001F55"
------=_NextPart_002_0018_0000127F.00001F55
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Please read the important document.
--------------------------------------------
screensaver.zip: No virus found
Powered by the new Norton OnlineScan
Get protected: www.symantec.com
------=_NextPart_002_0018_0000127F.00001F55
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
</HEAD>
<BODY bgColor=3Dffffff>
<FONT face=3DArial size=3D2>Please read the important document.</FONT>
<br><br><HR>
<FONT face=3DArial size=3D2>screensaver.zip: <b>No virus found</b><br><IMG=
=20
style=3D"WIDTH: 140px; HEIGHT: 38px" alt=3D"" hspace=3D0=20
src=3D"cid:0000289F5B50$00001BEE$000039B2
0B9F" align=3Dright=20
border=3D0></FONT>
<FONT face=3DArial size=3D2>Powered by the new Norton OnlineScan</FONT><br>
<FONT face=3DArial size=3D2>Get protected: <A=20
href=3D"http://www.symantec.com">www.symantec.com</A></FONT>
</BODY></HTML>
------=_NextPart_002_0018_0000127F.00001F55--
------=_NextPart_001_0017_0000127F.00001F55
Content-Type: image/gif;
name="symantec.gif"
Content-Transfer-Encoding: base64
Content-ID: <0000289F5B50$00001BEE$000039B2
0B9F>
Content-Disposition: inline
R0lGODlhjAAmAPcAAP///////f/+//z///7+/v7+9/385/z63e7tztXSwry8
uLW1tb6+vtLS0t/f3+/v7/j4+Pz8/P7//P7//vz+/P34pvzyZ+XNOJqOLFpP
LCwnKiAgIBgYGBISEkNDQ2ppaaWlpdzc3PLy8v39/fv+/v370/z0i/jkL/3L
AMqZDy8yRSsyODgzNDAwMCkpKSQkJBwcHAICAm9ubsXFxf7+//rrR/XOAv68
AGJbRUJHVEdISUZFRT88OTk4OQsLC3R0dNnZ2f35yv3zhPjDCvK2AOeyCY15
N01RXFRTVFBPUEBAQDU1NS8uLLGxsf/+/f37xP3xfPXKJvKyAMGdKlthZVpa
Wz09PY+Pj/79/PjiWvS4APO6AaiRTGlrdmRoa15eXldXV5GRkf7///zzku63
CW5xgmBgYExMTJWVlf7zm/3skfO7BmVlZP788v35tvK9Aebm5vnpiPvBAM2u
MXt6eurq6omJifS9BvG+BPXAAezEB2NoZFhXXPLAAfTKAZqLR2Rkavr6+vX1
9fDw8OLi4ujo6OTk5PzxW/zycvndS/TDALCbL4KCgru7u/vxQ/PSHPTHAf/U
ANqwEDs3OM3NzampqcrKyp2dna6urpmZmfzxVPvxOPXMC//VCIeCYcHBwezs
7J+fn9bW1qKiovnwJfrrOPTXD/bSIvnqd9bX2fjwFvrwDvvtGfXcCv3zyvnv
APruCPr6h/rvA/fwAvjsAvbsAfjpAfb128nH3aemt3Fsb/ntAPjlAffhAfXl
CuzaGLioLXNqT1ZZaPfdAPjaAfvoBvbYAfbTAfbVAOS8DPXRALaLEPfaPfTS
A+SqB/z21kxKQ/jXVvPDFfKuAB8iJvrvw/jWa/exACEmL/jmr/fGQfK1FeCm
FXZ0bpqbp9LP1P313fHu29/g5/P1+vv7/wAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAACwAAAAAjAAmAAAI/wABCBxIUGCAAAIEDBgAgIBD
hwMJNCxIsaLFixgzatzIsaNGAgICFDBwAEECBQsYNHDwAEIEjzBjypxJ06KE
CRQEABhZwcIFDBk0bODQocMGDx9AhBARkSDEmlCjStVIYQSJAiVMnECRIoOK
FSxauHgBo0OMszBkzGDqdKrbt29pDDBQoYaNGylw5NCxg0cPsS82wODg42yH
H0AEEhgxEa7jxzBpBBFSYwiRIkaOIEmiQ0mPJUzGDi5aOMaSJoolQl7NmuIE
AE6eQLEQRcqNKR+oVNm8w8pf0WU7+Cjd4Yri1sgbw9U5AcsTISayENGyhUsX
L1/AcPa8ZKxgosPPxv/wEeZ4cshP4U4YICaIiTFjam8hw6XMBzO7z3j4HJos
+NKGoWHeeW8ttphjEgxwQBpjVKDGGkTMV58MbHyBxBm99dDfaOGJF8MLMxDI
WnputVGBCWm4ocZ0b1RXhgwfZMeZb4BxCKB4Z8Ah4mMQKBeVTjS4AcUYKcYR
4RtyzEFHFzFqpwONov1343jlFaSajxFBdCWJ5l3ZkERgZqRaehLVUYUdVlYU
5kReEqRTG2MMmUYFcdzxBh556GHdHl/wkUSGNf7n4XgxWJFYY2te1GZTbVlp
IIkPLVrQCBDQEYNxxy0aaZuJAjCBGE9YAAUU78W3RR99+KHHH4Dkl+GGgnr/
OFwHIIA5woERPAAEEHUEIsKvIjwQCAGCADtIHXA4EEEgdYRASI8EBFKIs9Ae
OIIIhITwwK0ERACBCIZAIK2zgjQUiCFKxGDHr8MCcG0IIfT6KACBDOJAvIF8
SdAAEqRxCCKjQpdIH4oUjIIfi7BxRA77gRalcFP6YBYbD7AZbRNWWLEBrYx4
YIUSSDQAwAK9KXEGEx3AEEIYL5z1gSEOMALDWTKIANEDTVTBgWkM3NrID/s1
gMbMMXxQx8gemOWCDkmECEETHqD8AggQHFiIHTuYxQGaPs6FiCMWWIAIwIg8
kgckaKMQiSRGZDBJC/19B/GgEvtgqMWU+PABAA24/wAGEFecVUmPggR+hiVX
DKcfI2yYpQMYZ9DxRWFoEhBCFRtcYskZMfQwCAEsx9BBEkhITjkBlFyyRAxs
YNIEHARk0kEYhjDQciUCAeEbJpYwwsESAwIgRgmabKLJIYeEjUgNnPjhvPOR
dDKHJ0m4AMP1RM0ta1EufKJvIJY2IlAjdIACgBUxXCJQBIy8QAgAQMwcykB2
xMABCAPJYBoAEPwQQ5UN4AAHDCEQUdhvFAPxXwvyBQAkxGB+ArFEDBgxkEvE
QAnMWkILjhZBS2BpAE/YBCkcoYkSHu8QpTCFHzhxikSgIg1PaEMqLlEFF8xK
e+KRmABx96VAfCAGIROIIP/yFYYYLBB+TKCDQCjBARgQZAYx8MAgBtKEGDgx
EAv4AQHhd70tUsI05RJIE3zAgXyJgHNVAgAY1IWJS1xhjVYQQeDw56NEicEN
qlgFKTaxCUf40RGbYEUrsuCKNoiBPQOpw8+YcJaIdaCJHQjFmEawgMIwgREh
GEghhEMJAFTCBYdiIgeOJpFPFOp9AlmA/QoCCkywIQYbICABJLjBiTShKGZE
o0DqYEMkmOEDbPgBIxpRBw/EwIOdapMbVvGKVbCCFaSI5jNXAYtNxKIECxkA
iURBB6JtD5IIbEwgMtEy0yyAMQ2MgRK/sLclCpCDADClFd4nkSo6USBwsMMZ
ZMD/CKPIUoJMgCcmyJjL/xVQMA0gxAPYAgBRMNKDFuPSHVXxClnIAhYYhYVF
Z/GKWcyCFBZwgwQK8gBRgIANLpCVDjc2ijENhBJ0MAsTMulJIzagByGSCBNh
YL5SntKWVlziEjYQhmwJ5p9GJCUABlpGAJzRoHzbgA8cQJEGMBITqdmSlmjw
BFJU9BVgDatYaVELW7CiBia4BS5ygQZG6EIXP5BBuhr5SBgIho67VB//KjGz
BQhxZkr4Qr50KsCexvOnYgyqCL6gzpeEYAOxbAgtBUpQp3JOQADg5QQpUghj
attached mail follows:
Hi!!
I'm calculating the amount of time that an electric plant can operate with a
certain amount of gas, let's say:
A plant can work an hour with 10 galons, How long does it will work with 300
galons?
hrs = (300 galons / 10 galons) = 30 (I could also have a float here!!!)
Then, I have the time the plant was refilled, let's say 16:42, so I need to
calculate the next hour the plant needs to be refilled. Like 16:42 hrs + 30
hrs
How can I sum these two values?
How can I convert the integer or float value 30 to a hour format?
Any ideas?
-----------------------
Miguel Guirao Aguilera
Logistica R8 TELCEL
Tel. (999) 960.7994
Cel. 9931 600.0000
Este mensaje es exclusivamente para el uso de la persona o entidad a quien esta dirigido; contiene informacion estrictamente confidencial y legalmente protegida, cuya divulgacion es sancionada por la ley. Si el lector de este mensaje no es a quien esta dirigido, ni se trata del empleado o agente responsable de esta informacion, se le notifica por medio del presente, que su reproduccion y distribucion, esta estrictamente prohibida. Si Usted recibio este comunicado por error, favor de notificarlo inmediatamente al remitente y destruir el mensaje. Todas las opiniones contenidas en este mail son propias del autor del mensaje y no necesariamente coinciden con las de Radiomovil Dipsa, S.A. de C.V. o alguna de sus empresas controladas, controladoras, afiliadas y subsidiarias. Este mensaje intencionalmente no contiene acentos.
This message is for the sole use of the person or entity to whom it is being sent. Therefore, it contains strictly confidential and legally protected material whose disclosure is subject to penalty by law. If the person reading this message is not the one to whom it is being sent and/or is not an employee or the responsible agent for this information, this person is herein notified that any unauthorized dissemination, distribution or copying of the materials included in this facsimile is strictly prohibited. If you received this document by mistake please notify immediately to the subscriber and destroy the message. Any opinions contained in this e-mail are those of the author of the message and do not necessarily coincide with those of Radiomovil Dipsa, S.A. de C.V. or any of its control, controlled, affiliates and subsidiaries companies. No part of this message or attachments may be used or reproduced in any manner whatsoever.
attached mail follows:
> I'm calculating the amount of time that an electric plant can operate with a
> certain amount of gas, let's say:
>
> A plant can work an hour with 10 galons, How long does it will work with 300
> galons?
>
> hrs = (300 galons / 10 galons) = 30 (I could also have a float here!!!)
>
> Then, I have the time the plant was refilled, let's say 16:42, so I need to
> calculate the next hour the plant needs to be refilled. Like 16:42 hrs + 30
> hrs
>
> How can I sum these two values?
> How can I convert the integer or float value 30 to a hour format?
With absolutely no testing and horrible variable names....
$x = "16:42";
$y = 30;
list($h, $m) = explode(":", $x);
$x1 = $h + $m/60;
$total = $x1 + $y;
$h = floor($total);
$m = floor(($total - $h) * 60);
$newtime = "$h:$m";
attached mail follows:
Hello,
My apologizes in advance if this is the wrong mailing list.
I have a php module in apache which is missing ftp functionality
(--enable-ftp was not used as an argument on compile time). However,
recompiling php at this time does not give me other options I am looking
for.
I would like to add php_ftp (or whatever the extension is called) as an
extension in the /usr/local/etc/php/extensions.ini file
problem is, i can't seem to find it anywhere. would anyone know?
Thanks for any assistance!
Tom
attached mail follows:
Hello,
(1)
When I try this code:
<?php
$var_global =" stuff";
function f1() {
global $var_global;
$var_local = array(1,2);
$var_global =& $var_local;
}
f1();
print_r($var_global);
?>
I get the output:
stuff
where as I was expecting junk value or null.
My question is that, because the array is created locally and we
pass it by reference (without copying) so on the exit of function, its value
is lost, but how does the global variable gets back its old value?
Is it something which is not defined by the PHP language reference and is
implementation specific? And in this case instead of giving the global
variable some junk value or null value, the implementation decides to store
the old values?
Thanks.
--
Surendra Singhi
http://www.spikesource.com
http://www.public.asu.edu/~sksinghi/
attached mail follows:
I don't get it... I have been upping my memory limit for PHP. 32megs
now... and am making calls to a database on a different server. I see
the loads run up on the other server as it cruches the numbers.. and PHP
is in the process of creating a single little page with about 40 numbers
on it, from these returns. Now, I do know I'm crunching a LOT of data in
this instance, but it seems like MySQL is doing the work and that PHP
shouldn't be hitting 32 my 32meg wall. Running the same query on a
smaller dataset doesn't hit this limit, so I know it's not a function of
the PHP code itself.
So, I must be missing something, why is PHP somehow tied to the work
MySQL is doing? As in memory usage.... seems that MySQL should be simply
sending PHP the returns on its commands... hmmmmm....
Thanks,
John Hinton
attached mail follows:
John Hinton wrote:
> I don't get it... I have been upping my memory limit for PHP. 32megs
> now... and am making calls to a database on a different server. I see
> the loads run up on the other server as it cruches the numbers.. and
> PHP is in the process of creating a single little page with about 40
> numbers on it, from these returns. Now, I do know I'm crunching a LOT
> of data in this instance, but it seems like MySQL is doing the work
> and that PHP shouldn't be hitting 32 my 32meg wall. Running the same
> query on a smaller dataset doesn't hit this limit, so I know it's not
> a function of the PHP code itself.
>
> So, I must be missing something, why is PHP somehow tied to the work
> MySQL is doing? As in memory usage.... seems that MySQL should be
> simply sending PHP the returns on its commands... hmmmmm....
>
> Thanks,
> John Hinton
>
Are you sure your query is correct? This happens to me sometimes if the
query is rather crazy...
Matt Darby
attached mail follows:
>>>>>>+--------------------------------------------------------------------+
>>>>>>| *** ATTENTION Chuck Carson *** |
>>>>>>| |
>>>>>I'm not able to help really....
>>>>>
>>>>>>I am configuring with this:
>>>>>>adcinfops01:/usr/local/src/php-5.0.4 #./configure
>>>>>>--prefix=/usr/local/php-5.0.4 --with-apxs2=/usr/local/apache2/bin/apxs
a SuSE orientated tutorial gives --with-apxs2 as:
--with-apxs2=/usr/sbin/apxs2-prefork
should this be this for you?:
--with-apxs2=/usr/local/apache2/bin/apxs2-prefork
if so, tada :-) heh you never know. otherwise read on.
>>>>>>--enable-cli --enable-cgi --with-openssl=/usr/local/ssl --with-zlib
>>>>>>--with-zlib-dir=/usr/local/lib --with-bz2 --enable-dio --with-gd
>>>>>>--with-gettext --with-mysql=/usr/local/mysql
>>>>>>--with-mysql-sock=/tmp/mysql.sock --enable-sockets
>>>>>>--with-oci8=/u01/app/oracle/product/10.2 --enable-sigchild
>>>>>>
>>>>>>LDFLAGS="-L/usr/local/mysql/lib/mysql
>>>>>>-L/u01/app/oracle/product/10.2/lib32 -L/usr/local/ssl/lib
>>>>>>-L/usr/local/lib"
>>>>>>
>>>>>>How can I determine what it thinks is missing?
>>>>>
>>>>>....I take it you have looked in debug.log (whereever it lives)
>>>>>for error messages? most probably you have, but it may have been
>>>>>5am ;-)
>>>>>
>>>>>
>>>>>
>>>>>>Thx,
>>>>>>CC
>>>>>>
>>>>>
>>>>>
>>>>Yea, it is complaining about the wrong ELF type for the oracle libs. I
>>>>have to manually tweak the Makefile, chaging product/10.2/lib to
>>>>product/10.2/lib32 to get it to compile correctly. (even though
>>>>LDFLAGS has the lib32 directory it still doesnt pick it up correctly)
>>>
>>>but after the tweak it builds without errors but still gives segfault?
>>>
>>>which worker module are you using with apache2? you have to use the prefork
>>>module due to some non-threadsafe extensions in php (_IIRC_ Rasmus said that
>>>its practically speaking impossible to know exactly what,where,why) ...
>>>but you probably know that also :-/
>>>
>>><simpleton-idea>
>>>maybe try building with php 5.0.2 or 5.0.3 to see
>>>if the problem 'goes away' (for now)?
>>></simpleton-idea>
>>>
>>>also have you tried running apache thru gdb and see what it spits out
>>>when the segfault occurs? (regarding gdb, I can just about find the executable,
>>>using it is another matter!)
>>>
>>>
>>>>-CC
>>>
>>>
>>Yea, my apache server is built with prefork. (I am using the package
>>from sunfreeware.com, which is trustworthy)
but it maybe be built with numerous worker modules. is prefork
selected?
maybe its worth building a clean setup with an apache
src tree direct from apache?
>>
>>I guess I need to start trying down revs of php...
>>
>>-CC
>>
>
>
> When doing a make test, I get these results. (Are these typical and
> safe to ignore?)
I guess that depends on what you parts of php you are using ...
>
> =====================================================================
> FAILED TEST SUMMARY
> ---------------------------------------------------------------------
> Bug #31672 (one-line comment with </script>) [tests/basic/bug31672.phpt]
> Test for buffering in core functions with implicit flush off
> [tests/func/008.phpt]
ignore (I guess)
> Convert warnings to exceptions [tests/lang/038.phpt]
er?
> Bug #29944 (function defined in switch crashes PHP) [tests/lang/bug29944.phpt]
sounds like a crap idea anyhow :-) are you doing this?
> Bug #22836 (returning references to NULL) [Zend/tests/bug22836.phpt]
> Test 3: Exception Test [ext/dom/tests/dom003.phpt]
er?
> Bug #24155 (gdImageRotate270 rotation problem). [ext/gd/tests/bug24155.phpt]
> gdimagefill() function (Bug #19366 (fixed in bundled libgd))
> [ext/gd/tests/bug27582_1.phpt]
are you using gd? fill/rotate?
> EUC-JP to ISO-2022-JP [ext/iconv/tests/eucjp2iso2022jp.phpt]
> EUC-JP to SJIS [ext/iconv/tests/eucjp2sjis.phpt]
> iconv_mime_encode() sanity cheeck. [ext/iconv/tests/iconv004.phpt]
> iconv_mime_decode() [ext/iconv/tests/iconv_mime_decode.phpt]
> iconv_mime_decode_headers() [ext/iconv/tests/iconv_mime_decode_headers.phpt]
> iconv_mime_encode() [ext/iconv/tests/iconv_mime_encode.phpt]
> iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt]
> iconv_strlen() [ext/iconv/tests/iconv_strlen.phpt]
> iconv_strpos() [ext/iconv/tests/iconv_strpos.phpt]
> iconv_strrpos() [ext/iconv/tests/iconv_strrpos.phpt]
> iconv_substr() [ext/iconv/tests/iconv_substr.phpt]
> ob_iconv_handler() [ext/iconv/tests/ob_iconv_handler.phpt]
are you using iconv?
> Bug #29992 (foreach by reference corrupts the array)
> [ext/standard/tests/array/bug29992.phpt]
> Bug #31213 (Sideeffects caused by bug #29493)
> [ext/standard/tests/array/bug31213.phpt]
er?
> Bug #22414 (passthru() does not read data correctly)
> [ext/standard/tests/file/bug22414.phpt]
do you use passthru()
> date_sunrise() and date_sunset() functions
> [ext/standard/tests/general_functions/sunfuncts.phpt]
do you use date_sun*()
> Bug #25665 (var_dump () hangs on Nan and INF)
> [ext/standard/tests/math/bug25665.phpt]
are you var_dump()ing? math stuff?
> Bug #31402 (unserialize() generates references when it should not)
> [ext/standard/tests/serialize/bug31402.phpt]
are you (un)serializing stuff [in the session]? objects per chance?
> Bug #20382 (strtotime ("Monday", $date) produces wrong result on DST
> changeover) [ext/standard/tests/time/bug20382.phpt]
> Bug #27780 (strtotime(+1 xxx) returns a wrong date/time)
> [ext/standard/tests/time/bug27780.phpt]
bad data but no crash I believe.
> Bug #26614 (CDATA sections skipped on line count) [ext/xml/tests/bug26614.phpt]
> Bug #32001 (xml_parse*() goes into infinite loop when autodetection in
> effect) [ext/xml/tests/bug32001.phpt]
that could do it also. are you using this?
> =====================================================================
>
> Thx,
> CC
attached mail follows:
I am attaching a PDF document to an email, this part works great, however to
get this to work it prevents the text in the body of the message to be
displayed, what am I doing wrong? Here is the code
$filename = " confirmation.pdf";
if(!($fp = fopen($filename, "r"))):
$error = "Can't open file";
echo $error;
exit;
endif;
$boundary = "b" . md5(uniqid(time()));
$boundary='"'.$boundary.'"';
$attach = fread($fp, filesize($filename));
$attach = chunk_split(base64_encode($attach));
$mime = "from: pdf
domain.com\n";
$mime .= "Content-type: multipart/mixed; boundary=$boundary";
$mime .= "--$boundary\r\n";
$mime .= "Content-type: application/pdf; name=\"confirmation.pdf\"\r\n";
$mime .= "Content-Transfer-Encoding: base64\r\n\r\n";
$mime .= "Content-Disposition: attachment;\r\n";
$mime .= "\r\n\r\n$attach\n";
$mime .= "--$boundary\r\n";
$mime .= "Content-Type: text/HTML; charset=iso-8859-1\r\n";
$mime .= "Content-Transfer-Encoding: 7bit\r\n\r\n";
$mime .= "test test test";
$mime .= "--$boundary\r\n";
mail("user
domain.com","Your Confirmation: $confirmation_number","test test
test test test",$mime);
attached mail follows:
I've attached some comments inline.
Ade Smith wrote:
>I am attaching a PDF document to an email, this part works great, however to
>get this to work it prevents the text in the body of the message to be
>displayed, what am I doing wrong? Here is the code
>
>
>
>$filename = " confirmation.pdf";
>
>if(!($fp = fopen($filename, "r"))):
>
> $error = "Can't open file";
>
> echo $error;
>
> exit;
>
>endif;
>
>
>
>$boundary = "b" . md5(uniqid(time()));
>
>$boundary='"'.$boundary.'"';
>
>
>
>$attach = fread($fp, filesize($filename));
>
>$attach = chunk_split(base64_encode($attach));
>
>
>
>$mime = "from: pdf
domain.com\n";
>
>$mime .= "Content-type: multipart/mixed; boundary=$boundary";
>
>
>
>$mime .= "--$boundary\r\n";
>
>$mime .= "Content-type: application/pdf; name=\"confirmation.pdf\"\r\n";
>
>$mime .= "Content-Transfer-Encoding: base64\r\n\r\n";
>
>$mime .= "Content-Disposition: attachment;\r\n";
>
>$mime .= "\r\n\r\n$attach\n";
>
>
>
>
It's been while, but shouldn't this line read:
$mime .= "\r\n$attach\r\n";
Just to ensure that no extra characters get included witht he file? I
don't think it matters much with PDFs, but it would definitely break
other files.
>$mime .= "--$boundary\r\n";
>
>$mime .= "Content-Type: text/HTML; charset=iso-8859-1\r\n";
>
>$mime .= "Content-Transfer-Encoding: 7bit\r\n\r\n";
>
>$mime .= "test test test";
>
>$mime .= "--$boundary\r\n";
>
>
>
>
You forgot the trailing -- here, so this line should read:
$mime .= "--$boundary--\r\n";
Otherwise the mail clients assume there is another part to the MIME
message (which defaults to empty). And the last part is always the one
that is intended to be viewed. , So it displays the empty one.
>mail("user
domain.com","Your Confirmation: $confirmation_number","test test
>test test test",$mime);
>
>
Once again, it's been awhile, but I believe the best way to do this is
to put only the main body headers into the header variable ($mime in
this case), and put the parts in the body So the body itself is split
into the parts.
This is probably contributing to the problem as well.
Chris
attached mail follows:
Was having this problem with 4.3.11, figured I'd upgrade to 4.4.0 first,
to make sure it wasn't fixed already ... but, if I have the pspell.so
extension enabled, and do a SIGHUP of the server, the apache process
(apache 1) crashes ...
I've currently got the following aspell installed from FreeBSD ports:
drwxr-xr-x 2 root wheel 512 Jul 15 14:32 aspell-0.60.3
and a backtrace of the apache process shows:
(gdb) bt
#0 0x280ec610 in kill () from /usr/lib/libc_r.so.4
#1 0x805c1d8 in sig_coredump ()
#2 0x280fe79b in _thread_sig_handler () from /usr/lib/libc_r.so.4
#3 0x280fe606 in _thread_sig_handler () from /usr/lib/libc_r.so.4
#4 0x7fbfffac in ?? ()
#5 0x288ccec0 in acommon::GlobalCacheBase::~GlobalCacheBase () from /usr/local/lib/libaspell.so.16
#6 0x28906ce9 in __static_initialization_and_destruction_0 () from /usr/local/lib/libaspell.so.16
#7 0x28906db2 in global destructors keyed to acommon::ToUniLookup::reset () from /usr/local/lib/libaspell.so.16
#8 0x288ccaae in __do_global_dtors_aux () from /usr/local/lib/libaspell.so.16
#9 0x289cb6f5 in _fini () from /usr/local/lib/libaspell.so.16
#10 0x280932ae in dlclose () from /usr/libexec/ld-elf.so.1
#11 0x28474ee1 in object.11 () from /usr/local/libexec/apache/libphp4.so
#12 0x28476945 in object.11 () from /usr/local/libexec/apache/libphp4.so
#13 0x28476a8e in object.11 () from /usr/local/libexec/apache/libphp4.so
#14 0x2847250c in object.11 () from /usr/local/libexec/apache/libphp4.so
#15 0x2844d292 in object.11 () from /usr/local/libexec/apache/libphp4.so
#16 0x2844d26b in object.11 () from /usr/local/libexec/apache/libphp4.so
#17 0x2848c004 in object.11 () from /usr/local/libexec/apache/libphp4.so
#18 0x80517cb in run_cleanups ()
#19 0x8050610 in ap_clear_pool ()
#20 0x805df12 in standalone_main ()
#21 0x805e747 in main ()
#22 0x804fd32 in _start (arguments=0x7fbffcf8 "/usr/local/sbin/httpd") at /usr/src/lib/csu/i386-elf/crt1.c:119
As soon as I disable pspell.so, the problem goes away ...
is this a problem with the pspell extension, or just the aspell library
itself?
Thanks ...
----
Marc G. Fournier Hub.Org Networking Services (http://www.hub.org)
Email: scrappy
hub.org Yahoo!: yscrappy ICQ: 7615664
attached mail follows:
Hi all
I am currently working on a PHP 5 application. For the sake of
simplicity, I'll only describe 3 classes here, as that is all that is
required for you to see my problem.
I have a DB class that interacts with the database, a Session class that
controls the session with the user, and a User class that stores the
information about the logged-in user.
I create instances of these classes in the order [DB, Session, User] at
request startup. They have to be in this order as the Session and User
classes need the database, and the User class needs the session.
The User and Session destructors both need the database to write any
changed information back to the database, but it seems that the
destructors are called in the order that the objects are created, so the
database is taken down first.
Wouldn't it make more sense for just about all applications to destroy
objects in the reverse order that they were created? Is there any way to
work around this?
Jasper
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]