Jump to content
Sign in to follow this  
NextCode

error Connect Url

Recommended Posts

NextCode

Hi , may someone could help

This code don't connect when starts, but if I put an web like a www.google.com , yes works good , ...

Wow can I do this ? its happening because its a .php ?

Thanks a lot for help and Regards

TCPStartup()

    While 1


Local $Socket , $Web


$Web = "www.somesite.com/SomePath/New.php?"


    $Socket = TCPConnect(TCPNameToIP($Web),"80")


    WEnd

Share this post


Link to post
Share on other sites
Myicq

You should study some internet fundamentals first.

Especially the part that says

a web address (like www.google.com) translates to an IP address of a service, typically a web server.
a URL (like www.google.com/Something/whatever)  is a combination between a path on the server and a server name.

So you are trying to connect to the DNS name "www.somesite.com/SomePath/New.php?" which obviously does NOT map to an IP address.

So save the path until later, K ?


I am just a hobby programmer, and nothing great to publish right now.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×