works on localhost, but errors on x10hosting

Status
Not open for further replies.

manoogim

New Member
Messages
11
Reaction score
0
Points
0
hello everyone. i am trying to post a demo page for my pet app.
http://mtmphp.x10hosting.com/ieademo/htdocs/registration.html

it is using php, ajax and javascript. on my home computer i debugged and deployed using zend environment. in order to show it to others,
i opened a free acct on x10 hosting and ftp-ed my files.
however immediately i am getting a javascript error, on page load.
to troubleshoot this error, i would like to see the server logs for my website. is this possible with free hosting ?
what is the best way of troubleshooting config issues? i am assuming it is a config issue since it works on my pc using localhost.
here is my url
http://mtmphp.x10hosting.com/ieademo/htdocs/registration.html
 

jtwhite

Community Advocate
Community Support
Messages
1,381
Reaction score
30
Points
0
You can see the error logs in cPanel.

It's located under Logs, named Error log.

33m7tdd.png
 
Last edited:

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
you need to edit the addresses of the files in the ieashow.js, as they aren't to be found on your account (the process.php file is missing)
 

manoogim

New Member
Messages
11
Reaction score
0
Points
0
yes you are correct.
on my localhost i was using a different root in javascript , other than ieademo :
sendRequest('/ieademo/htdocs/process.php? ') etc ..
is there a property in javascript that can detect under which context root the app is deployed ?
so in this case it would return 'ieademo' and i could build the path at run time.
var root = <get via js at run time>
sendRequest(root & '/htdocs/process.php? ')

you need to edit the addresses of the files in the ieashow.js, as they aren't to be found on your account (the process.php file is missing)
 

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
yes you are correct.
on my localhost i was using a different root in javascript , other than ieademo :
sendRequest('/ieademo/htdocs/process.php? ') etc ..
is there a property in javascript that can detect under which context root the app is deployed ?
so in this case it would return 'ieademo' and i could build the path at run time.
var root = <get via js at run time>
sendRequest(root & '/htdocs/process.php? ')

Put this in a php file and run it:

PHP:
<?php
echo $_SERVER['document_root'];
?>
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Status
Not open for further replies.
Top