• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Bear Bibeault
  • Liutauras Vilda
  • Devaka Cooray
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /mnt/CPSW/tmp/emts/web/2-STA-ALM-

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear friends,
I am doing a php application and some times i am getting errro likr "Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /mnt/CPSW/tmp/emts/web/2-STA-ALM-MON.php on line 16".The php file is given below.The mentioned line is "echo '<script type = "text/javascript" src= "Stylesheet/disable_F5.js" > </script>
" . What may be the parsing error , if ypu guys have anu idea please share with me ASAP.



<?php
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Purpose: This file is to load the monitoring applet
// -----------------------------------------------------------------------------
?>
<?php
echo '<script type = "text/javascript" src= "Stylesheet/disable_F5.js" > </script>
<script type = "text/javascript">
/*Called from alarm applet to pass poped up window sattsu*/
function getInfo(){
document.alarmApp.mngAppdataStartSocket(top.almPoppedUp);
}
/**
* This function starts the alarm pop up window
*/
function popOutAlmWin()
{
top.MainDataFrame.location.href="mainDataFrame.php";
var width = 900;
var height = 450;
var wleft = (screen.width - width) / 2;
var wheight = (screen.height - height) /2;

top.almWin = top.SectorFrame.window.open(top.contextId+"-STA-ALM-MON.html?CR=true&MJ=true&MN=true&WA=true&RefreshDuration=600","almWin","width="+width+",height="+height+","+"left="+wleft+",top="+wheight+","+"location=no menubar=no"+"status=no,toolbar=no,scrollbars=no,resizable=yes");
top.isAlarmMonRunning =0;
top.almPoppedUp = 1;
top.almWin.focus();
top.almWin.moveTo(wleft,wheight);
top.almWin.focus();
}
/**
* This function resets the alarm pop up
*/
function popUpClosed()
{

window.opener.top.almPoppedUp = 0;
top.isAlarmMonRunning=0;
//alert("popUpClosed almPoppedUp ="+window.opener.top.almPoppedUp +" isAlarmMonRunning="+top.isAlarmMonRunning)
}



/**
* This function resises teh applet
*/
function resize()
{
var w_newWidth,w_newHeight;
var w_maxWidth=1600, w_maxHeight=1200;

if (navigator.appName.indexOf("Microsoft") != -1)
{
w_newWidth=document.body.clientWidth-45;
w_newHeight=document.body.clientHeight-60 ;
}
else
{
var netscapeScrollWidth=15;
w_newWidth=window.innerWidth-netscapeScrollWidth;
w_newHeight=window.innerHeight-netscapeScrollWidth;
}

if (w_newWidth>w_maxWidth)
w_newWidth=w_maxWidth;

if (w_newHeight>w_maxHeight)
w_newHeight=w_maxHeight;

// alert("document.alarmApp = "+document.alarmApp)
document.alarmApp.setSize(w_newWidth,w_newHeight);
window.scroll(0,0);

}

</script>
<title> Alarm Monitoring </title>

<body onUnLoad="popUpClosed();" onLoad="" onResize="resize();" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" >
<applet name="alarmApp"archive="./Applet/alarm/alarm.jar" code ="AlarmApplet.class" width="100%" height="100%">
<param name="Window" value="no"/>
<param name="CLIENTID" value="2060563439">
<param name="IpAddress" value="107.108.204.159">
<param name="PortNo" value="65472">
<param name="CR" value="1">
<param name="MJ" value="1">
<param name="MN" value="1">
<param name="WA" value="1">
<param name="DF" value=>
<param name="AlarmNumber" value="4">
<param name="ContextId" value="2"></applet>
</body>';
?>


Thnaks
Rakesh
 
Hold that thought. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!