cancel
Showing results for 
Search instead for 
Did you mean: 

PHP/javascript incompatability?

davewylie
Newbie
Posts: 1
Registered: 07-12-2008

PHP/javascript incompatability?

Hi,
I am having trouble with some code on my PlusNet ccgi website. It works on localhost, and on a server from another provider, but not on PlusNet. The problem is centered around the following. This code in a PHP file -
echo '<script src="gallery/AutumnCollection/getpics.php/"></script>';
which calls a PHP file, which won't return an array that it should. Does anyone have any idea why this shouldn't work? Is it to do with the fact that the calling PHP file is expecting a javascript file but links to a PHP file? What is there about PlusNet that causes it to fail when other servers work?
Any suggestions would be most welcome.
Dave.
1 REPLY
prichardson
Grafter
Posts: 1,503
Registered: 05-04-2007

Re: PHP/javascript incompatability?

Nothing specific about Plusnet that will cause this if the code is configured correctly.
What happens if you call the PHP file directly?
The direct output should indicate what the problem is.