Re: [PHP] On one of my computers, php can't see an external javascript I included
After I took Chris's advice and go to the .js file directly like http://locahost/myfunctions.js, I see the machine that is giving me a hard time says that there's a error in the javascript code. But, I took a look and the code seems fine to me. -- View this message in context: http://www.nabble.com/On-one-of-my-computers%2C-php-can%27t-see-an-external-javascript-I-included-tp18975937p19022011.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] On one of my computers, php can't see an external javascript I included
Hi, Thanks already for replying. How do you check for that??? And, what do you have to do to force Apache to load it??? Per Jessen wrote: googling1000 wrote: I have apache and php on Windows. I have 3 computers. A php file is calling an external .js file. Two of my computers have no problem calling a .js file, there's only one machine that doesn't execute functions inside of the .js file. My .php file has the following line in the beginning of the file: script src=myfunctions.js/script My .js file consists of a number of functions written in javascript I don't know why functions inside .js file doesn't get executed. I tried copy/paste all the functions inside the .js file to my .php file and it works. Check your apache log files to make sure your javascript source file is being loaded. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- View this message in context: http://www.nabble.com/On-one-of-my-computers%2C-php-can%27t-see-an-external-javascript-I-included-tp18975937p18976152.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] On one of my computers, php can't see an external javascript I included
Edit: I don't think Javascript is disabled on my computer. When I tried posting the code online, I see that my js functions are executed just fine on this one particular machine. -- View this message in context: http://www.nabble.com/On-one-of-my-computers%2C-php-can%27t-see-an-external-javascript-I-included-tp18975937p18985347.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] On one of my computers, php can't see an external javascript I included
I have apache and php on Windows. I have 3 computers. A php file is calling an external .js file. Two of my computers have no problem calling a .js file, there's only one machine that doesn't execute functions inside of the .js file. My .php file has the following line in the beginning of the file: script src=myfunctions.js/script My .js file consists of a number of functions written in javascript I don't know why functions inside .js file doesn't get executed. I tried copy/paste all the functions inside the .js file to my .php file and it works. I don't understand how my machine can't read an external .js file I'm frustrated. Help will be appreciated! -- View this message in context: http://www.nabble.com/On-one-of-my-computers%2C-php-can%27t-see-an-external-javascript-I-included-tp18975937p18975937.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php