php-windows Digest 3 Nov 2003 21:21:59 -0000 Issue 1982
Topics (messages 21956 through 21965):
Seesion
21956 by: Rinku Shivnani
query error
21957 by: Rinku Shivnani
21958 by: Luis Moreira
21959 by: Ignatius Reilly
2 attachments
21960 by: Disko_kex
21965 by: Manuel Lemos
PHP4 + windows 2003 server
21961 by: servidor
21962 by: Gerardo Rojas
21963 by: Eric COLINET
21964 by: Nick H. -- Network Operations
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 ---
Warning: Cannot send session cache limiter - headers already sent (output
started at /var/www/html/chiraag/auction/frmclient_approve.php:2) in
/var/www/html/chiraag/auction/frmclient_approve.php on line 3
In this case to rectify this error what I should do? Pls Guide
Regards,
Rinku
--- End Message ---
--- Begin Message ---
SELECT types, comp_name, modal, to_char(manufact_dt,'dd/MON/yyyy'),
to_char(purchase_dt,'dd/MON/yyyy'), dealer_nm, cc, avg,
to_char(rto_passing_dt,'dd/MON/yyyy'), veh_no, color, appro_val, extra_info,
to_char(dt,'dd/MON/yyyy'), necessary_info, name, email_id, village, place,
taluka, ph_no, extra FROM vehicle where 1=1 and wheel='Y|L jCL,Z' and
flag='n'
question :
Here in my database wheel column have the same value but then even why I
am not getting any row as output for this query.
Pls George help me
Regards,
Rinku
--- End Message ---
--- Begin Message ---
What is this doing here ?
where 1=1
This is always true
----- Original Message -----
From: "Rinku Shivnani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 03, 2003 12:50 PM
Subject: [PHP-WIN] query error
> SELECT types, comp_name, modal, to_char(manufact_dt,'dd/MON/yyyy'),
> to_char(purchase_dt,'dd/MON/yyyy'), dealer_nm, cc, avg,
> to_char(rto_passing_dt,'dd/MON/yyyy'), veh_no, color, appro_val,
extra_info,
> to_char(dt,'dd/MON/yyyy'), necessary_info, name, email_id, village, place,
> taluka, ph_no, extra FROM vehicle where 1=1 and wheel='Y|L jCL,Z' and
> flag='n'
>
> question :
> Here in my database wheel column have the same value but then even why I
> am not getting any row as output for this query.
>
> Pls George help me
>
> Regards,
> Rinku
>
--- End Message ---
--- Begin Message ---
This is a useful trick when generating conditions dynamically in SQL
$sql = "SELECT
...
WHERE 1 = 1
" ;
foreach ( $conditions as $condition ) {
$sql .= "AND {$condition}" ;
}
Ignatius
_________________________
----- Original Message -----
From: "Luis Moreira" <[EMAIL PROTECTED]>
To: "Rinku Shivnani" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, November 03, 2003 2:23 PM
Subject: Re: [PHP-WIN] query error
> What is this doing here ?
>
> where 1=1
>
> This is always true
>
>
>
> ----- Original Message -----
> From: "Rinku Shivnani" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, November 03, 2003 12:50 PM
> Subject: [PHP-WIN] query error
>
>
> > SELECT types, comp_name, modal, to_char(manufact_dt,'dd/MON/yyyy'),
> > to_char(purchase_dt,'dd/MON/yyyy'), dealer_nm, cc, avg,
> > to_char(rto_passing_dt,'dd/MON/yyyy'), veh_no, color, appro_val,
> extra_info,
> > to_char(dt,'dd/MON/yyyy'), necessary_info, name, email_id, village,
place,
> > taluka, ph_no, extra FROM vehicle where 1=1 and wheel='Y|L jCL,Z' and
> > flag='n'
> >
> > question :
> > Here in my database wheel column have the same value but then even why I
> > am not getting any row as output for this query.
> >
> > Pls George help me
> >
> > Regards,
> > Rinku
> >
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
$file = fopen($fileatt,'rb');
$data = fread($file,filesize($fileatt));
fclose($file);
$semi_rand = md5(time());
$mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";
$headers .= "\nMIME-Version: 1.0\n" .
"Content-Type: multipart/mixed;\n" .
" boundary=\"{$mime_boundary}\"";
$email_message = "This is a multi-part message in MIME format.\n\n" .
"--{$mime_boundary}\n" .
"Content-Type:text/html; charset=\"iso-8859-1\"\n" .
"Content-Transfer-Encoding: 7bit\n\n" .
$email_txt ."\n\n";
$email_message .= "--{$mime_boundary}\n" .
"Content-Type: {$fileatt_type};\n" .
" name=\"{$fileatt_name}\"\n" .
"Content-Disposition: attachment;\n" .
" filename=\"{$fileatt_name}\"\n" .
"Content-Transfer-Encoding: base64\n\n" .
chunk_split(base64_encode($data)) . "\n\n" .
"--{$mime_boundary}--\n";
This is some of my code for sending an email with an attachment ($data)
but if I want to send two files, how to write? I tried lots of ways with
no result. Plz help
--- End Message ---
--- Begin Message ---
Hello,
On 11/03/2003 12:24 PM, Disko_kex wrote:
This is some of my code for sending an email with an attachment ($data)
but if I want to send two files, how to write? I tried lots of ways with
no result. Plz help
You may want to try this class and attach as many files as you want to
your messages:
http://www.phpclasses.org/mimemessage
--
Regards,
Manuel Lemos
Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--- End Message ---
--- Begin Message ---
Hi!
PHP4 + windows 2003 server + Apache4 works fine??
I have trouble with sesions,
*********************************************
(Warning: session_start() [function.session-start]: open
(/tmp\sess_25db9216cc993bf4a6c2051981a339f5, O_RDWR) failed:
*********************************************
I test in Windows XP and all is OK.
thanks
Lazaro
--- End Message ---
--- Begin Message ---
Make sure that the temp directory exists, where the session data is stored.
--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]
-----Original Message-----
From: servidor [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 12:28 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP4 + windows 2003 server
Hi!
PHP4 + windows 2003 server + Apache4 works fine??
I have trouble with sesions,
*********************************************
(Warning: session_start() [function.session-start]: open
(/tmp\sess_25db9216cc993bf4a6c2051981a339f5, O_RDWR) failed:
*********************************************
I test in Windows XP and all is OK.
thanks
Lazaro
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi,
the path /tmp\sess_25db9216cc993bf4a6c2051981a339f5 can't exists on a
windows platform !
Try to set the session save_path to a correct value.
ie:
session.save_path = c:\temp (in php.ini)
or
session_save_path('c:\\temp'); (in your code)
assuming that c:\temp realy exists on your machine.
Regards,
Eric
At 19:45 03/11/2003, Gerardo Rojas wrote:
Make sure that the temp directory exists, where the session data is stored.
--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]
-----Original Message-----
From: servidor [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 12:28 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP4 + windows 2003 server
Hi!
PHP4 + windows 2003 server + Apache4 works fine??
I have trouble with sesions,
*********************************************
(Warning: session_start() [function.session-start]: open
(/tmp\sess_25db9216cc993bf4a6c2051981a339f5, O_RDWR) failed:
*********************************************
I test in Windows XP and all is OK.
thanks
Lazaro
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
The default path for the php.ini under 2003 is different than on 2000. I
ran into this problem. Setup your PHP ini and put it in:
c:\windows\system32\inetsrv
(Above is default path)
or %systemdir%\inetsrv
Should fix your problem.
Regards,
Nick H.
Network Operations Center
[EMAIL PROTECTED]
Please rate my performance! http://www.supportteam.net/rate.php3
Please submit all new support requests to
http://ticketmonster.hostingsupport.com/
-------------------------------------------
Privileged/Confidential Information may be contained in this message. If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver this
message to anyone. In such case, you should destroy this message and kindly
notify the sender by reply email. Please advise immediately if you or your
employer do not consent to Internet email for messages of this kind.
Opinions, conclusions and other information in this message that do not
relate to the official business of my firm shall be understood as neither
given nor endorsed by it.
----- Original Message -----
From: "Eric COLINET" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, November 03, 2003 12:56 PM
Subject: RE: [PHP-WIN] PHP4 + windows 2003 server
> Hi,
>
> the path /tmp\sess_25db9216cc993bf4a6c2051981a339f5 can't exists on a
> windows platform !
> Try to set the session save_path to a correct value.
>
> ie:
> session.save_path = c:\temp (in php.ini)
> or
> session_save_path('c:\\temp'); (in your code)
>
> assuming that c:\temp realy exists on your machine.
>
> Regards,
> Eric
>
>
>
>
> At 19:45 03/11/2003, Gerardo Rojas wrote:
> >Make sure that the temp directory exists, where the session data is
stored.
> >
> >
> >--
> >Gerardo S. Rojas
> >mailto: [EMAIL PROTECTED]
> >
> >
> >-----Original Message-----
> >From: servidor [mailto:[EMAIL PROTECTED]
> >Sent: Monday, November 03, 2003 12:28 PM
> >To: [EMAIL PROTECTED]
> >Subject: [PHP-WIN] PHP4 + windows 2003 server
> >
> >
> >Hi!
> >
> >PHP4 + windows 2003 server + Apache4 works fine??
> >I have trouble with sesions,
> >*********************************************
> >(Warning: session_start() [function.session-start]: open
> >(/tmp\sess_25db9216cc993bf4a6c2051981a339f5, O_RDWR) failed:
> >*********************************************
> >
> >I test in Windows XP and all is OK.
> >
> >thanks
> >
> >Lazaro
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---