php-windows Digest 19 Mar 2001 10:13:34 -0000 Issue 499 Topics (messages 6123 through 6132): Re: Problem with php4 and PWS 6123 by: MD fopen, popen, fputs???? 6124 by: Josh Seward Re: Using Java extension with IIS5 has problem 6125 by: Jason Gan Re: [PHP-GTK] fopen, popen, fputs???? 6126 by: Josh Seward 6127 by: Josh Seward Re: php&win98 6128 by: Ari Pramono (HRM-HO) Perl On Apache 6129 by: Ari Pramono (HRM-HO) 6130 by: OoCobra97.aol.com Re: Cookies In IE5.5 6131 by: Mangiola Nunzio Datavia save as _> unable to retrieve the file_name of the image 6132 by: Lars Eirik Rønning 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] ----------------------------------------------------------------------
Skip PWS and get the free Xitami Server from imatix.com. You may find another solution to your PWS problem, however in my experience PWS can introduce so many more problems down the line that for use in learning to develop in PHP on a win machine, just get xitami or apache (apache is a better server product as a whole, but I like running PHP as exe.) "John" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Dear all, > > I have downloaded php4_0_4-win32 and tried to install it according to > the instructions in install.txt, which is found in the folder README. > > After that, I tried to load a simple .php file with PWS but I get an > error message that says "One of the library files needed to run this > application cannot be found." > > Can someone help me. > > > Thank you. > > -- > 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] >
Is anyone able to open the command.exe from a php script then issuse it commands via the php script. I have tried using popen and fopen to open cmd.exe and that works, but I cannot seem to issue comamnds to an outside program!!!! HELP PLEASE!!! Thank you, Josh Seward [EMAIL PROTECTED]
Hi, Can you report the following bug to www.php.net I think there is a problem with php reading the ini setting for php_java On my system it always appends a . in front of the path, which screws up the loading of the php_java.dll The only way to solve it is not to put any pathing information with the filename, eg. extension = php_java.dll -----Original Message----- From: Kick [mailto:[EMAIL PROTECTED]] Sent: Monday, 19 March 2001 1:05 AM To: [EMAIL PROTECTED] Subject: Using Java extension with IIS5 has problem I install php4.04pl on Windows2000. My php.ini configured as below: extension_dir = c:\php4.04\extensions extension=php_java.dll [Java] java.class.path = "C:\php4.04\extensions\php_java.jar;C:\jdk1.3\jre\lib\rt.jar" java.home = c:\jdk1.3 java.library = C:\jdk1.3\jre\bin\hotspot\jvm.dll java.library.path = "C:\php4.04\extensions\" When I run following file: <? $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"; ?> I got error mesg: Fatal error: Unable to load Java Library jvm.dll, error: can't find app need with to run this program in E:\WebSites\test\java.php on line 2 What can I do? Any help is welcome! Eric
I have managed to open the program I want to in the background. My php script opens the outside windows app. Then my prog. will continue to run. The only thing I need to do is send command (say: dir /p in the cmd.exe under windows 2000) so that it runs in the program I initially open in the background. My prog. I am writing actually opens a game server and I want to send commands to it at different times when needed. As of now the game server does open in the background but I can not issue it commands! Sorry if all my e-mails are getting annoying. I just have been stuck in this spot for a while:-) Thanks for all the help I have recieved so far though. It has helped GREATLY! ----- Original Message ----- From: "Steph" <[EMAIL PROTECTED]> To: "Josh Seward" <[EMAIL PROTECTED]> Sent: Sunday, March 18, 2001 6:31 PM Subject: Re: [PHP-GTK] fopen, popen, fputs???? ps What *kind* of commands? What kind of app? - I've tested writing to Windows apps, most of them seem to work ok. - tell ppl what you're doing, there may be a workaround. I just went thru this forking biz with a fine-toothed comb, looks like it's only going to work when the initial process is recognised as a parent, ie within PHP-GTK. ----- Original Message ----- From: "Steph" <[EMAIL PROTECTED]> To: "Josh Seward" <[EMAIL PROTECTED]> Sent: Sunday, March 18, 2001 10:55 PM Subject: Re: [PHP-GTK] fopen, popen, fputs???? Josh, we've a Windows issue extant .... All the clever ppl in Boston etc aware ... Have you managed to open a Windows exe while running a php script in the background, is the big question?! Fwding something someone sent me on forking but am not at all certain I understand it; maybe you will. Cheers anon, Steph ----- Original Message ----- From: "Josh Seward" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "php-gtk" <[EMAIL PROTECTED]> Sent: Sunday, March 18, 2001 10:38 PM Subject: [PHP-GTK] fopen, popen, fputs???? Is anyone able to open the command.exe from a php script then issuse it commands via the php script. I have tried using popen and fopen to open cmd.exe and that works, but I cannot seem to issue comamnds to an outside program!!!! HELP PLEASE!!! Thank you, Josh Seward [EMAIL PROTECTED]
You have to have the game server to run this program!!!! Here is my script: --------------------------------BEGIN_SCRIPT--------------------------- set_time_limit(0); print "The Server is opening...\n"; $command = "C:\Sierra\Half-Life\hlds.exe -game cstrike -heapsize 128000 +exec server.cfg +port 27015 +maxplayers 12 +map de_dust"; chdir ('c:\\SIERRA\\Half-Life') or die (print "Unable to change directory!\n"); $result = popen($command." & 1> output.txt 2>&1; print output.txt; &", 'w'); fputs ($result, "map de_dust"); if ($result){ print "The Server is open!\n"; } else { print "The Server is not open!\n"; } ----------------------------END SCRIPT-------------------------------- This is the part that people think windows does mot support but its the only way to get the program to run in the bg. Windows does support the & and the 2>&1. If you have another way to do this or it works without it then please tell, my ears are open, at least my eyes are :-) $result = popen($command." & 1> output.txt 2>&1; print output.txt; &", 'w'); Thats it! Thanks again, Josh Seward [EMAIL PROTECTED] ----- Original Message ----- From: "Steph" <[EMAIL PROTECTED]> To: "Josh Seward" <[EMAIL PROTECTED]> Sent: Sunday, March 18, 2001 8:37 PM Subject: Re: [PHP-GTK] fopen, popen, fputs???? Josh, I've a feeling that when you open your program then php dies. Can I see, please? ----- Original Message ----- From: "Josh Seward" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "php-gtk" <[EMAIL PROTECTED]>; "Steph" <[EMAIL PROTECTED]> Sent: Sunday, March 18, 2001 11:57 PM Subject: Re: [PHP-GTK] fopen, popen, fputs???? I have managed to open the program I want to in the background. My php script opens the outside windows app. Then my prog. will continue to run. The only thing I need to do is send command (say: dir /p in the cmd.exe under windows 2000) so that it runs in the program I initially open in the background. My prog. I am writing actually opens a game server and I want to send commands to it at different times when needed. As of now the game server does open in the background but I can not issue it commands! Sorry if all my e-mails are getting annoying. I just have been stuck in this spot for a while:-) Thanks for all the help I have recieved so far though. It has helped GREATLY! ----- Original Message ----- From: "Steph" <[EMAIL PROTECTED]> To: "Josh Seward" <[EMAIL PROTECTED]> Sent: Sunday, March 18, 2001 6:31 PM Subject: Re: [PHP-GTK] fopen, popen, fputs???? ps What *kind* of commands? What kind of app? - I've tested writing to Windows apps, most of them seem to work ok. - tell ppl what you're doing, there may be a workaround. I just went thru this forking biz with a fine-toothed comb, looks like it's only going to work when the initial process is recognised as a parent, ie within PHP-GTK. ----- Original Message ----- From: "Steph" <[EMAIL PROTECTED]> To: "Josh Seward" <[EMAIL PROTECTED]> Sent: Sunday, March 18, 2001 10:55 PM Subject: Re: [PHP-GTK] fopen, popen, fputs???? Josh, we've a Windows issue extant .... All the clever ppl in Boston etc aware ... Have you managed to open a Windows exe while running a php script in the background, is the big question?! Fwding something someone sent me on forking but am not at all certain I understand it; maybe you will. Cheers anon, Steph ----- Original Message ----- From: "Josh Seward" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "php-gtk" <[EMAIL PROTECTED]> Sent: Sunday, March 18, 2001 10:38 PM Subject: [PHP-GTK] fopen, popen, fputs???? Is anyone able to open the command.exe from a php script then issuse it commands via the php script. I have tried using popen and fopen to open cmd.exe and that works, but I cannot seem to issue comamnds to an outside program!!!! HELP PLEASE!!! Thank you, Josh Seward [EMAIL PROTECTED]
I have no problem with my apache and my php I added these lines to httpd.conf : LoadModule php4_module c:/php/sapi/php4apache.dll AddType application/x-httpd-php .php .phtml And I copied php.ini file in the Apache install directory Trims Ary [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -----Original Message----- From: Aleksey Filimonov [SMTP:[EMAIL PROTECTED]] Sent: Sunday, March 18, 2001 2:53 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] php&win98 Well.... in version apache-1.3.19 this bug presence too.... "Tom Mathews" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Yep - Apache bug - upgrade it! > > Aleksey Filimonov wrote: > > > Hi all, > > > > I have some problems installing php-4.0.4pl1 on apache-1.3.14 on win98... > > The apache server is running fine before adding this line in httpd.conf: > > LoadModule php4_module c:/php/sapi/php4apache.dll > > After adding module apache crash with alert: > > This program has performed an illegal operation and will be shut down. > > details: > > APACHE caused an invalid page fault in > > module MSVCRT.DLL at 0177:7800d269. etc. > > > > Any ideas???? > > > > Aleks Filimonov > > ([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]
I'm sorry, I know my question is stupid and OOT But anybody know how to setup perl on Apache on WinNT? Or just give me some links that I can read Trims Ary [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Here is a link for you, Its called Activestate perl. The perl language for windows. I have it setup on my machine and it runs great. Hope this helps! ~Jeff The Link: <A HREF="http://www.activestate.com/">ActiveState</A> or for those without html: http://www.activestate.com/
I use this example to set cookies and it works fine on my side with IE5: <?php if($Firstname and $password) {#1 mysql_connect("localhost"); $query = "select * from authenticate where Firstname = '$Firstname' and password = '$password'"; $result = mysql_db_query("users", $query); $value_row = mysql_num_rows($result); if($value_row == 0) {#2 echo"<B>Sorry</B>, unable to login <a href=\"login.html\">click here </a>try again"; exit; } else { $uniqueid = md5 (uniqid (rand())); $cookiestring = $Firstname.'&'.$uniqueid; setcookie("Authenticate", $cookiestring, time()+3600); $insert = "update authenticate set uniqueid='$uniqueid' where Firstname= '$Firstname' and password= '$password'"; $result = mysql_db_query("users", $insert); echo mysql_error(); echo"You are done boy<B><a href=\"inside.php\"> click here</a></B> to check it out"; } } else { echo"Please enter all the fields"; } ?> Hope this helps. > ---------- > From: Ben Cairns[SMTP:[EMAIL PROTECTED]] > Sent: Sunday, March 18, 2001 1:45 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Cookies In IE5.5 > > How do I set a cookie in IE5, > > I cant do it, it just wont let me...I have looked at php.net and have > tried > the examples there, but they don't seem to work! > > HELP, Please!!!! > > -- Ben Cairns > E-Mail: [EMAIL PROTECTED] > Just Because It Works, Doesn't Mean It Isn't Broken > > > -- > 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] >
Hi there. I wonder if anyone know why i cannot retrieve the file name of an image file when i get the image from a datbase. I have an image stored in the database(mysql) and i also store its filename when uploaded. However when i ouput the file on the website and somone wants to save this image --- It says filename: outputting the .php file name as the name for all the pictures. I hope you understand me . Eg. When i click on save image as ---> The file seems to be given a default name of "whatever the outputted .php file is called " eg. onearticle.php becomes onearticle Lars Eirik