php-windows Digest 12 Jan 2003 02:57:11 -0000 Issue 1530

Topics (messages 17772 through 17781):

Re: Which Web server to run under XP
        17772 by: Ben Edwards
        17773 by: Ben Edwards
        17776 by: Sean Malloy
        17778 by: Torben Dehn

Urgent Help Required !
        17774 by: Raheel Hussain

Re: UTF - MIME
        17775 by: Naqashzade, Sadeq

Ping, Script ends before it's finished
        17777 by: Torben Dehn

Re: Oops !
        17779 by: Neil Smith

sending mail trough PHP page??
        17780 by: Ignacio Domínguez

ANY PHP PROGRAMMING MARKETERS?
        17781 by: Nicole

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 ---
At 15:00 11/01/2003 +1100, you wrote:

I use IIS with PHP 4.3.0. The ISAPI dll in 4.3.0 is more stable than
previous versions.
What is ISAPI dll and how do I get install it, sorry but I'me not a real teche.

Did you install IIS onto your machine? (I think you can only install IIS if
you're running XP Pro. So if you're running Home, you're out of luck)
I am using XP Pro and have installed IIS.

There are plenty of other web servers. Read the PHP Install.txt file in the
PHP root. It mentions how to get PHPO running with OmniHTTPD and Xitami for
Windows as well.

I would keep trying for IIS though.

and as far as Apache requiring Sp1. Maybe v2.0.latest does, Get 1.3.27-win32
(PHP suppoort for Apache2 is expierimental anyway)

Regards,

Sean

-----Original Message-----
From: Ben Edwards [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 11 January 2003 1:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Which Web server to run under XP


I am using XP and have been trying to work out which web server to use with
PHP & MySQL.

First I tries IIS and it said I have an OCX missing.

Then I looked at Apache and it said I need Service Pack 1, which if I
install slows the whole machine down.  This is a know issue, Microsoft
excuse is that it is something to do with securety.

Are there any other web servers I could use or are there work rounds for
the above.

Regards,
Ben

****************************************************************
* Ben Edwards                              +44 (0)117 968 2602 *
* Critical Site Builder    http://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* Get alt news/views films online   http://www.cultureshop.org *
* i-Contact Progressive Video      http://www.videonetwork.org *
* Smashing the Corporate image       http://www.subvertise.org *
* Bristol Indymedia               http://bristol.indymedia.org *
* Bristol's radical news             http://www.bristle.org.uk *
* PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8     *
****************************************************************



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
****************************************************************
* Ben Edwards                              +44 (0)117 968 2602 *
* Critical Site Builder    http://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* Get alt news/views films online   http://www.cultureshop.org *
* i-Contact Progressive Video      http://www.videonetwork.org *
* Smashing the Corporate image       http://www.subvertise.org *
* Bristol Indymedia               http://bristol.indymedia.org *
* Bristol's radical news             http://www.bristle.org.uk *
* PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8     *
****************************************************************
--- End Message ---
--- Begin Message ---
Maybe its just that it is only bundled with pro.

At 15:26 11/01/2003 +1100, Sean Malloy wrote:

Well there you go!

I wasn't sure. I thought I read somewhere on the MSDN site saying IIS
required >= winXP pro. I must have read it incorrectly

-----Original Message-----
From: toby z [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 11 January 2003 3:07 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Which Web server to run under XP


sean

im ran iis 5.1 on my win xp home :)
it ran fine ..... till the list made me get apache ;)


chao

toby ....

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
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
****************************************************************
* Ben Edwards                              +44 (0)117 968 2602 *
* Critical Site Builder    http://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* Get alt news/views films online   http://www.cultureshop.org *
* i-Contact Progressive Video      http://www.videonetwork.org *
* Smashing the Corporate image       http://www.subvertise.org *
* Bristol Indymedia               http://bristol.indymedia.org *
* Bristol's radical news             http://www.bristle.org.uk *
* PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8     *
****************************************************************
--- End Message ---
--- Begin Message ---
if you unzipped PHP zip file to:

C:\PHP

then the ISAPI dll is in C:\PHP\sapi\

The file you want to use for IIS is php4isapi.dll

I just copy php4isapi.dll to C:\PHP

then within IIS Admin I create a new script engine mapping. Mapping .php
files to C:\PHP\php4isapi.dll

Don't even have to copy php4ts.dll to c:\windows\system32 then!

-----Original Message-----
From: Ben Edwards [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 11 January 2003 10:37 PM
To: Sean Malloy; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Which Web server to run under XP


At 15:00 11/01/2003 +1100, you wrote:

>I use IIS with PHP 4.3.0. The ISAPI dll in 4.3.0 is more stable than
>previous versions.

What is ISAPI dll and how do I get install it, sorry but I'me not a real
teche.

>Did you install IIS onto your machine? (I think you can only install IIS if
>you're running XP Pro. So if you're running Home, you're out of luck)

I am using XP Pro and have installed IIS.

>There are plenty of other web servers. Read the PHP Install.txt file in the
>PHP root. It mentions how to get PHPO running with OmniHTTPD and Xitami for
>Windows as well.
>
>I would keep trying for IIS though.
>
>and as far as Apache requiring Sp1. Maybe v2.0.latest does, Get
1.3.27-win32
>(PHP suppoort for Apache2 is expierimental anyway)
>
>Regards,
>
>Sean
>
>-----Original Message-----
>From: Ben Edwards [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, 11 January 2003 1:11 PM
>To: [EMAIL PROTECTED]
>Subject: [PHP-WIN] Which Web server to run under XP
>
>
>I am using XP and have been trying to work out which web server to use with
>PHP & MySQL.
>
>First I tries IIS and it said I have an OCX missing.
>
>Then I looked at Apache and it said I need Service Pack 1, which if I
>install slows the whole machine down.  This is a know issue, Microsoft
>excuse is that it is something to do with securety.
>
>Are there any other web servers I could use or are there work rounds for
>the above.
>
>Regards,
>Ben
>
>****************************************************************
>* Ben Edwards                              +44 (0)117 968 2602 *
>* Critical Site Builder    http://www.criticaldistribution.com *
>* online collaborative web authoring content management system *
>* Get alt news/views films online   http://www.cultureshop.org *
>* i-Contact Progressive Video      http://www.videonetwork.org *
>* Smashing the Corporate image       http://www.subvertise.org *
>* Bristol Indymedia               http://bristol.indymedia.org *
>* Bristol's radical news             http://www.bristle.org.uk *
>* PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8     *
>****************************************************************
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php

****************************************************************
* Ben Edwards                              +44 (0)117 968 2602 *
* Critical Site Builder    http://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* Get alt news/views films online   http://www.cultureshop.org *
* i-Contact Progressive Video      http://www.videonetwork.org *
* Smashing the Corporate image       http://www.subvertise.org *
* Bristol Indymedia               http://bristol.indymedia.org *
* Bristol's radical news             http://www.bristle.org.uk *
* PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8     *
****************************************************************

--- End Message ---
--- Begin Message ---
I can recommend OmniHttpd by www.omnicron.ca
It's free, it's fast and very easy to set up.
It will be updated every 6 months or so.
"Ben Edwards" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am using XP and have been trying to work out which web server to use
with
> PHP & MySQL.
>
> First I tries IIS and it said I have an OCX missing.
>
> Then I looked at Apache and it said I need Service Pack 1, which if I
> install slows the whole machine down.  This is a know issue, Microsoft
> excuse is that it is something to do with securety.
>
> Are there any other web servers I could use or are there work rounds for
> the above.
>
> Regards,
> Ben
>
> ****************************************************************
> * Ben Edwards                              +44 (0)117 968 2602 *
> * Critical Site Builder    http://www.criticaldistribution.com *
> * online collaborative web authoring content management system *
> * Get alt news/views films online   http://www.cultureshop.org *
> * i-Contact Progressive Video      http://www.videonetwork.org *
> * Smashing the Corporate image       http://www.subvertise.org *
> * Bristol Indymedia               http://bristol.indymedia.org *
> * Bristol's radical news             http://www.bristle.org.uk *
> * PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8     *
> ****************************************************************
>


--- End Message ---
--- Begin Message ---
hi,
I m using the following code to attach a file in an email and sending it through the 
mail function.
but the problem i face is that that mail is sent but there is not attachment in it , i 
have tried it lots of times
but didn't find the actuall cause of this logical error.
the server is Apache Server and the Linux Plateform.

file_upload is set to on , 
max file size is allright,
but still the problem...

here s the code


/////////////////////////////////////
function send_mail($vars){
 
    global $send_to, $send_cc;
    global $subject;
    global $attachment_enabled;
    global $REMOTE_ADDR;

    global $HTTP_POST_FILES;
 
 
    //$vars['subject']="ÇáÚÇãÉ";
 
    $files = array(); //files (field names) to attach in mail
    if (count($HTTP_POST_FILES) && $attachment_enabled){
        $files = array_keys($HTTP_POST_FILES);
    }

    // build mail
    $date_time = date('Y-m-d H:i:s');
    $mime_delimiter = md5(time());
    $fields = _build_fields($vars);
    $mail =<<<EOF
This is a MIME-encapsulated message
    
--$mime_delimiter
Content-type: text/plain;
charset: windows-1256
Content-Transfer-Encoding: 8bit

$fields 
--------------------
EOF;

  // i guess the problem is in the following code
 if (count($files)){
  foreach ($files as $file)
  {
  $file_name     = $HTTP_POST_FILES[$file]['name'];
  $file_type     = $HTTP_POST_FILES[$file]['type'];
  $file_tmp_name = $HTTP_POST_FILES[$file]['tmp_name'];
  $file_cnt = "";
  $f=@fopen($file_tmp_name, "rb");
  if (!$f) 
   continue;
  while($f && !feof($f))
   $file_cnt .= fread($f, 4096);
  fclose($f);
  
  if (!strlen($file_type)) $file_type="applicaton/octet-stream";
  if ($file_type == 'application/x-msdownload')
  $file_type = "applicaton/octet-stream";

  $mail .= "\n--$mime_delimiter\n";
  $mail .= "Content-type: $file_type\n";
  $mail .= "Content-Disposition: attachment; filename=\"$file_name\"\n";
  $mail .= "Content-Transfer-Encoding: base64\n\n";
  $mail .= chunk_split(base64_encode($file_cnt)); 
          }
     }
     $mail .= "\n--$mime_delimiter--";

 
 //send to
 // $_send_to = $send_to ? $send_to : "$vars[name_to] <".$vars["email_to"].">";
 $_send_from = "$vars[name_from] <".$vars["email_from"].">";
 $_subject = $subject ? $subject : $vars['subject'];
 //$a=intval($vars['email']);
 $_send_to=$send_to;

 mail($_send_to, $_subject, $mail, "Mime-Version: 1.0\nFrom: 
$_send_from\nContent-Type: multipart/mixed;\n 
boundary=\"$mime_delimiter\"\nContent-Disposition: inline");


*/
}

/////////////////////////////////////




---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--- End Message ---
--- Begin Message ---
I use this code to send my feedback form to my email address that filled in
UTF-8:
================================================
 $Recipient="[EMAIL PROTECTED]";
 $message = "<html><head><META HTTP-EQUIV=\"Content-Type\"
CONTENT=\"text/html; charset=utf-8\"></head><body dir=rtl>\n";
 $message .= "Subject: $subject<br>\n";
 $message .= "Company: $data[1]<br>\n";
 $message .= "Name: $data[0]<br>\n";
 $message .= "Family: $data[7]<br>\n";
 $message .= "Sender e-mail : $email<br>\n";
 $message .= "Address: $data[2]<br>\n";
 $message .= "Phone/Fax: $data[3]<br>\n";
 $message .= "Biz: $data[4]<br>\n";
 $message .= "Interets: $data[5]<br>\n";
 $message .= "Coments: $data[6]<br>\n";
 $message .= "<hr color=navy><center><a
href=\"http://www.AlgorithmCo.com\";><font size=-2>Powered by Algorithm
Co</font></a></center>\n";
 $message .= "</body></html>\n";

 $headers  = "From: $name <$email>\n";
 $headers .= "X-Develpoer: <www.AlgorithmCo.com>\n";
 $headers .= "X-Priority: 1\n";
 $headers .= "MIME-Version: 1.0\r\n";
 $headers .= "Content-type: text/html; charset=utf-8\r\n";

  $headers .= "Return-Path: <$email>\n";  // Return path for errors
 $mail_sent=mail($Recipient, $subject, $message, $headers);
=======================================================================
"M." <[EMAIL PROTECTED]> wrote in message
001101c2acb2$349632d0$1b52dbd9@mottaghi">news:001101c2acb2$349632d0$1b52dbd9@mottaghi...
> Hi,
> i want to send a mail with unicode contents, what is the "content-type"
and
> "content-transfer-encoding"??
> thank you
> omid
>


--- End Message ---
--- Begin Message ---
Hello !
I am tryin to make a script that will ping a whole subnet and it looks like
it works, but it does not...
It will ping around 60 to 70 computers and then it will stop.. no error just
finishes.

I am new at php so maybe i am doing something wrong ?
Any Help Would be appreciated.

Another thing.. is there anyway to set a timelimit on the  exec("ping -n 1
$realip", $result); command ? because if it pings an ip where there is no
computer i will wait for several seconds before it will ping the next ip.

The script looks like this

<?php
set_time_limit(0);
for ($i=2;$i<=255;$i++)
{
   $realip = "192.168.1.$i";
   exec("ping -n 1 $realip", $result);
   echo $i."   ".$result[3]."<hr>";
   $result = '';
}
?>


--- End Message ---
--- Begin Message ---
At 09:10 11/01/2003 +0000, I wrote:
Use BIGTEXT or specify a column size - do you have access to PHPMyAdmin for this
Did I really say that ? Sorry, I meant LONGTEXT (thanks Toby). Duh !

Execute the MySQL command "SHOW STRUCTURE" on your databsae to get a listing of the column types which are currently in use.
And that ? I meant SHOW CREATE TABLE tablename

Err, bad brain day :-)
Sorry, Neil.
--- End Message ---
--- Begin Message ---
I get the following error every time I send mail.

Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or
custom "From:" header missing

using this code:

mail("[EMAIL PROTECTED]", "Subject", "This is the text", "From: [EMAIL PROTECTED]");



i have configured my php.ini to read "sendmail_from = [EMAIL PROTECTED]"


--- End Message ---
--- Begin Message ---
Any php programmers in the Atlanta / Marietta, Georgia area that experience
with marketing???

I'm looking for a programming business partner or 2. I can't pay anyone yet,
but I need some help with this and offer share in what I will be making
soon.

If anyone is interested, please get in contact with me. Thanks!!!

Please be located close to Atlanta, GA for this offer.

Thanks!

--
Nicole
Web Developer & Netrepreneur
aeontrek.com
urltrak.com
elixirsafelist.com


--- End Message ---

Reply via email to