hi can u help me?!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rex1982
Forum Newbie
Posts: 1
Joined: Thu Oct 26, 2006 8:45 am

hi can u help me?!

Post by rex1982 »

Weirdan | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


hi buddies:
i'm new to here i have a very important quesstion:

Code: Select all

exec("ffmpeg -i /home/zyn/wwwroot/youTube/flvideo/1216a61d423d0.flv -vhook '/home/zyn/approot/ffmpegpip/lib/vhook/pip.so -f /home/zyn/wwwroot/youTube/watermarking/2is.jpg -x 0 -y 0 -w 76 -h 54' /home/zyn/wwwroot/youTube/watermarking/1161869747.flv",$arr);
if i do it on command it is ok but it doesn't work on the php!!!

Code: Select all

print_r($arr);
the restult is null? what is going on? how can i fix it? every one help me thx!


Weirdan | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

Use a spell checker & proper capitalization please.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Weirdan wrote:Use a spell checker & proper capitalization please.
If we're going to get into proper written english, the "&" in your sentence should be "and" due to the fact that neither "checker" nor "proper" are proper nouns.

:lol: "proper" is not a proper noun... that's kind of funny... in a nerdy kind of way.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

How about we try to answer this person's question?

Which PHP is your CLI using and which is your web server using?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Run in the CLI, PHP will have access to everything your logged in user does. Run through the web server, it will only have access to what that user does. If the web server's user doesn't have execution rights to ffmpeg, you'll get errors.

One more thing rex1982, please don't try to hijack another user's thread.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Everah wrote:How about we try to answer this person's question?
What a novel idea!

WHOO! :lol:
Post Reply