13:59 Mon Sep  3, 2007
Cheap Hummer!

12:18 Tue Jul  4, 2006
Hummer Camp After

12:15 Tue Jul  4, 2006
Hummer Camp

Help Me Humpa
PHP and MMS Server Help
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Find file script

 
Post new topic   Reply to topic    Help Me Humpa Forum Index -> Anything PHP
View previous topic :: View next topic  
Author Message
stinkingshoe



Joined: 15 May 2006
Posts: 45

PostPosted: Tue Jun 13, 2006 9:48 am    Post subject: Find file script Reply with quote

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 Mad )

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
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Tue Jun 13, 2006 10:07 am    Post subject: Reply with quote

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
View user's profile Send private message
stinkingshoe



Joined: 15 May 2006
Posts: 45

PostPosted: Thu Jun 15, 2006 5:12 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Help Me Humpa Forum Index -> Anything PHP All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum