Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 19th, 2004, 06:30 AM
Authorized User
 
Join Date: Oct 2003
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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!

 
Old March 19th, 2004, 06:10 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

You want to copy a file to a CD? Just once? Does it have to be with PHP? Or can you just use your operating system (i.e. Windows Explorer)?

I think you need to elaborate on this a bit....

The way you put it, it sounds as if you just want to burn a CD....

----------
---Snib---
----------

<><
 
Old March 19th, 2004, 09:56 PM
Authorized User
 
Join Date: Oct 2003
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yeah. i want to burn it on a cd. it's my final year project. i have finished it and my lecturer needs to know how, or if, all the components on my project can be delivered as a stand-alone CD. i am thinking of just copy all .php to nero or whatever burning software but that method isn't going to make the database available on the CD.

 
Old March 20th, 2004, 06:11 AM
Authorized User
 
Join Date: Sep 2003
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What DB are you using? If it is MySQL then type the following
Code:
mysqldump -u USER -p DBName > /path/to/where/file/to/be/stored/DBName.sql
then enter your password. If successful go to the directory you placed the file and look at it. It will be a series of SQL statements, that will restored all the data to your DB.

Burn that onto CD with a readme that says to install this DB, create a DB with the same name in MySQL, and then launch mysql with following
Code:
mysql -u USER -p DBName < /path/to/where/file/to/be/stored/DBName.sql
I believe there is a similar method for Oracle and SQL Server, but I am not sure about how these work or if they even exist!

HTH


---
David Thorne, Student
UK
 
Old March 23rd, 2004, 10:07 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, your major problem is that your instructor won't be able to pop your CD in to the drive and just click around your application.

If your instructor is expecting PHP source files and a dump of your MySQL database, then that's easy to do. If your instructor is expecting a CD containing a runnable version of your project, then he's out of luck...


Take care,

Nik
http://www.bigaction.org/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Running executable file Promod333 Visual Basic 2005 Basics 1 September 7th, 2007 10:15 AM
Make Destination mdb file Executable ayazhoda Access VBA 8 April 25th, 2007 04:54 AM
Calling an executable file from ASP.NET kwilliams ASP.NET 2.0 Basics 0 June 8th, 2006 11:43 AM
dll.files in a executable file KennethMungwira VB.NET 1 December 12th, 2003 05:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.