[nycphp-talk] Sorry, really stupid question...
Analysis & Solutions
danielc at analysisandsolutions.com
Sun Dec 29 11:46:38 EST 2002
Hey Folks:
On Sat, Dec 28, 2002 at 03:18:31PM -0500, Adam Fields wrote:
>
> Still, it's a good habit to close resources you open.
At the same time, it's good habit to only do things that need to be done.
On Sat, Dec 28, 2002 at 03:32:08PM -0500, Phil Powell wrote:
>
> Why is fflush() not needed?
To be honest, I haven't ever had a use for this function and it's
documentation is sparse, so I may be talking out my, uh, ___, but here
goes anyway. It looks like this function is for writing whatever you've
put into memory via PHP's output buffering commands.
On Sat, Dec 28, 2002 at 03:55:52PM -0500, Adam Fields wrote:
>
> But it sounds like the problem is that the variable isn't getting
> correctly reset between instances.
Quite true. I started writing something along these lines, but cut it out
because from the code Phil supplied it wasn't clear where the variables
value came from.
> On Sun, Dec 29, 2002 at 02:10:18AM -0500, Phil Powell wrote:
>
> From: <bit5hift at ethernet.tk>
> Sent: Saturday, December 28, 2002 3:57 PM
> >
> > chmod the file in your *nix shell. not in the php script.
>
> I can't do that, it's a remote server, sorry.
You obviously have the capacity to upload your scripts. I assume you're
doing this via FTP. FTP has the capacity to change file permissions. So,
upload a blank file and then change the file permissions.
I'm saying this out of pure programming efficiency. If the file already
exists and has the right permissions, it is wastefull to reset its
permissions each time the script is called. Of course, in the real world,
it's not that big a deal.
Enjoy,
--Dan
--
PHP classes that make web design easier
SqlSolution.info | LayoutSolution.info | FormSolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
More information about the talk
mailing list