Jump to content

This topic is 6743 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

Can anyone explain this error?

Warning: fsockopen() [function.fsockopen]:/ unable to connect to XX.XXX.X.XXX:591 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in c:InetpubwwwrootFXFX.php on line 610

My database is published online for XSLT and XML. I was able to access the XML through the web browser.

Here is my PHP code:

<?php

// include fx.php

include_once("../FX/FX.php");

?>

Untitled Document

<?php

//declare an instance

$raceGenerQuery = new FX("XX.XXX.X.XXX");

// Specify database and layout details

$raceGenerQuery->SetDBData("raceGender", "applicants");

// Specify the parameters that you wish to pass to the database using one line like this for each field:

$raceGenerQuery->AddDBParam("nameFirst", "Moses");

$raceGenerQuery->AddDBParam("nameLast", "Blumenstiel");

$raceGenerQuery->AddDBParam("nameMiddle", "Aaron");

$raceGenerQuery->AddDBParam("gender", "male");

$raceGenerQuery->AddDBParam("race", "white");

$ReturnedData = $raceGenerQuery->FMNew(); //create a new record

Thanks,

Moses

Edited by Guest
Posted (edited)

Never mind! I got it. Here's the change I made:

//$raceGenerQuery = new FX("18.142.4.107");

$raceGenerQuery = new FX("18.142.4.107","80","FMPro7");

I hope that helps somebody.

Moses

Edited by Guest

This topic is 6743 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.