I have created a web application. I used wxPHP to convert that to a stand-alone desktop application. Everything works fine except I need to access the CLI for writing the command like:
D:\wamp\www\Vishnu\wxPHP\examples>wxphp myApp.php
I do not want to do this because my client is not familiar with it . So I need to have .exe application . It should like , when I click on the specific link (button) myApp.php
file need to execute. This is my PHP program:
//Load the wxPHP module
if(!extension_loaded('wxwidgets'))
{
dl('wxwidgets.' . PHP_SHLIB_SUFFIX);
}
class MyFrame1 extends wxFrame {
function __construct( $parent=null ){
parent::__construct ( $parent, wxID_ANY, wxEmptyString, wxDefaultPosition, new wxSize( 500,300 ), wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
$this->SetSizeHints( wxDefaultSize, wxDefaultSize );
$bSizer1 = new wxBoxSizer( wxVERTICAL );
$this->m_webView = wxWebView::NewMethod( $this, wxID_ANY, "http://localhost/Vishnu/myFolder/" );
$bSizer1->Add( $this->m_webView, 1, wxALL|wxEXPAND, 5 );
$this->SetSizer( $bSizer1 );
$this->Layout();
$this->Centre( wxBOTH );
}
function __destruct( ){
}
}
//Application initialization start point
class myApp extends wxApp
{
function OnInit()
{
$zs = new MyFrame1();
$zs->Show();
$zs->Maximize();
$this->frm = $zs;
return true;
}
function OnExit()
{
return 0;
}
}
wxInitAllImageHandlers();
$gridApp = new myApp();
wxApp::SetInstance($gridApp);
wxEntry();
Is there any way to do that?