Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Ezilon Directory   Improve your ranking, submit to directories   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 06-01-2008, 01:07 PM   #1 (permalink)
Junior Member
 
Join Date: 05-12-08
Posts: 11
iTrader: 0 / 0%
Latest Blog:
None

smart_ladoo is liked by many
Connection failed

I am not familiar with php coding. I have a site which is already uploaded to server, now i want to run the script in local, but i am failed. From my view i have to change the connection file which is named db.inc and another is db_config.php. Please tell me where to change: The code is given below

1. db.inc:

<?

$hostName = "localhost";
$userName = "-------";
$passWord = "-------";
$dbName = "--------";


if (!($connection = @mysql_pconnect($hostName, $userName, $passWord)))
echo "no connection stablished!";

if (!@mysql_select_db($dbName, $connection))
echo "no database connectivity!";

// for web server
$siteAdmin = "http://www.-----.com/subfolder";
$siteUrl = "http://www.------.com";

2.db_config:

<?php

if (!defined("DB_SERVER")) define("DB_SERVER", "localhost");
if (!defined("DB_NAME")) define("DB_NAME", "---------");
if (!defined("DB_USER")) define ("DB_USER", "---------");
if (!defined("DB_PASSWORD")) define ("-------", "------");
smart_ladoo is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 06-02-2008, 08:09 AM   #2 (permalink)
Contributing Member
 
Izzmo's Avatar
 
Join Date: 11-01-03
Location: Kansas City
Posts: 1,068
iTrader: 0 / 0%
Latest Blog:
Troublesome Exhaust

Izzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to behold
Send a message via ICQ to Izzmo Send a message via AIM to Izzmo Send a message via MSN to Izzmo Send a message via Yahoo to Izzmo
What do you mean by "run the script in local" ?

If you mean your computer, you need to have a server running, like Apache, and php installed on it.
__________________
Izzmo
Coding Guru Extraordinaire
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
Izzmo is online now  
Add Post to del.icio.us
Reply With Quote
Old 06-02-2008, 12:26 PM   #3 (permalink)
Junior Member
 
Join Date: 05-12-08
Posts: 11
iTrader: 0 / 0%
Latest Blog:
None

smart_ladoo is liked by many
Ya i have installed apache.
smart_ladoo is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-03-2008, 10:38 AM   #4 (permalink)
Contributing Member
 
Izzmo's Avatar
 
Join Date: 11-01-03
Location: Kansas City
Posts: 1,068
iTrader: 0 / 0%
Latest Blog:
Troublesome Exhaust

Izzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to behold
Send a message via ICQ to Izzmo Send a message via AIM to Izzmo Send a message via MSN to Izzmo Send a message via Yahoo to Izzmo
What is happening? Is the source of the file just showing up?
__________________
Izzmo
Coding Guru Extraordinaire
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
Izzmo is online now  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
When needed most, he failed us kwvarga Forum Lobby 10 05-03-2007 08:09 AM
I have a script I failed to market latehorn Marketing Forum 13 08-03-2006 10:19 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 08:50 AM.
© Copyright 2008 V7 Inc