php-windows Digest 26 Mar 2001 17:46:13 -0000 Issue 511 Topics (messages 6295 through 6305): Freaks only !!! 6295 by: Peter Nagel 6296 by: Fernando Madruga 6300 by: OoCobra97.aol.com Re: [PHP-DB] Read lines 6297 by: Ben Cairns Re: resolution problems in dinamic .gif 6298 by: Praying Mantis 6299 by: Fernando Madruga PHP4 and WIN2k IIS 6301 by: Thomas W. Badera 6302 by: Phil Driscoll Database search, http headers 6303 by: Mark Collins 6304 by: Carlton Foster Easy question 6305 by: patso.goatheckler.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] ----------------------------------------------------------------------
Hello, after I now already gepostet the problem in 6 NG and still no meaningful response got give up I hope soon. I have PHP 4.04pl1 cgi, Windows, ME and the Xitami Web server. Problem: The environment variable &PHP_SELF does not stiummt! if I call phpinfo() from the root am all OK ONE, as soon as I go however into a sublist and call phpinfo() then giebt the path and the file out, and hangs the path then again to the file on e.g.: subdir1/test.php/subdir1 that does not entail among other things that the Icons in phpinfo() the no more to be displayed and I the work with PHPLIB also forgotten can. Who has an idea
Well, if you are waiting for an answer from someone, I would suggest finding a german newsgroup and asking the question in your native language. Your english is not bad: it's terrible! I for one, can't understand what the heck you are saying! :) Bye, Madruga P.S.: Sorry for this kind of answer, but I can not help you and I doubt someone can because one does have to UNDERSTAND the problem before finding an answer, and your wording does not allow us to understand what your problem is... Just thought you would like to understand why you've got no answers on 6 different newsgroups: we can't understand what the problem is... :) -----Original Message----- From: Peter Nagel [mailto:[EMAIL PROTECTED]] Sent: segunda-feira, 26 de Março de 2001 10:45 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Freaks only !!! Hello, after I now already gepostet the problem in 6 NG and still no meaningful response got give up I hope soon. I have PHP 4.04pl1 cgi, Windows, ME and the Xitami Web server. Problem: The environment variable &PHP_SELF does not stiummt! if I call phpinfo() from the root am all OK ONE, as soon as I go however into a sublist and call phpinfo() then giebt the path and the file out, and hangs the path then again to the file on e.g.: subdir1/test.php/subdir1 that does not entail among other things that the Icons in phpinfo() the no more to be displayed and I the work with PHPLIB also forgotten can. Who has an idea -- 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]
Hello, Ok, first off, I really couldnt understand the question, but I'm assuming that the php_self function isnt working for you. Based on that, heres my answer: I run windows IIS5 and this command doesnt work for me as well, but after using the following, it works great =) Here it goes: $whatever = ($HTTP_SERVER_VARS[PHP_SELF]); and if your trying to get just the script name, then try: $whatever = basename($HTTP_SERVER_VARS[PHP_SELF]); I hope this is what your looking for...if not, try and explain it a bit better for us all =) ~Jeff In a message dated Mon, 26 Mar 2001 4:44:14 AM Eastern Standard Time, "Peter Nagel" <[EMAIL PROTECTED]> writes: << Hello, after I now already gepostet the problem in 6 NG and still no meaningful response got give up I hope soon. I have PHP 4.04pl1 cgi, Windows, ME and the Xitami Web server. Problem: The environment variable &PHP_SELF does not stiummt! if I call phpinfo() from the root am all OK ONE, as soon as I go however into a sublist and call phpinfo() then giebt the path and the file out, and hangs the path then again to the file on e.g.: subdir1/test.php/subdir1 that does not entail among other things that the Icons in phpinfo() the no more to be displayed and I the work with PHPLIB also forgotten can. Who has an idea -- 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] >>
HTH... <? $file = "YOUR URL/FILE HERE"; $open = fopen($file, "r"); $search = fread($open, FILE SIZE IN BYTES); fclose($open); $news[1] = str_replace("replace this, "with this", $grabbed[1]); ?> <? echo $grabbed[1] ?> -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the INFORMATION TECHNOLOGY age @ WORK......"
Fernando Maybe u are right. I don't know if people here (i mean the network administrators that act like printer administrators as well) care about new releases of the printer driver. I've been trying to fix this problem using a Lexmark Optra S 1255 PS2. Give me your email and I'll send you the .gif I'm using, of course without the company's logo (my boss will kill my if I send it with the logo instead). By the way, do you speak Portuguese? "Fernando Madruga" <[EMAIL PROTECTED]> escreveu na mensagem 3685A91F554BD411BA310008C759B6CC0252807C@MAIL_CBR">news:3685A91F554BD411BA310008C759B6CC0252807C@MAIL_CBR... Why don't you send me a sample image? I'll print it and see what I get. Perhaps you're not using a recent driver for your printer: try checking the manufacturer's web page for a more recent one... HTH, Madruga -----Original Message----- From: Praying Mantis [mailto:[EMAIL PROTECTED]] Sent: sexta-feira, 23 de Março de 2001 15:53 To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] resolution problems in dinamic .gif Alex, .gif images just support 8-bits (256 colors). Am I wrong? I've never seem a 32-bit .gif image. Only jpg's, png's, etc.. But I scanned three pages from a magazine using the same scanner I used to scanner the bill I've tryed to put on-line, and the letters are blurry too. I don't know, but I suspect I have to use a not scanned image , but one made from a drawing software like Corel Draw. By the way, excuse me my poor English. It's not my first Language ""Alex"" <[EMAIL PROTECTED]> escreveu na mensagem 014a01c0b2d0$83506680$6060dcc1@dima">news:014a01c0b2d0$83506680$6060dcc1@dima... > Sorry, it looks like my previous message to the list was not posted. > > Try to convert your gif image to 32-bit mode and print it. Gif images are > 8-bit only and, may be, the printer driver's dithering for the gifs is not > correct. > > Alex. > > >I'm using version 3 of PHP to build a .gif image file dinamicly. > >I don't know what's happening, but the letters are being displayed a little > >bit blurry or spotty like if it had built with a low resolution. This > >happens just when I print the image through browser (IE 5, 5.5, NC 4.7, > >etc). On the screen, the letter in the image are displayed perfectly. > > > >The dinamic .gif is built from a blank .gif file that act just a template. > >This 'blank' .gif has a resolution of 70 dpi. I've tryed with resolutions > of > >100 and 300 dpi, but i've got the same problem. > > > >Anyone could help me? > > > >thank in advance. > > > > > > > >-- > >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] > -- 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]
My email is on every message I send, unlike some people... :) And yes, I do speak Portuguese. As you've probably guessed from the .pt in my email... In case you have not noticed, it's: [EMAIL PROTECTED] Bye, Madruga -----Original Message----- From: Praying Mantis [mailto:[EMAIL PROTECTED]] Sent: segunda-feira, 26 de Março de 2001 13:10 To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] resolution problems in dinamic .gif Fernando Maybe u are right. I don't know if people here (i mean the network administrators that act like printer administrators as well) care about new releases of the printer driver. I've been trying to fix this problem using a Lexmark Optra S 1255 PS2. Give me your email and I'll send you the .gif I'm using, of course without the company's logo (my boss will kill my if I send it with the logo instead). By the way, do you speak Portuguese? "Fernando Madruga" <[EMAIL PROTECTED]> escreveu na mensagem 3685A91F554BD411BA310008C759B6CC0252807C@MAIL_CBR">news:3685A91F554BD411BA310008C759B6CC0252807C@MAIL_CBR... Why don't you send me a sample image? I'll print it and see what I get. Perhaps you're not using a recent driver for your printer: try checking the manufacturer's web page for a more recent one... HTH, Madruga -----Original Message----- From: Praying Mantis [mailto:[EMAIL PROTECTED]] Sent: sexta-feira, 23 de Março de 2001 15:53 To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] resolution problems in dinamic .gif Alex, .gif images just support 8-bits (256 colors). Am I wrong? I've never seem a 32-bit .gif image. Only jpg's, png's, etc.. But I scanned three pages from a magazine using the same scanner I used to scanner the bill I've tryed to put on-line, and the letters are blurry too. I don't know, but I suspect I have to use a not scanned image , but one made from a drawing software like Corel Draw. By the way, excuse me my poor English. It's not my first Language ""Alex"" <[EMAIL PROTECTED]> escreveu na mensagem 014a01c0b2d0$83506680$6060dcc1@dima">news:014a01c0b2d0$83506680$6060dcc1@dima... > Sorry, it looks like my previous message to the list was not posted. > > Try to convert your gif image to 32-bit mode and print it. Gif images are > 8-bit only and, may be, the printer driver's dithering for the gifs is not > correct. > > Alex. > > >I'm using version 3 of PHP to build a .gif image file dinamicly. > >I don't know what's happening, but the letters are being displayed a little > >bit blurry or spotty like if it had built with a low resolution. This > >happens just when I print the image through browser (IE 5, 5.5, NC 4.7, > >etc). On the screen, the letter in the image are displayed perfectly. > > > >The dinamic .gif is built from a blank .gif file that act just a template. > >This 'blank' .gif has a resolution of 70 dpi. I've tryed with resolutions > of > >100 and 300 dpi, but i've got the same problem. > > > >Anyone could help me? > > > >thank in advance. > > > > > > > >-- > >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] > -- 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] -- 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 recently upgraded my server to Win2k. I've been running PHP4 for a while, but now I'm getting CGI errors when I try to run certain scripts. For instance, I type in this: http://www.sportspotonline.com/data/prod.php3?idNum=63 -or- http://www.atlanticcomp.com/tech/contracts/new.php3 and I get the following error: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: Any thoughts, suggestions would be greatly appreciated. Thanks, --TWB
Maybe the file does not exist, or the anonymous web user does not have permission to access the file, or the anonymous web user doesn't have permission to run php - you can discount the last one if php works for some scripts. Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org
Hi again, a couple of questions if you have the time. I am having trouble writing the code to perform a search on a database. I have written some code which will search but only get case sensitive exact match results. Are there any functions or prewritten bits that would help here? Or can anyone point me in the right direction so I can code it myself? Another small problem is that I was working through a tutorial to authenticate users using HTTP headers, but I am getting the following error, Warning: Cannot add header information - headers already sent by (output started at C:\INetPub\WWWRoot\counter.php:5) in C:\INetPub\WWWRoot\counter.php on line 15 Warning: Cannot add header information - headers already sent by (output started at C:\INetPub\WWWRoot\counter.php:5) in C:\INetPub\WWWRoot\counter.php on line 16 With the code looking like this, if (!isset($PHP_AUTH_USER)) { header('WWW-Authenticate: Basic realm="My Private Stuff"'); header('HTTP/1.0 401 Unauthorized'); echo 'Authorization Required.'; exit; } I am running php4 on IIS on Windows NT Server. Can you help? Sorry this is such a long post, I didn't know who else to ask! Thanks again
Mark, I just recently had the same problem with the headers. It turned out that I had a blank space in front of the < at the beginning of the page. Once I deleted the blank space, the headers worked fine. ""Mark Collins"" <[EMAIL PROTECTED]> wrote in message 99nu1n$9nj$[EMAIL PROTECTED]">news:99nu1n$9nj$[EMAIL PROTECTED]... > Hi again, a couple of questions if you have the time. > > I am having trouble writing the code to perform a search on a database. I > have written some code which will search but only get case sensitive exact > match results. Are there any functions or prewritten bits that would help > here? Or can anyone point me in the right direction so I can code it myself? > > Another small problem is that I was working through a tutorial to > authenticate users using HTTP headers, but I am getting the following error, > > Warning: Cannot add header information - headers already sent by (output > started at C:\INetPub\WWWRoot\counter.php:5) in > C:\INetPub\WWWRoot\counter.php on line 15 > > Warning: Cannot add header information - headers already sent by (output > started at C:\INetPub\WWWRoot\counter.php:5) in > C:\INetPub\WWWRoot\counter.php on line 16 > > With the code looking like this, > > if (!isset($PHP_AUTH_USER)) { > header('WWW-Authenticate: Basic realm="My Private Stuff"'); > header('HTTP/1.0 401 Unauthorized'); > echo 'Authorization Required.'; > exit; > } > > I am running php4 on IIS on Windows NT Server. Can you help? Sorry this is > such a long post, I didn't know who else to ask! > > Thanks again > > > > -- > 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] >
Hey all, I was just wondering, what's the easiest, quickest way in php to get a formatted date to enter into a database? Thanks Patrick