Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 07:02
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  PHP, Perl, ASP, JSP, CFM (Moderators: Flash-db, Musicman, vesa kortelainen, Ronald Wernecke, Jorge Solis, nothingGrinder)
| | |-+  How do you define the Host in this PHP script?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: How do you define the Host in this PHP script?  (Read 2077 times)
Jaylada
Seasoned Programmer
***
Posts: 144



View Profile WWW Email
« on: 07/26/09, 21:43 »

I'm not too familiar with how to define this, so any help on where to find this on my ISP would be helpful.  Thank you in advance.


<?php

define('DBINFO_HOST', ' what name here');
define('DBINFO_USER', 'xxxxx');
define('DBINFO_PASS', 'xxxxx');
define('DBINFO_DATA', 'databaseName');

?>
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #1 on: 07/26/09, 23:55 »

if the database engine is running at the same machine, under the same IP-Address, as the webserver, put 'localhost' there.
Else, put the name or IP-Address of the database machine there.
Logged

happy flashing
Cool
Ronald
Jaylada
Seasoned Programmer
***
Posts: 144



View Profile WWW Email
« Reply #2 on: 08/09/09, 18:27 »

I'm still having trouble connecting.

If there is a port defined for the server....   Is this referenced by using a colon between server and port name?

www.servername:portname



Thanks in advance
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #3 on: 08/09/09, 19:50 »

right.
If your host is not listening to standard port, you add the port with the colon.
Code:
www.hostname.com:1234
Logged

happy flashing
Cool
Ronald
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!