Useful Links
You will need to login before you can post. Please enter the following details:
User Name:    Password: 
Looking for something?
Want to be more precise?
Advanced Search
 

Go Back  NetBusinessTalk.com > Developing an Internet Business > Website Coding & Technology > auto file running


Reply
 
LinkBack Thread Tools Display Modes
Old 09-04-06, 12:39 AM   #1
Active Member
 
Join Date: Aug 2006
Posts: 76
Default auto file running


so i had something in the script request and had not gotten anything so i decided to try coding on my own, for this one. here is my initial thought but i know i need a little help because i am missing a few components.
*what it does- checks the xml file and if the <pubDate> matches up then it submits it to the header location which allows it to ping. i need this file to run on a daily basis at i don't know midnight or something. and if it sees a file in there that matches the new date it will ping the header. now, if it doesn't, i don't want it to, but more importantly the way itunes works is any date that is the most future it takes that as the most current. so in my example on the code i want it to display the aug date, but not the sept date. any thoughts? here is the code. one more idea at the bottom.
PHP Code:

<?php


$publishDate

= date('D, j M Y G:i:s');



if (

$publishDate == '<pubDate></pubDate>'){




header("Location: https://phobos.apple.com/WebObjects/MZFinance.woa/wa/pingPodcast?feedURL=http://www.site.com/rss.xml");



} else {

exit();
}


?>



<?xml version="1.0" encoding="UTF-8"?>





<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">


<channel>

<title>site</title>
<link>http://www.mysite.com</link>
<language>en-us</language>
<copyright>Copyright 2006 site.</copyright>
<itunes:subtitle>F T</itunes:subtitle>
<itunes:explicit>clean</itunes:explicit>
<itunes:author>site</itunes:author>
<itunes:summary>lipsum ipsum .</itunes:summary>
<description>lipsum ipsum .</description>
<ituneswner>
<itunes:name>site</itunes:name>
<itunes:email>email@site.com</itunes:email>
</ituneswner>
<itunes:image href="http://example.com/podcasts/everything/AllAboutEverything.jpg" />
<itunes:category text="Health">
<itunes:category text="Fitness &amp; Nutrition"/>
</itunes:category>
<itunes:category text="Sports &amp; Recreation"/>


<item>
<title>F T &amp; sdc</title>
<itunes:explicit>clean</itunes:explicit>
<itunes:author>site</itunes:author>
<itunes:subtitle>sdc</itunes:subtitle>
<itunes:summary>lipsum ipsum .</itunes:summary>
<enclosure url="http://www.dir.com/podcast/sdc.m4v" length="5203998" type="audio/x-m4a" />
<guid>http://www.dir.com/podcast/sdc.m4v</guid>
<pubDate>mon, 28 aug 2006 11:37:00 GMT</pubDate>
<itunes:duration>0:58</itunes:duration>
<itunes:keywords>F T &amp; sdc</itunes:keywords>
</item>

<item>
<title>F T &amp; sdc</title>
<itunes:explicit>clean</itunes:explicit>
<itunes:author>site</itunes:author>
<itunes:subtitle>sdc</itunes:subtitle>
<itunes:summary>lipsum ipsum .</itunes:summary>
<enclosure url="http://www.dir.com/podcast/sdc.m4v" length="5203998" type="audio/x-m4a" />
<guid>http://www.dir.com/podcast/sdc.m4v</guid>
<pubDate>mon, 4 sept 2006 11:37:00 GMT</pubDate>
<itunes:duration>0:58</itunes:duration>
<itunes:keywords>F T &amp; sdc</itunes:keywords>
</item>

</channel>

</rss>





the other idea i have is i have a php file with all the data if something matches up then it paste's the info onto the xml file which then post it. lets through around some ideas and come up with this program



Last edited by seopro; 09-04-06 at 12:49 AM.
seopro is offline   Reply With Quote
Old 09-04-06, 12:41 AM   #2
Busy Member
 
Join Date: Aug 2006
Posts: 116
Default Re: auto file running

Get a cron job setup, I believe that is what you're looking for
csmaster2005 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:14 PM.

© 2006 - 2008 Net Business Talk Forums | About Net Business Talk Forums | Legal | A member of the Crowdgather Forum Community
 
 
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Designed by Vbulletinskinz.com