teentorque Posted January 20, 2010 Share Posted January 20, 2010 Hi guys, I'm trying to use this ATP Autosite PHP code to help automatically update my webcomic site, but it's not working, and I can't figure out why. I'd used it years ago and it worked fine then, so I don't know if I'm just forgetting permissions or if I accidentally edited the code or something. My knowledge of PHP is middling, and the original writer is no longer supporting the code so I can't ask him. Basically, what it does is detect image files that have been named YYYYMMDD in an "upload" folder, and if it finds something with today's date, it moves it to another folder and updates the index file to reflect this, thus autoupdating. Well, for some reason it did this just fine with the very first page two days ago, but as far as I can tell, with the second page (today) all it did was move the file. It updated the index file but the links are broken (the "first"/"previous" links aren't working: http://bp.tentative.net/). Any help would be greatly appreciated. What am I doing wrong? (Attaching the code, hopefully it shows up.) [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/189195-atp-autosite-autoupdate-not-working/ Share on other sites More sharing options...
wildteen88 Posted January 20, 2010 Share Posted January 20, 2010 The script relies on a setting called register_globals. This setting has been disabled for a while now (about 8 years ago), but a lot of hosts kept this setting enabled to prevent legacy scripts from breaking. However recently hosts are now starting to disable this setting as they transition over to PHP5, which is most probably what your webhost has done. This is why your script no longer works properly I recommend you to recode your script or find someone that will do it for you. Quote Link to comment https://forums.phpfreaks.com/topic/189195-atp-autosite-autoupdate-not-working/#findComment-998845 Share on other sites More sharing options...
teentorque Posted January 20, 2010 Author Share Posted January 20, 2010 Ohhh, so *that's* why. It makes sense now. Thanks so much for explaining it to me. Finding me a code expert right now. Thanks again! Quote Link to comment https://forums.phpfreaks.com/topic/189195-atp-autosite-autoupdate-not-working/#findComment-998851 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.