/    Sign up×
Community /Pin to ProfileBookmark

PHP Woes, advice please!

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:

[QUOTE]

<?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();

[/QUOTE]

Thanks in advance,
-J

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@BlackReefDesignauthorApr 19.2012 — 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:




Thanks in advance,

-J[/QUOTE]


Nevermind folks, I think I got it figured out. I found the header/footer files
×

Success!

Help @BlackReefDesign spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...