Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Me1000

macrumors 68000
Original poster
Jul 15, 2006
1,794
4
ok i have one big file
basically there are about 60 html pages in this one file,

all the html for one page is in a <textarea> field

so i have about 60 of these

<textarea>
<lots of HTML>
</textarea>
<textarea>
<lots of HTML>
</textarea>
<textarea>
<lots of HTML>
</textarea>

ect...

I need a way to make a separate php page form the HTML in each of those <textfield> tags

Ive never used automator, but from what ive read this is the kind of thing it was made for...

Any help would be appreciated!

Thanks
 
its attached all 6600 lines!

i converted to txt since the board wont let me attach a html file

ok i zipped it up, since its too large for the board to let me upload!!
:eek:
 

Attachments

  • get.txt.zip
    40.8 KB · Views: 76
Please use this instead!

I had to fix some of the errors when it exported...
 

Attachments

  • site.php.zip
    41 KB · Views: 47
Anyone have any better ideas? lol

or will i have to do it by hand?
 
sorry i haven't replied, been away from the computer. I just downloaded it and will take a look soon.

edit: O_O (is all I have to say) looks do-able after I figure out exactly how
edit edit: well I believe its possible, the only problem is that well I cant figure out how. sorry I cant be more helpful. What happened to make it like that?
 
Well,

It is all stored in a MySQL database, each entry is on a different row in the DB

I wanted to convert it all over, so i made a PHP script that would out them all on one page. to differ the pages, i put them in a textarea field.
 
Oh my god!!!! your my savior! 1.5 hours???

Thank you for doing it by hand!
I really appreciate it!

I will have to convert them to php files for it to work,
I will attempt to do it in automator, but if you can post instructions it might help lol.
:)

BIG THANKS!!!!

nevermind i figured it out! :)
 
oh it was no problem. Just did it while watching some video podcasts. It was a brainless copy, paste, save, process. Glad you got automator to work, Its a great program to compliment applescript and other scripting languages.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.