php-windows Digest 27 Jul 2001 14:52:53 -0000 Issue 671 Topics (messages 8527 through 8531): Changing Thread Priority w/Apache 8527 by: Scott Dial Re: fork?!?! 8528 by: Arkegide Index Server nd PHP 8529 by: Paul Refresh window with php script? 8530 by: Lukáš Noskievič e-mail confirmation #818719 8531 by: julie8719.freevibrator.com 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] ----------------------------------------------------------------------
I have a process intensive script that my friends use of my computer. The problem is that it eats my cycles and I want to make sure my threads get priority. I don't see any way to change this in apache. So, I decided to make a wrapper for php.exe that would spawn it and change the priority. Anyone have any ideas why apache throws me a Error 500 now. Here is my program: #include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { STARTUPINFO phpSI; PROCESS_INFORMATION phpPI; BOOL bResult; memset(&phpSI, 0, sizeof(STARTUPINFO)); phpSI.cb = sizeof(STARTUPINFO); phpSI.hStdInput = GetStdHandle(STD_INPUT_HANDLE); phpSI.hStdOutput = GetStdHandle(STD_OUTPUT_HANDLE); phpSI.hStdError = GetStdHandle(STD_ERROR_HANDLE); phpSI.dwFlags = STARTF_USESTDHANDLES; //Use the handles above bResult = CreateProcess( "php.exe", lpCmdLine, NULL, NULL, FALSE, IDLE_PRIORITY_CLASS, NULL, // Inherit this process's enviroment NULL, &phpSI, &phpPI); if(bResult) SetThreadPriority(phpPI.hThread, THREAD_PRIORITY_BELOW_NORMAL); //Set priority return bResult; } -- Scott "Wrath" Dial [EMAIL PROTECTED] ICQ#3608935 Member of TCPA - tcpa.calc.org PGP key available
Hello, I've the same problem. The php 4.0.6 version correct a problem with the exec (ie fork) function (I see that in the 4.0.6 bug correction). But when I install the 4.0.5 or 4.0.6 PHP version on windows NT they don't want to work well. And I must return to the 4.0.4 version to get something working well. Try to install the 4.0.6 version and tell my if it works ! Jeff "G Schneider" <[EMAIL PROTECTED]> a écrit dans le message news: [EMAIL PROTECTED] > > Hi all, > > I get this message when I try to delete a file using PHP: > > Warning: Unable to fork [del wmd_banner.png.temp.png] in > c:\webspace\openhosting4\GB*******\webmastersdog.com\www\testfile.php on > line 608 > > the code I'm using is the 'ole exec("del $file"); thingy you have to > use on Windows servers (rather than the usual PHP unlink() function which > only works on UNIX servers). > > So...... why am I getting this message? What setting is it that I need to > switch on (or whatever)? > > Thanks all, > Jefferrs > > > ++++++++++++++++++++++++++++++++++++++++ > http://www.webmastersdog.com > where website owners go. and talk about stuff. > ++++++++++++++++++++++++++++++++++++++++ > > > >
Has anyone got some working source for index server and PHP? I notice there has been previous discussion on doing this in this newsgroup, but no one appears to have been kind enough to post some sample source code. Paul
Hi, i need refresh window with some data from MySQL. I want to have window with result and form button "Refresh data". How can i do that? I'm able to reload my page, but i want to do that from the same page. Please help, thanks.
This is a confirmation e-mail for your request. You can come anytime and claim your FREE Sex Toys at http://www.freevibrator.com All Free Sex Toys we feature are absolutly free with no purchase necessary whatsoever. (Small reasonable shipping charges apply) Thank You for subscribing to FreeSexToys updates list. This Is OPT-IN list. To make sure that we won't send anything to you in ERROR - You HAVE TO CONFIRM that you would like to be added to our list. To confirm that you want to be added send e-mail to: [EMAIL PROTECTED] If you received this e-mail in error (my apologies) or do not wish to be added to our list DO NOTHING. You will NOT be added to our list without Your Confirmation. Freely Yours Julie Aston [EMAIL PROTECTED] message confirmation ID#65281871950071145641