Questions tagged [file-inclusion]

23 questions
0
votes
0 answers

files included creates Call to a member function fetch_assoc() on a non-object

Trying to integrate a new script with my existing homepage I am required to include 2 new php files in my index.php. I love playing with web development but sadly my coding knowlage is very limited. (CMS and GUI make human stupid) if ($page ==…
cam
  • 13
  • 5
0
votes
2 answers

How do I access the parent directory of public_html in Apache?

I remember reading a while ago how it's possible for someone to access your computers filesystem from the website. I want to know how to do it, so I can test and prevent it from happening. Running Apache 2.4 on Windows via XAMPP My virtualhost is…
tgun926
  • 1,573
  • 4
  • 21
  • 37
0
votes
1 answer

How can I write an XSLT that will recursively include other files?

Let's say I have a series of xml files in this format: A.xml:
Page A
blAh blAh blAh
B.xml:
Page B
Blah Blah…
Eric
  • 95,302
  • 53
  • 242
  • 374
0
votes
1 answer

context of file inclusion in php

Good morning, I am trying to to learn how the file inclusion in php works. Today, I am having a problem that I can not solve. This is my scenario: Files at same directory: - config.php - db.php - functions.php -…
manix
  • 14,537
  • 11
  • 70
  • 107
0
votes
0 answers

file not including in wordpress header

i want to include a file in the header file which is in this directory : wp-content/themes/themename/header.php the code i used for inclusion is : include("../../plugins/booking/informationform.php"); while the file which i want to include is in…
Pranshu Jain
  • 570
  • 1
  • 7
  • 20
-1
votes
1 answer

Dynamic JSP Inclusion - problems with preparing and validating allowlist

I have to change the source code of my training application to validate only .jsp files from created allowlist. Currently, logic works but without validating pages and it looks like that: <% String somePage = "user"; …
-1
votes
1 answer

Bypass file extension on File Inclusion Attack

I read a ethical hacking book and I should pass a exercise. In this exercise there is a php code like this: I must access passwd by appling file inclusion attack. I tried put %00 end of…
Enes
  • 301
  • 2
  • 7
  • 15
-1
votes
1 answer

Why including cdn s twice in a page breaks the functionality of the associated cdn

I have many times faced this problem that including a particular file or CDN twice in a page breaks the functionality of the CDN. The solution is to add it only once per page. Now I want to know the cause for it. For example, suppose I have…
neophyte
  • 6,540
  • 2
  • 28
  • 43
1
2