php-windows Digest 18 Dec 2002 07:44:33 -0000 Issue 1492

Topics (messages 17471 through 17478):

Re: PHP Web Mail
        17471 by: Sterling Anderson

Re: php Isapi for IIS 5.0
        17472 by: Christoph Grottolo

php_mcrypt.dll compatible with PHP 4.2.3 ??
        17473 by: Ignatius Reilly

Newbie Form Question
        17474 by: Jerry
        17476 by: Sterling Anderson
        17477 by: Joseph W. Goff

pdf_open_memory_image not supported?
        17475 by: Steve Wallon

Re: Cookies working on test but not my application
        17478 by: George Pitcher

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 ---
"PHP and MySQL Web Development" - best book ever. It actually has a
section for exactly what you are talking about.

-----Original Message-----
From: Raheel Hussain [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 17, 2002 12:41 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP Web Mail 



 


hi,
1 - where can i download the latest version of Apache Server for
installation on Windows 2000. 
I want to develop a webmail in PHP just like Yahoo, plz somebody guide
me where can I get help or some useful information about it , or if
somebody have some 
information etc.

regards,




---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


--- End Message ---
--- Begin Message ---
Hi

> When is Isapi for IIS 5.0 going to be considered production quality?
> Or is it already?  What issues has anyone run into?
> Charles Killmer

ISAPI has not been stable until now, however, in some environments it used
to work without major problems. There have been interferences with ASP
applications on the same server, shutdown and other problems abnormal
program termination, IIS suddenly stops responding etc.).

Some of the php developers have greatly improved IIS support for the
upcoming 4.3 release. I've been testing the actual release candates for PHP
4.3.0 (see http://qa.php.net) with success, i.e. I didn't get the mentioned
errors when stress testing my IIS apps.

If you need a IIS safe version, I think you should test with 4.3.0 and wait
until 4.3.1 for production quality. 4.3.0. has many other new features,
usually these are accompanied with as many new errors...

HTH

Christoph


--- End Message ---
--- Begin Message ---
Hello,

I am desperately seeking for a php_mcrypt.dll compatible with PHP 4.2.3.
I tried a copy downloaded from some obscure place, but it did not work.
Can anybody help me?

Thanks

Ignatius

"L'avantage d'être borgne, c'est qu'il faut deux fois moins de temps pour
s'habituer à l'obscurité"
____________________________________________

--- End Message ---
--- Begin Message ---
Hi All,

I was playing around creating a simple Form for testing simple subtraction.
Two variables with random numbers that are displayed and a text box for the
user to enter the answer.

random number - random number = "textbox here" "Submit Button Here"

I test to see if the answer the user typed in is correct and display the
correct answer.


The problem is I only want to use one page (self in the action of the form).
When you start the page in the browser the answer is already displayed. How
do show the answer after the Submit Button is clicked. If I was sending this
to a different php page for processing I wouldn't have a problem but I'm not
sure how to use self as the action of the form.


Thanks,

Jerry


--- End Message ---
--- Begin Message ---
Put a hidden field in your form:

<form action="thispage.php">

<input type="hidden" name="action" value="display">
......
</form>

Then at the top of you page put something like:

<?
If ($_REQUEST['action'] = "display")
        run code and display results
?>

So now the form will have to be submitted before the calculations are
done. Thought I am sure there are other ways.

_______________________________________________________________
Sterling Anderson
Systems Analyst              email: [EMAIL PROTECTED]
Heartland Business Systems
http://www.hbs.net      
 

-----Original Message-----
From: Jerry [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 17, 2002 1:58 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Newbie Form Question


Hi All,

I was playing around creating a simple Form for testing simple
subtraction. Two variables with random numbers that are displayed and a
text box for the user to enter the answer.

random number - random number = "textbox here" "Submit Button Here"

I test to see if the answer the user typed in is correct and display the
correct answer.


The problem is I only want to use one page (self in the action of the
form). When you start the page in the browser the answer is already
displayed. How do show the answer after the Submit Button is clicked. If
I was sending this to a different php page for processing I wouldn't
have a problem but I'm not sure how to use self as the action of the
form.


Thanks,

Jerry



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
Just follow something along these lines:

<?php
if ($_POST) {
    /*-- processing code goes here --*/
} else {
    /*-- display code goes here --*/
}
?>
----- Original Message -----
From: "Jerry" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 17, 2002 1:57 PM
Subject: [PHP-WIN] Newbie Form Question


> Hi All,
>
> I was playing around creating a simple Form for testing simple
subtraction.
> Two variables with random numbers that are displayed and a text box for
the
> user to enter the answer.
>
> random number - random number = "textbox here" "Submit Button Here"
>
> I test to see if the answer the user typed in is correct and display the
> correct answer.
>
>
> The problem is I only want to use one page (self in the action of the
form).
> When you start the page in the browser the answer is already displayed.
How
> do show the answer after the Submit Button is clicked. If I was sending
this
> to a different php page for processing I wouldn't have a problem but I'm
not
> sure how to use self as the action of the form.
>
>
> Thanks,
>
> Jerry
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Looking all over web for resolution..can't find...
getting "pdf_open_memory_image" not supported when I try to pass a GD image
to PDF.  PHP.net says available in 4.0 or better...

I am trying to pass a barcode image created in GD to a PDF file, but need to
create the barcodes dynamically for each label in the PDF, so I don't want
to use a .png, .jpg or other.

Using PHP 4.2.1 - Win2K, Apache 1.3.14, GD ver 1.6.2, PDFlib GmbH 4.0.2.

Am I missing something?  All .dlls are enabled and confirmed in phpinfo....

Any help would be appreciated...





--- End Message ---
--- Begin Message ---
Stephen,

Thanks for the feedback.

There was no sign of the cookies in the variable list that the phpinfo
provided.

This is the code I am using:

if (!isset($pid) || !isset($pwd)){
        header("Location: default.php");
}else{
        setcookie ("uid","$pid");
        $query = "select * ";
        .... etc

Now this doesn't dump me back into the default.php page so it is reading the
$pid. I have tried attaching an expiry  but it makes no difference.

I have created a simple test process which consists of 3 basic php pages.
The first contains a link which passes some 'GET' info to the next page. The
second page sets a cookie using the 'GET' info and the third page displays
the value of the cookie. I'm using PHP-4.0.6 an Register Globals is on so I
just do $cookiename to read the cookie.

Now the test process works fine. I've added the phpinfo(32) into page 3 and
sure enough the cookie comes up on the list of variables.

So why, oh why, isn't it working on my calendar site?

Hoping someone knows the answer.

Regards

George


> -----Original Message-----
> From: Stephen Edmonds [mailto:[EMAIL PROTECTED]]
> Sent: 17 December 2002 5:57 pm
> To: PHP Helplist Windows
> Cc: George Pitcher
> Subject: Re: [PHP-WIN] Cookies working on test but not my application
>
>
> Frames are not the issue here, any page in a frame still gets the cookie
> providing it is in a domain for which the cookie is set. I
> suggest making a
> page with the following
>
> <?
> phpinfo(32);
> ?>
>
> That will output ALL the variable data for your page. If your cookie has
> been sent back by the browser, then you should see it in that page. If you
> don't, that means that the cookie has not been sent back to the browser.
> This could be:
>
> 1) The cookie has expired. Check your temporary internet files for your
> cookie, see if it is still there
>
> 2) The cookie has not been set to send data to your folder in the domain.
> When calling set_cookie( ), it is generally best only to give the first 3
> arguments ( Variable Name, Variable Value, Expire time ).
>
> Good luck
>
> Stephen
>
> ----- Original Message -----
> From: "George Pitcher" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, December 17, 2002 4:29 PM
> Subject: [PHP-WIN] Cookies working on test but not my application
>
>
> > hi again,
> >
> > No response to my 2 earlier posts so here goes again.
> >
> > I have an authentication script which sets up a cookie, but it is not
> being
> > created.
> >
> > I have created some test pages on the same server (NT/IIS4) setting
> cookies
> > with variable values and they work fine. It's just that they
> won't work in
> > my Calendar site.
> >
> > Thinking it might be a 'frames' issue, I have put a test into
> the Frameset
> > holder to redirect if the cookie is not being read and sure enough it
> dumps
> > me out of the frameset.
> >
> > Does anyone have any suggestions?
> >
> > Please!
> >
> > MTIA
> >
> > George
> >
> >
> > ===
> >
> > George Pitcher
> > HERON Technical Manager
> > Ingenta plc
> > 23-38 Hythe Bridge Street, Oxford, OX1 2ET
> > T  +44 (0)1865 799137 direct
> > T  +44 (0)1865 799000 switchboard
> > F  +44 (0)1865 799134
> > E  [EMAIL PROTECTED]
> >
> > www.ingenta.com
> > Ingenta: Empowering the exchange of academic and professional content
> > online.
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>

--- End Message ---

Reply via email to