PDA

View Full Version : Question


-peace-
11-03-2004, 02:46 PM
I am not sure if this is where I am supposed to ask this question or not, but here goes.
-----------------------------------------------------------------------


Everytime I want to make a modification to the site and if a requirement says that I have to modify my functions.php file - I cant - the site has an error. ALWAYS. I have a backup of my functions.php file just in case I see something that would be benificial to us and maybe I will then try, but always I get an error after I do all the work and its always in my functions.php file. I dont understand why. Just now I wanted to fdo the Journal and it called for a modification in the functions and I tried to do that and then pull up the intranet and it doesnt come up - I get an error.

The error is like this

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in c:\inetpub\wwwroot\vb\includes\functions.php on line 1887

Fatal error: Call to undefined function: is_browser() in c:\inetpub\wwwroot\vb\global.php on line 93



I am going to attach my function.php file to this message and if anyone can help me understand why this is occuring it would be helpful. Attached is the bad script and a good script in a zip file.

Thank You

Brian
11-03-2004, 03:15 PM
It's against the vB license agreement to attach files like that, so please don't do that again.

As for your problem, http://vbadvanced.com/forum/search.php
Terms: 1887

Our Sponsors
 

stitch
11-03-2004, 03:19 PM
Out of curiousity what kind of mod did you try.

I looked at your files here are the lines

//the good file
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') === false, '?', '&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') === false, '?', '&amp;') . "explain=1\">Explain</a>)<br />\n";
//the bad file
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')=== false, '?', '?','&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')=== false, '?', '?','&amp;') . "explain=1\">Explain</a>)<br />\n";


Why do you have extra "?" mark?

-peace-
11-03-2004, 03:38 PM
Sorry Brian,

wont happen again, wasnt aware of that, now I am.
:confused:

I will look at that stitch

Our Sponsors
 

-peace-
11-03-2004, 04:57 PM
I am using dzsoft php now and looks like it fixed it. thanks