You are here: Re: How do I creat temp file in php? « All PHP « IT news, forums, messages
Re: How do I creat temp file in php?

Posted by Martin Jay on 05/21/06 00:14

In message <446f5054@212.67.96.135>, "Dave (from the UK)"
<see-my-signature@southminster-branch-line.org.uk> writes

>In principle memory would do, but I've not had a lot of luck with it. I
>am using an external program and that is reading from a file.
>
>someprog -batchinput < /tmp/foo -batchoutput > /tmp/results
>
>When that reads from a pipe, the program behaves a little differently
>and a bit of an inconsistent way.
>
>I assume I can do something with a random number or time to get a
>unique name.
>
>In a shell script, I could do /tmp/foo.$$ and know that $$ will be the
>PID which will be unique. I would have thought php would have supported
>something like that.

You could use tempnam() or create a temporary filename with uniqid().
--
Martin Jay

 

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

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