php-windows Digest 20 Nov 2003 09:01:50 -0000 Issue 2008

Topics (messages 22139 through 22150):

Reading files from different user's
        22139 by: Gerardo Rojas
        22141 by: Dave Gardner
        22142 by: Gerardo Rojas

Re: loading php_gd2.dll
        22140 by: David Felton
        22148 by: DvDmanDT

Help with xslt on windows
        22143 by: Myles Parker
        22145 by: hubo
        22146 by: Myles Parker

Using PHP to reload a page w/variable.
        22144 by: Roderick Martin
        22147 by: Tao Z
        22149 by: Ignatius Reilly
        22150 by: Luis Moreira

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 ---
I am running IIS with PHP.  I want to be able to take a user's input (a file) and 
process it and write back generated files to the users' pc.  Currently the script 
works fine but only on the actual server.  Any help would be appreciated.

How do I open or pass a file from a user to the webserver?



--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
try using http file upload.  there is a lot on this in
the php manual.  then you can send the file back by
sending headers first and then sending the data (it
will prompt user with "save file as..." dialogue).



 --- Gerardo Rojas <[EMAIL PROTECTED]> wrote: >
I am running IIS with PHP.  I want to be able to
> take a user's input (a file) and process it and
> write back generated files to the users' pc. 
> Currently the script works fine but only on the
> actual server.  Any help would be appreciated.
> 
> How do I open or pass a file from a user to the
> webserver?
> 
> 
> 
> --
> Gerardo S. Rojas
> mailto: [EMAIL PROTECTED]
> 
>  

________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk

--- End Message ---
--- Begin Message ---
ok, thanks.  I'm uploading the file.  I check all variables in $_FILES[ ] and 
everything is alright, but the file does not appear in my upload dir = 

c:\program files\php\uploadtemp

what gives?


--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]


-----Original Message-----
From: Dave Gardner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 9:43 AM
To: Gerardo Rojas; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Reading files from different user's


try using http file upload.  there is a lot on this in
the php manual.  then you can send the file back by
sending headers first and then sending the data (it
will prompt user with "save file as..." dialogue).



 --- Gerardo Rojas <[EMAIL PROTECTED]> wrote: >
I am running IIS with PHP.  I want to be able to
> take a user's input (a file) and process it and
> write back generated files to the users' pc. 
> Currently the script works fine but only on the
> actual server.  Any help would be appreciated.
> 
> How do I open or pass a file from a user to the
> webserver?
> 
> 
> 
> --
> Gerardo S. Rojas
> mailto: [EMAIL PROTECTED]
> 
>  

________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk

--- End Message ---
--- Begin Message ---
try copying the dlls it needs to the winnt/system32 directory



-----Original Message-----
From: brent [mailto:[EMAIL PROTECTED]
Sent: 19 November 2003 1:41
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] loading php_gd2.dll


Hi. I'm having difficulty getting the php_gd2.dll to load.

Running W2K server, IIS 5.0, PHP 4.3.1. I've modified the php.ini file and 
set my extensions directory to C:\PHP and I've 
uncommented  extension=php_gd2.dll. When I do this, and attempt to load the 
php test page, my browser attempts to load the page forever, with no 
success. If I then comment it back out, the page loads, but of course 
without the dll. I've tried to uncomment and load a couple of other dlls, 
same result. And those I attempt to load are in the C:\PHP directory where 
I assume they should be. Anybody have any suggestions?

Thanks.

Brent


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


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
**********************************************************************

--- End Message ---
--- Begin Message ---
extension_dir (or is it path?) should be C:\PHP\extensions I think, unless
you did something wierd with it.. :s

-- 
// DvDmanDT
MSN: dvdmandt€hotmail.com
Mail: dvdmandt€telia.com
##########################
Please, if you are using windows, you may be infected by Swen. Please go
here to find out more:
http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen
http://securityresponse.symantec.com/avcenter/venc/data/[EMAIL PROTECTED]
##########################
"Brent" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Hi. I'm having difficulty getting the php_gd2.dll to load.
>
> Running W2K server, IIS 5.0, PHP 4.3.1. I've modified the php.ini file and
> set my extensions directory to C:\PHP and I've
> uncommented  extension=php_gd2.dll. When I do this, and attempt to load
the
> php test page, my browser attempts to load the page forever, with no
> success. If I then comment it back out, the page loads, but of course
> without the dll. I've tried to uncomment and load a couple of other dlls,
> same result. And those I attempt to load are in the C:\PHP directory where
> I assume they should be. Anybody have any suggestions?
>
> Thanks.
>
> Brent
>

--- End Message ---
--- Begin Message --- an someone help me out with xslt on windows?
I have copied the 3 dll's in to the c:\WINDOWS\SYSTEM32 directory
(sablot.dll, expat.dll, iconv.dll) I have a very simple php page..
<?php
$xh = xslt_create();
// Process the document, returning the result into the $sDXML variable
$sDXML = xslt_process($xh, 'TOC.xml', '/www/Common/TOC/TOC.xsl');



?>


I continue to get this error when I try and run..
Fatal error: Call to undefined function: xslt_create() in C:\www\PHP\toc.php on line 3


Thanks
Myles

--- End Message ---
--- Begin Message ---
Well, you must change your php.ini file to indicate that you do want to use
the module php_xslt.

"Myles Parker" <[EMAIL PROTECTED]> schrieb im
Newsbeitrag news:[EMAIL PROTECTED]
> an someone help me out with xslt on windows?
> I have copied the 3 dll's in to the c:\WINDOWS\SYSTEM32 directory
> (sablot.dll, expat.dll, iconv.dll) I have a very simple php page..
> <?php
>
>     $xh = xslt_create();
>     // Process the document, returning the result into the $sDXML variable
>     $sDXML = xslt_process($xh, 'TOC.xml', '/www/Common/TOC/TOC.xsl');
>
>
> ?>
>
> I continue to get this error when I try and run..
> Fatal error: Call to undefined function: xslt_create() in
> C:\www\PHP\toc.php on line 3
>
> Thanks
> Myles
>

--- End Message ---
--- Begin Message --- ah, thank you!

Hubo wrote:
Well, you must change your php.ini file to indicate that you do want to use
the module php_xslt.

"Myles Parker" <[EMAIL PROTECTED]> schrieb im
Newsbeitrag news:[EMAIL PROTECTED]

an someone help me out with xslt on windows?
I have copied the 3 dll's in to the c:\WINDOWS\SYSTEM32 directory
(sablot.dll, expat.dll, iconv.dll) I have a very simple php page..
<?php

   $xh = xslt_create();
   // Process the document, returning the result into the $sDXML variable
   $sDXML = xslt_process($xh, 'TOC.xml', '/www/Common/TOC/TOC.xsl');


?>


I continue to get this error when I try and run..
Fatal error: Call to undefined function: xslt_create() in
C:\www\PHP\toc.php on line 3

Thanks
Myles


--- End Message ---
--- Begin Message --- I'm finding it hard to believe this is as difficult as it appears, but everywhere I search indicates that what I want to do is not an easy task.

How do you code this?

You have a user signup page and the user fills it out, filling out two password fields to ensure they typed it in properly and hit Submit.

How in PHP do you evaluate the password strings (or other strings like checking email for a valid email address) and if something is wrong, reload the page.

In my case, I have one page that does multiple things and I pass variables to determine what parts of the page load, so ideally, I'd like to reload the page and pass a variable so I can reveal some text like "Please retype your password".

Is it really as difficult as some sites make it out to be? It seems to be a pretty common thing to do.

Thanks!
--- End Message ---
--- Begin Message --- You can use header() function to redirect

You can write a function as:

function Redirect($rPath)
{
header("Location: http://".$_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/" . $rPath);
exit;
}


$rPath is the relative path to the page that's calling the function.

say you are on "index.php" and want to go to index2.php in the same directory level, just do Redirect("index2.php");
you can add querystrings at the end:
Redirect("index2.php?err=pwd");


hope this helps.


Roderick Martin wrote:


I'm finding it hard to believe this is as difficult as it appears, but everywhere I search indicates that what I want to do is not an easy task.

How do you code this?

You have a user signup page and the user fills it out, filling out two password fields to ensure they typed it in properly and hit Submit.

How in PHP do you evaluate the password strings (or other strings like checking email for a valid email address) and if something is wrong, reload the page.

In my case, I have one page that does multiple things and I pass variables to determine what parts of the page load, so ideally, I'd like to reload the page and pass a variable so I can reveal some text like "Please retype your password".

Is it really as difficult as some sites make it out to be? It seems to be a pretty common thing to do.

Thanks!

--- End Message ---
--- Begin Message ---
Investigate the PEAR Quickform package.
http://pear.php.net/manual/en/package.html.html-quickform.php

_________________________
----- Original Message ----- 
From: "Roderick Martin" <[EMAIL PROTECTED]>
To: "'PHP Help Desk'" <[EMAIL PROTECTED]>
Sent: Wednesday, November 19, 2003 20:37
Subject: [PHP-WIN] Using PHP to reload a page w/variable.


> I'm finding it hard to believe this is as difficult as it appears, but 
> everywhere I search indicates that what I want to do is not an easy 
> task.
> 
> How do you code this?
> 
> You have a user signup page and the user fills it out, filling out two 
> password fields to ensure they typed it in properly and hit Submit.
> 
> How in PHP do you evaluate the password strings (or other strings like 
> checking email for a valid email address) and if something is wrong, 
> reload the page.
> 
> In my case, I have one page that does multiple things and I pass 
> variables to determine what parts of the page load, so ideally, I'd 
> like to reload the page and pass a variable so I can reveal some text 
> like "Please retype your password".
> 
> Is it really as difficult as some sites make it out to be? It seems to 
> be a pretty common thing to do.
> 
> Thanks!
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

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

    In PHP you evaluate a string with "string comparison" functions.
    It is viewed in asterisks, but passed quite normally.

    As for the rest, you start by checking a variable on your page, and if
it denotes an error on a password, echo your message and proceed to read it
again, and the same for other situations.
    Another way is to echo the error message on the script that gets the
error, and then recaling the first one.
    The recalling should me made by the header function, which implies a PHP
script that echoes anything until it reaches the "header" statement.

Luis

----- Original Message -----
From: "Roderick Martin" <[EMAIL PROTECTED]>
To: "'PHP Help Desk'" <[EMAIL PROTECTED]>
Sent: Wednesday, November 19, 2003 7:37 PM
Subject: [PHP-WIN] Using PHP to reload a page w/variable.


> I'm finding it hard to believe this is as difficult as it appears, but
> everywhere I search indicates that what I want to do is not an easy
> task.
>
> How do you code this?
>
> You have a user signup page and the user fills it out, filling out two
> password fields to ensure they typed it in properly and hit Submit.
>
> How in PHP do you evaluate the password strings (or other strings like
> checking email for a valid email address) and if something is wrong,
> reload the page.
>
> In my case, I have one page that does multiple things and I pass
> variables to determine what parts of the page load, so ideally, I'd
> like to reload the page and pass a variable so I can reveal some text
> like "Please retype your password".
>
> Is it really as difficult as some sites make it out to be? It seems to
> be a pretty common thing to do.
>
> Thanks!
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---

Reply via email to