Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: What Software  (Read 4232 times)

0 Members and 1 Guest are viewing this topic.

Steve.H

  • Translator
  • Coppermine novice
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 46
What Software
« on: October 28, 2004, 03:34:41 pm »

Hi! I'm trying to edit a whole new theme, and right now, all my Website is made thru Dreamweaver.
But i want to know what kind of tools, do you guys use to edit your sites, PHP.

I can't "preview" the PHP files, as I do with .HTML files.

Thanks in advance!
Logged

jabi

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: What Software
« Reply #1 on: October 28, 2004, 07:56:42 pm »

You can't view php files on your local machine unless you have php and a webserver installed since PHP is a scripting language.

The webserver I installed on my WindowsXP machine is Abyss Web Server, a free personal web server available for Windows, MacOS X, Linux, and FreeBSD operating systems from  Aprelium Technologies  (http://www.aprelium.com/abyssws/).

Get PHP from http://www.php.net/.

You will also need to load mySql (http://www.mysql.com/)on your machine to work with the databases. I'd also recommend getting phpMyAdmin (http://www.phpmyadmin.net/home_page/) to help you manage your database(s).

Once you have everything installed and configured correctly, you can set up your Testing Server using the PHP MySql server model in Dreamweaver.
 
Logged

Nibbler

  • Guest
Re: What Software
« Reply #2 on: October 28, 2004, 07:59:02 pm »

PHP is a scripting language, you cannot simply 'preview' it. The files can be viewed in any text editor eg. notepad but will not be much use to you unless you know PHP.
Logged

Steve.H

  • Translator
  • Coppermine novice
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 46
Re: What Software
« Reply #3 on: October 29, 2004, 06:10:18 am »

Hey Jabi,

Thanks for such a detailed explanation, i got it now. I'll try to set up my Computer into a WebServer.
Really Apreciate :)

Cheers.
Logged

jabi

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: What Software
« Reply #4 on: October 29, 2004, 10:46:13 am »

No problem.

One other hint. Since it's a pain to try and keep two separate config files for database access (one for the local host and another for the remote server) I set up my config file with an if statement.

Example include/config.inc.php

// MySQL configuration
   if($_SERVER['HTTP_HOST'] == "localhost") {
      $CONFIG['dbserver'] = 'localhost';        // Your database server
      $CONFIG['dbuser'] = 'local_dbuser';        // Your mysql username
      $CONFIG['dbpass'] =  'local_password';                // Your mysql password
      $CONFIG['dbname'] =  'local_dbname;        // Your mysql database name
   }
   else
   {
      $CONFIG['dbserver'] = 'remote_server;        // Your database server
      $CONFIG['dbuser'] = 'remote_username';        // Your mysql username
      $CONFIG['dbpass'] = 'remote_password';                // Your mysql password
      $CONFIG['dbname'] = 'remote_dbname';        // Your mysql database name
   }

Hope this helps make your life a bit easier.

Jabi
Logged

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: What Software
« Reply #5 on: October 29, 2004, 11:56:26 am »

Hey Jabi,

Thanks for such a detailed explanation, i got it now. I'll try to set up my Computer into a WebServer.
Really Apreciate :)

Cheers.
It doesn't get much easier than this -

xampp

I run this on one of my partitions and it's really easy to setup and use.  I was up and running in about 10 minutes. It's a whole package, mysql, perl, GD, got it all.

Edit: typo
« Last Edit: October 29, 2004, 12:29:23 pm by rphMedia »
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.