php-windows Digest 20 Nov 2001 12:12:36 -0000 Issue 864
Topics (messages 10525 through 10531):
Re: Adding *another* person to an e-mail *to:* address
10525 by: Anthony Ritter
Re: Couldn't Open Stream Issues
10526 by: R'twick Niceorgaw
Re: new problem... problem with Query...
10527 by: Todd Williamsen
Re: Read Session in ASP in PHP
10528 by: anch.org
10529 by: George Pitcher
HTTP_REFERER
10530 by: Peter
Sablotron crashes php.exe
10531 by: Arve Bersvendsen
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 ---
Daniel,
Well...It sure didn't work for me with the comma and space...I got:
Warning: Server Error in c:\program files\apache
group\apache\htdocs\send_simpleform.php on line 10
When I got rid of the second e-mail address and just used one address
everything is back to normal.
Further, I checked the php.net doc...under mail() step 4:
$recipient .= "Mary <[EMAIL PROTECTED]>" . ", " ; file://note the comma
and that doesn't work.
I'm using MS Windows 98 w/ Apache
Anybody want to share their php script with two e-mail addresses?
Thank you.
Tony Ritter
.........................................
Daniel Parsons <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > $recipient .= "Mary <[EMAIL PROTECTED]>" . ", " ; file://note the
comma
>
> It is also worth pointing out that you need to include the space as
> well.
> $to = "[EMAIL PROTECTED],[EMAIL PROTECTED]" won't work, whereas
> $to = "[EMAIL PROTECTED], [EMAIL PROTECTED]" will work.
>
> Daniel.
..........................................
--- End Message ---
--- Begin Message ---
It definitely looks like server doesn't like something. See in the server
logs if it says any thing. I have never used argosoft server so no idea
what's wrong with it.
Try to use the pop3 protocol name in the request like
$mbox = imap_open("{".$email_server.":110/pop3}".$folder,$name,$passwd);
and see if that helps.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 19, 2001 8:00 PM
To: r'twick niceorgaw
Subject: RE: [PHP-WIN] Couldn't Open Stream Issues
ok - please excuse amateur coding :)
i can see the log file on the mail server getting a connection but then it
just crashes even after i increased the execute time-out to 120 seconds.
<?php
$email_server ="age0001";
$folder = "INBOX";
$name = "joef";
$passwd ="*****";
$mbox = imap_open("{".$email_server.":110}".$folder,$name,$passwd);
if (!$mbox) {
$errors=imap_errors();
for ( $i=0;$i<count($errors);$i++)
echo "$errors[$i]<BR>\n";
}
?>
anyway it gives this html message ...
Warning: Couldn't open stream {age0001:110}INBOX in d:\program files\apache
group\apache\htdocs\webmail\connect.php on line 7
Unexpected tagged response: +OK ARGOSOFT Mail Server Freeware, Version 1.70
(1.7.0.3)
[CLOSED] IMAP connection broken (server response)
maybe its the argo server ?
----------
Get a fun email address at http://another.com
COOL: Personalise a t-shirt with your name/email/slogan
from 9.99 pounds. CLICK HERE http://another-shop.com
--- End Message ---
--- Begin Message ---
Both don't work... same problem... I cannot figure it out
"Olivier Hubert" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> If you mysql connection is the only one you're trying to
maintain,
> I suggest you try
>
> $result = @mysql_query($sql) or die ("Couldn't execute
> query.");
>
> e.g. without passing the $connection parameter. Also, try using
mysql_error
> to get the actual error message.
>
> HTH!
>
> Olivier
>
> At 16:30 2001-11-19 -0600, Todd Williamsen wrote:
> >Here it is.... I get the error "cannot execute query" so there is
> >something wrong with the SQL and I cannot figure it out...
> >
> ><?
> >
> >if ((!$FirstName) || (!$LastName)) {
> > header("Location:
http://www.feminineforum.com/admin/pick_modcontact.php");
> > exit;
> >
> >} else {
> >
> > session_start();
> >
> >}
> >
> >if ($valid != "yes") {
> > header("Location:
http://www.feminineforum.com/admin/contact_menu.php");
> > exit;
> >
> >} else {
> >
> > session_register('valid');
> >
> >}
> >
> >
> >$db_name = "feminineforum";
> >$table_name = "tblmembers";
> >
> >$connection = @mysql_connect ("localhost", "feminine", "krmc33") or die
> >("Couldn't connect.");
> >
> >$db = @mysql_select_db ($db_name, $connection) or die("Couldn't select
> >database.");
> >
> >$sql = "UPDATE $table_name
> > SET
> > FirstName = \"$FirstName\",
> > LastName = \"$LastName\",
> > Address1 = \"$Address1\",
> > Address2 = \"$Address2\",
> > City = \"$City\",
> > State = \"$State\",
> > Zip = \"$Zip\",
> > HomePhone = \"$HomePhone\",
> > WorkPhone = \"$WorkPhone\",
> > Fax = \"$Fax\",
> > Email = \"$Email\",
> > UserId = \"$UserId\",
> > Password = \"$Password\",
> > WHERE id = \"$ID\"
> >";
> >
> >$result = @mysql_query($sql, $connection) or die ("Couldn't execute
> >query.");
> >
> >
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--- End Message ---
--- Begin Message ---
Sorry, I'm a PHP newbie. The only way I know you can pass values to a php
script is the normal way, through the URL, as in: a
href=yourscript.php?var1=value&var2=value... etc.
--- End Message ---
--- Begin Message ---
> Sorry, I'm a PHP newbie. The only way I know you can pass values to a php
> script is the normal way, through the URL, as in: a
> href=yourscript.php?var1=value&var2=value... etc.
Not strictly true.
I am primarily a Lasso developer and I can pass values (and do) using Form,
URL and Cookies. In Lasso Cookies are not set in the headers or as part of
an explicit session instruction, but rather just like setting a global
variable, but obviously linked to the user's session.
George, also a php newbie, but constantly wowed by what appears possible
with it
"anch.org" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Sorry, I'm a PHP newbie. The only way I know you can pass values to a php
> script is the normal way, through the URL, as in: a
> href=yourscript.php?var1=value&var2=value... etc.
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Can anyone tell me under what circumstances this is set? As far as I can
tell it only gets set on clicking an A tag from a referring page, but
shouldn't it also get set if I POST a form from the referring page? In my
tests this doesn't happen. I'm tried using PHP 4.05 / 4.06 on Win2K CGI
version.
Any help much appreciated
Peter
--- End Message ---
--- Begin Message ---
I am currently trying to get XSLT to work in Apache 1.3.20 / PHP 4.0.6
(and I've tried 4.0.8dev as well).
just calling
xslt_process($xslstring, $xmlstring, $result);
by itself works quite nicely, but I'm writing an object based menu
system.
Whenever one of the objects member functions calls xslt_process,
php.exe crashes with the following message
# The instruction at "0x01024ac1" referenced memory at "0xcccccccc"
# The memory could not be "read".
Any idea of what's happening here, why, and how to avoid it. I've also
downloaded "class.XSLTransformer.php" as suggested in the online
manual, and the result is the same, so I'm quite confident it's not
just my object orientation skills that's screwed.
--
Arve <URL:http://www.bersvendsen.com/>
Newsere mot X-No-Archive
--- End Message ---