Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6

Thread: PHP exe

  1. #1
    Member Anant's Avatar
    Join Date
    Feb 2005
    Location
    Indore , India
    Posts
    50
    Member #
    9049
    hi...

    I am new at php ..and what i use is a browser dependent php script .... i just want to know is there any way in which we can make php exe file ...just like VB exe file ...

    pls help
    Anant

  2.  

  3. #2
    Senior Member Fallout's Avatar
    Join Date
    Aug 2003
    Location
    Richmond, Virginia
    Posts
    543
    Member #
    2748
    PHP will only run on a webserver, not stand alone as far as I know.

  4. #3
    Senior Member
    Join Date
    Aug 2003
    Posts
    444
    Member #
    2801
    Yeah you can "compile" PHP scripts. Google for "PHP compiler". Look at these as a start:

    http://developers.slashdot.org/artic...&tid=169&tid=8

    http://www.php-compiler.net/

    What some "compilers" do is bundle the php.exe interpreter with the script. This is a really bloated way of doing it, but it works!
    eKstreme
    eKstreme.com - Free website tools!
    fontfox - free fonts Hand-picked quality fonts.

  5. #4
    Senior Member Fallout's Avatar
    Join Date
    Aug 2003
    Location
    Richmond, Virginia
    Posts
    543
    Member #
    2748
    Wow I never knew that existed. I stand corrected.

  6. #5
    Member Anant's Avatar
    Join Date
    Feb 2005
    Location
    Indore , India
    Posts
    50
    Member #
    9049
    Quote Originally Posted by Fallout
    Wow I never knew that existed. I stand corrected.

    Thanx for some guidance ...but its not very clear to me ... ia m so confused about this ...pls can u tell me any tutorial about all this ....i think what u said is correct ..but still u have to be dependent on Browser...as far as i knoe ...

    pls guide me
    Anant

  7. #6
    Senior Member visualAd's Avatar
    Join Date
    Jan 2003
    Location
    Slough, UK
    Posts
    201
    Member #
    434
    Quote Originally Posted by Anant
    hi...

    I am new at php ..and what i use is a browser dependent php script .... i just want to know is there any way in which we can make php exe file ...just like VB exe file ...

    pls help
    Anant
    PHP is browser independant. The scripts themselves are run on the web server by a PHP interpreter and the output is sent to the web browser. The output however can eb browser dependant, for example, it may contain Javascript and HTML code which is designed to run in a particular browser.

    However, PHP runs as a CGI on most web servers and a CGI program is an execuatable file. To run a PHP script standalone without a browser you can make a small batch file (in Windows), then drag the file you want executed onto the icon:
    Code:
    @echo off
    
    rem make sure a script was given
    if "%1"=="" goto finish
    
    set output="%temp%\php_output_%1.html"
    
    rem path to php interpreter goes below - dumps output in a temporary file
    c:\php\php.exe %1 > %output%
    
    rem start your favorite browser
    "c:\program files\internet explorer\iexplore.exe" %output%
    
    :finish
    Call the above file php_exec.bat and put it on your desktop. Provided you have PHP installed you can execute the file.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:39 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com