php-windows Digest 22 Jun 2003 00:07:53 -0000 Issue 1788
Topics (messages 20479 through 20489):
multiple mails problem
20479 by: narayanak
20480 by: Stephen
Problem on passing value.
20481 by: Joe Phyism
Parsing Error: Short just a few lines of code, please look
20482 by: Stuart Felenstein
PHP Sub-Routine
20483 by: Hermann
PHP Sub Routine II
20484 by: Hermann
php.ini values ignored?
20485 by: Kit DeKat
20486 by: Ignatius Reilly
20487 by: Kit DeKat
where to find dll files
20488 by: Melih Onvural
20489 by: Peter 'iridium' Waller
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 ---
First, I want to thank whoever takes this on ahead of time.
I'm just starting to learn php and I had a problem with sending the mail to
multiple users , when i send an email to some users it shows their email
addresses to everyone. I do not want the people receiving the email to see
everybody elses email address that is on the list.
My Problem is : i want send the same mail to multiple users ,these mail ids
are collected from the database and concatnated with each other by
separating them with commas
and i was used the mail function as
mail($to,$subject,$message,$headers)
where $to='[EMAIL PROTECTED],[EMAIL PROTECTED],...';
But my intension is "I do not want the people receiving the email to see
everybody elses email address that is on the list."
If i can use Bcc then only 2 mails goes i.e., to and bcc .
I don't know how to solve this problem, Please help me anyone
Regards
Narayana
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I believe you can use multiple emails in the BCC field by seperating them
with ,
Otherwise, you could always send each email individually, although this
method would be more resource intensive. I'm almost 100% sure it is possible
to specify multi BCC fields.
Stephen
----- Original Message -----
From: "narayanak" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 21, 2003 12:46 PM
Subject: [PHP-WIN] multiple mails problem
> First, I want to thank whoever takes this on ahead of time.
>
> I'm just starting to learn php and I had a problem with sending the mail
to
> multiple users , when i send an email to some users it shows their email
> addresses to everyone. I do not want the people receiving the email to see
> everybody elses email address that is on the list.
>
> My Problem is : i want send the same mail to multiple users ,these mail
ids
> are collected from the database and concatnated with each other by
> separating them with commas
>
> and i was used the mail function as
>
> mail($to,$subject,$message,$headers)
>
> where $to='[EMAIL PROTECTED],[EMAIL PROTECTED],...';
>
> But my intension is "I do not want the people receiving the email to see
> everybody elses email address that is on the list."
> If i can use Bcc then only 2 mails goes i.e., to and bcc .
>
> I don't know how to solve this problem, Please help me anyone
>
>
> Regards
> Narayana
>
> [EMAIL PROTECTED]
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
The source of show.php:
<?
if ( $a == 1 ) {
echo "True.";
} else {
echo "False."
}
?>
However, no matter what I type in URL of browser, like
http://localhost/show.php?a=1 or http://localhost/show.php, the result is
the same - "False.".
Can anyone help me? Is it the problem of my setting in Apache?
--- End Message ---
--- Begin Message ---
Created a small registration form, trying to spit back the information for
confirmation. Getting a parsing error. I don't know if it means anything, but I
created the form and table in GoLive. Up to defining the variables everything is
cool, ZDE points to line 32, as an unexpected >. Though even if I took that out I
don't beleive the fault lies in that line <tr>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 6">
<title>Welcome to Adobe GoLive 6</title>
</head>
<body bgcolor="#ffffff">
<p></p>
<form action="(EmptyReference!)" method="get" name="FormName">
<p></p>
<hr noshade size="19">
<p></p>
<p><font size="5" color="blue">Please confirm that this is your correct
information:</font></p>
<p></p>
<p></p>
<table width="444" border="0" cellspacing="2" cellpadding="2">
<?php
//create short variable names
$LastName = $HTTP_POST_VARS['LastName'];
$Address1 = $HTTP_POST_VARS['Address1'];
$City = $HTTP_POST_VARS['City'];
$State = $HTTP_POST_VARS['State'];
$Zip = $HTTP_POST_VARS['Zip'];
$HTele = $HTTP_POST_VARS['HTele'];
<tr>
<td colspan="2">Last Name</td>
<td>$LastName;</td>
</tr>
<tr>
<td colspan="2">Address 1</td>
<td>$Address1;</td>
</tr>
<tr>
<td colspan="2">City</td>
<td>$City;</td>
</tr>
<tr>
<td colspan="2">State</td>
<td>$State;</td>
</tr>
<tr>
<td colspan="2">Zip</td>
<td>$Zip;</td>
</tr>
<tr>
<td colspan="2">Telephone</td>
<td>$HTele;</td>
</tr>
</table>
?>
<p></p>
<p></p>
<p></p>
</form>
<hr>
<p></p>
<p></p>
<p></p>
<p></p>
</body>
</html>
--- End Message ---
--- Begin Message ---
Hi!
I have a little problem!
I wrote follwing code!
<?php
$type = 'file';
//$type = 'db';
// determine the tracker type
if ($type == 'file') {
require_once 'docs/php/IPTracker/IPTrackerFile.php';
$tracker = new IPTrackerFile('docs/php/IPTracker/ip.log');
} else {
require_once 'IPTrackerDB.php';
require_once '../abstractdb/AbstractFactory.php';
$db = AbstractFactory::getDbLayer('MYSQL', '', 'mysql');
$tracker = new IPTrackerDB($db, 'localhost', 'php', '', '');
}
// track the current visitor
$tracker->track();
?>
If my file ist called index.php, it runs without problems!
If I call the file index.html (should also work) he can't parse the line with
$tracker->track();
He interpretes the "->" wrong!
Is there a other way to call a sub routine in php (without ->)???
Why are these two commandos in php and html the same with other functions? There is a
redunancy-bug!!!
Regards, Hermann.
--- End Message ---
--- Begin Message ---
Hi!
I have a little problem!
I wrote follwing code!
<?php
$type = 'file';
//$type = 'db';
// determine the tracker type
if ($type == 'file') {
require_once 'docs/php/IPTracker/IPTrackerFile.php';
$tracker = new IPTrackerFile('docs/php/IPTracker/ip.log');
} else {
require_once 'IPTrackerDB.php';
require_once '../abstractdb/AbstractFactory.php';
$db = AbstractFactory::getDbLayer('MYSQL', '', 'mysql');
$tracker = new IPTrackerDB($db, 'localhost', 'php', '', '');
}
// track the current visitor
$tracker->track();
?>
If my file ist called index.php, it runs without problems!
If I call the file index.html (should also work) he can't parse the line
with $tracker->track();
He interpretes the "->" wrong!
Is there a other way to call a sub routine in php (without ->)???
Why are these two commandos in php and html the same with other functions?
There is a redunancy-bug!!!
Regards, Hermann.
--- End Message ---
--- Begin Message ---
Nothing i change in the php.ini is being read/loaded.
my '<?php phpinfo() ?>' page shows only the defaults.
System:
- Win2k-AS.SP3
- PHP 4.3.2-RC installed to 'D:/var/php/'
- Apache 2.0.44 installed to 'D:/var/www/'
PHP was from snaps.php.net using 'php4-STABLE-200304171930'
[http://localhost/info.php]
...
extension_dir = c:\php4
include_path = .;c:\php4\pear
...
Server Root = D:/var/www
Document_Root = D:/var/www/html
Script_Filename = D:/var/www/html/info.php
...
session.cookie_path = /
session.save_path = /tmp
...
_ENV["PHPDIR"] = D:\\var\\php
_ENV["PHPTEMP"] = D:\\var\\www\\tmp
------------------------------------------------------
Congifuration:
[D:/var/www/conf/httpd.conf]
### Add PHP4 support to Apache2.0.4x
LoadModule php4_module D:/var/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps
[D:/var/php/php.ini]
[copied to %SYSTEMROOT%/system32/php.ini]
include_path = ".;d:\var\php;d:\var\www\php"
extension_dir = "D:\var\php\extensions"
...
session.save_path = D:\var\www\tmp
session.cookie_path = /
------------------------------------------------------
Best regards,
Kit DeKat mailto:[EMAIL PROTECTED]
Systems Programmer
-----BEGIN PERL GEEK CODE BLOCK-----
Version: 0.01
P++>[EMAIL PROTECTED] >++M+$O+>+++(++)$MA >+E+PU >+BD >++C >*$
D++S++>[EMAIL PROTECTED]>++WP?MO?PP!n?CO?PO--o?G A--Ee+++Ev w+m!
------END PERL GEEK CODE BLOCK------
--- End Message ---
--- Begin Message ---
Did you restart Apache?
Ignatius
_________________________
----- Original Message -----
From: "Kit DeKat" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 21, 2003 9:14 PM
Subject: [PHP-WIN] php.ini values ignored?
> Nothing i change in the php.ini is being read/loaded.
> my '<?php phpinfo() ?>' page shows only the defaults.
>
> System:
> - Win2k-AS.SP3
> - PHP 4.3.2-RC installed to 'D:/var/php/'
> - Apache 2.0.44 installed to 'D:/var/www/'
>
> PHP was from snaps.php.net using 'php4-STABLE-200304171930'
>
> [http://localhost/info.php]
> ...
> extension_dir = c:\php4
> include_path = .;c:\php4\pear
> ...
> Server Root = D:/var/www
> Document_Root = D:/var/www/html
> Script_Filename = D:/var/www/html/info.php
> ...
> session.cookie_path = /
> session.save_path = /tmp
> ...
> _ENV["PHPDIR"] = D:\\var\\php
> _ENV["PHPTEMP"] = D:\\var\\www\\tmp
>
> ------------------------------------------------------
>
> Congifuration:
> [D:/var/www/conf/httpd.conf]
> ### Add PHP4 support to Apache2.0.4x
> LoadModule php4_module D:/var/php/sapi/php4apache2.dll
> AddType application/x-httpd-php .php .php3 .phtml
> AddType application/x-httpd-php-source .phps
>
> [D:/var/php/php.ini]
> [copied to %SYSTEMROOT%/system32/php.ini]
> include_path = ".;d:\var\php;d:\var\www\php"
> extension_dir = "D:\var\php\extensions"
> ...
> session.save_path = D:\var\www\tmp
> session.cookie_path = /
>
> ------------------------------------------------------
>
>
> Best regards,
> Kit DeKat mailto:[EMAIL PROTECTED]
> Systems Programmer
>
> -----BEGIN PERL GEEK CODE BLOCK-----
> Version: 0.01
> P++>[EMAIL PROTECTED] >++M+$O+>+++(++)$MA >+E+PU >+BD >++C >*$
> D++S++>[EMAIL PROTECTED]>++WP?MO?PP!n?CO?PO--o?G A--Ee+++Ev w+m!
> ------END PERL GEEK CODE BLOCK------
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
At 03:55 PM 6/21/2003, you wrote:
Did you restart Apache?
Ignatius
Please give me *some* credit...
restarted everytime i changed the httpd.conf and php.ini
files, which would happen to be over 20 times recently,
as i tried different configurations to see what happens.
Best regards,
Kit DeKat mailto:[EMAIL PROTECTED]
Systems Programmer
-----BEGIN PERL GEEK CODE BLOCK-----
Version: 0.01
P++>[EMAIL PROTECTED] >++M+$O+>+++(++)$MA >+E+PU >+BD >++C >*$
D++S++>[EMAIL PROTECTED]>++WP?MO?PP!n?CO?PO--o?G A--Ee+++Ev w+m!
------END PERL GEEK CODE BLOCK------
--- End Message ---
--- Begin Message ---
Hi,
I've just moved over to Windows and PHP and I was wondering if anyone knows where to
find the gd2.dll library? Off the PHP site it's in *NIX form and I'm not sure how to
compile that on a Windows machine so I figured a .dll would be much simpler. Thanks,
melih
--- End Message ---
--- Begin Message ---
Melih Onvural wrote:
Hi,
I've just moved over to Windows and PHP and I was wondering if anyone knows where to find the gd2.dll library? Off the PHP site it's in *NIX form and I'm not sure how to compile that on a Windows machine so I figured a .dll would be much simpler. Thanks,
melih
If you downloaded php-x.x.x-Win32.zip, you should find extensions in the
/extensions/ directory, named php_ext.dll
If they're not, then I have no idea what you've downloaded.
--- End Message ---