Go Back  HTML Forums - Free Webmaster Forums and Help Forums > SERVER ADMINISTRATION > Windows Administration
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 07-21-2009, 12:06 PM
  #1
Zurom
Novice (Level 1)
 
Join Date: Jul 2009
Posts: 2
iTrader: (0)
Zurom is an unknown quantity at this point
Unhappy new to WAMP [Please Help]

Hi all,

I've been developing a website for sometime on webspace provided by godaddy. Recently looking at using a local server to develop my site, I saw that it had a bit more freedom. So I just installed WAMP and everything is working fine.

However, when I put my files from my GoDaddy FTP server into the "www" WAMP folder, my site has gone to not working at all.

First off, when I use "include", it actually includes all the content into the page creating a huge mess from the file being included, versus just bringing in the code to be used when the proper function is called.

Also, does WAMP support integrating, XHTML and JavaScript directly to work with PHP?

Here's an example of what I mean:
Code:
<script type="text/javascript">
    function SomeJSFunction()
    {
<?php   if ($variable == false) { ?>
            var jsVar = document.getElementById("formControl");
<?php   } ?>
    }
</script>
This worked fine on the webspace provided by Godaddy.

On a side note, that may or may not be relevant to this issue, the PHP version on the Godaddy server is 4.3.11. (So maybe some code I'm using is obsolete?)

Thanks for any help/insight
Zurom is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 07-21-2009, 02:08 PM
  #2
Zurom
Novice (Level 1)
 
Join Date: Jul 2009
Posts: 2
iTrader: (0)
Zurom is an unknown quantity at this point
Alright, I fixed the errors I listed above. I realized how picky this is now lol.

Anyways, I have another issue.

Using AJAX, I'm going to a PHP file to run some code. In this file is this function:
Code:
OpenConnection($hostname,$username,$password);
I'm getting the 3 variables from an included config file. I did an echo to ensure the variables weren't null. They aren't null.

Then I go to the actual "OpenConnection" function (found in a separately included file called "include"). The function looks like this:

Code:
function OpenConnection($hostname, $database, $password)
{
	$connect = @mysql_connect($hostname,$database,$password);
	mysql_select_db($database);
}
At this point, I'm just looking at FireBug's console to see what the AJAX response is, but the procedure goes for a minute exactly and stops (a time out supposedly). Any idea what might be causing this?
Zurom is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-05-2009, 08:43 AM
  #3
dilshad
Novice (Level 1)
 
Join Date: Sep 2009
Posts: 5
iTrader: (0)
dilshad is an unknown quantity at this point
Quote:
Originally Posted by Zurom View Post
Alright, I fixed the errors I listed above. I realized how picky this is now lol.

Anyways, I have another issue.

Using AJAX, I'm going to a PHP file to run some code. In this file is this function:
Code:
OpenConnection($hostname,$username,$password);
I'm getting the 3 variables from an included config file. I did an echo to ensure the variables weren't null. They aren't null.

Then I go to the actual "OpenConnection" function (found in a separately included file called "include"). The function looks like this:

Code:
function OpenConnection($hostname, $database, $password)
{
	$connect = @mysql_connect($hostname,$database,$password);
	mysql_select_db($database);
}
At this point, I'm just looking at FireBug's console to see what the AJAX response is, but the procedure goes for a minute exactly and stops (a time out supposedly). Any idea what might be causing this?
Hi Friend

as for my information what ever syntax you have written above it is not write
you must have to check your syntax

it should be like this

$con=connect_mysql("hostname","user","password") or die("couldnt select ".mysql_error());
dilshad is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


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



 
  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
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 09:25 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.