php-windows Digest 6 Jul 2001 16:17:06 -0000 Issue 639 Topics (messages 8139 through 8151): Re: Newbie:Backend scripts 8139 by: DoStuff Postmaster 8148 by: Mike Kelley 8149 by: Andrian Pervazov Re: Is this possible? 8140 by: Michel Laine Re: php with .html extension in iis5 8141 by: Michel Laine 8150 by: Hugh Bothwell Re: Need help with Cookies 8142 by: Johan Re: Problems installing PHP4.0.6 to work with Apache 1.3.20 for Win 2000 8143 by: Michel Laine 8144 by: Matt Williams Monitor file downloading 8145 by: le_pit_est_un.nomade.fr Re: Spell checking w. PHP in Windows 8146 by: Christian Sandfeld 8151 by: John Catron Is PHP 4.0.6 manual.chm ? 8147 by: Igor 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] ----------------------------------------------------------------------
Yes, on a Unix machine you can run a cron job (not sure how to do that since I don't use Unix, maybe someone can fill him in) or on windows 2000 you can insert a new task into the scheduler and just have it link to Internet Explorer and then the web page like this: C:\Program Files\Internet Explorer\iexplore.exe http://www.yoursite.com/script.php Ruslan Ohitin wrote: >Hi, > >Try to use a scheduler to run command > php.exe -q x:\path\to\your\script.php >every 2 hours. (-q - do not output HTTP headers) > > >P> Hi, > >P> I am using php4 with mssql backend loaded on windows 2000. > >P> Here is my problem: > >P> I want to update my database contents every 2 hours with some sql >P> statements. >P> Is there anyway I can write scripts in php and run them every 2 hours? >P> Anyother solutions are most welcome. > >P> Thank You, >P> Sagil. > -- DoStuff Online Classrooms http://www.dostuff.net
Another option is the "at" command I don't remember the syntax but from a command window just type in at help or at /? or at ? One of those should get you the help listing which will tell you the syntax, on windows the "at command" is the same thing as Cron in Unix DoStuff Postmaster wrote: > Yes, on a Unix machine you can run a cron job (not sure how to do that > since I don't use Unix, maybe someone can fill him in) or on windows > 2000 you can insert a new task into the scheduler and just have it > link to Internet Explorer and then the web page like this: > C:\Program Files\Internet Explorer\iexplore.exe > http://www.yoursite.com/script.php > > Ruslan Ohitin wrote: > >> Hi, >> >> Try to use a scheduler to run command >> php.exe -q x:\path\to\your\script.php >> every 2 hours. (-q - do not output HTTP headers) >> >> >> P> Hi, >> >> P> I am using php4 with mssql backend loaded on windows 2000. >> >> P> Here is my problem: >> >> P> I want to update my database contents every 2 hours with some sql >> P> statements. >> P> Is there anyway I can write scripts in php and run them every 2 >> hours? >> P> Anyother solutions are most welcome. >> >> P> Thank You, >> P> Sagil. >> > -- "There is a principle which is a bar against all information, which is proof against all arguments and which cannot fail to keep a man in everlasting ignorance - that principle is contempt prior to investigation." - Herbert Spencer Michael Kelley [EMAIL PROTECTED] Programmer/Systems Analyst I New Mexico State University Information and Communication Technologies Work # (505)-646-1374 P.O. Box 30001 MSC: 3AT Las Cruces, NM 88003
You can also schedule a job in SQL Server itself and run it every 2 hours or as needed Andrian Mike Kelley wrote: > > Another option is the "at" command > > I don't remember the syntax but from a command window just type in > at help > or > at /? > or > at ? > One of those should get you the help listing which will tell you the > syntax, on windows the "at command" is the same thing as Cron in Unix > > DoStuff Postmaster wrote: > > > Yes, on a Unix machine you can run a cron job (not sure how to do that > > since I don't use Unix, maybe someone can fill him in) or on windows > > 2000 you can insert a new task into the scheduler and just have it > > link to Internet Explorer and then the web page like this: > > C:\Program Files\Internet Explorer\iexplore.exe > > http://www.yoursite.com/script.php > > > > Ruslan Ohitin wrote: > > > >> Hi, > >> > >> Try to use a scheduler to run command > >> php.exe -q x:\path\to\your\script.php > >> every 2 hours. (-q - do not output HTTP headers) > >> > >> > >> P> Hi, > >> > >> P> I am using php4 with mssql backend loaded on windows 2000. > >> > >> P> Here is my problem: > >> > >> P> I want to update my database contents every 2 hours with some sql > >> P> statements. > >> P> Is there anyway I can write scripts in php and run them every 2 > >> hours? > >> P> Anyother solutions are most welcome. > >> > >> P> Thank You, > >> P> Sagil. > >> > > > > -- > "There is a principle which is a bar against all information, which is proof against >all arguments and which cannot fail to keep a man in everlasting ignorance - that >principle is contempt prior to investigation." - Herbert Spencer > > Michael Kelley > [EMAIL PROTECTED] > Programmer/Systems Analyst I > New Mexico State University > Information and Communication Technologies > Work # (505)-646-1374 > P.O. Box 30001 > MSC: 3AT > Las Cruces, NM 88003 > > -- > 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]
Problem 1: Solved! Problem 2: Two good suggestions. If you find yet more stuff - send it. I am still interested in codesnippets / tutorials. Thanks all who responded! Michel Laine wrote: > Using PHP 404pl1 / MySQL 3.23.35 / PWS / W98SE if anybody should need to > know... > The stuff is for an intranet application. > > 1: To execute php code when a A HREF link is clicked. > > I have the need to change a session variable depending on which link (of > a couple) that is clicked. The link is supposed to call $PHP_SELF which > then change its output depending on the value of the session variable. > I know that i can solve it by letting the link call different php > scripts - which update the session variable and then call back to the > first page. > If there is another way ( javascript maybe?), i am interested to know > about it. > > 2: To have one undo step on a database update. > > Do anybody know / seen any example / tutorial on how this kind of > function can be implemented? > Let me know! > I have read most of the stuff at Newbie network, PHPdeveloper, > PHPeverywhere, Zend, Devshed, Webmonkey and PHPbuilder - but i have > never come across anything like this. -- Michel Laine
I don't know about the rest of the people in here, but i could need some more information. ..."migrating from a unix server" - To what? M$ or linux? If you use the ISAPI extension i suppose this is a M$ system (Windows 2000, 98, 95), correct? Secondly, by default i think that php only parses pages that have the extension .php even thou they may contain HTML, PHP or a combination of both. How did you do when you installed PHP? If you followed some guide / tutorial - could you give a link to it? ..."but a view source shows ascii gibberish" - Might be interesting to see a bit ot that output. It could give some clues. I have *no* experience on using the PHP ISAPI (running CGI myself) so i am afraid i can't help you with any installation tips. Are the files that work / don't work: Located in different directorys? Do they have different extensions? Do they contain the same <?PHP ?> start and end tags? abe wong wrote: > i tried to make .html files run php with limited success (i have to...i'm > migrating from a unix server with a ton of .html php files)... i set the > isapi application mapping (i'm running php as an isapi extension), and yet > i'm getting totally inconsistent results... sometimes, on rare occasion, it > works. most other times, the screen's blank, but a view source shows ascii > gibberish. the rest of the time, php doesn't work and the files are shown > without any processing. > > help would be greatly appreciated. > > thanks. > > -abe wong -- Michel Laine
In your server config file, edit AddType application/x-httpd-php .php3 .php .php4 .htm .html and remove any other MIME mappings for .htm or .html. Voila - you just told your server that all .html files should be processed as PHP. If you have some .html files that don't need preprocessing, I've heard of people running two servers on different ports - Apache for all the files that need processing and something small and fast like OmniHttpd to serve static files and images. Can anyone give advice about this? "abe wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > i tried to make .html files run php with limited success (i have to...i'm > migrating from a unix server with a ton of .html php files)... i set the > isapi application mapping (i'm running php as an isapi extension), and yet > i'm getting totally inconsistent results... sometimes, on rare occasion, it > works. most other times, the screen's blank, but a view source shows ascii > gibberish. the rest of the time, php doesn't work and the files are shown > without any processing. > > > > help would be greatly appreciated. > > thanks. > > -abe wong > >
Hi Have you tested it on more than one client/browser? I dunno if it helps, but I've read there's a bug in IIS and cookies (I'm not all that into IIS myself) Look at: http://support.microsoft.com/support/kb/articles/q176/1/13.asp /Johan "Iván Milanez Castellanos" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > > Hi: I have sucsessfuly installed PHP on my Win2k/IIS5/SQL > Server 7 machine, and I moved an application that I had > developed in my computer that has Win ME/Apache/PHP/SQL > Server 7 to it. > > It all works fine except for one thing, I can't get the > setcookie() function to work on this server, in my > development machine it works fine and after having set the > cookie my home page changes to reflect the information, but > on the server when I call the form that sets the cookie > nothing happens, the file that sets the cookie is called, > all PHP code is parsed correctly, but the cookie doesn't get > set can anybody help on this one??? > > thanx > > Iván Milanez Castellanos > -------------------------------------------- > Si alla donde tu te encuentras > La luna brilla igual que aquí > Posa en ella tus ojos un momento > Y tan solo un momento piensa en mi > > > _________________________________________________________________ > El correo GRATUITO en tu idioma y con múltiples beneficios. > Obtén tu CorreoWeb del Foco ahora en http://elfoco.correoweb.com >
I don't know anything about apache - and i suppose that this don't have anything to do with your error, but shouldn't the php/html files be located in your "webroot" dir? Lee Seng Fook wrote: > Hi, > > I am new to PHP. I have just downloaded PHP 4.0.6 and Apache 1.3.20 > I followed the online documentation to get PHP in CGI-mode to run on Apache, > i added the following lines in my httpd.conf file as follows. > > ScriptAlias /php/ "c:/php/" > AddType application/x-httpd-php .php > AddType application/x-httpd-php .phtml > Action application/x-httpd-php "/php/php.exe" > > But this is my first php script "hello.php" which i put in c:\php directory > > <html> > <head> > <title>PHP Testing</title> > </head> > <body bgcolor=#ffffff> > <?php echo "Hello World<p>"; ?> > </body> > </html> > > But Apache couldn't process this hello.php... it gave me this error. > > [Fri Jul 06 06:35:08 2001] [error] [client 127.0.0.1] c:/php/hello.php is > not executable; ensure interpreted scripts have "#!" first line > [Fri Jul 06 06:35:08 2001] [error] [client 127.0.0.1] couldn't spawn child > process: c:/php/hello.php > > Can someone tell me where did I go wrong? > > Appreciate your help. Many thanks. > > -- > > :-) > Lee -- Michel Laine
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > > But Apache couldn't process this hello.php... it gave me this > > error. > > > > > > [Fri Jul 06 06:35:08 2001] [error] [client 127.0.0.1] > c:/php/hello.php is > > not executable; ensure interpreted scripts have "#!" first line > > [Fri Jul 06 06:35:08 2001] [error] [client 127.0.0.1] couldn't > spawn child > > process: c:/php/hello.php > > > > Can someone tell me where did I go wrong? > > Add AddType application/x-httpd-php .php3 .php .php4 LoadModule php4_module "c:/php/sapi/php4apache.dll" to your httpd.conf. Remove Action application/x-httpd-php "/php/php.exe" ScriptAlias /php/ "c:/php/" This will tell apache to load the module version of php. Unless you want the cgi version. This works with my setup (2k, apache 1.3.19, php4.0.5) M@ -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com> iQA/AwUBO0V5RaW0/zC+QxWwEQKMAACgsaYhhrQn7j8vqTFnQQCOoIq4WIAAn3YT Rz/j15jXrNjhjYQi6uL9jlmF =13Zg -----END PGP SIGNATURE-----
I am using PHP3. I would like users to be able to download Power Point files from my site. As these files are big, I would like : - to propose to the user a "Save as" button (I don't want the power point file to open) - to display a download progress bar. Anybody has an idea ? Thank you. Pierre ------------------- L'e-mail gratuit pas comme les autres. Pour créer votre adresse : http://www.nomade.fr/courrier/ouvrir.asp NOMADE.FR, pourquoi chercher ailleurs ?
Could it realy be that no one knows about this (I can't possibly be the first to get this idea) ? Brgds, Christian -----Original Message----- From: Christian Sandfeld [mailto:[EMAIL PROTECTED]] Sent: 28. juni 2001 12:39 To: '[EMAIL PROTECTED]' Subject: [PHP-WIN] Spell checking w. PHP in Windows I have been looking for a while for a way to supply spell checking to the users of my submit forms, and stumbled accross the tutorial at Zend Technologies (http://www.zend.com/zend/spotlight/spellchecking.php?print=1) dealing with this, utilizing the Aspell/Pspell modules. Now, this is all dandy, but I have not been able to find any info what so ever on how to accomplish this on the Windows platform. So my question is, does anyone know how to make this work on a WinNT system, and (preferably) where to obtaion the needed modules? I thank you in advance for your time :) /Christian -- 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]
Could it realy be that no one really cares? I thought this was a PHP mailing list, not a Pspell mailing list! I have seen all kinds of special interest questions and MySQL questions that do not pertain directly to PHP. People learn to put a few HTML tags in a txt doc and call themselves "web programmers". If you do not know anything about RDBMS then why are you messing with it? Keep it real. (Keep it PHP) thanks John --- Christian Sandfeld <[EMAIL PROTECTED]> wrote: > Could it realy be that no one knows about this (I can't possibly be the > first to get this idea) ? > > Brgds, > > Christian > > -----Original Message----- > From: Christian Sandfeld [mailto:[EMAIL PROTECTED]] > Sent: 28. juni 2001 12:39 > To: '[EMAIL PROTECTED]' > Subject: [PHP-WIN] Spell checking w. PHP in Windows > > > I have been looking for a while for a way to supply spell checking to the > users of my submit forms, and stumbled accross the tutorial at Zend > Technologies (http://www.zend.com/zend/spotlight/spellchecking.php?print=1) > dealing with this, utilizing the Aspell/Pspell modules. > > Now, this is all dandy, but I have not been able to find any info what so > ever on how to accomplish this on the Windows platform. So my question is, > does anyone know how to make this work on a WinNT system, and (preferably) > where to obtaion the needed modules? > > I thank you in advance for your time :) > > /Christian > > -- > 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] > > -- > 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] > __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Is there php 4.0.6 manual in Windows Help format (.chm)? I have version for 4.0.5, but where can i get it for 4.0.6? Thanks, Igor.