php-windows Digest 26 Mar 2008 07:20:16 -0000 Issue 3445

Topics (messages 28836 through 28839):

Re: need help! plz
        28836 by: John Mertic
        28837 by: Jarrett Meyer

Issue with MSSQL and PHP under windows
        28838 by: Justin

Re: Configuring and send mails in winxp??
        28839 by: Bento Fernandes

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 ---
You could just do the header line in js as well, which would work. So change to:

mail( "m <[EMAIL PROTECTED]>[EMAIL PROTECTED]", "Feedbacks",$message,
"From: $email" );
echo "echo "<script language=javascript>alert('Your message was sent
successfully!'); document.location.href = 'http://www.blah blah.com';</script>";

John

On Mon, Mar 24, 2008 at 7:04 AM, Hooman Fatoorehchi
<[EMAIL PROTECTED]> wrote:
> dear all,
>
>  I want to make a form-to-email page and I want to diplay a messagebox after
>  the mail is send and then I want it to be redirected to another page. I used
>  JS for the msgbox but the header function wont work in this case. please
>  help me!
>
>  here is the code
>  ...
>  mail( "m <[EMAIL PROTECTED]>[EMAIL PROTECTED]", "Feedbacks",$message, "From:
>  $email" );
>  echo "<script language=javascript>alert('Your message was sent
>  successfully!');</script>";
>  header( 'Location: http://www.blah blah.com" ) ;
>  ?>
>
>
>  thank you
>  Hooman
>



-- 
John Mertic
[EMAIL PROTECTED]
http://jmertic.wordpress.com

"Explaining a joke is like dissecting a frog: you understand it
better, but the frog dies
in the process." --Mark Twain

--- End Message ---
--- Begin Message --- You can't call the header after you've sent output to the client (i.e. the 'echo' statement).

Redirect first, then check the mail state, stored as a session variable or something similar.

Hooman Fatoorehchi wrote:
dear all,

I want to make a form-to-email page and I want to diplay a messagebox after
the mail is send and then I want it to be redirected to another page. I used
JS for the msgbox but the header function wont work in this case. please
help me!

here is the code
...
mail( "m <[EMAIL PROTECTED]>[EMAIL PROTECTED]", "Feedbacks",$message, "From:
$email" );
echo "<script language=javascript>alert('Your message was sent
successfully!');</script>";
header( 'Location: http://www.blah blah.com" ) ;
?>


thank you
Hooman


--
Jarrett M. T. Meyer, M.B.A.
[EMAIL PROTECTED]
http://www.jarrettmeyer.com

--- End Message ---
--- Begin Message --- I've been trying to track down a gremlin within our servers for months now and can't seem to determine what I can do to resolve this issue. My existing setup is a MSSQL server running on Server 03 and it's a fairly beastly server. It's a 3.0ghz, dual processor, quad core server with 4 gigs of memory. Our web server is a bit more meager, a 3.4ghz dual processor, dual core xeon with 2 gigs of ram. I've been fighting with an issue which I had originally though was IIS where once we would get ~60 users on our system, PHP would lose its ability to connect to the MSSQL server and the only immediate way to resolve the issue was to restart IIS. The main users of the webserver is our call center, an average user loads a page once every 30-60 seconds. When I started working with the previous programmers code, I was able to reduce the frequency of this problem by optimizing some less efficient queries and writing some stored procedures. To ease the phone calls, I wrote a check where if the system is unable to connect, it would restart IIS. Over the past few months I've been rewriting our call center site under the Zend Framework and switched our server from IIS to Apache v2.2 and I'm receiving the same issues. During testing, when we had 30 users on Apache and 30 on IIS, IIS would still crash but Apache never had any issues. Once we moved the other 30 users to the new site, the errors are occurring again. I've already made sure I installed the ms sql client tooks on our webserver and have ntwdlib.dll in the system32 directory but I'm at a loss as to what the issue is.

Part of me wonders if it's an issue with PHP's MSSQL functionality or an API issue. I could take the time to convert our server and try using apache under Linux but I can't imagine I'm going to have a better experience with FreeTDS but at the same time I can't be the only person with this much traffic on a Windows / MSSQL setup. Has anyone had a similar issue? I'm pretty stumped at this point and would appreciate any suggestions / ideas. Thanks!

-Justin

--- End Message ---
--- Begin Message ---
You can use fake sendmail in windows

Bento Fernandes
http://www.goanwap.com

--- End Message ---

Reply via email to