You are here: Re: How to Install a PHP Application? « PHP Programming Language « IT news, forums, messages
Re: How to Install a PHP Application?

Posted by Dr. No on 03/13/07 18:38

Every PHP application is different, so you need to follow the instructions that
came with the application _closely_. That being said, installation is often just
a matter of setting those constants in the file you showed us with the correct
setting for the server, and then uploading the whole directory structure into a
directory in the public web directory for the application that you've created.

Many of the PHP files in an application will not display output when run. An
application can have many files, not all of which are designed to be run alone.
Programmers like to break reusable code into different files so that different
scripts can share common bits of code.

You should investigate different tools for working with PHP. Notepad and Word
are _not_ appropriate. At least look into a _text_ editor that supports Unix
line endings. The reason you are getting the boxes at the end of the code is
because the PHP code you have uses the Unix style line endings (\n) instead of
the Windows line endings (\n\r). A good text editor will be aware of this, even
if you're editing the file on Windows. Notepad is _not_ a good text editor. With
a little effort you should be able to find a tool to edit your PHP files that is
much more appropriate to what you're doing. Try Notepad++ or SciTE. If you're
looking to play with the big girls and boys, Zend puts out a nice PHP IDE, but
it's commercial software.

PHPBABY3 wrote:
> Hi everyone,
>
> A. I downloaded SOKKIT a while ago. I am able to write PHP programs
> (a.k.a. files or scripts) in directory c:\apache2triad\htdocc using
> Notepad, and run them by connecting to localhost/filename. I use
> names that end in ".php" and in Windows Explorer they display as blue
> circles containing "php". There is a desktop icon, Sokkit Control
> Panel, which allows me to create empty SQL tables that I can then
> reference in my PHP programs.
>
> B. I have been given an application which I need to install, run and
> make changes to. It consists of a tree of directories and files. The
> directories are as follows.
>
> 1. CMR_SITE
> 2. CRM_SITE \ _MACOSX \ SITE
> 3. CRM_SITE \ SITE
>
> Under (2) and (3) are the same tree:
>
> 4. CRM \ ADMIN \ DB
> 5. CRM \ ADMIN \ DOCS
> 6. CRM \ ADMIN \ SQL
> 7. CRM \ ADMIN \ TEMPLATES
> 8. CRM \ CSS
> 9. CRM \ FILE_VAULT
> 10. CRM \ IMAGES \ FILE_ICONS
> 11. IMAGES
> 12. INCLUDES
> 13. JSCRIPT
> 14. STYLE
>
> Within these directories are a number of files that also display in
> Windows Explorer as blue circles containing "php". However, when I
> display them using Notepad the line feeds appear as squares in a
> continuous string that fills every line. They display fine in MS
> Word. Also, a problem started recently before this project: All of
> the characters in the files that I display in Wordpad are in italics.
>
> I was also given these notes:
>
> Configuration of CRM
>
> In config.php you'll need to change appropriate for your environment:
>
> // Database settings
> define ( "MYSQL_HOST", "localhost" );
> define ( "MYSQL_USER", "fanpi3_wrdp1" );
> define ( "MYSQL_PASSWORD", "UqcLrdKrbdNx" );
> define ( "MYSQL_DB", "fanpi3_crm" );
> define ( "ADMIN_EMAIL_ENABLED", true );
> define ( "ADMIN_EMAIL", "info@bkjproductions.com" );
> // Paths (Always include the ending slash
> ///home/fanpi3/public_html
> //was define ( "ROOT_DIR", "/home/content/O/t/i/OtisAhearn/html/
> crm/" );
> define ( "ROOT_DIR", "/home/fanpi3/public_html/crm/" );
> define ( "LOGIN_URL", "http://fanpierboston.com/crm/login.php" );
>
> At the root level, the website will have a contact.php form, a few
> files like crm_forgot_password.php and similarly prefixed crm_, all
> of which have actions or whatever pointing to files within the crm
> folder. The crm/admin folder will ultimately be password-protected
> via .htaccess, but scripts can run within the crm
> folder.
>
> How do I install and run this application? Any help or documentation
> would be greatly appreciated.
>
> P -
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация