You are here: Re: Chmod « PHP Programming Language « IT news, forums, messages
Re: Chmod

Posted by Jerry Stuckle on 04/24/06 23:10

frizzle wrote:
> Jerry Stuckle wrote:
>
>>frizzle wrote:
>>
>>>Jerry Stuckle wrote:
>>>
>>>
>>>>frizzle wrote:
>>>><old posts snipped>
>>>>
>>>>>PHP & OS are similar.
>>>>>My upload function is below.
>>>>>Hope it can get me/you any further ...
>>>>>(again, really thanks for all the help!!)
>>>>>
>>>>>Frizzle.
>>>>>
>>>>
>>>><code snipped>
>>>>
>>>>Sorry for the delay - I missed this one when you posted earlier in the week.
>>>>
>>>>Well, it isn't how I would have done it, but it should work.
>>>>
>>>>First thing I would have done was to move the uploaded file from the temp
>>>>directory a working directory (move_uploaded_file() ). This gets it completely
>>>>out of the temporary director (which could be something like /tmp) where there
>>>>may be limitations on what you can do with it.
>>>>
>>>>Then I'd do the resizing or whatever I need in my workarea.
>>>>
>>>>I'm also not sure why you're ftping back to yourself (at least I assume it's
>>>>yourself). Why not just store the file where you want it?
>>>>
>>>>--
>>>>==================
>>>>Remove the "x" from my email address
>>>>Jerry Stuckle
>>>>JDS Computer Training Corp.
>>>>jstucklex@attglobal.net
>>>>==================
>>>
>>>
>>>No problem with the delay, i was only hoping your last message hadn't
>>>been sent. And luckily it hasn't.
>>>
>>>Erm, this is an adjusted script of something i found somewhere.
>>>I wouldn't know how to store it where i want ... :$ Shame on me.
>>>I only have relative little time during the weeks to dig into PHP :(
>>>Is there something you could point to me ( a script, preferrably
>>>w/o classes)?
>>>
>>>Frizzle.
>>>
>>
>>Not really. When I need something like this I just code it up. But they're
>>typically special purpose and would need changing for your system.
>>
>>--
>>==================
>>Remove the "x" from my email address
>>Jerry Stuckle
>>JDS Computer Training Corp.
>>jstucklex@attglobal.net
>>==================
>
>
> Jerry, is there any possiblity for you e.g. to point me in a certain
> direction? As you
> said, you would've done it differently ...
>
> Frizzle.
>

Yes, to start I'd move it from the temporary directory with
move_uploaded_file(). Then I'd do my work on it and write it directly to the
filesystem with the file functions such as fopen(), etc.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация