PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Make PHP-GTK files executables (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Make PHP-GTK files executables


#59
mkhattar (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Make PHP-GTK files executables 4 Years, 3 Months ago Karma: 0  
Is there a way to make php-gtk2 files with extension ".php" executables? so that the user is not obliged to install php-gtk on its machine in order to run the files?

:)
 
  The administrator has disabled public write access.

#61
langsor (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Make PHP-GTK files executables 4 Years, 3 Months ago Karma: 0  
I'm still looking into the various options myself, but one thing you can do on a Windows (XP) machine is create a shortcut that points to the php.exe and pass the script file as an argument...this loads the php script into the php.exe and works great. It does require your PHP-GTK library to be in a known location on the client machine, however.

I'll try and post back here when I figure something better out.

Example:
right-click your desktop or any directory >> New >> Shortcut

Browse to the php.exe in the wizard, click Next, click Finish

right-click the new shortcut icon and select Properties

Place the script path after the Target: "path/to/php.exe" path/to/script.php

Make the script path relative to the path given in the Start In: box

* hope this helps get you started
 
  The administrator has disabled public write access.

#72
Quijote_SHIN!! (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:Make PHP-GTK files executables 4 Years, 2 Months ago Karma: 0  
langsor wrote:

right-click your desktop or any directory >> New >> Shortcut

Browse to the php.exe in the wizard, click Next, click Finish

right-click the new shortcut icon and select Properties

Place the script path after the Target: "path/to/php.exe" path/to/script.php

Make the script path relative to the path given in the Start In: box



I think is the best way,
or if u just want test and make a shorcut for any .php is boring.
create a only Shortcut and drop the file.php over it

example # on windows
new shorcut path/to/php-gtk/php-win.exe

example #1 whit file on windows
file in the same folder
new shorcut x:\path\to\php-gtk\php-win.exe file.php
file in somewhere on your system =D
new shorcut x:\path\to\php-gtk\php-win.exe x:path\to\file.php


/* Shiniscochan en caminooo !!
GOD BLESS YOU ALL */
 
 
Last Edit: 2008/02/20 18:47 By Quijote_SHIN!!. Reason: ^^ with examples !!
  The administrator has disabled public write access.
#74
tim_ecl (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Make PHP-GTK files executables 4 Years, 2 Months ago Karma: 0  
You can also make a phpw file (ex run.phpw)
In this file you'll write :

require_once(dirname(__FILE__) . '/file_to_launch.php');

Then just doubleclick the phpw file ;)
 
 
Last Edit: 2008/02/20 20:30 By tim_ecl.
  The administrator has disabled public write access.
#75
Quijote_SHIN!! (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:Make PHP-GTK files executables 4 Years, 2 Months ago Karma: 0  
how ?

ok.. i make a file


run.phpw
require_once(dirname(__FILE__) . '/file.php');


double click.. but nothing =/
what i need do more ?

/* Shiniscochan en caminooo !!
GOD BLESS YOU ALL */
 
 
Last Edit: 2008/02/20 22:26 By Quijote_SHIN!!.
  The administrator has disabled public write access.
#76
langsor (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Make PHP-GTK files executables 4 Years, 2 Months ago Karma: 0  
I believe you must need a specific system configuration for this to work ... WinXP Pro SP2 with Php-Gtk2 installed did not recognize this as a known file type and prompted me for what App to use to open it with (?)
 
  The administrator has disabled public write access.
#77
Quijote_SHIN!! (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:Make PHP-GTK files executables 4 Years, 2 Months ago Karma: 0  
ies
i don't know , just an idea XD

make a registri to recognize the extención and automatic aply the php.exe to open it..

/* Shiniscochan en caminooo !!

GOD BLESS YOU ALL

*/
 
  The administrator has disabled public write access.
#78
Quijote_SHIN!! (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:Make PHP-GTK files executables 4 Years, 2 Months ago Karma: 0  
import to the system register classes root ??

jus t a idea =P

continuing with what replied tom
[hide]You can also make a phpw file (ex run.phpw)
In this file you'll write :

require_once(dirname(__FILE__) . '/file_to_launch.php');

Then just doubleclick the phpw file ;)
Please note, although no boardcode and smiley buttons are shown, they are still useable


[/hide]


with google ^^' i find gnope
how?
  • download and install the package

  • in the step 2:-Choose Component- of the InstallShield, there is a component: "File asociation" who associate ".phpw" to the php.exe ^^' nice right :D ^^'

  • let's rock


  • /* Shiniscochan en caminooo !!
    GOD BLESS YOU ALL */

    i hope to be understand, my inglish is baaad ingles
     
     
    Last Edit: 2008/02/21 07:43 By Quijote_SHIN!!. Reason: ^^ software who can help
      The administrator has disabled public write access.
    #118
    nitro7 (User)
    Fresh Boarder
    Posts: 5
    graphgraph
    User Offline Click here to see the profile of this user
    Re:Make PHP-GTK files executables 4 Years, 1 Month ago Karma: 0  
    Greetings,

    I have a couple of apps I have built for use in my company the most recent being a Dynamic DNS Client for distribution to our customers (We are an ISP). I for my own use simply create batch files on my windows box and shell scripts on my Macbook. However, our customers may not trust a batch file so I came across the following:
    http://www.battoexe.com/

    This small program will convert a batch file to an executable, it also has a "Ghost" mode so a command prompt does not open which typically does on a batch file.

    Then I use Inno Setup (http://www.jrsoftware.org/isinfo.php) to create a installer to install everything on windows for me. It gives a nice professional look and no one ever knows any different.

    XP (not sure about Vista) has a nice utility iexpress which is located in the system32 directory, which will do similar to what I am doing above, however the command prompt still will open up.

    The above method has worked on both XP, Vista, and 98 so far. With no complaints.

    HTH,
    Nitro7
     
      The administrator has disabled public write access.
    #119
    langsor (User)
    Fresh Boarder
    Posts: 4
    graphgraph
    User Offline Click here to see the profile of this user
    Re:Make PHP-GTK files executables 4 Years, 1 Month ago Karma: 0  
    nitro7,

    Great instructions--I didn't know about this approach at all. I'm not familiar with making batch files, but I'm sure I can figure it out (I've figured everything else out :-)

    Thanks again
     
      The administrator has disabled public write access.



    Go to top Post Reply
    Powered by FireBoardget the latest posts directly to your desktop

    Blog - Forum - Privacy Policy - Contact Us
    Copyright © 2006-2012. kksou.com. All Rights Reserved