<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[c++&#x2F;php]]></title><description><![CDATA[<p>Hi<br />
Ich möchte ein c++ Programm schreiben, dass die Eingaben auf einer Internetseite speichert (z.B. den Highscore von einem Spiel).<br />
Die Webseite hat diesen Quelltext:<br />
http//localhost/test.php<br />
&lt;?php<br />
<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>n</mi><mi>a</mi><mi>m</mi><mi>e</mi><mo>=</mo></mrow><annotation encoding="application/x-tex">name=</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.43056em;"></span><span class="strut bottom" style="height:0.43056em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit">n</span><span class="mord mathit">a</span><span class="mord mathit">m</span><span class="mord mathit">e</span><span class="mrel">=</span></span></span></span>_GET[&quot;save&quot;];<br />
<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>f</mi><mi>p</mi><mo>=</mo><mi>f</mi><mi>o</mi><mi>p</mi><mi>e</mi><mi>n</mi><mo>(</mo><mi mathvariant="normal">&quot;</mi><mi>t</mi><mi>e</mi><mi>s</mi><mi>t</mi><mi mathvariant="normal">.</mi><mi>t</mi><mi>x</mi><mi>t</mi><mi mathvariant="normal">&quot;</mi><mo separator="true">,</mo><mi mathvariant="normal">&quot;</mi><mi>a</mi><mo>+</mo><mi mathvariant="normal">&quot;</mi><mo>)</mo><mo separator="true">;</mo></mrow><annotation encoding="application/x-tex">fp=fopen(&quot;test.txt&quot;,&quot;a+&quot;);  
</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.75em;"></span><span class="strut bottom" style="height:1em;vertical-align:-0.25em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.10764em;">f</span><span class="mord mathit">p</span><span class="mrel">=</span><span class="mord mathit" style="margin-right:0.10764em;">f</span><span class="mord mathit">o</span><span class="mord mathit">p</span><span class="mord mathit">e</span><span class="mord mathit">n</span><span class="mopen">(</span><span class="mord mathrm">&quot;</span><span class="mord mathit">t</span><span class="mord mathit">e</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathrm">.</span><span class="mord mathit">t</span><span class="mord mathit">x</span><span class="mord mathit">t</span><span class="mord mathrm">&quot;</span><span class="mpunct">,</span><span class="mord mathrm">&quot;</span><span class="mord mathit">a</span><span class="mbin">+</span><span class="mord mathrm">&quot;</span><span class="mclose">)</span><span class="mpunct">;</span></span></span></span>fwrite(<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>f</mi><mi>p</mi><mo separator="true">,</mo><mi mathvariant="normal">&quot;</mi><mi mathvariant="normal">&quot;</mi><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">fp,&quot; &quot;.</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.10764em;">f</span><span class="mord mathit">p</span><span class="mpunct">,</span><span class="mord mathrm">&quot;</span><span class="mord mathrm">&quot;</span><span class="mord mathrm">.</span></span></span></span>name);<br />
<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>f</mi><mi>c</mi><mi>l</mi><mi>o</mi><mi>s</mi><mi>e</mi><mo>(</mo></mrow><annotation encoding="application/x-tex">fclose(</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.75em;"></span><span class="strut bottom" style="height:1em;vertical-align:-0.25em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.10764em;">f</span><span class="mord mathit">c</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit">o</span><span class="mord mathit">s</span><span class="mord mathit">e</span><span class="mopen">(</span></span></span></span>fp);<br />
?&gt;<br />
Mit den Quelltext des c++ programm habe ich Probleme. Hier mein Versuch:<br />
#include &lt;iostream&gt;<br />
#include &lt;string&gt;<br />
#include &lt;windows.h&gt;<br />
#include &lt;winable.h&gt;</p>
<p>using namespace std;<br />
int main()<br />
{<br />
string meldung(&quot;Whats your name?\n&quot;),<br />
str1, summe;</p>
<p>cout &lt;&lt; meldung &lt;&lt; endl;<br />
getline( cin, str1);</p>
<p>summe=&quot;http//localhost/test.php?save=&quot; + str1;<br />
ShellExecute( NULL, &quot;open&quot;, summe, NULL, NULL, SW_HIDE );</p>
<p>system(&quot;pause&quot;);<br />
return 0;</p>
<p>} <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/230473/c-php</link><generator>RSS for Node</generator><lastBuildDate>Sun, 27 Sep 2026 09:20:47 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/230473.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 27 Dec 2008 12:01:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to c++&#x2F;php on Sat, 27 Dec 2008 12:01:31 GMT]]></title><description><![CDATA[<p>Hi<br />
Ich möchte ein c++ Programm schreiben, dass die Eingaben auf einer Internetseite speichert (z.B. den Highscore von einem Spiel).<br />
Die Webseite hat diesen Quelltext:<br />
http//localhost/test.php<br />
&lt;?php<br />
<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>n</mi><mi>a</mi><mi>m</mi><mi>e</mi><mo>=</mo></mrow><annotation encoding="application/x-tex">name=</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.43056em;"></span><span class="strut bottom" style="height:0.43056em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit">n</span><span class="mord mathit">a</span><span class="mord mathit">m</span><span class="mord mathit">e</span><span class="mrel">=</span></span></span></span>_GET[&quot;save&quot;];<br />
<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>f</mi><mi>p</mi><mo>=</mo><mi>f</mi><mi>o</mi><mi>p</mi><mi>e</mi><mi>n</mi><mo>(</mo><mi mathvariant="normal">&quot;</mi><mi>t</mi><mi>e</mi><mi>s</mi><mi>t</mi><mi mathvariant="normal">.</mi><mi>t</mi><mi>x</mi><mi>t</mi><mi mathvariant="normal">&quot;</mi><mo separator="true">,</mo><mi mathvariant="normal">&quot;</mi><mi>a</mi><mo>+</mo><mi mathvariant="normal">&quot;</mi><mo>)</mo><mo separator="true">;</mo></mrow><annotation encoding="application/x-tex">fp=fopen(&quot;test.txt&quot;,&quot;a+&quot;);  
</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.75em;"></span><span class="strut bottom" style="height:1em;vertical-align:-0.25em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.10764em;">f</span><span class="mord mathit">p</span><span class="mrel">=</span><span class="mord mathit" style="margin-right:0.10764em;">f</span><span class="mord mathit">o</span><span class="mord mathit">p</span><span class="mord mathit">e</span><span class="mord mathit">n</span><span class="mopen">(</span><span class="mord mathrm">&quot;</span><span class="mord mathit">t</span><span class="mord mathit">e</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathrm">.</span><span class="mord mathit">t</span><span class="mord mathit">x</span><span class="mord mathit">t</span><span class="mord mathrm">&quot;</span><span class="mpunct">,</span><span class="mord mathrm">&quot;</span><span class="mord mathit">a</span><span class="mbin">+</span><span class="mord mathrm">&quot;</span><span class="mclose">)</span><span class="mpunct">;</span></span></span></span>fwrite(<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>f</mi><mi>p</mi><mo separator="true">,</mo><mi mathvariant="normal">&quot;</mi><mi mathvariant="normal">&quot;</mi><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">fp,&quot; &quot;.</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.10764em;">f</span><span class="mord mathit">p</span><span class="mpunct">,</span><span class="mord mathrm">&quot;</span><span class="mord mathrm">&quot;</span><span class="mord mathrm">.</span></span></span></span>name);<br />
<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>f</mi><mi>c</mi><mi>l</mi><mi>o</mi><mi>s</mi><mi>e</mi><mo>(</mo></mrow><annotation encoding="application/x-tex">fclose(</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.75em;"></span><span class="strut bottom" style="height:1em;vertical-align:-0.25em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.10764em;">f</span><span class="mord mathit">c</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit">o</span><span class="mord mathit">s</span><span class="mord mathit">e</span><span class="mopen">(</span></span></span></span>fp);<br />
?&gt;<br />
Mit den Quelltext des c++ programm habe ich Probleme. Hier mein Versuch:<br />
#include &lt;iostream&gt;<br />
#include &lt;string&gt;<br />
#include &lt;windows.h&gt;<br />
#include &lt;winable.h&gt;</p>
<p>using namespace std;<br />
int main()<br />
{<br />
string meldung(&quot;Whats your name?\n&quot;),<br />
str1, summe;</p>
<p>cout &lt;&lt; meldung &lt;&lt; endl;<br />
getline( cin, str1);</p>
<p>summe=&quot;http//localhost/test.php?save=&quot; + str1;<br />
ShellExecute( NULL, &quot;open&quot;, summe, NULL, NULL, SW_HIDE );</p>
<p>system(&quot;pause&quot;);<br />
return 0;</p>
<p>} <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1636076</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1636076</guid><dc:creator><![CDATA[19freddy92]]></dc:creator><pubDate>Sat, 27 Dec 2008 12:01:31 GMT</pubDate></item><item><title><![CDATA[Reply to c++&#x2F;php on Sat, 27 Dec 2008 12:05:04 GMT]]></title><description><![CDATA[<p>Und deine Frage?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1636077</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1636077</guid><dc:creator><![CDATA[Firefighter]]></dc:creator><pubDate>Sat, 27 Dec 2008 12:05:04 GMT</pubDate></item><item><title><![CDATA[Reply to c++&#x2F;php on Sat, 27 Dec 2008 12:09:59 GMT]]></title><description><![CDATA[<p>Ich möchte wissen, wie man die Eingaben, die eine Person in einen c++ Programm macht auf einer Website speichern kann?<br />
(Damit andere User z.b. eines Spiels sehen, welchen Highscore die Anderen erreicht haben)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1636082</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1636082</guid><dc:creator><![CDATA[19freddy92]]></dc:creator><pubDate>Sat, 27 Dec 2008 12:09:59 GMT</pubDate></item><item><title><![CDATA[Reply to c++&#x2F;php on Sat, 27 Dec 2008 12:12:01 GMT]]></title><description><![CDATA[<p>Dazu müsstest du dich mal mit Sockets beschäftigen, aber mit Standard C++-Mitteln geht das nicht so einfach.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1636083</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1636083</guid><dc:creator><![CDATA[Firefighter]]></dc:creator><pubDate>Sat, 27 Dec 2008 12:12:01 GMT</pubDate></item><item><title><![CDATA[Reply to c++&#x2F;php on Sat, 27 Dec 2008 14:16:52 GMT]]></title><description><![CDATA[<p>Die einfachste Möglichkeit ist libcurl zu verwenden: <a href="http://curl.haxx.se/" rel="nofollow">http://curl.haxx.se/</a></p>
<p>Damit kannst du ganz einfach Dateien aus dem Internet öffnen und dann per GET oder POST Daten übertragen. Hier ein kleines Beispiel: <a href="http://trac.autopackage.org/attachment/ticket/79/autopackage-curl.c" rel="nofollow">http://trac.autopackage.org/attachment/ticket/79/autopackage-curl.c</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1636132</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1636132</guid><dc:creator><![CDATA[joomoo]]></dc:creator><pubDate>Sat, 27 Dec 2008 14:16:52 GMT</pubDate></item></channel></rss>