php-windows Digest 18 Aug 2001 17:25:53 -0000 Issue 708 Topics (messages 8918 through 8935): Re: [PHP] Re: [PHP-WIN] Installation failed ! Please Help! 8918 by: Angie Tollerson 8920 by: Elias Santiago 8921 by: Angie Tollerson Re: Image Functions 8919 by: Angie Tollerson 8928 by: Al 8929 by: Angie Tollerson 8930 by: Svensson, B.A.T. 8931 by: Angie Tollerson spell checker 8922 by: samsom, debra 8923 by: Angie Tollerson image with php 8924 by: Fai php with ftp 8925 by: Fai Re: Retrieving "text" > 4K SQL Server 7.0 8926 by: Al 8927 by: Al Re: Network Documents 8932 by: Christoph Grottolo Re: opening pdf documents within php 8933 by: Alain Samoun Re: Try to get php to fopen a Word document 8934 by: Alain Samoun Re: The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: 8935 by: Elias Santiago 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] ----------------------------------------------------------------------
Jim, I'm trying to figure out what in the world you are doing differently than me that you are getting any failures without the %s %s ? I have been running php for 9 months now, and having at one point 10 extensions turned on including added ones not from the php.net package, and I have never got failures of execution (not that I witnessed anyway) And I've run this on 4 different windows servers now. I'm not saying I don't believe you, I'm sure you are getting the errors you claim, I'm just boggled as to how your system is sensitive enough to get them!? What exactly are you running? Angie Tollerson Alliance Technologies Web Programmer (515)245-7628 [EMAIL PROTECTED] >>> "Powell, Jim (EER)" <[EMAIL PROTECTED]> 08/16/01 05:48PM >>> I hate it when the messages don't reply to the lists! > -----Original Message----- > From: Powell, Jim (EER) > Sent: Thursday, August 16, 2001 12:45 PM > To: 'Angie Tollerson' > Subject: RE: [PHP-WIN] Re: [PHP] Re: [PHP-WIN] Installation failed ! > Please Help! > > > OK, pretty straight forward, I went through my list of > failures, and Almost all of them (the ones that failed > without the %s %s) used extensions to PHP (ming, crypt, etc, > etc). They simply would return a CGI error bad header > returned (or something along those lines, I forget what IIS > put in there). Other things like mySQL and the other built > in functions seemed to work fine without them (them = %s %s), > so I guess it would depend on what you use PHP for as to > whether the %s %s is needed. > > Of course Mr. Santiago has the official reason (at least from > Microsoft's perspective) in another e-mail. > > Jim Powell > > > -----Original Message----- > > From: Angie Tollerson [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, August 16, 2001 5:25 PM > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; > > [EMAIL PROTECTED]; [EMAIL PROTECTED] > > Subject: [PHP-WIN] Re: [PHP] Re: [PHP-WIN] Installation > > failed ! Please > > Help! > > > > > > Jim, > > Could you give us an example and explanation as to why no %s > > %s is unstable? How has this failed you ? because I've never > > had a problem with not having it in there that I know of. > > PHP has always executed for me properly, NT 4.0 and w2k. But > > if it is unstable I don't want to find out later. Thanks! > > > > > > Angie Tollerson > > Alliance Technologies > > Web Programmer > > (515)245-7628 > > [EMAIL PROTECTED] > > > > >>> Phil Driscoll <[EMAIL PROTECTED]> 08/16/01 12:20PM >>> > > On Thursday 16 August 2001 4:45 pm, Powell, Jim (EER) wrote: > > > > > > Second, make the application extensions point to php.exe (you > > > > don't need the > > > > %s %s stuff). > > > > > > This I have to disagree with. Without the %s %s, you are > > rolling dice as > > > to whether the page will work or not. I never had this > > problem with Apache > > > under win32, but I have with IIS. I would definitely leave > > them in there. > > > > I'll have to strongly disagree with your disagreement ;) > > > > -- > > Phil Driscoll > > > > -- > > 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]
Me too, I've never had any problems with PHP running it with or without the %s %s. I guess that IIS 3 required that, but IIS 4./5 not necessarily require it (a useful bug??). Nevertheless, it work without them anyways. I only wish that the PHP ISAPI module is FINALLY made stable (production quality) to use it on my sites. "Phil Driscoll" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thursday 16 August 2001 7:35 pm, Elias Santiago wrote: > > I believe that IIS passes the script name to php.exe with the first %s. I > > think IIS replaces the first %s with the script name. From the second > > article, I suppose that if the %s is changed to %S, the name passed to > > php.exe would be UPPERCASE. Can anyone verify this? > > I can't verify that, but I can verify that I've had php running without any > trouble at all ever on about a dozen NT4 boxes without %s %s anywhere in site > without any problems at all :) > > Maybe the default behaviour of IIS (since it is the sensible behaviour) is to > pass the script name to the exe it calls. > > Cheers > -- > Phil Driscoll
Elias, I spoke with the original developer for the windows version of php, Shane Caraveo. He told me and many others at the PHP conference last month that his #1 objective for php in the upcoming months is to build a stable version of the isapi module for windows. So it may be sooner than you think! ;) Angie Tollerson Alliance Technologies Web Programmer (515)245-7628 [EMAIL PROTECTED] >>> "Elias Santiago" <[EMAIL PROTECTED]> 08/17/01 07:46AM >>> Me too, I've never had any problems with PHP running it with or without the %s %s. I guess that IIS 3 required that, but IIS 4./5 not necessarily require it (a useful bug??). Nevertheless, it work without them anyways. I only wish that the PHP ISAPI module is FINALLY made stable (production quality) to use it on my sites. "Phil Driscoll" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thursday 16 August 2001 7:35 pm, Elias Santiago wrote: > > I believe that IIS passes the script name to php.exe with the first %s. I > > think IIS replaces the first %s with the script name. From the second > > article, I suppose that if the %s is changed to %S, the name passed to > > php.exe would be UPPERCASE. Can anyone verify this? > > I can't verify that, but I can verify that I've had php running without any > trouble at all ever on about a dozen NT4 boxes without %s %s anywhere in site > without any problems at all :) > > Maybe the default behaviour of IIS (since it is the sensible behaviour) is to > pass the script name to the exe it calls. > > Cheers > -- > Phil Driscoll -- 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]
Augusto, You simply need to download the windows 32binary package of php from www.php.net 's download page. Unpack it in a php folder and follow the install.txt directions for implementing on your windows computer. When you are all setup, make sure you remove the ; (uncomment) from the line in php.ini ";extension php_gd.dll" since that is what will run gd. But most of the functions you used for unix gd are the same for windows...sometimes there are one or two functions that don't work for windows but the php manual specifies that. Let us know if you need more help as you install. Additionally, the install.txt may tell you to copy all the dll's sitting in the dll folder into windows/system32 system. DO NOT put them there, put them in the same folder that your php.exe is sitting in. Angie Tollerson Alliance Technologies Web Programmer (515)245-7628 [EMAIL PROTECTED] >>> "Augusto Cesar Castoldi" <[EMAIL PROTECTED]> 08/17/01 05:57AM >>> Hi. i'm using the last version of GD (supports JPEG and PNG) on Solaris 8 unix, but I need to use this functions on Windows. How can I do that? regards, Augusto _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- 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'd recommend you leave them in the "extension" directory, which is where the installer places them, and just indicate in your INI file where that directory is: extension_dir = "d:\php\extension\" That'll keep the \php directory uncluttered, and you'll know exactly where all your extension files are. Regardless, I agree with you that placing them in the "system" directory is something that should NOT be done! There's enough junk there already :) -Al On Fri, 17 Aug 2001 07:37:34 -0500, [EMAIL PROTECTED] (Angie Tollerson) wrote: >Augusto, >You simply need to download the windows 32binary package of php from = >www.php.net 's download page. Unpack it in a php folder and follow the = >install.txt directions for implementing on your windows computer. When = >you are all setup, make sure you remove the ; (uncomment) from the line in = >php.ini ";extension php_gd.dll" since that is what will run gd. But most = >of the functions you used for unix gd are the same for windows...sometimes = >there are one or two functions that don't work for windows but the php = >manual specifies that. Let us know if you need more help as you install. > >Additionally, the install.txt may tell you to copy all the dll's sitting = >in the dll folder into windows/system32 system. DO NOT put them there, = >put them in the same folder that your php.exe is sitting in. > > > > >Angie Tollerson >Alliance Technologies >Web Programmer >(515)245-7628 >[EMAIL PROTECTED] > >>>> "Augusto Cesar Castoldi" <[EMAIL PROTECTED]> 08/17/01 05:57AM = >>>> >Hi. > >i'm using the last version of GD (supports JPEG and PNG) on Solaris 8 = >unix, >but I need to use this functions on Windows. > >How can I do that? > >regards, > >Augusto > > >_________________________________________________________ > >Do You Yahoo!? > >Get your free @yahoo.com address at http://mail.yahoo.com=20 > > > >--=20 >PHP Windows Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED]=20 >For additional commands, e-mail: [EMAIL PROTECTED]=20 >To contact the list administrators, e-mail: [EMAIL PROTECTED]=20= > > >
No Al, that's a different set of dll's you're talking about. The extension dll's do need to stay in the extension folder with the right .ini line as you stated. I'm talking about the system needed dll's that come in the DLL folder. Those are the ones you are told to move around, but you should just move them up when directory to be with the php.exe, not in system folder like the install tells you to. Angie Tollerson Alliance Technologies Web Programmer (515)245-7628 [EMAIL PROTECTED] >>> Al <[EMAIL PROTECTED]> 08/17/01 10:51AM >>> I'd recommend you leave them in the "extension" directory, which is where the installer places them, and just indicate in your INI file where that directory is: extension_dir = "d:\php\extension\" That'll keep the \php directory uncluttered, and you'll know exactly where all your extension files are. Regardless, I agree with you that placing them in the "system" directory is something that should NOT be done! There's enough junk there already :) -Al On Fri, 17 Aug 2001 07:37:34 -0500, [EMAIL PROTECTED] (Angie Tollerson) wrote: >Augusto, >You simply need to download the windows 32binary package of php from = >www.php.net 's download page. Unpack it in a php folder and follow the = >install.txt directions for implementing on your windows computer. When = >you are all setup, make sure you remove the ; (uncomment) from the line in = >php.ini ";extension php_gd.dll" since that is what will run gd. But most = >of the functions you used for unix gd are the same for windows...sometimes = >there are one or two functions that don't work for windows but the php = >manual specifies that. Let us know if you need more help as you install. > >Additionally, the install.txt may tell you to copy all the dll's sitting = >in the dll folder into windows/system32 system. DO NOT put them there, = >put them in the same folder that your php.exe is sitting in. > > > > >Angie Tollerson >Alliance Technologies >Web Programmer >(515)245-7628 >[EMAIL PROTECTED] > >>>> "Augusto Cesar Castoldi" <[EMAIL PROTECTED]> 08/17/01 05:57AM = >>>> >Hi. > >i'm using the last version of GD (supports JPEG and PNG) on Solaris 8 = >unix, >but I need to use this functions on Windows. > >How can I do that? > >regards, > >Augusto > > >_________________________________________________________ > >Do You Yahoo!? > >Get your free @yahoo.com address at http://mail.yahoo.com=20 > > > >--=20 >PHP Windows Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED]=20 >For additional commands, e-mail: [EMAIL PROTECTED]=20 >To contact the list administrators, e-mail: [EMAIL PROTECTED]=20= > > > -- 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]
>The extension dll's do need to stay in the extension folder >with the right .ini line as you stated. I'm talking about the >system needed dll's that come in the DLL folder. Those are >From an functional point of view, it really doesn't matter were a DLL is located, as long as it located in the access path. But from a point of view with the organization of the file system in mind it might though matter. /Anders
Right Anders, you could simply set the access path in environmental variables for windows itself. But for newbies just installing the easiest thing to tell them is to put it either in system folder or php folder, php folder being the better choice. Angie Tollerson Alliance Technologies Web Programmer (515)245-7628 [EMAIL PROTECTED] >>> "Svensson, B.A.T. " <[EMAIL PROTECTED]> 08/17/01 11:16AM >>> >The extension dll's do need to stay in the extension folder >with the right .ini line as you stated. I'm talking about the >system needed dll's that come in the DLL folder. Those are >From an functional point of view, it really doesn't matter were a DLL is located, as long as it located in the access path. But from a point of view with the organization of the file system in mind it might though matter. /Anders -- 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]
Does anyone know of a nice spell checker that will work well in my php programs? Debra Samsom Bristol Aerospace Ltd. (204) 775-8331 3402 [EMAIL PROTECTED]
Yep Debra, go to http://php.net/manual/en/ref.pspell.php and follow the functions there. Notice on that page it give you a link where you ned to go to get the tar, but us being windows people are out of luck. Either you can do the compiling yourself from the source, or maybe somebody here knows how and you can do it for us and put it on sourceforge? We'd love you for it! Angie Tollerson Alliance Technologies Web Programmer (515)245-7628 [EMAIL PROTECTED] >>> "samsom, debra" <[EMAIL PROTECTED]> 08/17/01 09:13AM >>> Does anyone know of a nice spell checker that will work well in my php programs? Debra Samsom Bristol Aerospace Ltd. (204) 775-8331 3402 [EMAIL PROTECTED]
Does any body know how to make images in the webpage cannot be directly accessed by its complete link with PHP except storing them in the database (it means that people cannot use some software such as website extractor to get all the image from your site)?
Can we use PHP built-in ftp function to make the file downloadable (it means that people can click the download button and the browser will prompt up the download message box for downloading)? How? Thank you very much!
Thanks!! -Al On Fri, 17 Aug 2001 14:17:28 +0800, [EMAIL PROTECTED] (Elman Cheng) wrote: >if you use the PHP MSSQL driver, >find a line in php.ini : > >mssql.textlimit >= 4096 >mssql.textsize >= 4096 > >and change there are value to you wanted. > >elman > >Al wrote: > >> Setup: PHP 4 and Apache on NT 4; SQL Server 7.0 on NT 4, Unified ODBC >> using SQL Server ODBC driver. >> >> How does one go about getting "text" data out of SQL Server 7.0 using >> PHP's Unified ODBC drivers? This is "text" data... not varchar()! >> >> I can PUT as much data as I want into a "text" column in a table, but >> I can only GET 4096 bytes in a SELECT. >> >> Reading the SQL 7.0 docs, it says 4K is the default amount of data >> that's allowed in a SELECT statement. However, the same docs say that >> when using ODBC, the driver sets it to return the max allowed for the >> machine (~2GB). >> >> I can whip up a Delphi app to use the same ODBC DSN and pull all the >> "text" data out of the column, but I just can't get it to work using >> PHP. I realize there's lots of hidden stuff in Delphi's BDE, so I know >> that's not a valid comparison. >> >> I've also tried using the PHP MSSQL drivers and I get the same >> results, so I'm sure there's something I'm missing on the SQL Server >> 7.0 end. >> >> Help?!?! >> >> -Al >> > >
Thanks!! -Al On Fri, 17 Aug 2001 14:17:28 +0800, [EMAIL PROTECTED] (Elman Cheng) wrote: >if you use the PHP MSSQL driver, >find a line in php.ini : > >mssql.textlimit >= 4096 >mssql.textsize >= 4096 > >and change there are value to you wanted. > >elman > >Al wrote: > >> Setup: PHP 4 and Apache on NT 4; SQL Server 7.0 on NT 4, Unified ODBC >> using SQL Server ODBC driver. >> >> How does one go about getting "text" data out of SQL Server 7.0 using >> PHP's Unified ODBC drivers? This is "text" data... not varchar()! >> >> I can PUT as much data as I want into a "text" column in a table, but >> I can only GET 4096 bytes in a SELECT. >> >> Reading the SQL 7.0 docs, it says 4K is the default amount of data >> that's allowed in a SELECT statement. However, the same docs say that >> when using ODBC, the driver sets it to return the max allowed for the >> machine (~2GB). >> >> I can whip up a Delphi app to use the same ODBC DSN and pull all the >> "text" data out of the column, but I just can't get it to work using >> PHP. I realize there's lots of hidden stuff in Delphi's BDE, so I know >> that's not a valid comparison. >> >> I've also tried using the PHP MSSQL drivers and I get the same >> results, so I'm sure there's something I'm missing on the SQL Server >> 7.0 end. >> >> Help?!?! >> >> -Al >> > >
> Go into the Services :List > Double click on the World Wide Web Publishing Service > Click the "Log On" Tab > Click on the DOT for "This account." > clcik on Browse > Find a user id that has permissions to access the share. > Fill in the password for that user. > Hit OK and restart the service. > Try it again. and use a php release not compiled before 2001-07-04 because else it won't work. Maybe you try the new one at www.php4win.com. > Try mapping the network drive. This usually won't work because nobody is logged in at the web server, so there are no network drives available. Christoph > > Thomas Davis wrote: > > > > Is there anything special about accessing php documents from a network share? > > > > I can not get php to respond to a document root that it recieves from another machine. > > > > if my webserver 2000/IIS5 running php CGI is named FOO. > > > > and I use machine \\BAR\htdocs as the document root, and inside \htdocs > > > > is a file called index.php that looks like this. > > > > <?phpinfo();?> > > > > I get this. > > > > CGI Error > > The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: > > > > which I know really means can't find the document. But it can. Is anyone else using a remote host for your document root and using PHP? > > > > Thomas > > System Administrator > > -- > Paul Smith > [EMAIL PROTECTED] > http://www.dostuff.net > > -- > 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] > >
It seems that you have two problems: If you want to have a regular HTML link to your pdf file, you need to write the link as: print "<a href='pdf/".$pdf[$i]."'><img src='images/icon_mini_pdf.gif' border='0'></a><i>$pdf[$i]</i>"; This should open Acrobat and download your pdf file if the browser has been configured for. Second, if you want PHP to download the file, you need to send it with the correct MIME using the Header function. Alain On Thu, Aug 16, 2001 at 10:17:39AM +0200, Andrew.Martin wrote: > I'm creating a Content Management system in which the user will have to > attach a pdf document to an article. This is no problem, I copy the document > to a specific pdf folder and store the document name in the DB to use on the > front end. > > On the front end I loop through all documents that are online and print the > title, display pdf icon, print pdf name and description and link to the > document (in the specific pdf folder) > > <a href='pdf/$pdf[$i]'><img src='images/icon_mini_pdf.gif' > border='0'></a><i>$pdf[$i]</i> > > where $pdf[$i] is the pdf name (for each $i) > > I have tried this with a number of pdf documents, with certain documents I > get parser errors! (Could there be problems with the document itself? > > On the majority I get the standard windows popup message asking to me to > open online or save locally. If I open online nothing happens! Acrobat > reader opens and then closes straight away! If I go to save, it > automatically puts the extension html on the file name! If i change this to > pdf I can save it ok and I can open it without problems. > > Are there certain options in the php.ini or Apache.conf file I need to > enable to view pdf files in php? I have seen the extension > ;extension=php_pdf.dll commented out. > > Anyone any ideas? > >
If you want to read an M$ Word file, use the COM function, of course assuming that you are on a win32 server. Alain On Thu, Aug 16, 2001 at 08:14:29PM +0800, Jack wrote: > Dear all > I'm trying to get PHP to read the content which created by MS Word.But when > php runs, and it just return Nothing (Blank ) to the browser!! > Actually , i was thinking to make a HTML Page which can let user to type in > the content, then the content will copy to a file and finally a php will > pick the content of that file and display it to browser! > I had tried to use "fput" and "fgets" before, which it work, but the second > time i type in something again from the input HTML, it doesn't change the > content of that file. actually it remain the same as i last type in!!! > > IS there any good suggestion for performing this task??? > User Input ---> Copy content to a file ---> Read content & display to > browser! > > Thx > jack > [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]
"Phil Driscoll" <[EMAIL PROTECTED]> wrote in message 01080608455500.15407@linux">news:01080608455500.15407@linux... > On Sunday 05 August 2001 19:54, Mike Barber wrote: > > I am running IIS 5 PHP 4, when ever i try to load a page like > > http://localhost/page.php i get "The specified CGI application misbehaved > > by not returning a complete set of HTTP headers. The headers it did return > > are:" > > > > When i have a form post data(from a .html page to the page it will work > > fine. This is frustrating at least, i have seen pages that are .php and > > load with out giving this error. > > > > Am i doing something wrong or what settings do i have to change? > If you are 100% sure that it works ok for POST, then all I can think of is > that you have set up method exclusions in the script mapping dialogue box of > the Internet Services Manager. There should be no exclusions if you want php > to handle all requests. > > Cheers > -- > Phil Driscoll Check that Under IIS 5 web site properties -> Home Directory -> Configuration -> you have .php set to the path of the php.exe or PHP isapi dll. You should also see that the file exists on the specified URL. If not (or mispelled) IIS will respond with that message. Elias Santiago