introduction screenshots faq forum blog modules components download
Please use the search function and/or read the FAQ first.

Go to Topic: PreviousNext
Go to: Message ListNew TopicSearchLog InPrint View

naming computer



Posted by: cpmac
February 22, 2009 10:31PM
With 1.8 I had no trouble with naming my computer something other than localhost.
In 3.0 I can't get [mycomputer] to give anything but a blank page. No error message.

I've tried adding

127.0.0.1 mycomputer
127.0.0.1 localhost
127.0.0.1 sql2

to host
but that doesn't change anything.
Options: ReplyQuote
Posted by: st017
March 28, 2009 08:41PM
I just needed to find a way to differentiate between 2 installs, 1.8 on my laptop, and 3.0 on my desktop, and instead of changing the name of the computer I went into the http.conf used the ServerAdmin admin@localhost and changed it to ServerAdmin php4admin@localhost on the laptop and ServerAdmin php5admin@localhost
Then in my script I can use a switch or if statement to find out by using the variable $_SERVER['SERVER_ADMIN']

This way I can use the same script on either of my computers or basically any install of easyphp that I'm working with. the older versions don't have a password for the mysql but the new one has the password of mysql
if you also use the server http_host variable you can create a script that will work locally or on live servers easily without any modification to the connection settings.

Hope this helps, even though I know it's not the computer name.



Edited 1 time(s). Last edit at 03/28/2009 08:43PM by st017.
Options: ReplyQuote


Go to: Message ListSearchLog In
Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.