Google dot what?
Posts: 2
16 credits Members referred : 0
« Reply #2 on: Jul 03, 2009, 05:28:23 am »
Thanks for the reply! And the advice - my feed is at pbem2.com/xml.php
Ok, I see what I did wrong: I put my variable between the square brackets for $settings instead of after the square brackets. So I had this:
Code:
<?php $settings ['myusername'] = 'USERNAME';// Your twitter username $settings ['mypassword'] = 'PASSWORD';// Your twitter password $settings ['MysiteURL'] ='FEED';//The url of the feed we are going to post to twitter ?>
instead of this:
Code:
<?php $settings ['twitter-username'] = 'myusername';// Your twitter username $settings ['twitter-password'] = 'mypassword';// Your twitter password $settings ['feed-url'] ='MysiteURL';//The url of the feed we are going to post to twitter ?>
So when it was looking for the variable 'feed-url' it wasn't finding it because I'd typed over it. DUH.
Now the script executes with a blank screen. I created a test post on my site, verified it's in the feed, the executed the script - but the post didn't appear on my Twitter account. It's nice that the script executes silently so I can create a CRON job to run it when the time comes, but for now can someone help me with some checks I can put into the code to make sure it's executing each step properly? I'm not a novice at PHP, but I am completely self-taught and CURL is something I've never messed with so I'm not sure what it does.
Any help is greatly appreciated!
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5659
45587 credits Members referred : 3
« Reply #3 on: Jul 17, 2009, 04:30:31 am »
It should display an error if there is a problem. Maybe while you were debugging the log file has been created (feed.log.txt) and kept the last feed item. In that case it wont post until you add another item in your feed (or just delete the log file ).