Jump to content

New here, requesting assistance please! Basic PHP questions


BlackReef

Recommended Posts

Thank you in advance for your help.

 

I do not have alot of experience in PHP. I offered to help a friend put a simple submit form in the footer of their website.

 

So, I login to the FTP and download the index.php file (assuming this is the home page) and open it in dreamweaver. Instead of seeing the page in the design view, it is blank. So my question is, which files contain the actual home page? Im assuming its a header/footer, or something of the sort?

 

Here is the code itself in the index.php:

 

<?php

/*

ini_set('display_errors',1);

error_reporting(E_ALL|E_STRICT);

*/

// Define path to application directory

defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/application'));

// Define application environment

defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'active'));

// Define path to application directory

defined('ROOT_PATH') || define('ROOT_PATH', realpath(dirname(__FILE__)));

defined('BASE_URL') || define('BASE_URL', 'http://' . $_SERVER['SERVER_NAME']);

defined('HOST_URL') || define('HOST_URL', $_SERVER['SERVER_NAME']);

// Ensure library/ is on include_path

set_include_path(implode(PATH_SEPARATOR, array( realpath(ROOT_PATH . '/library'), get_include_path(), )));

require_once 'Zend/Application.php';

require_once 'My/Application.php';

$application = new My_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini' );

$application->bootstrap()->run();

 

Thanks in advance,

 

-J

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.