Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
  • Site 2 year,3000UsersMonthly,done vast link builds (In: I Want to Sell My Website)
  • Internal link structure (In: General Search Engine Optimization)
  • Featured Web Site Template

    Hundreds More at Free Site Templates.com!

    Web Site Partners
    Sponsored Links
    Jet City Software
     
    Whos Here ?
    There are 0 guests and 1 members in the forums right now.
    Reflects user activity within the last 5 minutes
    Moderator(s): Prowler, jcokos
    Member Message

    karrella
    Joined: Aug 19, 2005
    # Posts: 41

    View the profile for karrella Send karrella a private message

    Posted: 2007-Mar-20 21:59
    Edit Message Delete Message Reply to this message

    Once again I have a strange question.

    I want to have a special link on my site.
    The link is to a text file located on a distributor's website and is named with a specific filename in the same format every week. In other words it's guaranteed predictable.

    Here is what the file would look like,
    shipping_032107.txt
    which means,
    shipping_(month)(day)(year).txt

    How could I use something to make the link the right name without modifying my page weekly? The one tricky part is that it's updated once a week and it would be Wednesdays date each time. So it actually has to predict the next date. Perhaps if the script couldn't do that it could figure out todays date, check it to the days of the week and add a number to equal the proper day, I have no idea what to start with for this.

    Anyone have any ideas?
    Thanks





    david68
    Joined: May 16, 2005
    # Posts: 144

    View the profile for david68 Send david68 a private message

    Posted: 2007-Mar-31 21:26
    Edit Message Delete Message Reply to this message

    I don't know how well this will work but...

    $file = 'shipping_'.date('mdy', strtotime('last wednesday')).'.txt';

    This would be the previous wednesday. Or if the file is NEXT wednesday change to "next".

    Also note that TIME ZONE could be a factor. If your server's zone is different the link won't work properly during that time. But, most servers are UTC so I doubt it'll be a problem. You could define the time zone if you know the other server's zone setting.

    If it works how about a link-back to my website smile (see my profile - my site is still under construction but I could use some link-backs)

    [ Message was edited by: david68 03/31/2007 02:08 pm ]




    You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
    1. You have not yet logged in, or registered properly as a member
    2. You are a member, but no longer have posting rights.
    3. This is a private forum, for which you do not have permissions.

    If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

    If you cannot find this message, click here to Re-Send it.

    If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

    Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

    New posts Forum is locked
    © 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions