What are these all about???
Posted: Thu Oct 18, 2007 2:59 pm
feyd | Please use
my text editor recognizes it but I've never seen the : "<<<CONTROL" thing before... what does it do>????????
2. on the leaked Facebook code they reference all their includes as follows....
as I understand it the "$_SERVER['PHP_ROOT']" is defined by Facebook but what can we assume it contains, or is defined as??? and why are they using it?
3. this ones easy...
I just want a little more explanation of what this notation:
does... I understand it allows for some file traversing? but why is a security concern? what do I need to know about the two, three period thing..?
THANKS IN ADVANCE...
Having some explanation of these things will help me sleep at night:)
Andrew
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Ok so I would say i'm an intermediate programmer, but I 'm mostly a front end guy...
I've been trying to learn more about php & programming in general.
Basically I've stumbled across three things that I don't understand and I wanted to ask the community for a little explanation...
Maybe this will test your knowledge
1. in the media wiki code there is this section...Code: Select all
$control=<<<CONTROL
[Process]
Type=Diff text
Engine=MediaWiki
Script={$wgServer}{$wgScript}
Special namespace={$special}
[File]
Extension=wiki
URL=$url1
[File 2]
Extension=wiki
URL=$url2
CONTROL;2. on the leaked Facebook code they reference all their includes as follows....
Code: Select all
include_once $_SERVER['PHP_ROOT'].'/html/init.php';
include_once $_SERVER['PHP_ROOT'].'/lib/home.php';
include_once $_SERVER['PHP_ROOT'].'/lib/requests.php';
include_once $_SERVER['PHP_ROOT'].'/lib/feed/newsfeed.php';
include_once $_SERVER['PHP_ROOT'].'/lib/poke.php';3. this ones easy...
I just want a little more explanation of what this notation:
Code: Select all
../.../../THANKS IN ADVANCE...
Having some explanation of these things will help me sleep at night:)
Andrew
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]