473,799 Members | 2,972 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Godaddy Hosting blocks port 43 (newbie)

1 New Member
The program I have does a Whois search but can not use port 43 at Godaddy hosting.
http://www.netbonded.com/whois/samswhois.inc.php.

This is the code where the error occurs.

function dolookup($domai n, $server){
$domain = strtolower($dom ain);
$server = strtolower($ser ver);
if( $domain == '' || $server == '' ) return false;
if( $this->m_cachelifetim e > 0 ){
$data = $this->readfromcache( $domain, $server);
if( $data != '' ) return $data;
}
$data = "";
$fp = @fsockopen($ser ver, 43,$errno, $errstr, $this->m_connectionti meout);
if( $fp ){
@fputs($fp, $domain."\r\n") ;
@socket_set_tim eout($fp, $this->m_sockettimeou t);
while( !@feof($fp) ){
$data .= @fread($fp, 4096);
}
@fclose($fp);

if( $this->m_cachelifetim e > 0 ) $this->writetocache($ domain, $server, $data);
return $data;
}else{
return "\n\Error - could not open a connection to $server\n\n";
}
}
This is what the hosting company sent but I Do Not Known what to do with the code. It does not fit with this type of code. I have never programmed PHP. How do I redirect the port to where the hosting company has the proxy server?
curl_setopt ($ch, CURLOPT_HTTPPRO XYTUNNEL, TRUE);
curl_setopt ($ch, CURLOPT_PROXYTY PE, CURLPROXY_HTTP) ;
curl_setopt ($ch, CURLOPT_PROXY, http://64.202.165.130:3128);
curl_setopt ($ch, CURLOPT_SSL_VER IFYPEER, FALSE);

Thank you
Mar 8 '06 #1
1 4546
Banfa
9,065 Recognized Expert Moderator Expert
I've never tried anything like this before or seen the CURL library but I think they intend you to do this before your code along with a curl_exec and then a curl_close after your code.

However if this doesn't work then you should

1. Read the php documentation about CURL so that you understand what it is trying to do

2. Get back to the person/company that gave you this and ask for more help.
Mar 8 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
5088
by: Hans | last post by:
Hi everybody, I am desperately trying to log into my account at godaddy.com with PHP and Curl and just cannot make it happen. Has anybody written a script for this purpose? Here is what I tried but the result is always the login page. $curl=curl_init(); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
2
6942
by: Dale | last post by:
I'm (trying) to help a friend setup a MySQL db and use some simple scripts on a site hosted with GoDaddy. I note that GoDaddy appears to use Microsoft. I have done this: $connection = mysql_connect("localhost","mydatabase","password") or die ("Couldn't connect to server."); $sql = mysql_query("SELECT * FROM dummy"); $row = mysql_fetch_array($sql); echo $row; ?>
1
1772
by: David Horowitz | last post by:
Hi folks, Just set up Dedicated Server Hosting with GoDaddy. I put a very simple ASP page in the home web directory and try to load it and get a very generic error. A simple HTML file works fine. Obviously it's a permissions issue or maybe some service is not running. Any help would be appreciated! Thanks. Dave
0
5862
by: nfhm2k | last post by:
I've been trying to find a solution to this for quite some time now... I even took a look at existing scripts... Including this one... http://groups.google.co.uk/group/comp.lang.php/browse_thread/thread/2e052386da903425/b03ec83ac55273a2?lnk=st&q=&rnum=1#b03ec83ac55273a2 Everyone on that post seems to say its to do with the cookie's, yet if infact they had tried this script they would have found that even with the cookies enabled this...
34
1512
by: Martin | last post by:
I have a question regarding *use* of blocks. In Plauger's THE STANDARD C LIBRARY in xfmtval.c in Chapter 6 I noticed in function _Fmtval() that after some processing of 50 lines or so he creates a block char *_Fmtval( ... ) { /* .. 50 lines or so of code ... */
3
3474
by: Liam | last post by:
We currently have a dedicated server with Rackspace, and they've been been great for 5 years now. But they are SO expensive! We're looking into GoDaddy's dedicated hosting, and they're 1/3 to half as much but with even more features. They have a basic external hardware firewall, Rackspace you pay through the nose for. They do their own full backups (restore in case of hardware failure only) plus a very inexpensive backup server for us to...
2
1339
by: Tim Roberts | last post by:
If you have done PHP coding for a site using GoDaddy's "economy" hosting, and you wouldn't mind answering a couple of quick questions, would you be so kind as to contact me by email at timr@probo.com? -- Tim Roberts, timr@probo.com Providenza & Boekelheide, Inc.
3
2209
by: Webrickco | last post by:
Hi, I have the following issue when i upload my files to my hosting. I cannot send the following headers: <?php header('Content-Type: text/xml'); header('Pragma: no-cache'); When I execute the code, I get:
1
4062
vikysaran
by: vikysaran | last post by:
Hello, i'm getting few error on my AJAX enabled application when i'm uploading it to GoDaddy server. Its firsttime I'm using godaddy hosting. can anybody send me web.config file that's working on godaddy server and that is AJAX enabled.!? My mail address is <email removed>
0
9688
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10268
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10031
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7571
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5593
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4146
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.