Results 1 to 7 of 7

Thread: Portable PHP?

  1. #1

    Thread Starter
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    Portable PHP?

    lol, it so doesn't exist, but I figured I should ask.

    If I was to make a Code Snippet Library app thing that was web based, would I some how be able to stick it onto my USB Key without having to install Apache and PHP on every machine I wanted to view it on? I guess I'd need Portable MySQL as well.

    I know you can create PHP executables, but I don't think they'd be able to parse my php pages and show them in a browser that I can surf
    Don't Rate my posts.

  2. #2
    Hyperactive Member ninjanutz's Avatar
    Join Date
    Jun 2005
    Location
    Bayside
    Posts
    256

    Re: Portable PHP?

    if it does exist that would be awesome

  3. #3

    Thread Starter
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    Re: Portable PHP?

    http://www.webservusb.com/

    Damnit, if only it was free. Probably approaching this in the wrong way, I need to look for portable web servers...
    Don't Rate my posts.

  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Portable PHP?

    I have Apache, MySql, PHP 4 and PHP 5 all running off my USB disk I type. Its completely portable. The trick is, is to set all the file paths in the configuaration files relative to the root of the USB disk. I.e: the entire path without the drive letter e.g. \programs\apache\apache2.

    I have attached the httpd.conf config file I use for my portable version of Apache as an example.

    This is a subject I hope to be writing another tutorial on in the near future.
    Attached Files Attached Files
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  5. #5

    Thread Starter
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    Re: Portable PHP?

    Do you have logging turned off and stuff like that? I don't really want it to be writing stuff to my USB Key when it doesn't have to.

    Edit: Hurry up visualDad and gimmie a tutorial or something. Why must people be offline when I get interested in something?
    Last edited by Pc_Madness; Aug 2nd, 2005 at 09:14 PM.
    Don't Rate my posts.

  6. #6
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Portable PHP?

    I actually keep the loggin on, I have a 1Gb USB disk so don't really care if there is a 1Mb log on my disk . But, it can be turned off, PHP can be configured use a temporrary directory which is on the USB drive when creating files and Apache can run standalone instead of as a service.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  7. #7

    Thread Starter
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    Re: Portable PHP?

    Quote Originally Posted by visualAd
    I actually keep the loggin on, I have a 1Gb USB disk so don't really care if there is a 1Mb log on my disk . But, it can be turned off, PHP can be configured use a temporrary directory which is on the USB drive when creating files and Apache can run standalone instead of as a service.
    USB drives are only good for so many writes... 10,000 to a 100,000 or something and then they're no good, so I dunno, will have to look into it and see what files Apache changes while running and then start looking at PHP and MySQL
    Don't Rate my posts.

Posting Permissions

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



Click Here to Expand Forum to Full Width