hello scott,
Yes..! you can use system() comand
It goes like this
system("touch filename.ext"); // creates a file and file will be owned by
nobody
If you want to change the file permission do the following
chmod("filepath/filename", 755); decimal; probably incorrect
chmod("filepath/filename", 0755); correct value of mode
if you want to change the file owner
chown(string filename, mixed user);
Attempts to change the owner of the file filename to user user. Only
the superuser may change the owner of a file.
Returns true on success; otherwise returns false.
Note : Windows does nothing it just returns true
same as above you can also change the group
chgrp(string filename, mixed group);
Attempts to change the group of the file filename to group. Only the
superuser may change the group of a file arbitrarily; other users may
change the group of a file to any group of which that user is a member.
Returns true on success; otherwise returns false.
Note : Windows does nothing it just returns true
since you want to create a file temporarily you can keep the file owned as
nobody. After your work is over you can remove it.
system("rm -f filename");
for more informations about the above commands go through the manuals
cheers
- JFK
On Fri, 14 Dec 2001, Scott Fletcher wrote:
> Hi!
>
> I wanted to know if there is a PHP code or function that would allow the
> PHP to issue the UNIX command.
>
> What I'm doing here is I'm trying to tell PHP to create a file by
> issuing hte UNIX command then I can use the PHP to open the file to enter
> the data. Once I'm done with the file, I can use the UNIX to run the script
> in the file to communicate with the modem by executing the file. When I'm
> done then I can open an another file to grab the data that had be received
> by the modem and do the PHP things to do something with hte data. When
> done, then I can use the PHP to tell UNIX to delete the file and Voila!
>
> Thanks,
> Scott
>
>
>
> --
> PHP General 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 General 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]