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

  • Home
  • SEARCH
  • 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 8862289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:41:35+00:00 2026-06-14T15:41:35+00:00

I am trying to create an application for client side that can be called

  • 0

I am trying to create an application for client side that can be called by php and terminates certain program when it executes. I tried developing an exe file for this but I can’t call the exe file via php on client side. Is there any other format of application I can develop that can be called by php? Can I develop a windows service and call it via php instead? I can ask users to download and install anything. However I cannot use javascript to achieve this.

  • 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-14T15:41:36+00:00Added an answer on June 14, 2026 at 3:41 pm

    I managed to solve this problem but I’m not sure how applicable it is for anyone else who might ever face this problem.

    I set up a cookie in php and I check for the value of that cookie in the client’s computer.

    In my case I’m forcing the clients to use XULRunner as their browser client so there is only one location for the cookie to exist. In case the browser is not fixed, all locations for all browsers need to be handled separately.

    Following is the code I am using for the application in client’s computer:-

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.IO;
    using System.Diagnostics;
    
    namespace beforeSEBstart
    {
        class Program
        {
            static void Main(string[] args)
            {
                // Create a timer that polls once every 5 seconds
                string appdata = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
                Console.WriteLine(appdata);
                string curFile = appdata+@"\ETH Zuerich\xul_seb\Profiles\cookies.sqlite-wal";
                System.IO.File.WriteAllText(curFile, string.Empty);
                var timer = new System.Threading.Timer(TimerProc, null, 5000, 5000);
                Console.WriteLine("Polling every 5 seconds.");
                Console.WriteLine("Press Enter when done:");
                Console.ReadLine();
                timer.Dispose();
            }
    
            static int TickCount = 0;
            static void TimerProc(object state)
            {
                ++TickCount;
                Boolean found = false;
                Console.WriteLine("tick {0}", TickCount);
                string appdata = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
                Console.WriteLine(appdata);
                string curFile = appdata + @"\ETH Zuerich\xul_seb\Profiles\cookies.sqlite-wal";
                string line;
                Console.WriteLine(File.Exists(curFile) ? "File exists." : "File does not exist.");
                //Console.WriteLine(File.Exists(curFile) ? "File exists." : "File does not exist.");
                Stream stream = File.Open(curFile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
                StreamReader file = new StreamReader(stream);
                while ((line = file.ReadLine()) != null)
                {
                    if (line.Contains("SEBClose2"))
                    {
                        found = true;
                    }
                }
                if (found)
                {
                    Console.WriteLine("String exists in the file.");
                    System.Diagnostics.Process.Start("ConsoleApplication1.exe");
                    foreach (System.Diagnostics.Process myProc in System.Diagnostics.Process.GetProcesses())
                    {
                        if (myProc.ProcessName == "beforeSEBstart.vshost" || myProc.ProcessName == "beforeSEBstart")
                        {
                            myProc.Kill();
                        }
                    };
                }
                else
                {
                    Console.WriteLine("String does not exist in the file.");
                }
                file.Close();
            }
        }
    }
    

    For server side, I just set up a cookie named SEBclose2 in php when client presses the exit button.

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

Sidebar

Related Questions

Im trying to create a server/client application that will work on two or more
I am trying to create BB application that features the in-app purchase. I followed
I am trying to create an application that makes a window (external to the
I'm trying to create an application that uses the iPhone MapView (under Google Code).
I am trying to create an application can modify properties in IL to create
I'm trying to create a RTMP Streaming application but I can't seem to get
I am trying to create a client server application. I am going to make
I am trying to both create the Server and client side of a jsonp
I've been trying for days now to create an application client server,both on android,running
Im creating an application that allows me to record recipes. Im trying to create

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.