PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
PHP auslesen und wieder includen
Beitrag
<blockquote data-quote="quipnip" data-source="post: 1660582" data-attributes="member: 132249"><p>Ist es möglich mehrere PHP codes in einer datei zu sammeln, und dann immer nur ein Codefragment zu includen?</p><p></p><p>Also ich muss mehrere PHP-Dateien so anlegen:</p><p></p><p>[php]</p><p><?PHP</p><p> include_once('proxy.php');</p><p> $conf = array(</p><p> 'auth' => 'keyhier', // Authkey</p><p> 't4tid' => 'XXXX' // Seitennummer</p><p> );</p><p> $proxy = proxy::getProxy($conf);</p><p>?></p><p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></p><p><html xmlns="http://www.w3.org/1999/xhtml"></p><p><head></p><p><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></p><p><title>Unbenanntes Dokument</title></p><p><?PHP</p><p> echo $proxy->getCSS();</p><p>?></p><p></head></p><p></p><p><body></p><p><?PHP</p><p> echo $proxy->getContent();</p><p>?></p><p></body></p><p></html></p><p>[/php]Jede PHP-Datei hat eine andere <span style="color: #000000"><span style="color: #dd0000">'t4tid' </span><span style="color: #007700">=> </span><span style="color: #dd0000">'XXXX' </span><span style="color: #ff8000">// Seitennummer</span></span></p><p>Ich würde jetzt gerne alle Seitennummern in einer Datei zusammenfügen.</p><p>[php]</p><p><?PHP</p><p> include_once('proxy.php');</p><p> $conf = array(</p><p> 'auth' => 'keyhier', // Authkey</p><p> 't4tid' => '7566' // Seitennummer</p><p> );</p><p> $proxy = proxy::getProxy($conf);</p><p>?></p><p><?PHP</p><p> include_once('proxy.php');</p><p> $conf = array(</p><p> 'auth' => 'keyhier', // Authkey</p><p> 't4tid' => '3565' // Seitennummer</p><p> );</p><p> $proxy = proxy::getProxy($conf);</p><p>?></p><p><?PHP</p><p> include_once('proxy.php');</p><p> $conf = array(</p><p> 'auth' => 'keyhier', // Authkey</p><p> 't4tid' => '2345' // Seitennummer</p><p> );</p><p> $proxy = proxy::getProxy($conf);</p><p>?></p><p>[/php]</p><p>Ist es möglich das ich dann immer nur Fragment include?</p></blockquote><p></p>
[QUOTE="quipnip, post: 1660582, member: 132249"] Ist es möglich mehrere PHP codes in einer datei zu sammeln, und dann immer nur ein Codefragment zu includen? Also ich muss mehrere PHP-Dateien so anlegen: [php] <?PHP include_once('proxy.php'); $conf = array( 'auth' => 'keyhier', // Authkey 't4tid' => 'XXXX' // Seitennummer ); $proxy = proxy::getProxy($conf); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Unbenanntes Dokument</title> <?PHP echo $proxy->getCSS(); ?> </head> <body> <?PHP echo $proxy->getContent(); ?> </body> </html> [/php]Jede PHP-Datei hat eine andere [COLOR=#000000][COLOR=#dd0000]'t4tid' [/COLOR][COLOR=#007700]=> [/COLOR][COLOR=#dd0000]'XXXX' [/COLOR][COLOR=#ff8000]// Seitennummer[/COLOR][/COLOR] Ich würde jetzt gerne alle Seitennummern in einer Datei zusammenfügen. [php] <?PHP include_once('proxy.php'); $conf = array( 'auth' => 'keyhier', // Authkey 't4tid' => '7566' // Seitennummer ); $proxy = proxy::getProxy($conf); ?> <?PHP include_once('proxy.php'); $conf = array( 'auth' => 'keyhier', // Authkey 't4tid' => '3565' // Seitennummer ); $proxy = proxy::getProxy($conf); ?> <?PHP include_once('proxy.php'); $conf = array( 'auth' => 'keyhier', // Authkey 't4tid' => '2345' // Seitennummer ); $proxy = proxy::getProxy($conf); ?> [/php] Ist es möglich das ich dann immer nur Fragment include? [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ★ = 12, ◇ = 4 und die Hälfte von ★ zu ◇ addiert wird, was ist das Ergebnis?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
PHP auslesen und wieder includen
Oben