Jump to content

Recommended Posts

Posted

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
Posted

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.

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...