php-windows Digest 21 Aug 2002 11:38:18 -0000 Issue 1300
Topics (messages 15400 through 15404):
Re: resolution?
15400 by: Luis Ferro
Re: Any good tutorials on working with IMAP/POP3 and php
15401 by: Ross Fleming
15402 by: leo g. divinagracia iii
ADO & ODBC , for experts only
15403 by: Saci
15404 by: Svensson, B.A.T. (HKG)
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 ---
Jim Hunter wrote:
>You don't need to know resolution at all. The user knows what size their
>monitor is and they can select the correct image to view. If the image is
>larger then their browser then they can just scroll to see the extra.
>Determining screen/browser resolution is not 100 % accurate so you shouldn't
>try. Just supply the various links and allow the user to choose the one that
>they want to download. They can 'try' the various sizes to see which one
>they want to download. I don't want a background image on my desktop that
>takes up the entire screen, I like to have a border around it so that my
>icons are not on the image. Give the user the choice. If you ONLY allowed me
>to download the file that would fill my screen I would not be a happy camper
>
>
>
And providing the size of the image in Kb will further enlight his
choices... (as with the diferent file formats... i would think the best
would be bmp file format compressed with zip)...
>
>
>Freedom of choice is a good thing.
>
>
>
>Jim Hunter
>
>
>
---
[This E-mail scanned for viruses by Declude Virus]
--- End Message ---
--- Begin Message ---
It's remarkably easy to get the hang of. I recently built a php app to do
just this, and after some great pointers from this list found:
http://www.devshed.com/Server_Side/PHP/PHPMail/PHPMail1/page1.html which
pretty much teaches you all you need to know. The industrial strength stuff
is really going to come from you however. That's more a case of programming
defensively (which imo should be done as a matter of course these days)
Have fun
Ross
> -----Original Message-----
> From: R.S. Herhuth [mailto:[EMAIL PROTECTED]]
> Sent: 20 August 2002 20:57
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Any good tutorials on working with IMAP/POP3 and php
>
>
>
> I'm looking for some really good tutorials on working with email and
> PHP. I'm hoping for some serious industrial strength stuff. I would
> even purchase a book or two if need be.
>
> Thanks,
> Ron
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--- End Message ---
--- Begin Message ---
R.S. Herhuth wrote:
> I'm looking for some really good tutorials on working with email and
> PHP. I'm hoping for some serious industrial strength stuff. I would
> even purchase a book or two if need be.
>
> Thanks,
> Ron
>
thew WROX book BEGINNING PHP4 is what i started out on. chapter on
using the MAIL function... actually how to write an email client...
http://www.wrox.com/ACON18.asp?WROXEMPTOKEN=490491ZOR7VMGHSxiC6DpI8vgS&BookID=415
--
Leo G. Divinagracia III
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
This code works partially only on the 1st on 2nd Execute comand runs well
the 3rd one return the error
Warning: Invoke() failed: Exceção. Source: Microsoft OLE DB Provider for
ODBC Drivers Description: [Microsoft][ODBC Visual FoxPro Driver]Command
contains unrecognized phrase/keyword. in
But all codes are the same , the unique diference is the lenght of the
str_repeat function.
Anybody know what must be changed to also the 3rd execute comand works?
<?
$dbc = new COM("ADODB.Connection") or die ("connection create fail");
$dbc->Provider = "MSDASQL";
$dbc->Open("FoxDatabase");
$RSet = new COM("ADODB.Recordset");
$RSet = $dbc->Execute("UPDATE catalogo SET RAZAO_SOCI = 'Carlis tester', ".
" OBSERVACOE=' enviadas as
observacoes".time().str_repeat('A',10)."', ".
" REQUISITAN = time() ".
" WHERE KEYUNICA = 5574");
$RSet = $dbc->Execute("UPDATE catalogo SET RAZAO_SOCI = 'Carlis tester', ".
" OBSERVACOE=' enviadas as
observacoes".str_repeat('A',200)."', ".
" REQUISITAN = time()".
" WHERE KEYUNICA = 5575");
$RSet = $dbc->Execute("UPDATE catalogo SET RAZAO_SOCI = 'Carlis tester', ".
" OBSERVACOE=' enviadas as
observacoes".str_repeat('A',300)."', ".
" REQUISITAN = time()".
" WHERE KEYUNICA = 5576");
$RSet = $dbc->Execute("select * from catalogo Where RAZAO_SOCI = 'Carlis
tester'");
while (!$RSet->EOF){
echo $RSet->fields["KEYUNICA"]->value.' ' ;
echo $RSet->fields["RAZAO_SOCI"]->value.' ' ;
echo $RSet->fields["REQUISITAN"]->value ;
echo $RSet->fields["OBSERVACOE"]->value ;
echo '<BR>';
$RSet->movenext();
}
$RSet->close;
$dbc->close;
$RSet = null;
$dbc = null;
?>
--- End Message ---
--- Begin Message ---
A long shot:
The only essential different I can see at a fast glance is the
length of the string repeat.
It might be that the string becomes truncated in the third statement.
Try to execute a string that is 200 bytes in total length, and then
expand it to 300, if you gets and error if you execute the second
statement then you know what the fault depends on.
> -----Original Message-----
> From: Saci [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 21, 2002 6:17 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] ADO & ODBC , for experts only
>
>
> This code works partially only on the 1st on 2nd Execute comand runs well
> the 3rd one return [...]
> $RSet = $dbc->Execute("UPDATE T SET RA = 'C', ".
> " O=' X".Y.str_repeat('A',10)."', ".
> " R = F() ".
> " WHERE K = #");
> $RSet = $dbc->Execute("UPDATE T SET RA = 'C', ".
> " O=' X".str_repeat('A',200)."', ".
> " R = F()".
> " WHERE K = #");
> $RSet = $dbc->Execute("UPDATE T SET RA = 'C', ".
> " O=' X".str_repeat('A',300)."', ".
> " R = F()".
> " WHERE K = #");
--- End Message ---