Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 00:04

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



PHP/Curl Frage

Discussion on PHP/Curl Frage within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1

 
Archiv.PW's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 383
Received Thanks: 47
PHP/Curl Frage [EDIT: GELÖST]

Abend,

Un-zwar wollte ich einen "TSDNS" Dienst über Cloudflare anbieten mittels SRV Record, ich Scheiter momentan an der Umsetzung die API ist Perfekt Dokumentiert und daher kein Problem Folgendes müsste ausgeführt werden:

Code:
curl https://www.cloudflare.com/api_json.html \
  -d 'a=rec_new' \
  -d 'tkn=MEIN_PERMISSION_TOAKEN' \
  -d 'email=' \
  -d 'z=ts3.cx' \
  -d 'type=A' \
  -d 'name=sub' \
  -d 'content=127.0.0.1' \
  -d 'ttl=120'

curl https://www.cloudflare.com/api_json.html \
  -d 'a=rec_new' \
  -d 'tkn=MEIN_PERMISSION_TOAKEN' \
  -d 'email=' \
  -d 'z=ts3.cx' \
  -d 'type=SRV' \
  -d 'name=ts3.cx' \
  -d 'ttl=120' \
  -d 'prio=0' \
  -d 'service=_ts3' \
  -d 'srvname=sub' \
  -d 'protocol=_udp' \
  -d 'weight=5' \
  -d 'port=1337' \
  -d 'target=sub.ts3.cx'
Meine Problem ist lacht mich nicht aus (PHP Skills = 0) ein Input Feld mit der $ServerIP sowie dem $Port und Natürlich die gewünschte $SubDomain das, den Inhalt von $ServerIP, $Port & $SubDomain an die richtigen Stellen im Obigen Curl Script Platziert.

Folgende Variablen sollen ausgetauscht werden:

Code:
  -d 'name=$SubDomain' \
  -d 'srvname=$SubDomain' \
  -d 'target=$SubDomain.ts3.cx'
  -d 'content=$ServerIP' \
  -d 'port=$Port' \
Ich bekomme das einfach nicht auf die kette wäre sehr Freundlich wenn mir Jemand die Nötigen Funkionen oder einen Schnipsel Posten Könnte und mir was dazu Sagen kann Dankeschön Schon mal

EDIT: GELÖST
Archiv.PW is offline  
Reply


Similar Threads Similar Threads
PHP Curl und Flashplayer
06/17/2014 - Web Development - 2 Replies
Hey, ich suche derzeit nach einer Lösung, mit Curl das ansehen eines Flashplayer Videos zu simulieren. Mit simulieren meine ich, dass die Seite, auf der das Flashplayer Video gehosted wird, "merkt", dass das Video abgespielt wird. Das alles mit Curl. Ist sowas möglich? Ich hab bisher zwar noch nicht komplett Google durchforscht (grins) aber schon etliche Seiten. Schon mal Danke für Eure Hilfe im Vorraus!
[C++/CURL] HttpDownloader
11/27/2013 - Coding Releases - 5 Replies
Gleichmal vorweg: Die Klasse ist unvollständig, teilweise vielleicht auch buggy, erst frisch fertig geworden und äußerst häßlich ohne großartige Strukturierung oder Kommentare in eine Datei gehakt. Dennoch möchte ich sie mit euch teilen. Beschreibung: Ich muss für ein Projekt Dateien via Http (später vielleicht auch noch FTP, weswegen es vielleicht noch eine Abstrakte Downloaderklasse geben wird) laden. Dazu benutze ich CURL, dessen typisches C-Interface halt nicht wirklich gut in die C++...
cURL - Wie erstellen?
12/10/2012 - Web Development - 1 Replies
Hallo, Wie kann ich so dynamische URLs erstellen. Example: /register.php?step=1 /register.php?step=2 /register.php?step=done und halt für Benutzer:
help with curl
05/20/2011 - CO2 Programming - 0 Replies
im trying to log in to a page using curl to modify one of my post like updating that specific post with new information over the time i dont understand very much curl and most of the examples i search are in php and i need it to use with autoit or the cmd directly right now im trying from the start, to get logged in the webpage i have found that i need the names of the inputs user and password and that i need a cookie to receive and to send, but when i check the curl.txt in a browser it...
[PHP] cUrl Login
04/19/2010 - Web Development - 0 Replies
So ich hab ein kleines Problem. Und zwar versuche ich für das Browsergame Space Pioneers einen Bot mit PHP zu schreiben was generell auch kein Problem wäre, allerdings habe ich ein kleines Problem. Und zwar gibt es zwei möglichkeiten sich einzuloggen, das wäre einmal auf Looki und einmal der Notfall Login Login. Nun zu meinem Problem. Das Einloggen im ersten Link klappt soweit ganz gut, ich habe meines errachtens auch alle Inputs mit übergeben, hat mir allerdings keinen Acceskey...



All times are GMT +2. The time now is 00:04.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.