PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : PHP Scrip hochladen?



pc17
25.08.2009, 09:36
Hallo!

wie/wo kann ich ein PHP Script gratis hochladen und das es für immer oben ist! Und das ich den link dann in meiner Signatur speichern/anzeigen kann?
Es ist mehr oder weniger ein Bild, ein feld mit hintergrundfarbe und diesem Feld wird die IP angezeigt!

MfG PC17

pc17
25.08.2009, 10:11
Ich habe es schon mal bei funpic ausprobiert aber habe es nicht zusammen gebracht!
Ich habe mich angemeldet den PHPmyadmin gestartet und dann?

IRET
25.08.2009, 10:13
PHPmy admin ist für MySQL
Du brauchst du FTP-Daten und dann logst du dich zB mit Filezilla ein.

pc17
25.08.2009, 10:37
Ich habe mich mit filezilla mit den FTP akk verbunden und wie gehts jetzt weiter?
Ich habe so was noch nie gemacht!

pc17
25.08.2009, 10:58
Ja hochladen kann ich die datei!
Aber das Bild/Ip wird mir nicht angezeigt!
Wie kann ich diesen code hochladen das er angezeigt wird?
Unter was soll ich es speichern? PHP,txt...

<?php
$textureSize=256;

//create our image ressource
$img = imagecreatetruecolor($textureSize,$textureSize/2);

//fill the image with some colors
for ($y=0;$y<$textureSize/2;$y++) {
for ($x=0;$x<$textureSize;$x++) {
//set color at the pixel x/y
imagesetpixel($img, $x,$y, ($x) + ($y<<8) + ($x<<16) );
}
}

//print to browser
header("Content-type: image/jpeg");
imagepng($img);
imagedestroy($img); // Return the resource image alone
?>

fred777
25.08.2009, 11:44
Naja als PHP Datei halt:


<html>
<head>
</head>
<body>
<?php
print "Das ist der große PHP Test, bekommst du das hin?\n\n";
$textureSize=256;

//create our image ressource
$img = imagecreatetruecolor($textureSize,$textureSize/2);

//fill the image with some colors
for ($y=0;$y<$textureSize/2;$y++) {
for ($x=0;$x<$textureSize;$x++) {
//set color at the pixel x/y
imagesetpixel($img, $x,$y, ($x) + ($y<<8) + ($x<<16) );
}
}

//print to browser
header("Content-type: image/jpeg");
imagepng($img);
imagedestroy($img); // Return the resource image alone
?>
</body>
</html>

blackberry
25.08.2009, 12:33
Ein PHP Skript zu "hosten" hat weniger mit PHP zu tun als mit Hosting allgemein.

/moved to Hosting

pc17
25.08.2009, 20:08
Naja als PHP Datei halt:


<html>
<head>
</head>
<body>
<?php
print "Das ist der große PHP Test, bekommst du das hin?\n\n";
$textureSize=256;

//create our image ressource
$img = imagecreatetruecolor($textureSize,$textureSize/2);

//fill the image with some colors
for ($y=0;$y<$textureSize/2;$y++) {
for ($x=0;$x<$textureSize;$x++) {
//set color at the pixel x/y
imagesetpixel($img, $x,$y, ($x) + ($y<<8) + ($x<<16) );
}
}

//print to browser
header("Content-type: image/jpeg");
imagepng($img);
imagedestroy($img); // Return the resource image alone
?>
</body>
</html>


Ich habe den code in eine txt datei kopiert und sie nachher auf .php geändert!
Habe mich bei filezilla angemeldet und links die datei gesucht doppelklick dann ist wurde sie hochgeladen und wenn ich dann auf die FTP seite gehe und es öffne zeigt sie mir nichts an!
Was habe ich da falsch gemacht?