Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8678265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:40:20+00:00 2026-06-12T20:40:20+00:00

I have an executable file developed using opencv library in cpp and c also.

  • 0

I have an executable file developed using opencv library in cpp and c also. I want to execute it from my website hosted on localhost using a php script.
The problem i’m facing is that, the executable code opens a window(kind of gui, opened using namedWindow) when called from terminal but it doesn’t do that when called from the embedded php script.
For execution i have tried exec, system but all these failed.

to be more clear : name of executable -> my_cv_gui, name of phpscript(page) ->abcd.php

@terminal if i type "./my_cv_gui" ... window opens.

@ terminal, if itype "php abcd.php" window opens

abcd.php is part of my website. In web browser if i open "http://...../abcd.php", window DOESNOT open. Although other things in the executable work perfectly.

My system configuration

OS : ubuntu 12.04 x64

XAMPP for Linux 1.7.7

Apache 2.2.21

PHP 5.3.8

Opencv 2.4.1

Any solutions??

The php code is as follows

<?php 

$output=shell_exec("gst-launch v4l2src device=/dev/video0 ! 'video/x-     raw-yuv,width=640,height=480,framerate=30/1' ! ffenc_flv ! flvmux streamable=true ! queue ! filesink location=/home/dev/my.avi > /dev/null &");

var_dump($output); 
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T20:40:21+00:00Added an answer on June 12, 2026 at 8:40 pm

    Two things you should always remember when you are working with apache.

    1. File/Folder Permission. Using which the apache is running.
    2. MIME type should be added to apache to run any kind of multimedia components. Like here it’s flv. Then try running the php code and try fixing it. I will check in my server if that works for me. Will update you.

    Biswadip.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a executable jar file and i want to see code behind it.
I have to generate an executable (.exe) file from my python program. I would
I have an Out-of-process COM server executable which was developed using Visual Studio 6.0
I have running process but it's executable file has got deleted. If I try
I have created a directory structure with an executable file. Following is the output
I have a Mojolicious Lite script that gives out an executable file (user can
I have the problem running executable .jar file. I've created a project which contains
I have an executable jar Client.jar that requires jndi.properties file. Since the jndi properties
I have been trying to reverse a Mach-O executable arm file and I'm able
I have a developed a C++ application using 32 bit and it create a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.