| View previous topic :: View next topic |
| Author |
Message |
stinkingshoe
Joined: 15 May 2006 Posts: 45
|
Posted: Tue Jun 13, 2006 9:48 am Post subject: Find file script |
|
|
Is it possible for a PHP script to search the server it is run on for a particular file?
I have no idea how I configured it before... but once upon a time, I had Mplayer working with my gallery2.1 installation...
I reinstalled it because I could not longer upload zip files and have the server extract the images from it (found after I reinstalled everything that the server changed folder permissions... whole thing could have been fixed chmoding them back )
and now I can't find a valid path... I'm pretty sure it was mplayer, but it could have been ffmpeg also... When I contacted Godaddy, they said they don't install binaries because of a users request.... but I'm pretty sure it's on their server already, because I had videos working properly a week ago... |
|
| Back to top |
|
 |
Humpa Site Admin

Joined: 06 Nov 2005 Posts: 10258
|
Posted: Tue Jun 13, 2006 10:07 am Post subject: |
|
|
I assume they don't give you ssh access?
You can try doing it from a php script, but they probably have that disabled too
You can put ssh commands in the php exec or system or shell-exec function:
http://us3.php.net/manual/en/function.shell-exec.php
I suck at shell commands, so I don't even know the basics - like the code for a doing a search/find - you'll have to google it if you don't know. |
|
| Back to top |
|
 |
stinkingshoe
Joined: 15 May 2006 Posts: 45
|
Posted: Thu Jun 15, 2006 5:12 am Post subject: |
|
|
well, shell-exec works... I can run commands such as uname -a etc... however, when I try to initiate a find (find /usr -name ffmpeg) it gives me the following error: find: /usr/share/ssl/CA: Permission denied
so I'm assuming they have the find feature blocked. Which I guess makes sense...
I appreicate your help though  |
|
| Back to top |
|
 |
|