Follow us on Twitter!
Your life is ending one minute at a time. If you were to die tomorrow, what would you do today?
Friday, April 18, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 28
Guests Online: 27
Members Online: 1

Registered Members: 82828
Newest Member: uberscon
Latest Articles
View Thread

HellBound Hackers | Computer General | Webmasters Lounge

Author

php include error...


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 02-05-07 15:16
I dont know whats the problem. Hopefully one of you can help me.

here's my error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\wamp\www\includingfile\include()\index.php on line 2



Code
<?php
include($_SERVER['DOCUMENT_ROOT'] "/myfile.php");
?>






Thanks in advance




Edited by on 02-05-07 15:20
Author

RE: php include error...

BIBER
Member



Posts: 70
Location: Serbia
Joined: 30.07.06
Rank:
Newbie
Posted on 02-05-07 15:23
Try this:
Code
<?php
include($_SERVER['DOCUMENT_ROOT'].'/myfile.php');
?>



dot



take your time,look around
i178.photobucket.com/albums/w261/BIBERR/Revisionist.jpg
i178.photobucket.com/albums/w261/BIBERR/dmz.jpg
Author

RE: php include error...


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 03-05-07 01:30
I did try it. I still get the exacly the same error

Thanks for the help though


Author

RE: php include error...


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 03-05-07 01:41
Code
<?php
include($_SERVER['document_ROOT'])."/myfile.php";
?>




document_ROOT isn't enclosed properly.

Edited by on 03-05-07 01:42
Author

RE: php include error...


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 03-05-07 01:41
i could be wrong, but isnt this vulnerable to RFI/LFI?


Author

RE: php include error...


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 03-05-07 01:44
bigggnick wrote:
i could be wrong, but isnt this vulnerable to RFI/LFI?


i thought it was a predefined variable; which defeats against that sort of R/LFI
Author

RE: php include error...


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 03-05-07 01:52
ok, i dont really know much about RFI/LFI, just making sure you were careful


Author

RE: php include error...

richohealey
Member



Posts: 1022
Location: #!/usr/local/bin/python
Joined: 01.05.06
Rank:
Monster
Posted on 03-05-07 04:56
<?php
include($_SERVER['document_ROOT']. $_GET['page'] ) ;
?>

would be vulnerable


bitchohealey at hotmail dot com skype:richohealey www.psych0tik.net