Very Very weird behavior....file needs to be ftp'd to work?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Very Very weird behavior....file needs to be ftp'd to work?

Post by Burrito »

last week I posted a question about the yahoo! store and being able to use php to dynamically pull out file ID's from a database and populate a single design page. After further investigation and phone calls to Yahoo! support, I deemed it impossible to accomplish the mission I was after. I therefore came up with my own scheme which, on paper, sounded perfect.

I would generate a php page that would accept a url parameter then write out a static HTML page with the yahoo store tags containing the ID of the particular item that the HTML page was for. Great, problem solved right?

In principle yes, it works exactly as it should. It writes out the HTML with the yahoo! store tags then does a nice simple header() redirect to the new html page. Great, works fine the right?

Nope! instead of yahoo! parsing the page and displaying the contents correctly, I actually see the yahoo store tags on the page (in the source code). Even if I refresh the page (this is just static HTML at this point), it doesn't parse the yahoo! store tags. Now here's where it gets funky. If I download the html page with an ftp client (FileZilla in my case) and then simply upload it back to the yahoo! store, then refresh my page, it works!?!?

I've seen some strange voodoo in my programming days, but this one takes the cake. All I can assume is that somehow the ftp'ing of the file is somehow modifying it to yahoo!'s liking.

can anyone shed some light here? I suppose I could set it up to ftp the file offline, then pull it back...but oh my gawd what a pita would that be?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

sounds like a permissions/ownership problem.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

you are my friggin' hero feyd!
Post Reply