Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    php executable file

    My lecturer ask me to save my project's executable file on a CD so that she can run it. But i don't know how. I'm using php, MySQL and Apache. Please help!

  • #2
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Did you tell her that it was a php project? As far as I know there would be no way of doing this (easily at least). She may just mean the PHP file, but that would require her to have the same setup as you.

  • #3
    Mega-ultimate member
    Join Date
    Jun 2002
    Location
    Winona, MN - The land of 10,000 lakes
    Posts
    1,855
    Thanks
    1
    Thanked 45 Times in 42 Posts
    Well, you can run PHP from the command line in linux. All you need to do is add the #!/usr/bin/php line (or whatever the path to php is on your system) then chmod a+x the file.

    But I think you're talking about the windows world. Not sure how to do it there.

  • #4
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    its similar, I use:

    Code:
    C:\Documents and Settings\Matt>cd C:\php
    C:\php>php.exe C:\Path\To\File
    And it will output in the DOS window.

  • #5
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,040
    Thanks
    10
    Thanked 92 Times in 90 Posts
    both MySQL & Apache require write access so setting them up on a CD means configuring them to use available windows temp directories etc for PID files & table writes which you have to figure out at runtime.

    whilst the above is possible..far easier would be USB flash memory sticks , they are writable so don't have the same issues
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #6
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Obviously your teacher doesn't realize that you are doing a web based assignment otherwise they would not have asked for it on CD. Your best bet is to put it online on a publicly available webserver and turn in the the URL where they can find it.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #7
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you could also hand in all the scripts so that they can look through the code and have it on the webserver where they can see it in action.


  •  

    Posting Permissions

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