php-windows Digest 3 Aug 2002 03:40:30 -0000 Issue 1271

Topics (messages 15081 through 15101):

Re: File uploading yet again
        15081 by: Mikey
        15084 by: Lorne T

Re: Hosting PHP on Windows
        15082 by: Mikey
        15095 by: leo g. divinagracia iii

Installation on Windows systems
        15083 by: linccg

SNMP MIB Question
        15085 by: Jim Bierlein

IIS Include Path Error
        15086 by: gil.hildebrandconsulting.com

Manual
        15087 by: alexmart.php
        15090 by: George Nicolae
        15091 by: George Nicolae

RE:[PHP-WIN] Manual
        15088 by: alexmart.php

php guestbook
        15089 by: Andreas Esser
        15093 by: Jason Soza

RE:Manual
        15092 by: alexmart.php

mkdir
        15094 by: Alexandr Polupanov

writing form data into text file
        15096 by: Andreas Esser
        15097 by: R'twick Niceorgaw
        15098 by: R'twick Niceorgaw
        15099 by: Andreas Esser
        15100 by: Andreas Esser

pass var from JS to php
        15101 by: Kit Kerbel

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 ---
After looking at your example, do you have register_globals set to 'On' in
your php.ini file?

If not that you will need to use the new superglobal arrays to access your
variable.  I am not sure how it would uploaded file, but it should be
something like $_POST['data_blob'].

HTH,

Mikey

> -----Original Message-----
> From: Lorne T [mailto:[EMAIL PROTECTED]]
> Sent: 01 August 2002 21:56
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] File uploading yet again
>
>
>   I still am in need of help with uploading a file using IIS and
> PHP 4.2.2.
> The problem seems to be that the variables holding the temp name and size
> never get correctly set from the file input control. I have the copy
> function working, but it can not find the temp file because php never
> reports a temp file name. What am I missing?
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>


--- End Message ---
--- Begin Message ---
Yes it is set to "on".
"Mikey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> After looking at your example, do you have register_globals set to 'On' in
> your php.ini file?
>
> If not that you will need to use the new superglobal arrays to access your
> variable.  I am not sure how it would uploaded file, but it should be
> something like $_POST['data_blob'].
>
> HTH,
>
> Mikey
>
> > -----Original Message-----
> > From: Lorne T [mailto:[EMAIL PROTECTED]]
> > Sent: 01 August 2002 21:56
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] File uploading yet again
> >
> >
> >   I still am in need of help with uploading a file using IIS and
> > PHP 4.2.2.
> > The problem seems to be that the variables holding the temp name and
size
> > never get correctly set from the file input control. I have the copy
> > function working, but it can not find the temp file because php never
> > reports a temp file name. What am I missing?
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> >
>
>


--- End Message ---
--- Begin Message ---
Run phpinfo(); on your server and who the webserver is being run as should
appear in your environment somewhere (don't recall the name).

HTH,

Mikey

> -----Original Message-----
> From: Matt Babineau [mailto:[EMAIL PROTECTED]]
> Sent: 02 August 2002 14:38
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Hosting PHP on Windows
>
>
> Here is an interesting question...
>
> Does the IUSR handle security when PHP is run? For instance:
>
> Lets say I host a web site, and the user creates a php that deletes some
> files out side of their web folder. Is their a way I can restrict access
> to their folder, on a case by case basis? I want to be able to host
> multiple users, but for them to not have the ability to change anyone
> elses stuff or anything on the system itself for that matter.
>
> Any ideas?
>
> Matt Babineau
> MCWD / CCFD
> -----------------------------------------
> e:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
> p: 603.943.4237
> w:  <http://www.criticalcode.com/> http://www.criticalcode.com
> PO BOX 601
> Manchester, NH 03105
>
>


--- End Message ---
--- Begin Message ---
format drive to NTFS if you havent yet and then turn on NTFS rights for each
directory.

check the rights for the IUSR_* account making sure that it only has read
only rights. for just about everywhere...

Matt Babineau wrote:

> Here is an interesting question...
>
> Does the IUSR handle security when PHP is run? For instance:
>
> Lets say I host a web site, and the user creates a php that deletes some
> files out side of their web folder. Is their a way I can restrict access
> to their folder, on a case by case basis? I want to be able to host
> multiple users, but for them to not have the ability to change anyone
> elses stuff or anything on the system itself for that matter.
>
> Any ideas?
>

--
Leo G. Divinagracia III
[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
How about adding the following lines in your httpd.conf:
loadfile "c:/php4/php4ts.dll"

It work correctly in WIN2000, do not need copy php4ts.dll to
%SYSTEM%.


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

I am working on a SNMP project and want to know if I can specify a MIB to
use when doing a SNMPWALK or GET.  The reason is that I use the PERF2MIB to
create localized MIBS for my 2000 servers and want to walk that MIB instead
of whatever PHP is selecting to walk.  BTW, what MIB is PHP using when doing
a SNMPWALK?

Any help would be appreciated.

-- Jim


--- End Message ---
--- Begin Message ---
Platform: Windows 2000 Advanced Server
PHP Version: 4.2.2
IIS Version: 5.0 (In ISAPI mode)

I just finished searching the archives, and while I found several people 
who were receiving similar if not identical errors, none of the solutions 
provided have worked for me.

I recently installed PHP on my Win2k server, and it seems that my PHP apps 
run flawlessly the first 2-3 times they're run after a system reboot. 
However, after that, I receive the following error when I try to run even 
the simplest of scripts:

Warning: Failed opening 'C:\Webs\ERS\test.php' for inclusion 
(include_path='.;c:\') in Unknown on line 0


test.php contains the following code:
<?php phpinfo(); ?>


As per other people's suggestions, I've tried the following values for the 
include_path directive in php.ini:
include_path="."
include_path=".\"
include_path=".;c:\"
include_path=".;c:\php4"

Keep in mind that PHP will run the first couple times it's called after a 
system reboot (I know my browser isn't caching - I ran a script that prints 
the current date and time). Also keep in mind that there are no include() 
commands in my PHP code, and that PHP gives no line number for the error 
(ruling out a possible bug in my code).

Has anyone encountered a similar issue that they were able to resolve?

Thanks in advance,
Gil

--- End Message ---
--- Begin Message ---
I have a very newbie problem: I downloaded the manual file from www.php.net
, and it has the extension .bz2.
I tried to remove the bz2 extension but the file is still not
readable. What should i do ?

--- End Message ---
--- Begin Message ---
go to http://sources.redhat.com/bzip2/ and download the version of bzip2 for
your OS.

--


Best regards,
George Nicolae
IT Manager
___________________
PaginiWeb.com  - Professional Web Design
www.PaginiWeb.com


"Alexmart.Php" <[EMAIL PROTECTED]> wrote in message
001301c23a65$fbf15400$744fe9d5@alexmart">news:001301c23a65$fbf15400$744fe9d5@alexmart...
> I have a very newbie problem: I downloaded the manual file from
www.php.net
> , and it has the extension .bz2.
> I tried to remove the bz2 extension but the file is still not
> readable. What should i do ?
>


--- End Message ---
--- Begin Message ---
take also a look at http://www.php.net/manual/en/faq.misc.php#faq.misc.bz2

--


Best regards,
George Nicolae
IT Manager
___________________
PaginiWeb.com  - Professional Web Design
www.PaginiWeb.com


"Alexmart.Php" <[EMAIL PROTECTED]> wrote in message
001301c23a65$fbf15400$744fe9d5@alexmart">news:001301c23a65$fbf15400$744fe9d5@alexmart...
> I have a very newbie problem: I downloaded the manual file from
www.php.net
> , and it has the extension .bz2.
> I tried to remove the bz2 extension but the file is still not
> readable. What should i do ?
>


--- End Message ---
--- Begin Message ---
    I tried that too before with winzip and it didnt work.

--- End Message ---
--- Begin Message ---
hello,

i want to include a php guestbook into my website... i´ve found a script
which should write all the variables (i.e. email, message...) the visitor
filled out into a textfile... but this don´t really work... it doesn´t write
anything in the textfile... but when i type something into the textfile by
myself, i can read it out...

can someone tell me what´s the problem and how can i resolve it???



i am using the following configuration:

apache webserver version 1.3.26 (windows)

php version 4.2.1

windows 2000 pro


thx for your help

andreas


--- End Message ---
--- Begin Message ---
I think the first things I would check, if your drives are NTFS, are 
the permissions on the text file. Is it writable by whatever user 
Apache is running as?

Jason Soza

----- Original Message -----
From: "Andreas Esser" <[EMAIL PROTECTED]>
Date: Friday, August 2, 2002 1:37 pm
Subject: [PHP-WIN] php guestbook

> hello,
> 
> i want to include a php guestbook into my website... i´ve found a 
> scriptwhich should write all the variables (i.e. email, 
> message...) the visitor
> filled out into a textfile... but this don´t really work... it 
> doesn´t write
> anything in the textfile... but when i type something into the 
> textfile by
> myself, i can read it out...
> 
> can someone tell me what´s the problem and how can i resolve it???
> 
> 
> 
> i am using the following configuration:
> 
> apache webserver version 1.3.26 (windows)
> 
> php version 4.2.1
> 
> windows 2000 pro
> 
> 
> thx for your help
> 
> andreas

--- End Message ---
--- Begin Message ---
A mers, multumesc George !
It worked, thanks a lot George !

--- End Message ---
--- Begin Message ---
I have noticed that on some servers with safe mode
enabled, you are able to create dir but not move a file or create a file
in it.

When the dir is created it is created with UID Apache and script UID can
not write to dir under safe mode.

Warning: SAFE MODE Restriction in effect. The script whose uid is 516 is
not allowed to access
/home/uploads/test4_1025938378 owned by uid 48
in /home/output.php on line 125



--- End Message ---
--- Begin Message ---
hello,

i want to write form data into a txt file by using the fwrite() function...
but i cant write the form data into the txt file, only strings that were
typed in by myself directly at the php script..

here´s the script that i am using:

<html>
<head>
<title>Sign</title>
</head>
<body bgcolor="#FFFFFF">

<form name =gb method=post action=zeigen.php>
Your Name: <input type=text name=name size=24><br>
<input type=submit>
</form>

<?php
$file = "guestbook.txt";
$fp = fopen("$file","a+");
fputs($fp, "$name");
fclose($fp);
?>

</body>
</html>


the function readfile() works perfectly, when i write something into the txt
file by myself...but when the form data should written into the txt file it
doesn´t work...

can someone tell me why???

i am using the following configuration:

apache webserver 1.3.26 (for windows)
php 4.2.1
windows 2000 (not with NTFS, just FAT)

thx for your help

andreas


--- End Message ---
--- Begin Message ---
Replace this line 

fputs($fp, "$name");

With

fputs($fp, $_POST["name"]);

Or, set register_globals On in your php.ini file.

R'twick

-----Original Message-----
From: Andreas Esser [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 02, 2002 9:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] writing form data into text file


hello,

i want to write form data into a txt file by using the fwrite()
function... but i cant write the form data into the txt file, only
strings that were typed in by myself directly at the php script..

here´s the script that i am using:

<html>
<head>
<title>Sign</title>
</head>
<body bgcolor="#FFFFFF">

<form name =gb method=post action=zeigen.php>
Your Name: <input type=text name=name size=24><br>
<input type=submit>
</form>

<?php
$file = "guestbook.txt";
$fp = fopen("$file","a+");
fputs($fp, "$name");
fclose($fp);
?>

</body>
</html>


the function readfile() works perfectly, when i write something into the
txt file by myself...but when the form data should written into the txt
file it doesn´t work...

can someone tell me why???

i am using the following configuration:

apache webserver 1.3.26 (for windows)
php 4.2.1
windows 2000 (not with NTFS, just FAT)

thx for your help

andreas



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




--- End Message ---
--- Begin Message ---
Replace this line 

fputs($fp, "$name");

With

fputs($fp, $_POST["name"]);

Or, set register_globals On in your php.ini file.

R'twick

-----Original Message-----
From: Andreas Esser [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 02, 2002 9:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] writing form data into text file


hello,

i want to write form data into a txt file by using the fwrite()
function... but i cant write the form data into the txt file, only
strings that were typed in by myself directly at the php script..

here´s the script that i am using:

<html>
<head>
<title>Sign</title>
</head>
<body bgcolor="#FFFFFF">

<form name =gb method=post action=zeigen.php>
Your Name: <input type=text name=name size=24><br>
<input type=submit>
</form>

<?php
$file = "guestbook.txt";
$fp = fopen("$file","a+");
fputs($fp, "$name");
fclose($fp);
?>

</body>
</html>


the function readfile() works perfectly, when i write something into the
txt file by myself...but when the form data should written into the txt
file it doesn´t work...

can someone tell me why???

i am using the following configuration:

apache webserver 1.3.26 (for windows)
php 4.2.1
windows 2000 (not with NTFS, just FAT)

thx for your help

andreas



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




--- End Message ---
--- Begin Message ---
hi,

i´ve already replaced the line and i´ve changed the register_globals, but it
still don´t work....

you have another idea?? or can you test the script on your computer???

thx

andreas


"R'Twick Niceorgaw" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
000301c23a8b$d423db20$8600a8c0@sunu">news:000301c23a8b$d423db20$8600a8c0@sunu...
Replace this line

fputs($fp, "$name");

With

fputs($fp, $_POST["name"]);

Or, set register_globals On in your php.ini file.

R'twick

-----Original Message-----
From: Andreas Esser [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 9:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] writing form data into text file


hello,

i want to write form data into a txt file by using the fwrite()
function... but i cant write the form data into the txt file, only
strings that were typed in by myself directly at the php script..

here´s the script that i am using:

<html>
<head>
<title>Sign</title>
</head>
<body bgcolor="#FFFFFF">

<form name =gb method=post action=zeigen.php>
Your Name: <input type=text name=name size=24><br>
<input type=submit>
</form>

<?php
$file = "guestbook.txt";
$fp = fopen("$file","a+");
fputs($fp, "$name");
fclose($fp);
?>

</body>
</html>


the function readfile() works perfectly, when i write something into the
txt file by myself...but when the form data should written into the txt
file it doesn´t work...

can someone tell me why???

i am using the following configuration:

apache webserver 1.3.26 (for windows)
php 4.2.1
windows 2000 (not with NTFS, just FAT)

thx for your help

andreas



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






--- End Message ---
--- Begin Message ---
hi,

i´ve already replaced the line and i´ve changed the register_globals, but it
still don´t work....

you have another idea?? or can you test the script on your computer???

thx

andreas


"R'Twick Niceorgaw" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
000301c23a8b$d423db20$8600a8c0@sunu">news:000301c23a8b$d423db20$8600a8c0@sunu...
Replace this line

fputs($fp, "$name");

With

fputs($fp, $_POST["name"]);

Or, set register_globals On in your php.ini file.

R'twick

-----Original Message-----
From: Andreas Esser [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 9:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] writing form data into text file


hello,

i want to write form data into a txt file by using the fwrite()
function... but i cant write the form data into the txt file, only
strings that were typed in by myself directly at the php script..

here´s the script that i am using:

<html>
<head>
<title>Sign</title>
</head>
<body bgcolor="#FFFFFF">

<form name =gb method=post action=zeigen.php>
Your Name: <input type=text name=name size=24><br>
<input type=submit>
</form>

<?php
$file = "guestbook.txt";
$fp = fopen("$file","a+");
fputs($fp, "$name");
fclose($fp);
?>

</body>
</html>


the function readfile() works perfectly, when i write something into the
txt file by myself...but when the form data should written into the txt
file it doesn´t work...

can someone tell me why???

i am using the following configuration:

apache webserver 1.3.26 (for windows)
php 4.2.1
windows 2000 (not with NTFS, just FAT)

thx for your help

andreas



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






--- End Message ---
--- Begin Message ---
With this statement:

<a href="#" 
onClick="MM_openBrWindow('print.php?page=member&id=140','','location=no,scrollbars=auto,width=550,height=500')"><img
 
src="images/printer_friendly.gif" alt="printer friendly page" 
border="0">>/a>

...I would like to do something like:

print.php?page=member&id=$LINKID   <----(where 140 is replaced with $linkid


Is there a way to do this?

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

--- End Message ---

Reply via email to