php-windows Digest 8 Nov 2005 20:52:22 -0000 Issue 2817

Topics (messages 26467 through 26471):

Multiple php.ini files with IIS5 under Win2000
        26467 by: Ben Lobo
        26468 by: Ben Lobo

Re: fwrite()
        26469 by: Rosty Kerei
        26471 by: JC Botha

Question--How to handle security issue when uploading file
        26470 by: Xiaozhi Liu

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 ---
Is there a way of getting php5 with IIS5 on Win2000 to use different
php.ini files for each site? I thought it was possible to just put a
version if php.ini into the root of the site and php would use that
version but this doesn't seem to work (I'm using php5isapi.dll).

The problem I'm trying to solve is that I've got a legacy site that
needs to have register_globals on but I don't want register_globals to
be on for the rest of the sites.

Ben

--- End Message ---
--- Begin Message ---
Is there a way of getting php5 with IIS5 on Win2000 to use different
php.ini files for each site? I thought it was possible to just put a
version if php.ini into the root of the site and php would use that
version but this doesn't seem to work (I'm using php5isapi.dll).

The problem I'm trying to solve is that I've got a legacy site that
needs to have register_globals on but I don't want register_globals to
be on for the rest of the sites.

Ben

--- End Message ---
--- Begin Message ---
Maybe you need to replace "\n" to "\r\n"? Like -

$_POST['textbox'] = str_replace("\n", "\r\n", $_POST['textbox']);

Sincerely,
Rosty Kerei
[EMAIL PROTECTED]


""JC Botha"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Dear Users, thanks for those that helped me last time! I got it working.
>
>
>
> At the moment I'm stuck with the fwrite() function. If I use the $_POST to
> get the data out of a textbox into a var, and write it to a txt file I get
> the following problem. The very first encounter it makes with a "\n" it
> stops the string. Thus I do not get more than one paragraph into my txt
> file. What should I do to bypass this?
>
>
>
> Thanks
>
> 

--- End Message ---
--- Begin Message ---
Dear Rosty

Thanks for your input, but it does not change the situation at all! :(
Please let me know if there is something else that you think about.

Greetings

JC

-----Original Message-----
From: Rosty Kerei [mailto:[EMAIL PROTECTED] 
Sent: 08 November 2005 01:32 PM
To: [email protected]
Subject: [PHP-WIN] Re: fwrite()

Maybe you need to replace "\n" to "\r\n"? Like -

$_POST['textbox'] = str_replace("\n", "\r\n", $_POST['textbox']);

Sincerely,
Rosty Kerei
[EMAIL PROTECTED]


""JC Botha"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Dear Users, thanks for those that helped me last time! I got it working.
>
>
>
> At the moment I'm stuck with the fwrite() function. If I use the $_POST to
> get the data out of a textbox into a var, and write it to a txt file I get
> the following problem. The very first encounter it makes with a "\n" it
> stops the string. Thus I do not get more than one paragraph into my txt
> file. What should I do to bypass this?
>
>
>
> Thanks
>
> 

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

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

I have a question on uploading file. My environment is Windows XP with SP2, 
IIS5.1, PHP5.0.4. I am trying to upload files. But there are always this 
error messamges:
Warning: move_uploaded_file(license.txt) [function.move-uploaded-file]: 
failed to open stream: Permission denied in 
C:\Inetpub\wwwroot\mainwebsite\upload.php on line 18
 And
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 
'c:\temp\php84.tmp' to 'license.txt' in 
C:\Inetpub\wwwroot\mainwebsite\upload.php on line 18

I also search website to seek answer, but seems doesn't work now.Please help 
me!!! Thanks a lot in advance.

Regards,
Joyce 

--- End Message ---

Reply via email to