php-windows Digest 9 Aug 2002 16:30:35 -0000 Issue 1281
Topics (messages 15187 through 15193): Re: Apache+ PHP + Netscape 7.0 15187 by: Rasmus Lerdorf 15192 by: Brian Huff 15193 by: dash php Java and PHP 15188 by: Opere, James 15189 by: Opere, James SOCKETS 15190 by: M. 15191 by: Svensson, B.A.T. (HKG) 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 ---Sounds like you don't have the PHP module loaded correctly. Telnet to port 80 and see if PHP is in the server header. On Thu, 8 Aug 2002, Andrew V. Romero wrote: > Yes, http://localhost/test/test.php. Netscape keeps thinking that I > want to download the php file. > > Rasmus Lerdorf wrote: > > You are going through http:// not file:// right? > > > > On Thu, 8 Aug 2002, Andrew V. Romero wrote: > > > > > >>I am currently running Apache 2.0.39 and PHP 4.2.2 (module version) > >>under Win XP Home for offline testing of scripts. I have found that if > >>I try to load any php pages in netscape 7.0 (preview release version 1), > >>it brings up a dialog box asking should it save the file or open it, > >>opening it brings up a list of programs and it wants me to pick one to > >>open the file with. > >> > >>I have found that if I change the http.conf line from AddType > >>application/x-httpd-php .php to AddType application/x-httpd-php .php4, > >>then netscape brings up the page, but it displays the PHP code instead > >>of parsing it and displaying it like it should. Everything appears to > >>work fine if I use internet explorer to open my local php pages. > >>Netscape opens php pages that are on the internet fine. There are > >>currently no applications that netscape is set to open php pages with. > >>This doesn't make sense to me, why would apache be serving the my local > >>php pages correctly to internet explorer but not serving them correctly > >>to netscape? > >> > >>Anyone have any ideas that I can try? > >> > >>-Andrew V. Romero > >> > >> > >>-- > >>PHP Windows Mailing List (http://www.php.net/) > >>To unsubscribe, visit: http://www.php.net/unsub.php > >> > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >--- End Message ---
--- Begin Message ---This may still be a netscape-ism... try using your DNS name instead of localhost... also, try this with JSP or Perl pages to see if its an Apache2-Netscape thing, or an Apache2-Netscape-PHP thing -- Brian 'Bex' Huff [EMAIL PROTECTED] Phone: 952-903-2023 Fax: 952-829-5424 > Yes, http://localhost/test/test.php. Netscape keeps thinking that I want to >download the php file.--- End Message ---
--- Begin Message ---Isn't there somewhere in Netscape 7.0 to change the "browser announce" version thing? (I use mozilla 1.0 and there's a way - it's a little deep). Doubt that will change anything, why would PHP magically not work if the browser = Netscape 7.0?!? Here's another thing to try. Do this: AddType application/x-httpd-php .htm .html then put some php code in one and see if those execute properly in Netscape. I'm not sure where this will take you... but it's a diagnostic step. -Dash (.php) -----Original Message----- From: Brian Huff [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 8:22 AM To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Apache+ PHP + Netscape 7.0 This may still be a netscape-ism... try using your DNS name instead of localhost... also, try this with JSP or Perl pages to see if its an Apache2-Netscape thing, or an Apache2-Netscape-PHP thing -- Brian 'Bex' Huff [EMAIL PROTECTED] Phone: 952-903-2023 Fax: 952-829-5424 > Yes, http://localhost/test/test.php. Netscape keeps thinking that I want to download the php file. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php--- End Message ---
--- Begin Message --- Title: Message--- End Message ---
Hi all,
I have installed the latest version of java which is j2sdk 1_4_1_0 instead of Jdk 1.1.8, PHP version 4.2.2. I tried configuring Java to work with PHP and it works once like a miracle and the next trial I still get an error below when trying to run a scrip for another time.
I really don't understand why it works once and then give the erorr on subsequent trials.
I also tried to call a java class from php but this one failed completely.
Would anybody have any idea on how i can solve the problem?
Fatal error: Unable to create Java Virtual Machine in c:\phpdev\www\java.php on line 2
The script is a sample script to test if php is working on well with java.
Does anyone have any idea as to why I can't run the script below?
<?php
$system = new java("java.lang.System");
print "Java version=".$system->getProperty("java.version")." <br>\n";
print "Java vendor=".$system->getProperty("java.vendor")." <p>\n\n";
print "OS=".$system->getProperty("os.name")." ".
$system->getProperty("os.version")." on ".
$system->getProperty("os.arch")." <br>\n";
$formatter = new Java("java.text.SimpleDateFormat","EEEE,
MMMM dd, yyyy 'at' h:mm:ss a zzzz");
print $formatter->format(new Java("java.util.Date"))."\n";
?>
I'm working on a windows XP.
J.Opere
--- Begin Message --- Title: Message--- End Message ---
Hi all,
I have installed the latest version of java which is j2sdk 1_4_1_0 instead of Jdk 1.1.8, PHP version 4.2.2. I tried configuring Java to work with PHP and it works once like a miracle and the next trial I still get an error below when trying to run a scrip for another time.
I really don't understand why it works once and then give the erorr on subsequent trials.
I also tried to call a java class from php but this one failed completely.
Would anybody have any idea on how i can solve the problem?
The first run I get the result below:
Java version=1.4.0_01
Java vendor=Sun Microsystems Inc.OS=Windows XP 5.1 on x86
Friday, August 09, 2002 at 11:54:43 AM GMT+03:00Subsequent runs I get error below:
Fatal error: Unable to create Java Virtual Machine in c:\phpdev\www\java.php on line 2
The script is a sample script to test if php is working on well with java.
Does anyone have any idea as to why I can't run the script below?
<?php
$system = new java("java.lang.System");
print "Java version=".$system->getProperty("java.version")." <br>\n";
print "Java vendor=".$system->getProperty("java.vendor")." <p>\n\n";
print "OS=".$system->getProperty("os.name")." ".
$system->getProperty("os.version")." on ".
$system->getProperty("os.arch")." <br>\n";
$formatter = new Java("java.text.SimpleDateFormat","EEEE,
MMMM dd, yyyy 'at' h:mm:ss a zzzz");
print $formatter->format(new Java("java.util.Date"))."\n";
?>
I'm working on a windows XP.
J.Opere
--- Begin Message ---How can i use sockets in Windows and IIS?? thank you--- End Message ---
--- Begin Message ---What do you want to do then? Btw: try this URL http://www.php.net/manual/en/ref.sockets.php for more information. > -----Original Message----- > From: M. [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 09, 2002 2:53 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] SOCKETS > > > How can i use sockets in Windows and IIS?? > thank you >--- End Message ---