PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
now i want to call this function with a javascript file (*.js) as one of its parameter to use it everywhere it is needed. my question is :how can i use this parameter in my function?.Please help me
Last edited by maldar on Sat Sep 06, 2003 3:38 pm, edited 1 time in total.
found nothing usefull at there,except a similar question
i want to write my diferent javascript in seperate file and call one of these files on one or more pages when thay are needful .
<script language="javascript" src="<br />
<b>Warning</b>: Division by zero in <b>c:\www\us\inc\output.fns.php</b> on line <b>68</b><br />
<br />
<b>Warning</b>: Division by zero in <b>c:\www\us\inc\output.fns.php</b> on line <b>68</b><br />
<br />
<b>Warning</b>: Division by zero in <b>c:\www\us\inc\output.fns.php</b> on line <b>68</b><br />
js"> </script>
and on line 68 of output.fns.php i wrote script tag.
What is happening is that the / is also the symbol for divide by as in 4/2=2 so the eaisest way to fix your script is to change your slashes form / to \ however the \ is seen as an escape character and as in \n for new line or \r for carriage return. So you have to escape the \ with a \ as in \\us\\js\\$spt.js So your code should look like