Hi KES99
Yes I have renamed the catalogue to shop. The configure folder is where it supposed to be. (the original file structure)
/shop/includes/configure.php
write permissions are as suggested by security procedures for zen item number 3 set configure.php to read only 444
Do you suggest I create a folder called www and drop the shop into it?
Cheers
RR
chdir(dirname(__FILE__));
DEFINE('PATH_TO_STORE_ROOT', dirname(__FILE__) . '/');
Hi All,
I have now tried changing the original file DEFINE('PATH_TO_STORE_ROOT','shop/'); to what Andrew Berezin suggested as per below,
The result now is upon calling the url http://www.adulttoys4u.com.au/shop/currency_update.php that I get a complete blank page and no errors...at all....So is this what is supposed to happen? I am not sure as there was no confirmation of anything, I run it and then then I run it again from the CP and I got different exchange rates but only by a few cents I am thinking thats because it updated from OANDA in the CP and from here http://www.ecb.europa.eu when called by the url..
Sooo Does it mean that If I go ahead and set the next stage IE the cron job now the currencies will be auto updated...
Cheers
Nearly there, Thanks KES99 I did get your PM hold that thought I think we are happening...
The file outputs nothing. This is deliberate, since it's designed to be run quietly and automatically as a script, not as a web page. So there would be nowhere in normal operation for any output to go.
The way I test it personally, is to tweak the currency rates in the database and then run it in a browser as you have and look in the database to see if they're changed. Then change them again and setup a CRON job for a few seconds into the future and look to see if they've changed. If those work then I set the CRON job to daily shortly after the official update time and check the results the next day.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Yeahiii that's fixed it and it all works just fine, (thanks for the code Andrew Berezin, I tested it like you suggested Kuroi and thanks to Kes 99 for your efforts.
PS Kuroi what is the GMT of the official currency update time.
Thanks
Regards
RR
This is what I have been doing and have noticed that - only Euro is being changed. I have INR (indian Rupee) and USD which stay the same - These are not being updated - I havent changed the default USD configuration in admin/currency. My default currency is GBP.
version. 1.3.9f
Personally I wouldn't have renamed anything. Too many things can and often do go wrong when you change the location of an installed item such as zen. Best is to install it where you want it and leave it alone.
I also wouldn't make a www folder. If you're on a linux/apache system www is often part of your path from the servers root. Actually it is often a link to public_html (the real root of your domain). You might really confuse things in having 2 www's.
Permission of 444 is correct.
Please check your message box for a PM from me.
Try the other solution suggested here by a_berezin. Other than that I'm stumped unless you reply in the afirmitive to my PM.