Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Problem with inserting "include" statement  (Read 2108 times)

abc123

  • Newbie
  • *
  • Karma: 0
  • Posts: 6
Problem with inserting "include" statement
« on: June 26, 2007, 07:28:12 am »

Hello,

I just downloaded the 1.6 today.

With 1.5 the inlcude statement works fine (proves server is ok) !

With 1.6 I keep getting the following error message "Include Error: Forbidden file name"

Any suggestions ???

Thanks
Logged

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
Problem with inserting "include" statement
« Reply #1 on: June 26, 2007, 08:12:10 am »

Hi, abc... now, not saying you are but, this occurs when the path to the file is wrong... You have, I take it, given the correct path to the file ;)
Logged
"It's only dead fish that goes with the flow... "
Updated

abc123

  • Newbie
  • *
  • Karma: 0
  • Posts: 6
Problem with inserting "include" statement
« Reply #2 on: June 26, 2007, 09:07:47 am »

oops..

Yes when using http://  .. does not work..

using path   /home/public/etc.. /filename.txt  works

sorry to have troubled you.

I like this sw ...
Logged

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
Problem with inserting "include" statement
« Reply #3 on: June 26, 2007, 09:17:06 am »

Mhm... no trouble, mate... No trouble at all..

First of all, I assumed you where trying to include a file through the admin mode, that is using the button that is labeled "include", this was correct ?

In such case you have to remember where you put the file. Say you put it in a folder called /includes then when pressing the include button you only add includes/filename.txt, and click ok. Then it should work.

If this isn't the case, and you want to include a file manually in the index.php, you need to go about it somwwhat different. You need first to upload file to desired location (yet again we say /includes) and then place the include statement somewhere in the index.php like this:
Quote
And then it should be a done deal.
Logged
"It's only dead fish that goes with the flow... "
Updated

abc123

  • Newbie
  • *
  • Karma: 0
  • Posts: 6
Problem with inserting "include" statement
« Reply #4 on: June 26, 2007, 10:34:54 am »

Uisng the admin function is where I was having probs..

In any case I like your quick review on include.

Thanks
Logged

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
Problem with inserting "include" statement
« Reply #5 on: June 26, 2007, 10:46:55 am »

"...where I was having problems..."

No problem any more ?
Logged
"It's only dead fish that goes with the flow... "
Updated