php-windows Digest 1 Sep 2003 08:17:45 -0000 Issue 1895

Topics (messages 21287 through 21294):

Need Help
        21287 by: S F Alim
        21290 by: Shadow

Re: UTF8_encode ()
        21288 by: Grzegorz Godlewski

Re: Sending Mail with PHP.
        21289 by: Numero 6
        21292 by: Manuel Lemos

mysql_pconnect/win32/apache 1.3.27 (php4apache.dll NOT CGI)
        21291 by: Sek-Mun Wong

Re: Help me!
        21293 by: Bobo Wieland

problems with mysql connections not closing
        21294 by: Chris Kranz

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 ---
Dear All,
Actually I am new to this php world, I did try to download enuff info
'how to install' but unfortunately I don't know jack about it and plus
for couple of weeks I wont be able to sit online and download or browse
internet, I just have this email access. So any sort of help will be
appreciated.
I do have manual to install php 4 on windows system, but frankly
speaking . I realy didn't get most of it, specialy MS VC++ part and
after that.
Requirments:
1. I want to configure PHP4 on my IIS 5.0 (windows 2000 pro) not on
apache server. As most of the 'User Contribution Notes' talk about
apache server configuration.
2. As I said b4 that I wont be able to get online and download anythin',
so if anyone can send me file(s) regarding configuration I realy
appreciate it and by the way my email account can handle 20 mb.
3. I don't have VC++ on my machine, so do I really have to install it
for compiling and building php4?
4. if someone can send me through email this file 'win32build.zip' and
also source code for DNS name resolver 'bindlib_w32.zip'.
5. and yes also I did not get this part of manual "Installation of
windows extensions". What do I have to know about this topic? And what
should I be aware of?
Please once again in advance any help is realy realy appreciated. 
Regards,
S F Alim.
Tech Support,
Technical Deptt.,
VodaTel Riyadh.
Date: August 31, 2003.
 

--- End Message ---
--- Begin Message ---
You don't need to build it yourself........download a zipped copy from
www.php.net  Use the zipped version, not the windows installer version....I
found this way, the installation will be easy........here are the
instructions: http://www.php.net/manual/en/install.windows.php

-- 
Shadow
www.shadowsnetwork.com

--- End Message ---
--- Begin Message ---
> For testing I set up two pages, one with iso-8859-1 encoding that has a form
> with textbox and submit button and another using utf-8 encoding with echoing
> utf8_ecnode ();ed text written in the textbox in the first page.
> 
> When I write English it works, Russian - works, German - major screw up,
> Lithuanian (my language) - screw up. And so I dunno what to do. I really
> need that to work for my multilanguage project I am working on. I googled
> for any useful info but only found more ppl having more trouble :/
I use iconv for this:
===
echo iconv("ISO-8859-2","UTF8",$text);
===

In my multilanguage sites I use something like that:
===
$charset=explode(";",$_SERVER['HTTP_ACCEPT_CHARSET']);
$charset=explode(",",$charset[0]);
$charset=$charset[0];

iconv_set_encoding("internal_encoding", "utf-8");
iconv_set_encoding("input_encoding", $charset);
iconv_set_encoding("output_encoding", $charset."//TRANSLIT");
ob_start("ob_iconv_handler");
foreach(array_keys($_POST) as $key) 
$POST[iconv($charset,"utf-8",$key)]=iconv($charset,"utf-8",$_POST[$key]);
$_POST=$POST;
foreach(array_keys($_GET) as $key) 
$GET[iconv($charset,"utf-8",$key)]=iconv($charset,"utf-8",$_GET[$key]);
$_GET=$GET;
include("html/main.php");
ob_end_flush();
===
It translates input data from browser encoding into utf8 and encodes it
back from utf8 output to browser encoding. All is done transparently.
All data I keep in utf8.

BR
-- 
\ Grzegorz Godlewski                                                      /
/ Mail: [EMAIL PROTECTED]      GG: 1600799      ICQ UIN: 118261503 \

--- End Message ---
--- Begin Message --- [EMAIL PROTECTED] wrote:

I am gonna start to learn it to night, but was wondering if there was any adjustments that were needed within the php.ini file before I actually start writing up the code.

Yes, write there the SMTP server you will use.


The function seems staright forward enough to execute, but are there any other things i should know that is required to send email via PHP scripts.

No.

--- End Message ---
--- Begin Message --- Hello,

On 08/31/2003 03:26 PM, [EMAIL PROTECTED] wrote:
Hi all, I've been using PHP over the last year now, and have become quite capable with the language, but, there is one function/feature that I have yet to try/use, and that is the mail() function.

I am gonna start to learn it to night, but was wondering if there was any adjustments that were needed within the php.ini file before I actually start writing up the code.

The function seems staright forward enough to execute, but are there any other things i should know that is required to send email via PHP scripts.

I am using AOL to send and recieve emails.

You need to configure the SMTP server and the sendmail_from address in the php.ini file. If your SMTP server requires authentication you may get errors and it does not deliver messages.


The mail() function is mostly to send simple messages. To send more complex messages (HTML, images, attachments, etc..) you may want to try this class that makes your task easier and compliant with the e-mail standards. The class also comes with a sub-class specialized in deliverying via SMTP with authentication support if necessary:

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 ---
I thought pconnect was fixed, but it seems to be coming back to haunt me
again.

anyone using this? Do you find pconnect doesn't seem to reuse connections
and keeps reopening connections for each pconnect call. I don't think
setting a short wait_timeout is the solution, as this seems to be counter
intuitive to having persistent connections anyway.

Besides, within my framework I proxy connection calls and cache the 1st
connection for reuse so there is ever only 1 connection per script
execution - if this is all pconnect does then my method is just as
efficient.

My expectation is for the persistence to happen over multiple script
executions... yet somehow I sense that it's not possible to do this because
I'm vaguely aware that win32 (non) threading model wouldn't (shouldn't) be
able to find the last thread that apache is running on (then again, isn't
there only 1 thread?)... hmmm.

There is barely any documentation on this, like: "it just doesn't work under
win32". Even that would be fine.

Ideas? PHP dudes? Any better success on php4isapi anyone?

----------------------------------------------
Sek-Mun Wong
Connecting Space
Sydney, Australia
mailto:[EMAIL PROTECTED]
p:+61 2 92332819
f:+61 2 92338872
m: +61 (0) 402 138974
http://www.connectingspace.com

--- End Message ---
--- Begin Message ---
I've used something like this for optimizing webpages for different
resolutions and have not had any problems...

<code>
<script language='JavaScript'>
 <!-- Begin
 function setWidth()
 {
  var W = screen.width;
  location = "thepage.php?w=" + W;
 }
 // End -->
</script>

to get the value to php i then have this code:
if (isset($_GET["w"])) {
   if ($_GET["w"] < 1024) { $scr_size = "s"; }
  else if ($_GET["w"] >= 1024 && $_GET["w"] < 1152 ) { $scr_size = "m"; }
  else { $scr_size = "l"; }
 }
----- Original Message ----- 
From: "Leskó József" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 30, 2003 1:20 PM
Subject: [PHP-WIN] Help me!


Hello,

 I am a 17 years old boy from Hungary, and I have problem with PHP. I hope
that you can help.
The problem: I ask the width and height of the screen with JavaScript, and
when the JavaScript give the values to the PHP they become string, so I
can't use the values as a number. I tried to change the type, but it's bad,
too.
I want that if the screen is bigger, the image is bigger.
I enclose a file, which show the problem.

I hope that you understand my problem, and sorry about the mistakes.


Leskó Dániel

--- End Message ---
--- Begin Message ---
OS: Win 2k
Web Server: Apache 1.3.27
PHP: 4.1.2
MySQL: 3.23.39

really can't tell if this is a coding issue, a software issue, or just a
random bug somewhere...

basically we have a fairly large intranet, serving up several thousand
pages/hits everyday to mainly mac/pc users. somewhere, in all this, there
are some connections to the database not being closed. there's no real way
for us to tell where this is happening yet, although we're gonna put in some
extra log tables to try and trap when exactly it's happening.

surely PHP should close every database connection once the page has been
served up tho? and surely it should leave a lot more open than just 1 or 2
if it were a coding issue?

are there any known issues with this kinda configuration with this kinda
randomness? we manage to fix it using some repair utilities, but this isn't
a solution really. it says that there is some connections left open with
soem clients, so this then locks certain tables, and kinda shuts down parts
of the database.

we will be upgrading the system soon, but we're putting it all onto a new
box, so don't want the hassle of doing an upgrade now, and then again in a
few weeks.

--- End Message ---

Reply via email to