epic_era Posted June 20, 2007 Share Posted June 20, 2007 I know for a fact that is possible but can not figure it out, how can I get my application to an exe stand alone file? can someone help me Link to comment https://forums.phpfreaks.com/topic/56409-creating-exe-from-php-files/ Share on other sites More sharing options...
techietim Posted June 20, 2007 Share Posted June 20, 2007 I made a video tutorial on how to do this. http://php.uni.cc/bam.html Enjoy =) Link to comment https://forums.phpfreaks.com/topic/56409-creating-exe-from-php-files/#findComment-278617 Share on other sites More sharing options...
epic_era Posted June 20, 2007 Author Share Posted June 20, 2007 I've followed your tutorial and tried what it shows but I think my problem is that I've got html and php along and it has more than one file, it has like 12 php files, any suggestion as to what I can do? or am I completely on my own with this problem???? all I need is to create a portable file in such a way that I don't have to be copying all my files to the web server cause it is a desktop application really, and I forgot to mention that I'm kinda new on web development, so any trivial suggestions are more than welcome..... thanks in advance.... Link to comment https://forums.phpfreaks.com/topic/56409-creating-exe-from-php-files/#findComment-278736 Share on other sites More sharing options...
Azu Posted June 20, 2007 Share Posted June 20, 2007 Just stick all of the PHP files into a single PHP file instead of using includes. Link to comment https://forums.phpfreaks.com/topic/56409-creating-exe-from-php-files/#findComment-278765 Share on other sites More sharing options...
epic_era Posted June 20, 2007 Author Share Posted June 20, 2007 the thing is that some pages have links to others and not necessarily includes, it it sort of a web site like application, any other way?????? Link to comment https://forums.phpfreaks.com/topic/56409-creating-exe-from-php-files/#findComment-278772 Share on other sites More sharing options...
epic_era Posted June 20, 2007 Author Share Posted June 20, 2007 my php files go something like this: <strong>INGRESAR DATOS </strong><br> <form action="index.php" method="GET"> <table border="1px" cellpadding="0" cellspacing="0" align="center"> <tr> <?php $regist=$_GET["regist"]; $tipcarg=$_GET["tipcarg"]; $fecha=$_GET["orderdate"]; $turn=$_GET["turn"]; if($tipcarg=="EA"&&$turn=="on"){ ?> <script language="javascript"> alert ("Esta accion borrara la informacion actual de la Base de Datos \n y agregara el contenido de este archivo. \n "); </script> <?PHP $turn="off"; } if($tipcarg=="AR"&&$turn=="on"){ ?> <script language="javascript"> alert ("Esta acción reemplazara la informacion que ya existe en la Base de Datos \n del Banco por el contenido de este archivo y agregara lo nuevo. \n "); </script> <?PHP $turn="off"; } if($tipcarg=="AI"&&$turn=="on"){ ?> <script language="javascript"> alert ("Esta accion agregara la informacion de este archivo a la Base de Datos \n del Banco sin modificar o borrar lo que ya existe. \n "); </script> <?PHP $turn="off"; } $fecha="$fecha"; if($fecha[2]=="-"){ if($fp=fopen("dir1\CEmp.txt", "a")){ fclose($fp); unlink("dir1\CEmp.txt"); } $dd=$fecha[0]; $d1=$fecha[1]; $mm=$fecha[3]; $m1=$fecha[4]; $yyyy=$fecha[6]; $yyy1=$fecha[7]; $yyy2=$fecha[8]; $yyy3=$fecha[9]; $fecha="$yyyy$yyy1$yyy2$yyy3$mm$m1$dd$d1"; } $E=$_GET["E"]; $y=$_GET["qtt"]; $i = $_GET["servicio"]; . . . . . Link to comment https://forums.phpfreaks.com/topic/56409-creating-exe-from-php-files/#findComment-278775 Share on other sites More sharing options...
Lumio Posted June 20, 2007 Share Posted June 20, 2007 I'm looking something for Mac... so I can make a stand-alone .app Link to comment https://forums.phpfreaks.com/topic/56409-creating-exe-from-php-files/#findComment-278784 Share on other sites More sharing options...
trq Posted June 20, 2007 Share Posted June 20, 2007 Why are you using html if you intend to build a desktop app? Html needs to be rendered by a browser, and browsers do not enterpret PHP. PHP-GTK is used to build desktop apps with php. It wont be standalone however as your users will need to have PHP-GTK installed to be able to use your app. Link to comment https://forums.phpfreaks.com/topic/56409-creating-exe-from-php-files/#findComment-278834 Share on other sites More sharing options...
epic_era Posted June 20, 2007 Author Share Posted June 20, 2007 my idea is to make the application portable, eve if I have to install an extra app to work with it!!!! am I still able to get a solution??? Link to comment https://forums.phpfreaks.com/topic/56409-creating-exe-from-php-files/#findComment-278855 Share on other sites More sharing options...
trq Posted June 20, 2007 Share Posted June 20, 2007 am I still able to get a solution??? Yes. If you dont mind the fact that your users will need PHP-GTK. There are other solutions around for making exe files, but this does not necessarily mean desktop applications. Of course, you could probably combine PHP-GTK and some other exe creator to build a complete standalone desktop app, but I'de suggest you start by making your application a true desktop app with PHP-GTK first. Link to comment https://forums.phpfreaks.com/topic/56409-creating-exe-from-php-files/#findComment-278860 Share on other sites More sharing options...
epic_era Posted June 20, 2007 Author Share Posted June 20, 2007 I'm kinda new at this, exactly how do I make that happen ? help please bro!! Link to comment https://forums.phpfreaks.com/topic/56409-creating-exe-from-php-files/#findComment-278868 Share on other sites More sharing options...
trq Posted June 20, 2007 Share Posted June 20, 2007 Make what happen? Go to the link I provided and read the docs. If you've already written the application for the browser, it will need to be rewritten. Link to comment https://forums.phpfreaks.com/topic/56409-creating-exe-from-php-files/#findComment-278871 Share on other sites More sharing options...
Lumio Posted June 21, 2007 Share Posted June 21, 2007 You can also use php.exe for executing. Link to comment https://forums.phpfreaks.com/topic/56409-creating-exe-from-php-files/#findComment-279120 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.