Simone: per include *.php vom localhost-Heimrechner ins www einbinden

Beitrag lesen

HI Christoph

Das was ich hier gepostet habe klingt alles etwas ... naja.

Also mit Save Modus mein ich natürlich nicht den den lokalen Rechner.
Save Modus für mein Webspace das ist schon ok. Eine Großzahl der dir bzw. Verzeichniss und upload  Funktionen sind deaktiviert.
es sei den
...............
$DOCUMENT_ROOT".dirname($PHP_SELF)
...............
das geht auch im Save Modus
---------------------------------------
Was ich unbedingt hin bekommen muss ist diese Socketfunktion
weil ich daraus Content für meine Seiten erzeuge.

Auszug Funktion:

if (!empty ($dirname1))
{
//$cmd="v.bat";
//system($cmd);

// echo  "$dirname1";

$avartref = explode(" ", $dirname1 );
  $len11 = count($avartref);
  for ($i=0; $i<$len11; $i++)
  if (!empty ($avartref[$i]))
{
         $s .= $avartref[$i]."+";
                }

$GrabURL ="http://www.gle.com/search?sourceid=navclient&hl=de&q=$s";

$sockhandle = fsockopen("www.gle.com", 80, &$errno, &$errstr);
if(!$sockhandle) {
 print "server not available!";
} else {
$request = "GET $GrabURL HTTP/1.1\r\n";
$request .= "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)\r\n";
$request .= "Host: www.gle.com\r\n";
$request .= "Connection: Close\r\n\r\n";
 fputs($sockhandle, $request);
 $line = fgets($sockhandle, 1024); //Request Method
$line = fgets($sockhandle, 1024); //Close Method
 $line = fgets($sockhandle, 1024); //Server Type
 $line = fgets($sockhandle, 1024); //Date
 $line = fgets($sockhandle, 1024); //Transfer-Encoding
 $line = fgets($sockhandle, 1024); //Content-Type
 $line = fgets($sockhandle, 1024); //Cache-control
$line = fgets($sockhandle, 1024); //Set-Cookie
 $line = fgets($sockhandle, 1024); //End Header "space"
 $content1 = "";
 while (!feof($sockhandle)) {
   $line = fgets($sockhandle, 1024); //Packet length
   $length = hexdec($line);
   $content1 .= fread($sockhandle, $length); //Packet data
 }
 echo  $content1;

// $yafp = fopen(glogfil.".rw",
// "w-");
// fputs($yafp,$content1);
// fclose($yafp);
}
fclose($sockhandle);

und soweiter.....

Und genau das geht nur auf meinen lockalen Rechner !
und nicht im WWW

window.opener.
dürfte eine Möglichkeit sein?

ähm, ja, in Javascript. Aber was hat das mit deinem PHP-Problem zu tun?

Wenn ich aus Javascript werte in PHP übergebe sollte es eine Möglichkeit sein

Simone