Jump to content

Recommended Posts

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]

Link to comment
https://forums.phpfreaks.com/topic/189195-atp-autosite-autoupdate-not-working/
Share on other sites

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.