cancel
Showing results for 
Search instead for 
Did you mean: 

PHP script wont work

Azagoth
Grafter
Posts: 620
Thanks: 3
Registered: ‎01-08-2007

PHP script wont work

Can someone tell me why this simple little image rotation script refuses to work?
http://robm.me.uk/articles/image-rotation-in-php
I followed it to the letter, yet when I link to the rotate.php file it refuse to work.  Is there something I need to activate for my webspace to recognise this?
5 REPLIES
Community Veteran
Posts: 14,469
Registered: ‎30-07-2007

Re: PHP script wont work

This needs to run on your ccgi webspace, is that where you are runing it. It won't work on your www webspace.
You may need to activate CCGI via member centre.
Azagoth
Grafter
Posts: 620
Thanks: 3
Registered: ‎01-08-2007

Re: PHP script wont work

This is on my ccgi webspace, the link to the file is :-
http://ccgi.azagoth.plus.com/sigs/rotate.php
Yet it's not working for some reason, and I'm not exactly an expert when it comes to all this stuff.
Community Veteran
Posts: 14,469
Registered: ‎30-07-2007

Re: PHP script wont work

You need to set the permissions on the file to 750 using either chmod via the shell prompt, or within your FTP program used to upload the file.
See the usertools tutorials about accessing the ccgi server via cshell and about file permissions.
Azagoth
Grafter
Posts: 620
Thanks: 3
Registered: ‎01-08-2007

Re: PHP script wont work

Aha!  Thanks, it seems to be working now.  Smiley
Community Veteran
Posts: 14,469
Registered: ‎30-07-2007

Re: PHP script wont work

IE7 is fine but it does not work in firefox 2 so you may need to query that with the developers.