Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
PHP/javascript incompatability?
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- PHP/javascript incompatability?
PHP/javascript incompatability?
07-12-2008 4:38 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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.
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 1
Re: PHP/javascript incompatability?
07-12-2008 11:00 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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.
What happens if you call the PHP file directly?
The direct output should indicate what the problem is.
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- PHP/javascript incompatability?