php-windows Digest 2 Nov 2001 11:35:07 -0000 Issue 834
Topics (messages 10166 through 10174): Re: include("remote host") under w2k problem 10166 by: Marek Wysmulek 10172 by: Ross Fleming Question about MySQL, ORDER 10167 by: BlueBytes Looking for a script 10168 by: Kevin Can I rotate a gif with PHP 10169 by: Robert Trembath Connecting to a database 10170 by: Raoul Snyman 10171 by: Ross Fleming Re:[PHP-WIN] POST & REFERER problem 10173 by: Michel Laine File does not exist: CGI error? 10174 by: Hace 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] ----------------------------------------------------------------------
Dear Ross. Thanx a lot. Pretty works. You even don't know how did you help me. Marek. ----- Original Message ----- From: Ross Fleming <[EMAIL PROTECTED]> Newsgroups: php.windows To: <[EMAIL PROTECTED]> Sent: Thursday, November 01, 2001 8:11 PM Subject: RE: [PHP-WIN] include("remote host") under w2k problem > I would assume, that because linux is built around networking, making a > reference to http://whatever would tell linux to look on the internet for > the file. window isn't built the same way, so it doesn't know to look > beyond it's filing system. As to a solution, I'm not sure. > > I'd look into fopen perhaps? You could copy the external script to your > local drive, then include it. However, I've just had a though, surely when > you request the .php file the http server it is held on will parse it and > return the output of it. If that's OK, then the following code should do > it. > > <? > $ExternalFile="http://whatever/file.xyz"; > $LocalFile="localname.html"; > > $fp = @fopen($ExternalFile,"r"); > > if ($fp) > { > $outhandle=fopen ($LocalFile,"w"); > while (!feof($fp)) { > $buffer=fread($fp,4096); > fputs($outhandle,$buffer); > } > > fclose($fp); > fclose($outhandle); > > include("$LocalFile"); > > exec("delete.bat"); > } > ?> > and delete.bat contains just del localname.html > > That works for me (just tested it). > > Anyone know a neater way? > > Ross > > -----Original Message----- > From: Marek Wysmulek [mailto:[EMAIL PROTECTED]] > Sent: 01 November 2001 17:46 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] include("remote host") under w2k problem > > > Hi all. > > I have searched almost everything on the net regarding php and windows > focusing on one thing. > How to include to php script started on apache on w2k external sript placed > on some URL. > Source of test script (http://mylocalhost/marek.php) > <? > include("http://hermes.com.pl/test.php"); > ?> > > and answer viewed in browser > > "Warning: Failed opening 'http://hermes.com.pl/test.php' for inclusion > (include_path='') in c:\www\hermes\windykacja\marek.php on line 2" > > I know that parser sayes that include_path is not correctly set but, when > I'm trying do the same under Linux - works perfectly. So (I'm sure -because > Include_path has other adaptation) it is not the reason. > > Will be wery glad for answer. Even "Leave it !" - but with explanation ;-))) > > Marek. > > > -- > 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] > > >
Sorry? I'm a little confused what you're saying. :-) I gather it works though? The email I sent may have been a bit mixed up, the answer kind of came to me as I was typing it, then I checked it to see if it worked and then sent it to you. I hope it's working for you OK! :) Ross -----Original Message----- From: Marek Wysmulek [mailto:[EMAIL PROTECTED]] Sent: 01 November 2001 21:58 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: PD: [PHP-WIN] include("remote host") under w2k problem Dear Ross. Thanx a lot. Pretty works. You even don't know how did you help me. Marek. ----- Original Message ----- From: Ross Fleming <[EMAIL PROTECTED]> Newsgroups: php.windows To: <[EMAIL PROTECTED]> Sent: Thursday, November 01, 2001 8:11 PM Subject: RE: [PHP-WIN] include("remote host") under w2k problem > I would assume, that because linux is built around networking, making a > reference to http://whatever would tell linux to look on the internet for > the file. window isn't built the same way, so it doesn't know to look > beyond it's filing system. As to a solution, I'm not sure. > > I'd look into fopen perhaps? You could copy the external script to your > local drive, then include it. However, I've just had a though, surely when > you request the .php file the http server it is held on will parse it and > return the output of it. If that's OK, then the following code should do > it. > > <? > $ExternalFile="http://whatever/file.xyz"; > $LocalFile="localname.html"; > > $fp = @fopen($ExternalFile,"r"); > > if ($fp) > { > $outhandle=fopen ($LocalFile,"w"); > while (!feof($fp)) { > $buffer=fread($fp,4096); > fputs($outhandle,$buffer); > } > > fclose($fp); > fclose($outhandle); > > include("$LocalFile"); > > exec("delete.bat"); > } > ?> > and delete.bat contains just del localname.html > > That works for me (just tested it). > > Anyone know a neater way? > > Ross > > -----Original Message----- > From: Marek Wysmulek [mailto:[EMAIL PROTECTED]] > Sent: 01 November 2001 17:46 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] include("remote host") under w2k problem > > > Hi all. > > I have searched almost everything on the net regarding php and windows > focusing on one thing. > How to include to php script started on apache on w2k external sript placed > on some URL. > Source of test script (http://mylocalhost/marek.php) > <? > include("http://hermes.com.pl/test.php"); > ?> > > and answer viewed in browser > > "Warning: Failed opening 'http://hermes.com.pl/test.php' for inclusion > (include_path='') in c:\www\hermes\windykacja\marek.php on line 2" > > I know that parser sayes that include_path is not correctly set but, when > I'm trying do the same under Linux - works perfectly. So (I'm sure -because > Include_path has other adaptation) it is not the reason. > > Will be wery glad for answer. Even "Leave it !" - but with explanation ;-))) > > Marek. > > > -- > 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]
http://paa.fragland.net/hosted/myquestion/ here you find my question, thx
I am looking for a php script that will allow me to input user name and then let me send them a page once I click on their name and type a short text message. If anyone can lead me in the right direction, I thank you. Thanks
Hello Everyone, I am generating some analylitical reports from a database using S-Plus that produce a gif and then calling that gif as part of the report. But I need to rotate this gif 90 degrees CW. Can I do that with PHP? Platform --------- W2K MySQL PHP 4.04 -------------------------- Robert Trembath Internet Technology Manager e|[EMAIL PROTECTED]
Hi, I'm a newbie and I'd like to know how to connect to a database. what goes in the hostname, username, etc. parameters, and how to use that connected db. Thanks Raoul Snyman
What database are you using? There are several you can use. mssql, mysql, postgresql to name a few. Also, what system are you using (Windows 9x, 2K etc) and which server are you running? Let us know and we'll probably be able to get you up and running Ross -----Original Message----- From: Raoul Snyman [mailto:[EMAIL PROTECTED]] Sent: 01 November 2001 23:04 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Connecting to a database Hi, I'm a newbie and I'd like to know how to connect to a database. what goes in the hostname, username, etc. parameters, and how to use that connected db. Thanks Raoul Snyman
I've got a couple suggestions on how i should be able to solve my problem. I got to elaborate a bit to know if any of these work. ThanX for the help. -- Michel Laine
I've installed PHP with IIS5.0 When I type an URL for a PHP file that does not exist, I get a CGI error. For example: http://mysite/thisfiledoesnotexist.php == CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: == When I change the name to: http://mysite/thisfiledoesnotexist.phextension Than I get the usual 404-error. Why does IIS sent everything that ends with ".php" to the PHP-parser, even if the file does not exist on my server????? http://mysite/<anything>.php returns the CGI Error which I believe is generated by the PHP-parser? Anyone? Hace -- http://hace.dyndns.org/ Everything I say is my own opinion and not necessarily that of my employer.