Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Make a MySQL database by looking through PHP scripts.
Old 06-20-2006, 02:36 PM Make a MySQL database by looking through PHP scripts.
Extreme Talker

Posts: 219
Location: UK, East Anglia
Trades: 0
I wasn't sure whether to post this here or in The Database Forum forum so feel free to move it if it's in the wrong place

Ok, well i bought a website the other day but the only problem is i never got the MySQL database because the host deleted the site before they were able to make a back-up. I was talking to someone the other day and he said he thought there was some kind of program or something that could look through the PHP scripts for the site, at the mysql_querys and produce the database structure, is this true? It would be a great help to me if it is, because at the moment i'm having to go through all the scripts and do it my self and it's taking ages.
timsquash5 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-20-2006, 04:35 PM Re: Make a MySQL database by looking through PHP scripts.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You could do this but it is tedious and prone to errors for anything slightly complicated.

Most packages have some kind of install script are they still on the site ? or has the original owner any backups of the sql database in CSV or SQL scripts
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-20-2006, 04:46 PM Re: Make a MySQL database by looking through PHP scripts.
Extreme Talker

Posts: 219
Location: UK, East Anglia
Trades: 0
Nope, all i have is a load of PHP scripts.
timsquash5 is offline
Reply With Quote
View Public Profile
 
Old 06-20-2006, 04:48 PM Re: Make a MySQL database by looking through PHP scripts.
Defies a Status

Posts: 1,606
Trades: 0
If this was a turnkey script look for file named install.php in the files you received. If the last guy was sloppy it might still be there. This file is typically used to install the tables in a mysql DB.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 06-20-2006, 05:01 PM Re: Make a MySQL database by looking through PHP scripts.
Extreme Talker

Posts: 219
Location: UK, East Anglia
Trades: 0
no its not that kind of thing, i just bought his website but he couldn't make a back-up of the MySQL database quick enough. All it is is a load of PHP files, with no install files at all because its not something that is going to be distributed.

At the moment i'm having to go through the scripts, and if i see something getting inserted into say the user table then i create user table and so on. But the problem is the website has a big database structure and will take ages to make this way.
timsquash5 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Make a MySQL database by looking through PHP scripts.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15321 seconds with 12 queries