Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




Does Yahoo, Gmail, Or Any Other Blocks Mail Coming From Feedback Form?


I've been testing my feedback form sent to my yahoo mail. It was working fine at first, but after receiving more than 10 emails then I can't seem to receive anymore. 

BTW, I tried testing two recipients separating them with comma. But when I check my email accounts, only 1 received the feedback. Is there anything wrong with the source codes?

$recipient = "dummy@yahoo.com, dummy2@yahoo.com";
$subject = "Subject here";
$mailheaders = "From: My Form <name@mail.com> ";
$mailheaders .= "Reply-To: " .$_POST["email"];

Thanks.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Mail() Not Getting To Gmail Or Yahoo
The site I'm working on has the need to send out e-mails to its users (account creation, modification, etc). I've just been using the mail() function to do this with no problems... until I tested the functionality with my gmail account. No dice. I did some reading and found that others who were having the gmail problem also could not get emails to yahoo, so I got an account there and tried it... also no dice.

I've been all over the net trying different header tricks, I've checked my server info at dnsreport (found a NS problem but it has been corrected), I can verify the header information looks correct through my pop mail program, I don't get a single error when the script runs... it just... doesn't work.

I have another domain on the exact same box that sends a notification to my gmail account every night via a cron job script that I got over a year and a half ago. That notification works just fine, so I know that it isn't a server setting or something else I don't have control over. I've looked through the code for that script and can't made heads or tails of it to be honest... it does a bunch of crazy header stuff with boundary strings and base64 encoding because its job is to send a backup file.

The real kicker is that my friend who also has a gmail account received a notice from the script about two weeks ago when he tested it for me. I had a relative test it about a week ago and of the 4 or so e-mails they should've gotten from the script, they got 2. They have a Yahoo account.

In my own testing, nothing is getting through. My host did just recently move me to a new box... I guess that might have something to do with it, but it doesn't make sense that it would work for one of my domains and not the other.

Anyway, here's the code I'm using: .....

Mail() [function.mail]: SMTP Server Response: 550 Not Local Host Gmail.com
I do a mail() and get:

Warning: mail() [function.mail]: SMTP server response: 550 not local host gmail.com, not a gateway in C:xamppxampphtdocs estsitemail.php on line 7


<?php
ini_set("SMTP","rlwatkins.com");
ini_set("sendmail_from","hunter@rlwatkins.com");
mail("huntercjcarroll@gmail.com","hello me","spamtastic","From: hunter@rlwatkins.com");
?>

what is wrong with this, how do i set it so that i can send to something other than localhost?

From Address Is Not Coming In The Mail.
i am sending a mail using a php mail() function. But reciept is not able to see , who sent the mail , ie the correct from address is not coming in the mail, instead some other address related to IP Address is coming.

Mail Function, Will Not Work If The Email Is Coming From Nobody.
I have set up a feedback form that emails the results. my web host says
it will not work if the email is coming from nobody.

Feedback Form
I'm trying to create a simple email form where it automatically sends a quick message a user inputs to a hardcoded email address. the form i use looks like this: Code:

RoundCube Mail With Gmail
I want to fetch emails from Gmail using Roundcube. But i can't. How can I fetch gmail?

Mail() Function Blocks Webpage For Nameserver Lookup ! How Can I Disable It?
When mail() function reaches a wrong email address or a down domain name (which it can not resolve it to its IP address) it blocks PHP page for a while. How can I disable this behaviour?

I was able to disable this in mail clients such as Pine by setting an option that tells "Do not make DNS lookups before ading mail to queue" . Is there anything in PHP for doing this?

Feedback Form Timer
I would like to set it up so that my feedback form does not allow a certain IP to send the form more than once over a five minute period. Would anyone here have an idea how to do about that?

Anonymous Feedback Form
I have searched for this on the Net but couldn't come across any tutorials which explains how to do this. I would like to build an anonymous feedback form which would contain only one text field and one submit button. The script must be able to prevent people from submitting a blank form. 

Feedback Form Sending Odd Email.
Ive got a form that is sending a really odd email.  files are attached.

Email Keeps Going To Junk Mail In Hotmail/gmail
Recently i got a dedicated server (running CentOS), and im trying to send emails using a php to hotmail, gmail, yahoo, etc.. But the emails keep going to junk email, this are the headers i get in gmail, i changed my domain name to "example.com", and my ip to 99.99.99.99

-------------------------------------------------------
Delivered-To: myemail@example.com
Received: by 10.140.187.1 with SMTP id k1cs11218rvf;
Sun, 2 Sep 2007 01:16:43 -0700 (PDT)
Received: by
10.35.27.1 with SMTP id e1mr4411248pyj.1188721002619;
Sun, 02 Sep 2007 01:16:42 -0700 (PDT)
Return-Path: <staff@example.com>
Received: from
mysite.net ([99.99.99.99])
by mx.google.com with ESMTP id n63si2393055pyh.2007.09.02.01.16.41;
Sun, 02 Sep 2007 01:16:42 -0700 (PDT)

Received-SPF: neutral (google.com: 99.99.99.99 is neither permitted nor denied by best guess record for domain of staff@example.com
) client-ip=99.99.99.99;
Authentication-Results: mx.google.com; spf=neutral (google.com:
99.99.99.99 is neither permitted nor denied by best guess record for domain of staff@mysite.net) smtp.mail=staff@example.com
Received: from
mysite.net (example.com [127.0.0.1])
by mysite.net (8.13.8/8.13.8) with ESMTP id l828Gj3h013152

-------------------------------------------------------

whats wrong here? i tried everything, im guessing "example.com (example.com [127.0.0.1])" is one of the reasons, but how can i change it so it shows my ip address instead of "127.0.0.1"? what is SPF anyway?

i have googled this a lot, seen many people with the same problem, yet no solutions, you help would really really really reallllyy be much appreciated.

Mail Function Sends To Gmail But Not Hotmail.
Can anyone tell me what the requirements are to allow hotmail to collect
messages. I have a script using the mail function at the moment that emails
most email clients but the email doesn't seem to be accepted by hotmail. It
email doesn;t even go into the junk box.

Please help,

The code:

ini_set(sendmail_path, "/usr/sbin/sendmail -t -f webmaster@domain.com");

//Contents of an Registration Auto responce email(text format)
$message = "Thanks for registering".$userName;

$headers .= "From: Name<webmaster@domain.com>
";
$headers .= "Reply-To: <webmaster@domain.com>
";
$headers .= "X-Sender: <webmaster@domain.com>
";
$headers .= "X-Mailer: PHP4
"; //mailer
$headers .= "X-Priority: 3
"; //1 UrgentMessage, 3 Normal
$headers .= "Return-Path: <webmaster@domain.com>
";
mail($email,"Registration ",wordwrap(stripslashes($message)),$headers);

Html Mail() Making It Work In Gmail
I am having some problems making my html mail() work in all free mail servers, the main one being Gmail. It works fine in Yahoo and most others but in gmail the mail does not show up, it only shows the html code. Does anyone know the correct headers that I am suppose to use, or help me fix my script. PHP Code:

Yahoo And PHP Mail()
I recently signed up for a yahoo small business account and am having a
heck of a time getting mail() to work. My script returns the thank you
and apperas to run through but no mail is recieved and the error log is
spitting out error: unknown. Any ideas? I have reduced it down to just
trying to get a mail to go through. And so far Yahoo!

Lildog

<?php
ini_set ("sendmail_from","youraddress@somewhere.com");
$to = "youraddress@somewhere.com";
$youremail = "youraddress@somewhere.com";
$mailheaders = "From: $youremail
";
$subject = "Your comments";
$strMessageBody =" testing this thing.";
mail($to, $subject, $strMessageBody, $mailheaders);
echo "<h2>Thank you</h2>";
phpinfo();
?>

PHP And Yahoo! Mail
I just noticed that Yahoo has published an API to Yahoo! Mail. Read about it at the Yahoo! Developer Network.

I have not tried this yet, so I don't know how hard (or easy) API is to use.

Mail Download From Yahoo Mail With PHP
I want to get mail from yahoo mail by PHP.

actualy, i want to create an application which one will save mail data
(mail receive time, mail sender information etc.)from yahoo mail and
save that data to mySql database automaticly.

have u any PHP function which one will direct connect with yahoo mail
server and save that data to my mySql Database.

Inserting Different Email Address Into Feedback Form
I have a website which contains "profiles" for around 200 small hostels and tour companies in South America.  each profile has a feedback form inserted into it using SSI which allows backpackers to send emails direct to the hostel/company.  When the submit button is pressed, it executes a PHP script (which I got off thesitewizard.com) to mail the form back direct to the company. 

Whilst the actual feedback form itself is one file, inserted into each profile, the PHP that executes is separate for each company - the only reason is because the email address differs for each company.

My main aim is to have the bulk of the PHP script as one file and somehow include the email address into the PHP script either using somekind of include() from a separate file or otherwise taking it as a variable in the profile page itself.

As I'm rubbish with PHP, I trawled the net and read through about a dozen tutorials regarding PHP include, but the script fails to execute when I do this.  The code I am using is:  <?php include("file.php"); ?>.

The include function definately works as I have tried creating a blank php file with just <?php include("file.php"); ?>  (where file.php is the FULL php script) in it and it executes perfectly.   However,  When I divide the script in two and put the first half in the document and follow it with <?php include("file.php"); ?>   eg...

<?
$mailto = "info@email.com";
<?php include("file.php"); ?>

I get an error message stating: Parse error: syntax error, unexpected '<' obviously because it can't handle the <? before the php include.

Is there a way in which you can insert plain text (ie an email address perhaps from a text file) into a PHP script?

How To Get Ip Stamp In A Feedback Form Sent Throught Email?
I hope this isn't double post since I already tried searching in the forums. I'm trying to get the ip address of the user who sends the feedback form and display it in the email for me to see. Could somebody please help me what codes to do this?

Sending Mail To Yahoo
I searched through PHP Freaks and could not find an answer to this. I know it has been asked numerous times, but I cannot find a solution... so here goes.

I can receive mail in my Gmail account but not in yahoo. I am using sendmail on my own server. I thought maybe I am getting thrown in the spam folder, but it is not showing up at all. Code:

Php Based Html Feedback Form Produces Blank Emails
I have a php script to handle feedback on a website that I've built for a colleague. The site was based on a template that uses a flash header and 'iframes'.

Unfortunately, when the visitor submits the form data, the email that is sent off does not collect any information from the form. I'll admit I'm quite new to php so this is foxing me. Extracts from the Contact page on the site are provided below plus the php file. Code:

Can We Display Text In Form Of Wave As Shown In Gmail Forgot Password
https://www.google.com/accounts/Ren...aForPasswdReset , here characters are shown in wave nature.

How To Know User Is Using Yahoo Beta Or Yahoo Original
Is there any way using PHP to find out whether a user ie. (email Id
eg: mycodetest@yahoo.com) is using Yahoo mail beta version or the
original one. Similarly for hotmail whether the user (email Id eg:
mycodetest@hotmail.com)is using hotmail live or original hotmail.

Mail Form Not Sending Mail - Server2003
I am trying to test a simple feedback form. I have php 5.0.3.3 on my dev
Windows server 2003. SMTP is working fine, as we all use it to send mail
from. PHP works fine as well, but I just cant get mail sent by php, although
no errors are reported.

Do I understand it correctly that this simple script should send me a mail?
This is just to test that it works.

<?php
mail('me@whatever.com', 'My Subject', 'message');
header( "Location: http://webserver/message_sent.htm" );
?>

Okay, the " Location: http://webserver/message_sent.htm" comes up fine, and
"<?php phpinfo() ?>" also works fine. SMTP allows relay from my subnet and
does not need authentication.

Where Is My Php.ini Coming From?
I was having a problem with session variables, and realized that I didn't have my php.ini file set up properly. So I went to fix it and discovered that php is not getting my php.ini from the default directory because my changes weren't shown when I restarted the web server and ran phpinfo().

I'm running apache 1.3.14 and php 4.0.4 on windows 98. The php.ini file that I'm altering is in c:windows Apparantly this is the default for the windows binary build, but when I change it and restart the web server, the changes don't take place. That's the only place I have php.ini, so where is php getting this info from and how can I change it?

Where Is // In Redirect Coming From?
I'm hoping someone out there has experienced this and can tell me right off
what is going on. I'm getting a double slash in my URL when I do a redirect
if my host is a 'web' host, but when my host is localhost (on my development
machine and not on the web) I get the desired single slash.

The redirect code is as follows:

header("Location: http://".$_SERVER['HTTP_HOST'].
dirname($_SERVER['PHP_SELF']).'/index.php');
exit;

Note that I tack on '/index.php' because in testing on my localhost I found
I needed the leading slash since dirname($_SERVER['PHP_SELF']) was not
returning a string ending in a slash (ie, no slash after the folder location
for the web project). So the leading slash HAS to be there for this code to
work on my localhost development machine. However, when uploaded to the
regular site, I find that the leading slash should not be there, as I wind
up redirecting to (for example):

Now, it happens that the double slash still works (it loads the page),
although it DOES effect how some of the code executes under a refresh
(selection of random backgrounds based on cookie settings when a page is
first reloaded - truly bizaar!).

Is there an easy way I can recode the redirect so it will work correctly on
both my localhost development machine and on the web?

Feedback On Some Work
It is my latest creation. I am not responsible for the design so dont worry
about that (font-sizes, colours, etc... unless you think it is terrible). I
am responsible for the technical side of things, the navigation, etc...

I am really trying to make it top class. If anyone is interested in how I
structured the PHP then let me know.

I basically have the following setup:
/
actual php files
config/
snippeter.php = creates actual html
configer.php = passwords, etc
functions/
sqler.php = all sql functions

All the data is stored in a MySql database so that content can be changed
online...

The actual files just look like this:

<?php

//setup
require_once("_startuper.php");

//get filename
$f = str_replace(".php", "", basename(__FILE__));

//create page
go($f);

?>

Any Feedback On PHP IDEs
I am considering getting Komodo PHP. I've written many thousands of lines of PHP using the old "blind man in a dark room" technique, and have gotten pretty good at it.

However, I'm pretty used to IDEs for C++, Pascal, etc.

Feedback Would Be Much Appreciated
I have just finished what I call Site Management System
v0.0.0.0.0.0.0.0.0.1 :D
I am not a professional programmer nor a really experienced one either
(I've been dabbling with stuff for the last 10 years), so I would like
you, the experts, to have a look at the code and provide me with your
feedback. I do not know if I implemented good security practices or not
and if I have made the functions efficient enough.

Basically what this is, is a system to easily update a website. It
stores everything in a database and makes it easy to to
add/update/remove links. I guess you can call it a CMS, but I do not
know if that would be an accurate description or not.

There are 2 bugs that I know of:
1. When editing existing links, some white spaces appear out of
nowhere. They are not in the database and when outside of the
administration area, look correct.
2. I have a function that reorders the pagid's when one of the middle
links is deleted, so that pageid's stay in sequence. It works
flawlessly, but the links are not displayed in sequence on the page.

To access the administration area, the username is administrator and
the password is administrator. I have made things very simple to make
the sure the basic functionality is working and that the initial design
is sound. Once that is established, I have many ideas of things to add.
This also means that the site looks really UGLY:) I will work on the
css tags and the css sheet after the backend is safe and sound. You can
access the site at http://linux-place.com, and can access all of the
project files at http://linux-place/sitefiles (all except for the
include file for the database password ;)

Windows EOL Characters Coming In
Have a form that reads a file and presents it for editing in a <TEXTAREA> window. Then saves the data using PHP fwrite. However, if somebody is using a Windows machine when using the form, the resulting file has ^M on the end of each line. Any ideas on how to solve this or get rid of these characters?

Blank Page Is Coming..
I have a problem installing php5 in windows xp. I am getting a blank
page while i process the file.
if i type localhost the iis page is loading. i created a virtual
directory 'php' if i type http://localhost/php means it is showing all
the files in the directory but if i click the file a blank page is
coming.

can anybody give me a solution to resolve this.

POST Variables Not Coming Through
For some reason, at random posts, the post variables don't get thru to
the server. For example, if there is are two text fields: name and
email... (I have register_globals on)... When I try to update the
database with a query and use $name, $email, the $name is missing or
the $email is missing. I am building an intranet application and all
the 20 or so clients run IE. This happens very rarely. Something like
once in 100 updates.

But I can see this in the log files as update contact set name="",
email="asda@pol.com" where contact_id=918. Notice the name field is
blank. I have JS checks in the client side which does not allow blank
name field..

Is this an IE random error? How do I get over this?

PHP Blocks And Inlines Weirdness
recently, a php5 server had pear installed (its the only thing im aware
of changing on it) and now opening php statements as so

<?
?>
doesn't work correctly and inlines such as
<?=?>

do not work correctly either. Everything has to be done as

<?php
?>

Is anyone familiar with this problem?

User Feedback In One Click
I have seen this on google and MSN. Google groups has star on which if
you click the topic becomes stared... MSN has 5 stars to get feedback
from user for giving rank to the pages. Sorry I don't remember on which
page they have this feature but I am very sure they have this.

I also require it for page rank, I was wondering how do they do it. I
am sure MSN is not storing the data on the clients machine.

I want if users click on 3rd stat then the 3 should go inside my mySql
DB and at the same time I don't want them to go to some other page or
open a pop up or something,

Executing Php Blocks In A String
From the examples I've seen, I don't think eval() works for this, or
if it does, I'm not sure how. Here's the setup. I'm storing web page
content in a database. 95% of the time, all the php takes outside of
the content area, setting up menus and footers, that sort of thing.
But some web pages have php code in the middle.

So I'll have a variable, $content, that looks like this:

$content = "<p>I'm content</p>

<?php print "hello world
"; ?>
<p>More content</p>";

How can I get php to execute the code inside the code blocks in the
variable?

Calculating CIDR Blocks
I have array of free IP addresses. One IP per line. Now I'm trying to
share them to CIDR blocks /24 - /32. For example: if 1.1.1.0-1.1.1.255
is free, it returns array('.1.1.0/24') but let's say that 1.1.1.1 is
used, then function should return array('.1.1.128/25',
'.1.1.127/26', '.1.1.32/27', etc until free block doesn't fit).

Here's my current code:

Php|arch Training Course - Any Feedback?
I've had a desire to learn PHP for some time now, but every PHP book I
end up buying just puts me to sleep by about chaper 3. So I've been
looking for some more hands-on PHP type learning courses, and I've
come across php|architect's Zend certificate training course.

They are endorsed directly by Zend as a training partner, and the
price is definitely attractive compared to some others I've seen.
Here's a direct link to their cirriculum
http://www.phparch.com/cert/training_curriculum.php

So I guess my questions on this would be:

1. Has anyone already taken this course, and can you provide any
feedback?
2. Having relatively no formal programming training, would I be
getting in over my head by taking this course?
3. After having completed this course, do you feel knowledgable enough
about PHP to pass the Zend certification?

PHPLib Template Blocks
I'm having loads of trouble getting blocks to work in the PHPLib Template class. Using the class itself is no problem, I can create a template and drop values into the placeholders successfully. The problem starts when I try to use a block for (in this case) an <OL>.

I've boiled down the code to the bare minimum and it still doesn't work. The code is a slight adaptation of code from a book and online tutorials. What happens is that it runs and doesn't generate an error, but it leaves "block_handle" in the place on the page where the block code that it should be substituted for would go. Code:

Phplib, Templates And Blocks
I want to use a block in a template but each time i try (using the example on devshed) it just prints 'ABLOCK' rather than the expected result i.e. the contents of an array. Code:

Dilema, Blocks Of HTML Within PHP
I need to be able to have a large block of HTML code inside a PHP
document, assign it a variable, and use other variables, functions, and
objects within the HTML code still.

Clarification:

I have the following code (as an example):

$variable = <<<HTML
<table>
<tr><td>$text</td></tr>
<tr><td>echo $config->getBlah()</td></tr>
</table>
HTML;

I need to be able to do that ^, that actual code wouldn't work, but it
is an example of what I need to do. I have tried searching for the <<<
operator, or whatever it is, the problem is most search utilities won't
recognize <<<, so it is really really hard to search and find answers
about it, I can't find anything about it on the php manual, I'm falling
onto a last resort by posting on some forums to see

So question being really:
Is there a way I can split that so it recognizes those lines as PHP and
not part of the block of HTML code
OR
Is there another method that I can use to achieve this same effect ?

I have to be able to keep the block of code together, not seperating
each line into a variable declaration. such as:
$var = "<tr><td>" . $text . "</td></tr>";
$var .= "<tr><td>" . echo $config->getBlah(); . "</td></tr>";
Do NOT want to do that.



Best Way To Exit Code Blocks
Here is a Query from a quer bloke:

(Visualising VB code structure in my head as I type this)

I want to create a code block, Sub, Function whatever you want to call it.

I want to exit that block but still permit the PHP script to run. (Example Ideal World: Use a whole bunch of Includes with the ability to use exit(); without stopping the main script.)

I'm after either a push in the right direction or a recomendation on a way to do this. At this stage all I can think of is to use continue; and place all my code in a loop which loops once.

Displaying A Pdf Coming Out Of A Mysql-db In A Frame
I have a mysql-database with some pdf in it.
I can send them to a webbrowser using this script:

<?php
//output.php4
$sql = "SELECT * FROM tbfiles WHERE tbfiles.ID={$id}";
$result = mysql_query($sql);
$dateien = mysql_fetch_object($result);
$daten = $dateien->Inhalt;
$name = $dateien->Dateiname;
$groesse = $dateien->Groesse;
$typ = $dateien->Typ;

header("Content-type: $typ");
header("Content-length: $groesse");
header("Content-Disposition: attachment; filename=$name");
echo $daten;
?>

My problem is that I get a download dialog where I want to save the pdf but
I want to open it in a fram or iframe like this:
<iframe src="./output.php4?id=129" width="100%" height="400"
name="outputbox">
where id=129 indicates my document.

I get the correct result in Internet Explorer (but not in Opera) if I change
the script like this:

header("Content-type: image/jpeg");
header("Content-Disposition: inline; filename=$name");

Does anybody know a solution for Opera? Then I could provide different
scripts depending on the browser.
Or even better a solution working in all browsers?

Longtime-exec Blocks Other Requests?
i have a question. My PHP script calls a passthru (zip that creates a biiig
archive). This command can take a lot of time, perhaps 20 seconds or so. Is
the complete PHP engine on this server blocked for this time? If other users
call this script (oder other scripts), do they have to wait 20 seconds?

Verifying A Link Is Coming From The Current Site
I need to be able to compare $_SERVER["HTTP_REFERER"]; to $_SERVER["HTTP_HOST"]; and make sure they are coming from the same place.

The problem is, I don't know how to use "mid" essentially in PHP.

The returned values are:

$_SERVER["HTTP_REFERER"];
- http://www.mydomain.com/this/that

$_SERVER["HTTP_HOST"];
www.mydomain.com

How would I do that?

What About Future Of RUBY In Coming Days In It Field
future of RUBY now am working in php my sql platform but now i got a
new job in RUBY on rail platform
i am not have an idea in RUBY , so i want to know about RUBY , can i
shift into this technology. what is the future of the ruby, now am in
chennai .

Stop Access Counter - Updated - Coming From Outside
I finaly managed to write the script which logs every user access on the site but now I can not stop it!

My counter is a part of my user record in mySQL 'users' table. The idea was to log the user coming from outside world and not his/her browsing the site, which is the case now. I tried the HTTP_REFERER but it is empty. So I tried a little cheating - on the transfer from the login screen I attached to FORM's ACTION string a little cheat in the form of "?referrer=index", which nicely passes this info for me. After checking password I update the counter and put $referrer = "" - which I expected would stop the intra-site updating. To my surprice it did not. It happily updates the counter every time the user hits this page, which could be 4-10 times at one visit.

A Few Questions About PHP Blocks In Relation To Search Function
i am developing a web based database using PHP and mySQL.

Want the search interface to display a message "No results found" if search
unsuccessful .

Here's how I was proposing to accomplish this.

Two PHP scripts

(A) A search interface mainly html with embedded PHP block that displays a
search form.
(B) An PHP script that is invoked

Inside the second script (B) I will test if no rows returned (no results
found). If this is the case I will invoke the search page (A) and pass a
parameter to the script. This will set a variable in the PHP block to echo
(display) "No results found" .

Receiving/parsing XML Blocks Generated As A Result Of GET
I have an application that generates an XML code block and submits it to an outside server for lookup. The outside server then returns me an XML block with results, which I need to parse and display. This is the problematic part of the parse script (it works fine when fed a static xml file): Code:

Apache Blocks When Blocked In Read_socket()-call
I might be wrong, but this is what it looks like:

 - I connect to the apache over a web-browser, and request a PHP script
 - The PHP script then connects over TCP to a daemon on the system, requesting data

 - The daemon does not answer with data immediately but the script has to wait instead

 - The script waits and waits, and I turn off the web-browser, thus (as I understand) killing the php-instance on the server

 - (The daemon is such that it doesn't close the runaway-sockets, i.e. when a client leaves it doesn't notice it and it doesn't close the corresponding sockets, so that might be an issue, but still.... keep reading)

 - I request another page from the Apache
 - It blocks forever.
 - I kill the daemon
 - The Apache immediately returns the page for the new request.

How do you explain this behaviour?

Making A 'Go Back' Link From An Errorous Feedback Page
I am working on a 'contact' page on my website. All the code is in contact.php When $name, $email and $message are uninitialised, the page loads with all the input fields.

If they are initialised, the page checks for errors. If there are no errors, a "success" message is displayed. If there are errors, the errors are displayed. In addition to displaying the errors, I'd like to have a link which goes back to the input fields (i.e. contact.php without $name, $email and $message initialised).

Making a link to contact.php does not work, as the variables are still initialised, I think, and therefore all the error messages are just displayed again. Hitting 'Back' in the browser works well - how do I make a link 'go back' though? (I think I saw some javascript 'go back' commands a few times before...)

Hitting 'Back' in the browser unfortunately resets/clears all the fields, if something was typed in. I'd like it if the fields would not be reset/cleared. Could I please get some advice on how I can solve this problem please? If I need to use cookies, sessions or something like that, then just let me know how I can make a 'go back' link - I don't know how to use cookies / sessions atm, and right now I don't feel like learning to use them.


Copyright © 2005-08 www.BigResource.com, All rights reserved