April 10th, 2002, 02:22 AM
Can I run MySQL/Apache/PHP/Perl from CD ROM?
I was wondering whether I can run Can I run MySQL/Apache/PHP/Perl from CD ROM? from CD ROM?
I need to give a presentation and don't want to carry my hdd along with me. Is there a way Except hosting the files on net to display the php scripting to some one else??
April 15th, 2002, 12:42 PM
in a windowsenvironment i assume?
eitherway, i don't think its possible; the server should be installed.
Maybe an option is to host it yerself?
April 15th, 2002, 04:46 PM
(Somewhat off-topic, but...) There is a program available at http://www.triplehash.com/content.php?id=26 for turning PHP applications into Windows programs.
However, I don't know if this can go as far as putting a whole MySQL database on the CDROM also. In other words, it might work just fine, as long as your application uses standard PHP functions, etc... but a database is an external application.
If you convert your application to temporarily run from CSV text files, or some other method of "flattening" your data onto the filesystem, then you should be fine, though.
The alternative is to find a way for MySQL to run in read-only mode from the CDROM. That just might be possible, because there has been some work done with using MySQL as an "embedded" database. But it is definitely not a standard MySQL feature. Try asking this question in the MySQL mailing lists.
Another possibility is to setup your application to use ODBC for it's database connectivity. MySQL using ODBC is not as fast as a native MySQL connection, but it abstracts the database details to use standardized Windows data access methods. This means you could change the database to any database supported by Windows, without significantly changing your application. Access 97 pr 2000, for example, could be your solution. I believe there is a run-time Access engine, specifically for this purpose. It doesn't allow database creation or modification of database schema, but it let's the user work with an Access MDB file.
There are all kinds of small proprietary databases made for such purposes also, which support ODBC.
Last edited by rycamor; April 15th, 2002 at 04:49 PM.
April 16th, 2002, 05:27 AM
Just check MicroWeb @ http://www.indigostar.com/microweb.htm.
Its a cool product.
It would provide you webserver which would run off the cd which supports PHP and Perl. But you would have to do without MySQL, I guess.
~ simple thought, simple act ~
I blog @ http://jdk.phpkid.org
April 16th, 2002, 11:46 AM
ok i got 404 kind of errors
Man it was poblem showing things online like i don't have mysql account. How the hell I can show my saome of database skills to some one who may offer me some job?
for both links I got 404 error. I think my ISP is to be blame for this as u must have checked those links
April 16th, 2002, 05:04 PM
No, the problem was Devshed. It added the period at the end of JD's sentence to the link. Just go to http://www.indigostar.com/ and click on the MicroWeb link. For my link above, just go to http://www.triplehash.com/ and click on the Serlient link.
My advice: don't waste too much time on this. Getting a CD-based application to run properly in anyone's computer is a chancy thing. You might get it to run perfectly on your PC, and then go to someone's office and have major trouble with it. It is more impressive if you can put your work online and just have someone browse it. If a business doesn't have a decent web connection, why would you want to work for them anyway?
April 17th, 2002, 12:13 PM
I think rycamor is right
I will really thank u for realising me which kind of fool I am
But the question is that i don't have some Database webspace for free which i need. Do U know some free php/mysql hosting services as f2g?
April 17th, 2002, 06:29 PM
April 19th, 2002, 12:16 AM
why not do a mock db? Output you db into a delimited flat file and modify your query statements into file statements. It could be done. Might be more trouble than it's worth though.
just another (probably useless) thought.
--the key to life is avoiding death--
April 19th, 2002, 11:52 AM
Does the all this means I Can't
All the above discussion means I need a webhosting space with MySQL support and I am unable to run MySQL/Apache/PHP/Perl from CD ROM.
OK I can use file functions and use them But the main thing is I wanna show off my DB skills
April 19th, 2002, 12:49 PM
Sorry, but yes, at least for practical purposes. I suppose there is a possibility you can run Apache/MySQL/PHP from a CD, but it would probably take months of compiling, tweaking, and testing, and even then I think it would work on one machine, and not on another.
Honestly, if you browse the hosting forum, you can find PHP/MySQL hosting for as low as $5/month (US). If your time is worth anything, this is much better than wasting days and weeks trying to make a non-standard solution.