Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NEWBIE: Variable setting 1

Status
Not open for further replies.

TheConeHead

Programmer
Joined
Aug 14, 2002
Messages
2,106
Location
US
I have some code done by someone else (phpmyfaq - you may know it) that I am trying to understand... I have some variable that are being used that I have no idead where it is being set at:

The result is this:
<td width="16%" align="center" height="20" class="subnav"><a href="/phpmyfaq/index.php?sid=170&amp;aktion=search" class="subnav">Search</a></td>

The php looks like:
"msgSearch" => '<a href="'.$_SERVER["PHP_SELF"]."?".$sids.'aktion=search" class="subnav">'.$msgSearch.'</a>',

I am wondering where $msgSearch comes from? Is it maybe being set on the server?

-*- Confused -*-


[conehead]
 
This looks like some kind of string constant. You might look in the configuration files for the script to see if it's being set there.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Thanks... configuration files? Would these be other php files? files on the server?

[conehead]
 
Yes, these would likely be additional PHP files on the server's filesystem. They could have ".php" extensions or something else, though.

Look through the script from which your posted excerpt comes. Does it have any inclue(), include_once(), require(), or require_once() invocations?


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
You are the man ( or woman ) Yeah, I did look through the includes.... except one (and that was it of course... apparently this is something that can be viewed in various languages and there is an include for which ever language it is configured to...

Thanks!

[conehead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top