Closed Thread
Page 2 of 2 FirstFirst 12
Results 16 to 26 of 26

Thread: Your first windows application, written in PHP ONLY !!

  1. #16
    stop staring krakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to behold krakjoe's Avatar
    Join Date
    May 2006
    Location
    UK
    Posts
    3,616
    then put system("PAUSE"); at the end of the code your running and it'll stop the execution and keep the window till you press enter .... but yeah that's wierd, prolly best to leave it till you get home ...
    (\__/) Joe Watkins
    (='.'=) Software Architect
    (")_(") http://pthreads.org
    Copy and paste bunny into your sig, help him gain world domination.

  2. #17
    Jay Street iBrightDev has a reputation beyond reputeiBrightDev has a reputation beyond reputeiBrightDev has a reputation beyond reputeiBrightDev has a reputation beyond reputeiBrightDev has a reputation beyond reputeiBrightDev has a reputation beyond reputeiBrightDev has a reputation beyond reputeiBrightDev has a reputation beyond reputeiBrightDev has a reputation beyond reputeiBrightDev has a reputation beyond reputeiBrightDev has a reputation beyond repute iBrightDev's Avatar
    Join Date
    Oct 2005
    Location
    Not sure, need a GPS.
    Posts
    7,125
    that is it, i dont really know what you mean by what code am i running. i am trying to open you compile program because i wanted to compile the utube program, but, when i try to open the compile program, the windows closes immediately. so, how can i keep that window open? or, and i trying to compile it wrong?
    Full-service digital agency based in Scottsdale, Arizona - iBright Development

  3. #18
    stop staring krakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to behold krakjoe's Avatar
    Join Date
    May 2006
    Location
    UK
    Posts
    3,616
    oh prolly then they have done something to stop you running software they do not know .... which is quite clever, leave it till your on a normal pc .....
    (\__/) Joe Watkins
    (='.'=) Software Architect
    (")_(") http://pthreads.org
    Copy and paste bunny into your sig, help him gain world domination.

  4. #19
    Jay Street iBrightDev has a reputation beyond reputeiBrightDev has a reputation beyond reputeiBrightDev has a reputation beyond reputeiBrightDev has a reputation beyond reputeiBrightDev has a reputation beyond reputeiBrightDev has a reputation beyond reputeiBrightDev has a reputation beyond reputeiBrightDev has a reputation beyond reputeiBrightDev has a reputation beyond reputeiBrightDev has a reputation beyond reputeiBrightDev has a reputation beyond repute iBrightDev's Avatar
    Join Date
    Oct 2005
    Location
    Not sure, need a GPS.
    Posts
    7,125
    yeah, i will try at home. if it does anything strange like that, i will let you know.
    Full-service digital agency based in Scottsdale, Arizona - iBright Development

  5. #20
    FWS Addict Chris L. is a jewel in the roughChris L. is a jewel in the rough
    Join Date
    Jun 2003
    Location
    I used to be: TheFreeWebHost
    Posts
    823
    Anyone have uTube.zip?
    I own: FreeResellers.com
    For Sale: thefreewebhost.net PR 3. Make an offer via PM. <- Still for sale.
    |-I am currently listening to "I can only Imagine"

  6. #21
    CEO BrandonTheG is just really niceBrandonTheG is just really niceBrandonTheG is just really niceBrandonTheG is just really niceBrandonTheG is just really nice BrandonTheG's Avatar
    Join Date
    Apr 2006
    Location
    Massachusetts
    Posts
    1,251
    Can you update the links on this please, thanks.
    Brandon Long | Wicked Free Hosting
    █ brandon[@]wfh[.]im | 1-877-927-7606
    Enterprise Free Hosting! Try us today

  7. #22
    stop staring krakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to behold krakjoe's Avatar
    Join Date
    May 2006
    Location
    UK
    Posts
    3,616
    phpCompile can be downloaded from http://interviolet.com the others are all lost, and I'll write some more examples when I have time to do so ... I think Colin might have some example winbinder code that he could contribute, he might even have utube.zip ....
    (\__/) Joe Watkins
    (='.'=) Software Architect
    (")_(") http://pthreads.org
    Copy and paste bunny into your sig, help him gain world domination.

  8. #23
    Sup, Recoil here. themoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond repute themoose's Avatar
    Join Date
    Jun 2005
    Location
    Uzbekistan
    Posts
    8,805
    I don't think I've kept it, I'll have a look though.

    The best place to get examples is from www.winbinder.org, download the programme and look at the installed folders (should be one called "examples").

  9. #24
    b& Darknight has a brilliant futureDarknight has a brilliant futureDarknight has a brilliant futureDarknight has a brilliant futureDarknight has a brilliant futureDarknight has a brilliant futureDarknight has a brilliant futureDarknight has a brilliant futureDarknight has a brilliant futureDarknight has a brilliant futureDarknight has a brilliant future
    Join Date
    Nov 2006
    Location
    The Best Country
    Posts
    4,086
    MCT might? he was trying to complie it?

  10. #25
    stop staring krakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to behold krakjoe's Avatar
    Join Date
    May 2006
    Location
    UK
    Posts
    3,616
    I found a version of phpCompile-Beta v4.0.1 - the latest was 4.1.8 however this is the only one I can find ... still uses php5.2.1 and works with winbinder, although is probably quite buggy ...

    http://interviolet.com/downloads/

    ------------------------------------------------
    phpCompile v2 Beta 4.0.1 :: PHP Version : 5.2.1
    Written by Joe Watkins - krakjoe.com
    Thanks to Rubem Pechansky - winbinder.org
    ------------------------------------------------

    Extensions loaded :

    cipher - simple xor cipher extension
    date - standard date extension
    dl_memory - allows stub to load normal php extensions
    pcre - standard pcre extension
    standard - standard php extension
    win32 - select functions from win32std
    winbinder - latest winbinder extension

    Arguments Required :
    -main|m Main script for project

    Optional Arguments :
    -project|p Project sources
    -include|I Pack extra includes from directory
    -add|a Add file to exe
    -output|o default : $main.exe ( without .php )
    -ext|e Add ext to executable
    -ico Icon for executable
    -ignore|i Ignore files matching pattern
    -w Use windows subsystem
    -c Use console subsystem
    -subsystem console|windows, default : console

    Information Arguments :
    -iv Print phpCompile version
    -ie Print PHP version
    -ic Dump constants to stdin
    -if Dump functions to stdin
    -io Dump classes to stdin

    Integration Arguments :
    @serial Takes a base64_encode()'d array
    ~C:\inifile Takes location of ini file


    Some example usage :

    phpCompile -c -m=myscript.php
    Will pack myscript.php into a console executable by itself named myscript.exe

    phpCompile -w -p=ProjectSources -m=ProjectMain.php
    Will pack all files in ProjectSources into an executable named ProjectMain.exe
    with ProjectMain.php as main script

    phpCompile -m=myscript
    Will pack myscript.php(w) into a console executable by itself named myscript.exe

    phpCompile -m=myscript -I=C:\winbinder\phpcode\include -w
    Will pack all of winbinders includes, so you can include( 'winbinder.php' );
    and set the main script to myscript.php(w) in an executable named myscript.exe using
    the windows subsystem

    phpCompile -m=myscript -a=C:\snippets\mysnippet.php
    Will make an exe named myscript.exe, set main to myscript.php(w) and include mysnippet.php
    so you can include('mysnippet.php');

    phpCompile -p=myproject -i=.bmp -m=main
    Will make an exe named main.exe, set the main script to main.php(w), all files from myproject
    will be packed into the exe, except for those mathing .bmp

    Notes :

    You may omit .php or .phpw from your main script, phpCompile will search for .php first then .phpw
    If you specify a project directory, your main script is expected to be found inside that directory
    You can use (almost) any extension compatiable with php-5.2.1, download the windows binaries from php.net

    Parameters you can use more than once per operation :

    -include -I
    -add -a
    -ignore -i
    -ext -e

    About -add :

    Files you specify here will be available in your executable at the "root" of the php source structure, so for example
    if you add C:\snippets\highlight_c_source.php you can access it in your scripts with include( 'highlight_c_source.php' );

    About -include :

    Directories you specify here will be packed into the executable recursively, the same as -project directory, only you can
    use as many as you want, paths will be relative to the -include

    About -am :

    Manifest update tool, usage :
    phpCompile -am C:\projects\mine\myFile.exe C:\projects\mine\myFile.exe.manifest
    Use this tool AT YOUR OWN RISK


    As of now, that's it folks, be back soon, and for god sake report bugs.

    Forever coding krakjoe........
    PS Wine can execute this version of phpCompile-Beta, it cannot execute winbinder code though ... that relies to much on the winapi and phpCompile does not ( too much ) ... wine can also execute the executables it creates on linux ...
    Last edited by krakjoe; December 3rd, 2007 at 20:07.
    (\__/) Joe Watkins
    (='.'=) Software Architect
    (")_(") http://pthreads.org
    Copy and paste bunny into your sig, help him gain world domination.

  11. #26
    Junior Member cyrus9 is an unknown quantity at this point
    Join Date
    May 2009
    Posts
    1
    I just installed the WinBinder and tried the sample programs that came with that, its a good tool. I now finally found a way to create applications without compiling in one of my favorite programming language.

    Thanks!

Closed Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts