Author Topic: Creating new .php file  (Read 6783 times)

0 Members and 1 Guest are viewing this topic.

Offline abman5

  • Newbie
  • *
  • Posts: 25
    • View Profile
Creating new .php file
« on: August 24, 2008, 05:39:12 AM »
I want to add new .php file in root dir, suppose index2.php
In that page I want to put public contents of my site which can be viewed without login.
What steps is required for that new file.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Creating new .php file
« Reply #1 on: August 24, 2008, 06:04:40 AM »
Hello and welcome to 4images forum.

I'm not quiet sure what information do you need...It's all up to you what is going to be in that file...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline abman5

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Creating new .php file
« Reply #2 on: August 26, 2008, 08:07:13 AM »
I want to say that if I create a new .php file then which file I have to include to make that file work properly. Any body please post a sample code.

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: Creating new .php file
« Reply #3 on: August 26, 2008, 11:31:26 AM »
I want to say that if I create a new .php file then which file I have to include to make that file work properly. Any body please post a sample code.

Open index.php and check which files are includes (page_header.php, page_footer.php, global.php, sessions.php etc).