Page 1 of 1

Migrating data and files to a new site

Posted: Mon May 22, 2006 3:15 am
by ed209
Hi,

I'm migrating an existing site into a newly developed site. Most of the SQL stuff is straight forward, but I'm just wondering about migrating files. All the files need to go through an image re-size script (which already exists). Does anyone have any experience with this, any common pitfalls?

My plan is to write a custom script that will open, resize and move the files but I've never done it before so I'm not sure if there's an established proceedure for doing this.

Re: Migrating data and files to a new site

Posted: Mon May 22, 2006 8:55 am
by santosj
If you use GD, then this would be a simple task.

Posted: Mon May 22, 2006 9:16 am
by ed209
could you expand a bit on that.

I have actually managed to write a script that does exactly what I need but I think it's timing out as it's notfinishing the job. I have used set_time_limit(900); but I think the browser maybe timing out - not the script

Posted: Mon May 22, 2006 10:03 am
by santosj
Well, you need to post some code. It could probably be optimized a little bit.

Posted: Mon May 22, 2006 10:07 am
by ed209
I've managed to get it working. It turned out to be a permissions thing on some of the original files - php didn't have permission to open the file that's why it worked for some and not for others. I guess it's always the most obvious thing!