php-windows Digest 13 Jun 2004 10:16:00 -0000 Issue 2282
Topics (messages 23970 through 23975):
Re: PHP code breaks
23970 by: Steve Douville
More Code
23971 by: Jonathan Gravois
23972 by: Steve Douville
23973 by: Jonathan Gravois
23974 by: Dascalu Marius
Re: Tm and Gd Library
23975 by: Alekc
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 ---
Give us a few lines above that, please? It could be something missing from
the preceeding lines.
----- Original Message -----
From: "Jonathan Gravois" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 11, 2004 11:06 PM
Subject: [PHP-WIN] PHP code breaks
> I get this error: Parse error: parse error, unexpected ':' in
> c:\inetpub\wwwroot\mchsvb\EmailPassword.php on line 100
> Here's line 100:
> $from = "From: [EMAIL PROTECTED]
> <[EMAIL PROTECTED]>\r\n";
> Anyone see anything wrong? I'm going nuts.
> Jon
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>
--- End Message ---
--- Begin Message ---
$ConfirmMessage = "";
if ($totalRows_LostPassword > 0) {
$to = $_POST['EmailAddress'];
$from = "From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>\r\n";
$subject = "RE: Your Login Information";
$body = "UserName: " . $row_LostPassword['UserName'] .
"\rPassword: " . $row_LostPassword['UserPassword'];
@mail($to,$subject,$body,$from);
$ConfirmMessage = "Your login information has been sent to:
" . $_POST['EmailAddress'];
}
?>
Thanks in Advance,
Jon
--- End Message ---
--- Begin Message ---
copy and pasted that into a script and it didn't give me any parsing
problems at all.... hmmm
----- Original Message -----
From: "Jonathan Gravois" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 11, 2004 11:21 PM
Subject: [PHP-WIN] More Code
> $ConfirmMessage = "";
> if ($totalRows_LostPassword > 0) {
> $to = $_POST['EmailAddress'];
> $from = "From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>\r\n";
> $subject = "RE: Your Login Information";
> $body = "UserName: " . $row_LostPassword['UserName'] .
> "\rPassword: " . $row_LostPassword['UserPassword'];
> @mail($to,$subject,$body,$from);
> $ConfirmMessage = "Your login information has been sent to:
> " . $_POST['EmailAddress'];
> }
> ?>
>
> Thanks in Advance,
> Jon
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>
--- End Message ---
--- Begin Message ---
I'm trying to create a "forgotten email page." Here's the whole
page's code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Millington Central HS Volleyball</title>
<style type="text/css">
<!--
body {
background-color: #000000;
}
body,td,th {
color: #FFFFFF;
}
a:link {
color: #000000;
}
a:visited {
color: #000000;
}
.style3 {
color: #000000;
font-weight: bold;
}
.style5 {
color: #000000;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
font-size: x-large;
}
.style7 {
color: #DFC472;
font-weight: bold;
}
</style>
</head>
<body>
<center>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>
<table cellpadding="0" cellspacing="0" border="0" width="764"
align="center">
<tbody>
<tr>
<td bgcolor="#ffff99">
<table width="774" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr bgcolor="#baad41">
<td></td>
<td height="28" bgcolor="#DFC472"><div
align="center"><img src="Banner.jpg" width="761" height="138"></div></td>
</tr>
<tr bgcolor="#baad41">
<td width="1"></td>
<td width="762" height="28"
bgcolor="#DFC472"><div align="center"><span class="style5">Password
Retrieval </span></div></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td valign="top">
<table width="769" border="1" bgcolor="#333333">
<tbody>
<tr>
<td width="735" height="28"><table width="100%"
border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="40"><table width="100%"
class="layoutTable" border="0" cellpadding="6" cellspacing="0">
<tr>
<td width="200" align="center"
valign="bottom" bgcolor="#999999" class="pageHeader style7">SEND PASSWORD
</td>
<td bgcolor="#000000"><?php echo
$ConfirmMessage; ?></td>
</tr>
</table></td>
</tr>
<tr>
<td><form name="SendPassword" method="post"
action="">
<table width="100%" border="0"
cellspacing="0" cellpadding="6">
<tr>
<td width="25"> </td>
<td colspan="2"> </td>
</tr>
<tr>
<td width="25"> </td>
<td colspan="2" class="plaintext">If
you have forgotten your password, please enter your email address in the
text box below. Your user name and password information will be e-mailed to
that email address. </td>
</tr>
<tr>
<td> </td>
<td colspan="2"> </td>
</tr>
<tr>
<td width="25"> </td>
<td class="formTitle">Email
Address</td>
<td class="formField"><input
name="EmailAddress" type="text" id="EmailAddress" size="40"></td>
</tr>
<tr>
<td width="25"> </td>
<td class="formTitle"><?php
$ConfirmMessage = "";
if ($totalRows_LostPassword > 0) {
$to = $_POST['EmailAddress'];
$from = "From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>\r\n";
$subject = "RE: Your Login Information";
$body = "UserName: " . $row_LostPassword['UserName'] . "\rPassword:
" . $row_LostPassword['UserPassword'];
@mail($to,$subject,$body,$from);
$ConfirmMessage = "Your login information has been sent to: " .
$_POST['EmailAddress'];
}
?> </td>
<td class="formField"><input
name="SendPWD" type="submit" id="SendPWD" value="Send Login Info"></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr bgcolor="#000000">
<td bgcolor="#DFC472">
<div align="center" class="style3"><a
href="Home.html">RETURN TO MCHSVB.COM <br>
</a></div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</center>
</body>
</html>
--- End Message ---
--- Begin Message ---
----- Original Message -----
From: "Jonathan Gravois" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 12, 2004 6:33 AM
Subject: RE: [PHP-WIN] More Code
> I'm trying to create a "forgotten email page." Here's the whole
> page's code:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
> <title>Millington Central HS Volleyball</title>
> <style type="text/css">
> <!--
> body {
> background-color: #000000;
> }
> body,td,th {
> color: #FFFFFF;
> }
> a:link {
> color: #000000;
> }
> a:visited {
> color: #000000;
> }
> .style3 {
> color: #000000;
> font-weight: bold;
> }
> .style5 {
> color: #000000;
> font-weight: bold;
> font-family: Arial, Helvetica, sans-serif;
> font-size: x-large;
> }
> .style7 {
> color: #DFC472;
> font-weight: bold;
> }
> </style>
....
Hi
have you closed comentary after "}" and before </style>?
with that modification code works on my box :)
HTH
Marius
--- End Message ---
--- Begin Message ---
Nope, a small example:
<?
header ("Content-type: image/png");
$img = ImageCreate(500,500);
$back = ImageColorAllocate($img, 0,0,0);
$w = ImageColorAllocate($img, 255, 255, 255);
$string = "™ââÂÂdâââÃÃ";
//$string = "Testing... ?â?";
imagettftext($img, 25, 0, 20, 40, $w, "arial.TTF", $string);
ImagePNG($img);
ImageDestroy($img);
?>
On Fri, 11 Jun 2004 10:57:49 -0500, Gerardo Rojas
<[EMAIL PROTECTED]> wrote:
Alekc
Maybe this will help if you outputting plain text:
chr(153) will output = ' T '
--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]
-----Original Message-----
From: Alekc [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 10:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Tm and Gd Library
Is it possible print on the image an symbol tm???
by using imagettftext, it's print special chars like copyright, etc, but
it doesn't work with tm...
I have tryed to use fonts like verdana, arial, etc but nothing
Some suggetsion?
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
--- End Message ---