Membership is FREE, giving all registered users unlimited access to every Acorn Domains feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

Right Of Registration EPP Script (Free)

I always start php scripts with:

chdir(__DIR__);

That way they can be called from anywhere and will always do everything relevant to the path they're in.
 
That's the quick fix I'd forgotten about, honestly yesterday was racking my brains. Might release a working cron version then if I have the time.
 
Cheers Rob . So if we put say:

chdir('/usr/local/bin/php /root/EPPFOLDER');

and drop this as top line in index.php, does that change all paths for the cron ?
 
I haven't done it so can't answer, if you're looking to test now just change the paths, I believe its only 6 places.
 
No usually the cron calls the file by path

eg
59 13 * * * php /root/to/chase/script.php

and the script.php has as the first line
chdir(__DIR__);

note the DIR is the actual text - it's not meant to be substituted with anything
That way any paths mentioned in the file will be relative to the location of the script itself and don't have to hardcode in the location

However if you've started editing your script to include actual file locations don't bother with what I've said :) I don't think there's actually that many occurrences that it's a big chore
 
No usually the cron calls the file by path

eg
59 13 * * * php /root/to/chase/script.php

and the script.php has as the first line
chdir(__DIR__);

note the DIR is the actual text - it's not meant to be substituted with anything
That way any paths mentioned in the file will be relative to the location of the script itself and don't have to hardcode in the location

However if you've started editing your script to include actual file locations don't bother with what I've said :) I don't think there's actually that many occurrences that it's a big chore

AAh ok. Brilliant. Thanks . I'll give it a try in a duplicate folder. Hadnt started editing yet. Was googling ch_dir
 
Well, chuff me sideways! It worked .... not I'm surprised that your code worked Rob and Aaron. Surprised I actually got it in the right place and set up a Cron via command line.

To Small victories !! Thank you both.
 
lol..... now how do i stop it ! Its writing logs every minute
 
Anybody else finding that the script is polling every 20 seconds or so instead of every minute?
 
If my replies are short today, it's not because I'm in a mood or anything! Just responding to a large quantity of people today, good luck all!
 
Don't worry - I'm pretty sure we're all going to be a little busy finalising things today. Good luck with any catches you have!
 
Before we go live at 2 can I just say thank you so much Aaron for releasing this script.

I’ve never used or setup vps before and it’s been a great learning curve.

We might not catch much, we might catch lots.

But thank you for levelling the playing field for us non techies.

Very much appreciated.
 
Before we go live at 2 can I just say thank you so much Aaron for releasing this script.

I’ve never used or setup vps before and it’s been a great learning curve.

We might not catch much, we might catch lots.

But thank you for levelling the playing field for us non techies.

Very much appreciated.

Agreed. And remember there's a donate link on his github to grab him a coffee / meal / ferrarri whatever

He's been fantastic throughout this whole project and very patient with muppets like me I'm sure being a pain in the socket.

Right...popping out for an hour. Roll on 4 PM.....
 
Please let me know if you picked anything up, would be good to know!
 
Firstly, thanks for the script Aaron, it is very much appreciated.

It worked fine for me on the testbed but when I updated the config/Config.php file to point at the live urls it gave me loads of errors, so I didn't grab any domains unfortunately.

php index.php
MESSAGE: EPP Connected
Next Run: 2019-06-01 14:00:00.000
PHP Notice: Undefined offset: 1 in app/Nominet/Dac.php on line 41
PHP Notice: Undefined offset: 1 in app/Nominet/Dac.php on line 41
PHP Notice: fputs(): send of 8 bytes failed with errno=104 Connection reset by peer in app/Nominet/Dac.php on line 36
PHP Notice: Undefined offset: 1 in app/Nominet/Dac.php on line 41
PHP Notice: Undefined offset: 1 in app/Nominet/Dac.php on line 41
PHP Notice: fputs(): send of 8 bytes failed with errno=32 Broken pipe in app/Nominet/Dac.php on line 36

I'm not sure what I did wrong. Did anyone else find this?
 

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members online

Premium Members

New Threads

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
      There are no messages in the current room.
      Top Bottom