CRON-jobs

Discuss all aspects of programming here.

Moderator: The Mod Squad

Postby Toby B. » Mon Nov 15, 2004 1:15 am

ok thanks. I will give it a go and will let you know... :wink:
Toby B.
Lead Mobo-fu Master
Lead Mobo-fu Master
 
Posts: 14277
Joined: Sun Dec 16, 2001 1:01 am
Location: Maine

Postby Aussie » Mon Nov 15, 2004 3:56 am

1) using php file functions build an array with all the pages you want to link to.
2) use a foreach statement to cycle through array
3) on each pass build your subject and content data using the array you built. For example for the subject strip the .html from the value and add a space and the word Motherboard. For your content value add the root of your url to the array value http://s87841630.onlinehome.us/model/aspen/ + aspen.html
4) call insert post on each pass using the parameters you make in step 3 above.
5) grab the result value on each pass from insert post and build an array of topic ideas - pair this with the value from your first array so you have aspen.html -> 120. This will alllow you to go back and use a foreach to update your html pages with the topic id.
6) use foreach, the array from step 5 and the file functions to update your html pages.


8O 8O :? :? :roll: :roll: :oops: :cry:


I think I now know why I stick with hardware. :P



Aussie
Our lives begin to end the day we become silent about things that matter - Martin Luther King
Aussie
Mobo-fu Master
Mobo-fu Master
 
Posts: 10244
Joined: Mon Nov 22, 1999 1:01 am
Location: Mackay, Queensland, Australia

Postby Toby B. » Mon Nov 15, 2004 4:12 am

Aussie wrote:
1) using php file functions build an array with all the pages you want to link to.
2) use a foreach statement to cycle through array
3) on each pass build your subject and content data using the array you built. For example for the subject strip the .html from the value and add a space and the word Motherboard. For your content value add the root of your url to the array value http://s87841630.onlinehome.us/model/aspen/ + aspen.html
4) call insert post on each pass using the parameters you make in step 3 above.
5) grab the result value on each pass from insert post and build an array of topic ideas - pair this with the value from your first array so you have aspen.html -> 120. This will alllow you to go back and use a foreach to update your html pages with the topic id.
6) use foreach, the array from step 5 and the file functions to update your html pages.


8O 8O :? :? :roll: :roll: :oops: :cry:


I think I now know why I stick with hardware. :P



Aussie
Well the rate I am going I am losing ground on both ends. I dont really deal with much hardware these days, so I am losing touch with that, and as far as coding goes - I am trying to absorb too much too quickly and am not finding any books to be of any help....

Thank god we have mobocop.... 8)
Toby B.
Lead Mobo-fu Master
Lead Mobo-fu Master
 
Posts: 14277
Joined: Sun Dec 16, 2001 1:01 am
Location: Maine

Postby MoboCop » Mon Nov 15, 2004 5:19 am

with each post I can feel this project ending up on my desk! 8O
Not everything that can be counted counts, and not everything that counts can be counted - Albert Einstien
MoboCop
Drunken Master
 
Posts: 8854
Joined: Tue Jan 18, 2000 1:01 am
Location: Fresno

Postby Toby B. » Mon Nov 15, 2004 7:09 am

MoboCop wrote:with each post I can feel this project ending up on my desk! 8O
Well IF I thought I could possibly afford it I would, but I can't and besides I am (believe it or not) trying to learn...

Just havent found the right source materials yet. I hope to make a trip to Borders and see what they have availible for coding books.. Barnes and Noble don't have much availible these days....
Toby B.
Lead Mobo-fu Master
Lead Mobo-fu Master
 
Posts: 14277
Joined: Sun Dec 16, 2001 1:01 am
Location: Maine

Postby MoboCop » Mon Nov 15, 2004 7:37 am

Toby B. wrote:
MoboCop wrote:with each post I can feel this project ending up on my desk! 8O
Well IF I thought I could possibly afford it I would, but I can't and besides I am (believe it or not) trying to learn...

Just havent found the right source materials yet. I hope to make a trip to Borders and see what they have availible for coding books.. Barnes and Noble don't have much availible these days....


The problem you are having is that this is some medium to advanced php work.

One thing you might want to analyze is how much time it would take you to do it by hand versus learn how to do it.

As far as affording it, I would not charge you Toby. I would rather you figured it out of course but if you cannot I can help you with it.
Not everything that can be counted counts, and not everything that counts can be counted - Albert Einstien
MoboCop
Drunken Master
 
Posts: 8854
Joined: Tue Jan 18, 2000 1:01 am
Location: Fresno

Postby Toby B. » Wed Nov 17, 2004 6:16 am

I think that I am going to sideline the project for now and just use notepad to keep a list...

just to give you a snippet of why I was looking to automate things a bit..:

Not all pages are live yet!!
List of boards I am integrating:
http://www.s87841630.onlinehome.us/mode ... z-top.html
http://www.s87841630.onlinehome.us/mode ... agreb.html
http://www.s87841630.onlinehome.us/mode ... yukon.html
http://www.s87841630.onlinehome.us/mode ... stone.html
http://www.s87841630.onlinehome.us/mode ... /yale.html
http://www.s87841630.onlinehome.us/mode ... enon4.html
http://www.s87841630.onlinehome.us/mode ... enon3.html
http://www.s87841630.onlinehome.us/mode ... ienna.html
http://www.s87841630.onlinehome.us/mode ... enice.html
http://www.s87841630.onlinehome.us/mode ... vc820.html
http://www.s87841630.onlinehome.us/model/uzi/uzi.html
http://www.s87841630.onlinehome.us/mode ... waver.html
http://www.s87841630.onlinehome.us/mode ... wave3.html
http://www.s87841630.onlinehome.us/mode ... wave2.html
http://www.s87841630.onlinehome.us/mode ... uwave.html
http://www.s87841630.onlinehome.us/model/uib1/uib1.html
http://www.s87841630.onlinehome.us/mode ... oonl+.html
http://www.s87841630.onlinehome.us/mode ... hoonb.html
http://www.s87841630.onlinehome.us/mode ... on10m.html
http://www.s87841630.onlinehome.us/mode ... oon10.html
http://www.s87841630.onlinehome.us/mode ... tr100.html
http://www.s87841630.onlinehome.us/mode ... rtuga.html
http://www.s87841630.onlinehome.us/mode ... topaz.html
http://www.s87841630.onlinehome.us/mode ... itanr.html
http://www.s87841630.onlinehome.us/mode ... itanm.html
http://www.s87841630.onlinehome.us/mode ... tanII.html
http://www.s87841630.onlinehome.us/mode ... tiger.html
http://www.s87841630.onlinehome.us/model/tap/tap.html
http://www.s87841630.onlinehome.us/mode ... tango.html
http://www.s87841630.onlinehome.us/mode ... adega.html
http://www.s87841630.onlinehome.us/mode ... ahiti.html
http://www.s87841630.onlinehome.us/mode ... ngray.html
http://www.s87841630.onlinehome.us/mode ... iders.html
http://www.s87841630.onlinehome.us/mode ... iderd.html
http://www.s87841630.onlinehome.us/mode ... pider.html
http://www.s87841630.onlinehome.us/mode ... sonic.html
http://www.s87841630.onlinehome.us/mode ... niper.html
http://www.s87841630.onlinehome.us/model/uib1/uib1.html <== Shelby
http://www.s87841630.onlinehome.us/model/sd11/sd11.html
http://www.s87841630.onlinehome.us/mode ... aturn.html
http://www.s87841630.onlinehome.us/mode ... ta-fe.html
http://www.s87841630.onlinehome.us/mode ... samba.html
http://www.s87841630.onlinehome.us/mode ... salsa.html
http://www.s87841630.onlinehome.us/mode ... 81-m+.html
http://www.s87841630.onlinehome.us/model/ruby/ruby.html
http://www.s87841630.onlinehome.us/mode ... pcurl.html
http://www.s87841630.onlinehome.us/mode ... aptor.html
http://www.s87841630.onlinehome.us/mode ... ilver.html
http://www.s87841630.onlinehome.us/mode ... 2_CMT.html
http://www.s87841630.onlinehome.us/mode ... ilver.html
http://www.s87841630.onlinehome.us/model/puma/puma.html
http://www.s87841630.onlinehome.us/mode ... uffer.html
http://www.s87841630.onlinehome.us/mode ... owler.html
http://www.s87841630.onlinehome.us/mode ... tland.html
http://www.s87841630.onlinehome.us/mode ... l500g.html
http://www.s87841630.onlinehome.us/mode ... rahna.html
http://www.s87841630.onlinehome.us/mode ... liner.html
http://www.s87841630.onlinehome.us/mode ... eline.html
http://www.s87841630.onlinehome.us/mode ... gasus.html
http://www.s87841630.onlinehome.us/mode ... angea.html
http://www.s87841630.onlinehome.us/mode ... ndora.html
http://www.s87841630.onlinehome.us/mode ... xford.html
http://www.s87841630.onlinehome.us/mode ... sprey.html
http://www.s87841630.onlinehome.us/model/oslo/oslo.html
http://www.s87841630.onlinehome.us/mode ... neon2.html
http://www.s87841630.onlinehome.us/model/neon/neon.html
http://www.s87841630.onlinehome.us/model/nara/nara.html
http://www.s87841630.onlinehome.us/mode ... tangs.html
http://www.s87841630.onlinehome.us/mode ... rcury.html
http://www.s87841630.onlinehome.us/mode ... s6382.html
http://www.s87841630.onlinehome.us/mode ... rison.html
http://www.s87841630.onlinehome.us/mode ... oorea.html
http://www.s87841630.onlinehome.us/mode ... ntana.html
http://www.s87841630.onlinehome.us/mode ... mocha.html
http://www.s87841630.onlinehome.us/mode ... souri.html
http://www.s87841630.onlinehome.us/mode ... d6340.html
http://www.s87841630.onlinehome.us/mode ... 2000a.html
http://www.s87841630.onlinehome.us/model/maui/maui.html
http://www.s87841630.onlinehome.us/mode ... mambo.html
http://www.s87841630.onlinehome.us/mode ... luxor.html
http://www.s87841630.onlinehome.us/mode ... ondon.html
http://www.s87841630.onlinehome.us/mode ... omita.html
http://www.s87841630.onlinehome.us/mode ... isbon.html
http://www.s87841630.onlinehome.us/mode ... opard.html
http://www.s87841630.onlinehome.us/mode ... launi.html
http://www.s87841630.onlinehome.us/mode ... ungur.html
http://www.s87841630.onlinehome.us/mode ... stral.html
http://www.s87841630.onlinehome.us/mode ... kelut.html
http://www.s87841630.onlinehome.us/mode ... -6130.html
http://www.s87841630.onlinehome.us/mode ... amet2.html
http://www.s87841630.onlinehome.us/mode ... -6130.html
http://www.s87841630.onlinehome.us/model/K2/k2.html
http://www.s87841630.onlinehome.us/mode ... piter.html
http://www.s87841630.onlinehome.us/model/jive/jive.html
http://www.s87841630.onlinehome.us/mode ... diana.html
http://www.s87841630.onlinehome.us/mode ... udson.html
http://www.s87841630.onlinehome.us/mode ... holly.html
http://www.s87841630.onlinehome.us/mode ... ndrix.html
http://www.s87841630.onlinehome.us/model/hawk/hawk.html
http://www.s87841630.onlinehome.us/mode ... rrier.html
http://www.s87841630.onlinehome.us/mode ... nland.html
http://www.s87841630.onlinehome.us/mode ... ndale.html
http://www.s87841630.onlinehome.us/mode ... garry.html
http://www.s87841630.onlinehome.us/mode ... arcia.html
http://www.s87841630.onlinehome.us/mode ... -5smm.html
http://www.s87841630.onlinehome.us/mode ... ognac.html
http://www.s87841630.onlinehome.us/mode ... focus.html
http://www.s87841630.onlinehome.us/mode ... fm562.html
http://www.s87841630.onlinehome.us/mode ... alcon.html
http://www.s87841630.onlinehome.us/mode ... orer4.html
http://www.s87841630.onlinehome.us/mode ... orer2.html
http://www.s87841630.onlinehome.us/mode ... scape.html
http://www.s87841630.onlinehome.us/mode ... elise.html
http://www.s87841630.onlinehome.us/mode ... ectra.html
http://www.s87841630.onlinehome.us/model/echo/echo.html
http://www.s87841630.onlinehome.us/mode ... duray.html
http://www.s87841630.onlinehome.us/mode ... rango.html
http://www.s87841630.onlinehome.us/mode ... iablo.html
http://www.s87841630.onlinehome.us/mode ... storm.html
http://www.s87841630.onlinehome.us/mode ... anube.html
http://www.s87841630.onlinehome.us/mode ... 60004.html
http://www.s87841630.onlinehome.us/mode ... 6000x.html
http://www.s87841630.onlinehome.us/mode ... 6000x.html
http://www.s87841630.onlinehome.us/mode ... 6000x.html
http://www.s87841630.onlinehome.us/mode ... sfire.html
http://www.s87841630.onlinehome.us/mode ... cr120.html
http://www.s87841630.onlinehome.us/mode ... zumel.html
http://www.s87841630.onlinehome.us/mode ... congo.html
http://www.s87841630.onlinehome.us/mode ... ondor.html
http://www.s87841630.onlinehome.us/mode ... umbia.html
http://www.s87841630.onlinehome.us/mode ... ognac.html
http://www.s87841630.onlinehome.us/mode ... cobra.html
http://www.s87841630.onlinehome.us/mode ... E31-A.html
http://www.s87841630.onlinehome.us/mode ... rolla.html
http://www.s87841630.onlinehome.us/mode ... amaro.html
http://www.s87841630.onlinehome.us/mode ... apest.html
http://www.s87841630.onlinehome.us/model/bmw/bmwr.html
http://www.s87841630.onlinehome.us/model/bmw/bmw.html
http://www.s87841630.onlinehome.us/mode ... lazer.html
http://www.s87841630.onlinehome.us/mode ... 440zx.html
http://www.s87841630.onlinehome.us/mode ... rmuda.html
http://www.s87841630.onlinehome.us/mode ... erlin.html
http://www.s87841630.onlinehome.us/model/avnv/avnv.html
http://www.s87841630.onlinehome.us/mode ... lanta.html
http://www.s87841630.onlinehome.us/mode ... s0325.html
http://www.s87841630.onlinehome.us/mode ... spen3.html
http://www.s87841630.onlinehome.us/mode ... aspen.html
http://www.s87841630.onlinehome.us/mode ... argon.html
http://www.s87841630.onlinehome.us/mode ... mazon.html
http://www.s87841630.onlinehome.us/model/am31/am31.html
http://www.s87841630.onlinehome.us/mode ... atraz.html

and this is not it I am afraid. I am going to refine this list a bit more to cutout duplicate pages...
Toby B.
Lead Mobo-fu Master
Lead Mobo-fu Master
 
Posts: 14277
Joined: Sun Dec 16, 2001 1:01 am
Location: Maine

Previous

Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest