php-general Digest 31 Oct 2009 06:15:04 -0000 Issue 6419
Topics (messages 299539 through 299542):
smtp mail question
299539 by: Al
299541 by: John Black
Re: How APC Work?
299540 by: Carlos Medina
Re: Textarea to road a text file
299542 by: Jean Lee
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 ---
Anyone see a problem if I login into the smtp server with Username different
than the Return-Path?
It seems to work OK; but, I know from experience using the mail servers that
increasingly everything must be exactly right to prevent recipient mail servers
from rejecting emails.
So, I started using authenticated smtp exclusively.
Reason I'm asking is that I'm developing an application that will have several
pages and each one will have a different Return-Path and Reply-To.
It will make things simpler if I can login to the smtp server with just one
username/password.
Al.........
--- End Message ---
--- Begin Message ---
Al wrote:
Anyone see a problem if I login into the smtp server with Username
different than the Return-Path?
It seems to work OK; but, I know from experience using the mail servers
that increasingly everything must be exactly right to prevent recipient
mail servers from rejecting emails.
All the email servers I have worked with only care about the proper
authentication credentials and accept any valid email address for From:
Reply-to and so on. Free services, like Googlemail.com, may differ.
The receiving server on the other hand will usually do a domain
validation of the From: field to ensure that the domain exists, validate
the SPF record and do a few other anti spam tricks.
--
John
--- End Message ---
--- Begin Message ---
Erick Couto schrieb:
Hi,
How *APC* – Alternative *PHP* Cache store data on cache? memory? file
system?
i´m developing a PHP application with many requests for read/write on APC
stored variables,
im scared with future slow down with many IO on APC.
Thanks,
Erick Couto
No Documentation for APC?
--- End Message ---
--- Begin Message ---
Yes, I just want to edit a file in the textarea!
thank you.
""Jay Blanchard"" <[email protected]> wrote in message
news:[email protected]...
[snip]
<html><head><title>.....
<body>..............
<?php
$handle = fopen("./menu.php", "r");
$contents = "";
if ($handle) {
while (!feof($handle)) {
$buffer = fgets($handle);
$contents = $contents . $buffer;
}
fclose($handle);
}
echo "<textarea cols=80 rows=30>" . $contents . "</textarea>";
?>
</body>
</html>
[/snip]
Try http://us3.php.net/manual/en/function.file-get-contents.php
<?php
$contents = file_get_contents('./menu.php');
echo "<textarea cols=80 rows=30>" . $contents . "</textarea>";
?>
I am unsure what you want to do here, display the menu in the textarea?
Or do you want to be able to edit menu.php in the textarea?
--- End Message ---