hocam
O zaman $ip = "" için php'de bir kutu ekleyeceksiniz ve "" değerini iliştereceksiniz.
url = input("\nInsert URL/IP: ").strip()
if url == "":
print ("Please enter the url.")
starturl()diğer soruları kapatmayı başardım onlara sabit şeyler giriliyordu ama bu değişken olduğu için python3 script.py
google.com bu sondaki adresi $url'de nasıl algılatacağım python'un içerisinde ?
def starturl(): # in questa funzione setto l'url per renderlo usabile per il futuro settaggio delle richieste HTTP.
global url
global url2
global urlport
url = input("\nInsert URL/IP: ").strip()
if url == "":
print ("Please enter the url.")
starturl()
try:
if url[0]+url[1]+url[2]+url[3] == "www.":
url = "http://" + url
elif url[0]+url[1]+url[2]+url[3] == "http":
pass
else:
url = "http://" + url
except:
print("You mistyped, try again.")
starturl()
try:
url2 = url.replace("http://", "").replace("https://", "").split("/")[0].split(":")[0]
except:
url2 = url.replace("http://", "").replace("https://", "").split("/")[0]
try:
urlport = url.replace("http://", "").replace("https://", "").split("/")[0].split(":")[1]
except:
urlport = "80"
mode()