Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #2286
| Message-Id | <8855064.SEqChMirdb@PointedEars.de> |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2011-06-22 11:48 +0200 |
| Subject | Re: Command line cannot fwrite, browser can |
| Newsgroups | comp.lang.php |
| References | <Xns9F07924644CD1arbpenyahoocom@88.198.244.100> <8844491.SEqChMirdb@PointedEars.de> <Xns9F08B03825DEarbpenyahoocom@88.198.244.100> <iti559$vvt$1@dont-email.me> <Xns9F085CE966989arbpenyahoocom@88.198.244.100> |
| Followup-To | comp.lang.php |
Followups directed to: comp.lang.php
Adrienne Boswell wrote: > Jerry Stuckle writing: >> On 6/18/2011 4:05 AM, Adrienne Boswell wrote: >>> Thomas 'PointedEars' Lahn writing: >>>>> $groupmail = fopen( $filename,'w' ) or die( 'cannot open >>>>> groupmail.html' ); >>>> >>>> <http://www.phpfreaks.com/blog/or-die-must-die> >>> >>> Thank you for all your help, and the link. I have read it and will >>> implement it. >> >> I think you have another problem. Single vs. double quotes would not >> make any difference in the code you posted. > > Originally, I was not using an absolute path, just the name of the file, > and the script was saying the last file was not found, and could not > write to the first file. > > Then, I tried using the whole path, and I got a message about an invalid > stream, and I Googled and found a post about single quotes vs double > quotes, tried it, and it worked. Jerry is correct: Single quotes vs. double quotes make absolutely no difference in the code that you have posted, since there are no variable references in or adjacent to the string values. Without loss of generality, they also make no difference when enclosing file paths, unless the paths contain the delimiter character (in which case the string value would end prematurely, which might contribute to the fact that a file could not be found). > Yes, this is nagging me, too. I just checked it ran it right now (I also > moved the script so it is not accessible to the WWW), This is not the World Wide Web, an application of the Internet, but Usenet, a part of the Network News network (a growing part of which is part of the Internet). So you may – SHOULD – as well post the *relevant* *parts* of your working code here. > and it's doing just fine. So far so good. I'm letting sleeping dogs lie, > for now. So, without evidence to the contrary, one must assume that you have not understood what you are doing in the first place, that you are not willing to understand the problems that this has caused you in the foreseeable future, and that you are not willing to feed back the insights you have gained from other code to the community that tried to help you for free. That puts into serious doubt whether you are worth getting further, rather time-consuming, answers like the ones I give to you. Think about that. And skip the attribution novels, please. PointedEars -- Prototype.js was written by people who don't know javascript for people who don't know javascript. People who don't know javascript are not the best source of advice on designing systems that use javascript. -- Richard Cornford, cljs, <f806at$ail$1$8300dec7@news.demon.co.uk>
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Command line cannot fwrite, browser can Adrienne Boswell <arbpen@yahoo.com> - 2011-06-17 21:22 +0000
Re: Command line cannot fwrite, browser can Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-06-18 00:16 +0000
Re: Command line cannot fwrite, browser can Jerry Stuckle <jstucklex@attglobal.net> - 2011-06-17 20:35 -0400
Re: Command line cannot fwrite, browser can Adrienne Boswell <arbpen@yahoo.com> - 2011-06-18 03:05 +0000
Re: Command line cannot fwrite, browser can Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-06-18 08:20 +0200
Re: Command line cannot fwrite, browser can Adrienne Boswell <arbpen@yahoo.com> - 2011-06-18 08:05 +0000
Re: Command line cannot fwrite, browser can Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-06-18 10:27 +0200
Re: Command line cannot fwrite, browser can Jerry Stuckle <jstucklex@attglobal.net> - 2011-06-18 08:19 -0400
Re: Command line cannot fwrite, browser can Adrienne Boswell <arbpen@yahoo.com> - 2011-06-18 16:08 +0000
Re: Command line cannot fwrite, browser can Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-06-22 11:48 +0200
Re: Command line cannot fwrite, browser can Adrienne Boswell <arbpen@yahoo.com> - 2011-06-23 03:44 +0000
Re: Command line cannot fwrite, browser can Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-06-23 09:55 +0200
Re: Command line cannot fwrite, browser can Adrienne Boswell <arbpen@yahoo.com> - 2011-06-23 15:29 +0000
Re: Command line cannot fwrite, browser can Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-06-24 01:00 +0200
Re: Command line cannot fwrite, browser can Bernd Schulz <ask_me_for_email@invalid.invalid> - 2011-06-18 13:10 +0200
csiph-web