Solved

Package Apache/PHP/MySQL as a Downloadable?

Posted on 2007-03-17
10
230 Views
Last Modified: 2013-12-13
I have recently developed a very specialized PHP script that takes a file uploaded through Apache, processes it using temporary tables in a MySQL database (no data is permanently recorded), and then produces a large amount of output data, which it displays.  It was set up this way because, originally, I intended this all to occur (logically) on a webserver.  Output statistics could be kept in an account, and information could be cross-referenced between reports.

Unfortunately, through some testing, I've realized that I don't have the resouces to make this happen as described reasonably and cost-effectively.  Server-side processing of uploaded data (usually in the 2-5MB range) can take over 10 minutes (it processes the file line by line, usually in the 20k to 100k line range, and then modifies the table for each line depending on its composition), on top of bandwidth costs, makes this seem more reasonable as a downloaded application.  I'd prefer not to waste the time re-writing this in another program with another data management system, so I'm trying to figure out if there's a way to convert this PHP application into a downloadable application (for Windows) with as little headache (and as low cost) as possible.
0
Comment
Question by:richdiesal
10 Comments
 
LVL 14

Expert Comment

by:Aamir Saeed
ID: 18741388
0
 
LVL 9

Author Comment

by:richdiesal
ID: 18741420
I believe that app is just an all-in-one install of PHP, MySQL and Apache.  Forcing every client to install a webserver, database and scripting language is probably a little outside of the scope of what should happen here.

If this is the only path to take, I need some sort of self-contained application, i.e. when the user downloads, installs and starts it, it will automatically open the first page of my PHP app.  When they close the application, MySQL, PHP and Apache close with it.
0
 
LVL 11

Expert Comment

by:AnthonyP9618
ID: 18741644
I would look into XAMPP.  I use it locally on my machine for development work.  It saves a tremendous amount of time from having to install each one individually.  

The distribution for Windows 98, NT, 2000 and XP. This version contains: Apache, MySQL, PHP + PEAR, Perl, mod_php, mod_perl, mod_ssl, OpenSSL, phpMyAdmin, Webalizer, Mercury Mail Transport System for Win32 and NetWare Systems v3.32, JpGraph, FileZilla FTP Server, mcrypt, eAccelerator, SQLite, and WEB-DAV + mod_auth_mysql.

http://www.apachefriends.org/en/xampp-windows.html (Assuming you need for Windows).  

If not, http://www.apachefriends.org/en/xampp.html
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 49

Expert Comment

by:Roonaan
ID: 18742857
I think you shouldn't look into php for clientbased applications at this stage.

There might be out-of-the-box installable php applications in the future, but for now I would not go to the length of trying to get a webserver running on every client, let alone create a customized install app.
0
 
LVL 9

Author Comment

by:richdiesal
ID: 18744063
Well, I'm willing to avoid that - I just need an alternative.  What's the best path, then, between "existing PHP application" and "standalone application for Windows"?
0
 
LVL 3

Expert Comment

by:ERNesbitt
ID: 18748520
PHP-gtk would allow you to run a php script, but that's just for PHP.  Any custom db stuff or anything dealing with Apache would not be available.
0
 
LVL 9

Author Comment

by:richdiesal
ID: 18750963
Well, I suppose I can change DB manipulation stuff to some complicated array handling.  The program could instead read data from a file, process it, and then produce another CSV.  Can I do that with PHP-gtk?  A PHP program running at the command line maybe?  I'm not familiar with it.
0
 
LVL 3

Accepted Solution

by:
ERNesbitt earned 250 total points
ID: 18755683
Look at: http://gtk.php.net/

It's essentially a GTK+ framework that allows PHP scripts to run at the command line.  You can also create GUIs using Glade.
0
 
LVL 9

Author Comment

by:richdiesal
ID: 18777895
Thanks - this sent me down a path that lead to www.roadsend.com, which can compile PHP scripts into executables.
0
 
LVL 3

Expert Comment

by:ERNesbitt
ID: 18779073
Cool.  Glad to help.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question