php-windows Digest 9 Aug 2001 01:02:40 -0000 Issue 692 Topics (messages 8709 through 8726): Re: installation on windows 8709 by: Arjen van Efferen Re: [PHP] installation on windows 8710 by: Phil Driscoll PHP installation with Windows 2000 Professional 8711 by: Benjamin Sims 8712 by: Andrian Pervazov 8713 by: Benjamin Sims 8714 by: Ryan Ware 8715 by: Benjamin Sims PHP erratic on Win2k Server 8716 by: Brian Reed 8718 by: Phil Driscoll Re: Problem with session data on PHP4/Win2k 8717 by: Antonio Romo help on cookies please 8719 by: dohman 8722 by: Jan Matejka 8726 by: dohman array() :: *gone* 8720 by: Erik Xstensen 8721 by: Erik Xstensen sending POST data with header()? 8723 by: Hugh Bothwell PDFlib on PHP4 8724 by: Adam Oliver 8725 by: Alain Samoun 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] ----------------------------------------------------------------------
You have to create a mapping between the PHP file extension and the PHP interpreter I don't know how to do that in PWS, sorry Good luck, Arjen -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: woensdag 8 augustus 2001 12:29 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP-WIN] installation on windows Dear Friends, I am new to PHP (but familiar with ASP,JSP) and would like to have some guidance notes from you. I am using windows 98 OS on my PC with PWS installed on it. I want to install PHP that runs on windows using PWS. For this I have done the following: 1. Downloaded php for windows from www.php.net , its is of about 738 bytes. 2. I extracted the same in c:\php folder. 3. shifted the php.ini in c:\windows folder. My queries are: 1. In which folder I have to place my php files? whether in c: \inetpub\wwwroot folder where other asp files I put. Because, when I put test.php file in c:\inetpub\wwwroot folder and called by using http://localhost/test.php , It showed a blank white sheet that is without interpreting php. 2. Whether I have omitted any step for installation? Pl. clarify. Ajay K. Ratra Ludhiana (INDIA) [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
On Wednesday 08 August 2001 11:29, [EMAIL PROTECTED] wrote: > > My queries are: > 1. In which folder I have to place my php files? whether in c: > \inetpub\wwwroot folder where other asp files I put. This is the correct place. > 2. Whether I have omitted any step for installation? If you used the installation wizard and told it you were using PWS, then you have not missed any steps. If you do a 'view source' on your blank page, do you see the php source code? If you cd to c:\php and type php.exe -i at the command line do you get a load of html on screen? Cheers -- Phil Driscoll
Could anyone please help me with this problem? I am trying to install PHP and MySQL on my machine so that I can teach myself the language. I followed the installation instructions for Windows 2000 using the automatic installer and everything seemed to go fine. Until I got to the setting up of PHP itself. The instructions say that I need to open the Internet Services Manager in order to configure IIS4 to run PHP scripts. However, this manager is not installed in Windows 2000 Pro. How can I convince my local server to load the CGI binary as default so that when I test PHP it runs as normal? Thanks in advance...
By default, Win 2000 Professional doesn't have IIS installed. You have to install Internet Services (it's on the Win 2000 CD) and then you'll have IIS where you can configure PHP. Andrian Benjamin Sims wrote: > > Could anyone please help me with this problem? I am trying to install > PHP and MySQL on my machine so that I can teach myself the language. I > followed the installation instructions for Windows 2000 using the > automatic installer and everything seemed to go fine. Until I got to the > setting up of PHP itself. The instructions say that I need to open the > Internet Services Manager in order to configure IIS4 to run PHP scripts. > However, this manager is not installed in Windows 2000 Pro. How can I > convince my local server to load the CGI binary as default so that when > I test PHP it runs as normal? > > Thanks in advance...
Thank you for your advice. I have successfully installed IIS from the Windows 2000 disk and can run it successfully so that other PCs on our network can see my home page. However, because I have Professional rather than normal I do not get the Internet Services Manager even with IIS installed in my Administrative Tools folder. I only have these icons: Component Services, Computer Management, Data Sources, Event Viewer, Local Security Policy, Performance, Personal Web Manager, Server Extensions, Services, Telnet Server Administration. I have looked at some Microsoft stuff which says that ISM is a snap-in for the MMC but I do not know where to get the snap-in itself. Is there another way to access the properties? ----- Original Message ----- From: "Robert Trembath" <[EMAIL PROTECTED]> To: "Benjamin Sims" <[EMAIL PROTECTED]> Sent: Wednesday, August 08, 2001 3:20 PM Subject: Re: [PHP-WIN] PHP installation with Windows 2000 Professional > If your running Windows 2000, your running IIS 5.0 and it is not installed > by default. You have to add it on as a windows componet. If you did this, > you will find the IIS admin tool under the Administrative Tools folder in > the control panel. Right click on the machine and set up the .php extension > to map to the php.exe file in the "WWW Master Properties". If you want to > use mail() functions or extensions, make sure that you edit the php.ini and > give your web server account permissions to read and write to the sessions > folders. > > Hope this helps, > Robert > > ----- Original Message ----- > From: "Benjamin Sims" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, August 08, 2001 7:43 AM > Subject: [PHP-WIN] PHP installation with Windows 2000 Professional > > > Could anyone please help me with this problem? I am trying to install PHP > and MySQL on my machine so that I can teach myself the language. I followed > the installation instructions for Windows 2000 using the automatic installer > and everything seemed to go fine. Until I got to the setting up of PHP > itself. The instructions say that I need to open the Internet Services > Manager in order to configure IIS4 to run PHP scripts. However, this manager > is not installed in Windows 2000 Pro. How can I convince my local server to > load the CGI binary as default so that when I test PHP it runs as normal? > > Thanks in advance... > > > > >
> I only have these icons: > > Component Services, Computer Management, Data Sources, Event Viewer, Local > Security Policy, Performance, Personal Web Manager, Server Extensions, > Services, Telnet Server Administration. > [Ryan Ware] I believe professional, being the workstation and not the server version of win2k doesn't come with full blown IIS. I think you use the Personal Web Manager.
I can bring up the Virtual Directories in Advanced in Personal Web Server but there is App Mappings Option. "Ryan Ware" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > I only have these icons: > > > > Component Services, Computer Management, Data Sources, Event Viewer, Local > > Security Policy, Performance, Personal Web Manager, Server Extensions, > > Services, Telnet Server Administration. > > > [Ryan Ware] I believe professional, being the workstation and not > the server version of win2k doesn't come with full blown IIS. I think you > use the Personal Web Manager. >
I am running Win2k server, IIS 5 and PHP 4.06. I can always load hello.htm and hello.asp from any location, but from some locations/ISP's I cannot load any php pages. Two things I think I may need to do: 1.) register a MIME type for php. I already have the web site configured to use .php files and execute c:\php\php.exe %s %s 2.) edit the script map key in the registry and put .php and path to the CGI exe Anyone else have any ideas why my site might not work. btw, try my site @ http://www.askthesmartass.com Thanks in advance, Brian
On Wednesday 08 August 2001 16:17, Brian Reed wrote: > I am running Win2k server, IIS 5 and PHP 4.06. I can always load hello.htm > and hello.asp from any location, but from some locations/ISP's I cannot > load any php pages. In what way dan't you load them? Do you get an error? Is the php script unparsed (i.e. visible when you view source)? Two things I think I may need to do: > > 1.) register a MIME type for php. No, you don't need to do that. > I already have the web site configured > to use .php files and execute c:\php\php.exe %s %s Ok (although you don't actually need the %s %s). > 2.) edit the script map key in the registry and put .php and path to the > CGI exe No - the registry is not involved for versions of IIS greater than 3. The IIS metabase stores all the stuff. The internet services manager (or whatever it's called on W2K) is where you manually configure things. You probably already went there to add teh script mapping for .php. > > Anyone else have any ideas why my site might not work. btw, try my site @ > http://www.askthesmartass.com Tried to access the site but was unable to make a ocnnection. Cheers -- Phil Driscoll
Hello, Scott, I'm having a similar problem. I have PHP 4.0.6, IIS 4, NT 4, and Service Pack 6a. My sessions were working just fine until I installed SP 6a plus security patches for the stupid Code Red. I'm sure it's permissions, but as you did, I checked and everything looks ok to me. IUSR_<server> has read and write access to "sessiondata" and still nothing. Please let me know if you solve this somehow. I'll keep looking and let you know if I find something that could help. Cheers, Tony Romo Guadalajara, Mexico [EMAIL PROTECTED]
I'm new to this whole PHP thing, but heres my problem using w2k, apache 1.3.? and php4 and IE5 basically whaat i want to know is how to accesss a cookie's value from localhost, that is both server and browser are on the same computer? I use setcookie("testcookie","test", time()+360) and the cookie is placed (it shows up in my temp inet files) but i can't retrieve the data. I should just be able to use '$testcookie' to get the value 'test' right? no value shows up. I don't get an 'undefined variable' error, its just an empty value. what am i doing wrong? thanks in advance! chris
have a look into your PHP.INI: ; - register_globals = Off ; Global variables are no longer registered for input data (POST, GET, cookies, ; environment and other server variables). Instead of using $foo, you must use ; $HTTP_POST_VARS["foo"], $HTTP_GET_VARS["foo"], $HTTP_COOKIE_VARS["foo"], ; $HTTP_ENV_VARS["foo"] or $HTTP_SERVER_VARS["foo"], depending on which kind ; of input source you're expecting 'foo' to come from. In order to find cookie in $testcookie, you must set register_globals = On otherwise you must use $HTTP_COOKIE_VARS["testcookie"] instead bye MaT > -----Original Message----- > From: dohman [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 08, 2001 7:39 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] help on cookies please > > > I'm new to this whole PHP thing, but heres my problem > > using w2k, apache 1.3.? and php4 and IE5 > > basically whaat i want to know is how to accesss a cookie's value from > localhost, that is both server and browser are on the same computer? > > I use setcookie("testcookie","test", time()+360) and the > cookie is placed > (it shows up in my temp inet files) but i can't retrieve the > data. I should > just be able to use '$testcookie' to get the value 'test' right? > > no value shows up. I don't get an 'undefined variable' > error, its just an > empty value. > > what am i doing wrong? thanks in advance! > > chris > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > >
thanks, both ideas worked :-) chris "Jan Matejka" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > have a look into your PHP.INI: > > ; - register_globals = Off > ; Global variables are no longer registered for input data (POST, GET, > cookies, > ; environment and other server variables). Instead of using $foo, you > must use > ; $HTTP_POST_VARS["foo"], $HTTP_GET_VARS["foo"], > $HTTP_COOKIE_VARS["foo"], > ; $HTTP_ENV_VARS["foo"] or $HTTP_SERVER_VARS["foo"], depending on which > kind > ; of input source you're expecting 'foo' to come from. > > In order to find cookie in $testcookie, you must set > register_globals = On > > otherwise you must use $HTTP_COOKIE_VARS["testcookie"] instead > > bye > MaT
I get this beautiful error message, "Call to undefined function: array() in c:\inetpub\wwwroot\admin.php " !!!! running PHP on Windows 2k IIS how can I fix it?
sorry.. my mistake.. ;-) there is no problem anymore.. "Erik Xstensen" <[EMAIL PROTECTED]> skrev i melding [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I get this beautiful error message, "Call to undefined function: array() in > c:\inetpub\wwwroot\admin.php " !!!! > > running PHP on Windows 2k IIS > > how can I fix it? > >
I can redirect a page like header("Location: newurl.htm"); but how can I extend this to pass POST variables along? (*NOT* GET vars, or cookies, or session vars, or include()ing the next file... I want to do it with POST vars. It's a long story.)
I'm getting this message <snip> Warning: Cannot add header information - headers already sent by (output started at c:\program files\apache group\apache\htdocs\test\pdftest.php:2) in c:\program files\apache group\apache\htdocs\test\pdftest.php on line 3 Warning: Cannot add header information - headers already sent by (output started at c:\program files\apache group\apache\htdocs\test\pdftest.php:2) in c:\program files\apache group\apache\htdocs\test\pdftest.php on line 26 </snip> with the following code. <snip> <?php $len = filesize($filename); header("Content-type: application/pdf"); header("Content-Length: $len"); header("Content-Disposition: inline; filename=foo.pdf"); readfile($filename); ?> </snip> The server is Apache for Win32. Any idea on how to fix it? Adam
Your very first line on your script should be the header: header("Content-Type: application/pdf"); You can also use ob_start(), but it seems to work only with Netscape for me(?) Alain On Wed, Aug 08, 2001 at 07:25:32PM -0400, Adam Oliver wrote: > I'm getting this message > <snip> > > Warning: Cannot add header information - headers already sent by (output > started at c:\program files\apache group\apache\htdocs\test\pdftest.php:2) > in c:\program files\apache group\apache\htdocs\test\pdftest.php on line 3 > > Warning: Cannot add header information - headers already sent by (output > started at c:\program files\apache group\apache\htdocs\test\pdftest.php:2) > in c:\program files\apache group\apache\htdocs\test\pdftest.php on line 26 > > </snip> > > with the following code. > > <snip> > <?php > $len = filesize($filename); > header("Content-type: application/pdf"); > header("Content-Length: $len"); > header("Content-Disposition: inline; filename=foo.pdf"); > readfile($filename); > ?> > </snip> > > The server is Apache for Win32. Any idea on how to fix it? > > Adam > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]