Agent Moose
|
I don't know much php, but I'm pretty sure these two lines can't have spaces in them, when your locating where your image file is. $image = imagecreatefrompng('real darkilscape userbar.JPG'); header('Content-Type: real darkilscape userbar.JPG');
|
|
|
|
|
Exilis
Optimistic & Creative
Global Moderator
Offline
Posts: 929
Badges: (View All)
|
The problem is, the error is showing up on line 7 Also, I think the header is wrong.
|
|
|
|
|
Celebrus
Artificially Conscious
Administrator
Offline
Gender:
Posts: 626
Badges: (View All)
|
make it this, you aren't supposed to change that.
header('Content-Type: image/jpg');
|
|
|
|
Mojobojo82
MVP
Offline
Gender:
Posts: 838
Badges: (View All)
|
Ahh ok! Thanks for that. I'll try it when I get home and reply what it says, I'm at my cousins house.
|
|
|
|
Mojobojo82
MVP
Offline
Gender:
Posts: 838
Badges: (View All)
|
Ahh! Now I get an error on line 4 ....... Heres link - http://darkilscape.hostoi.com/Real%20Darkilscape%20Userbar.PHPHeres code - <?php
$str = $_GET['txt']; $image = imagecreatefromjpg('realdarkilscapeuserbar.jpeg'); $color = imagecolorallocate($image, 0, 0, 0); $font = 'fonts/VISITOR.FON'; $x = 275; $y = 9; $size = 15; $rotation = 0; imagefontext($image, $size, $rotation, $x, $y, $color, $font, $str);
heheader('Content-Type: image/jpeg'); imagepng($image); imagedestroy($image);
?> Note In Andrew Kaldas/Pictures - It says it's a JPEG Image, But when I uploaded to Photobucket it said it's a JPG Image. So I think code is wrong, Can you guys check it.
|
|
|
|
Exilis
Optimistic & Creative
Global Moderator
Offline
Posts: 929
Badges: (View All)
|
Line 4 should be imagecreatefromjpeg("file"); not imagecreatefromjpg("file");
|
|
|
|
Mojobojo82
MVP
Offline
Gender:
Posts: 838
Badges: (View All)
|
Ahh! Now i've got an error on line 7! Code - <?php
$str = $_GET['txt']; $image = imagecreatefromjpeg("file");('realdarkilscapeuserbar.jpeg'); $color = imagecolorallocate($image, 0, 0, 0); $font = 'fonts/VISITOR.FON'; $x = 275; $y = 9; $size = 15; $rotation = 0; imagefontext($image, $size, $rotation, $x, $y, $color, $font, $str);
header('Content-Type: image/jpeg'); imagepng($image); imagedestroy($image);
?> Link - http://darkilscape.hostoi.com/DynamicDarkilscapeUserbar.PHP
|
|
|
|
Celebrus
Artificially Conscious
Administrator
Offline
Gender:
Posts: 626
Badges: (View All)
|
$image = imagecreatefromjpeg("file");('realdarkilscapeuserbar.jpeg');
|
|
|
|
|
Celebrus
Artificially Conscious
Administrator
Offline
Gender:
Posts: 626
Badges: (View All)
|
change it to this
$image = imagecreatefromjpeg('realdarkilscapeuserbar.jpeg');
|
|
|
|
Mojobojo82
MVP
Offline
Gender:
Posts: 838
Badges: (View All)
|
Argh! Now errors on Line 4, 5 and 11! <?php
$str = $_GET['txt']; $image = imagecreatefromjpeg('realdarkilscapeuserbar.jpeg'); $color = imagecolorallocate($image, 0, 0, 0); $font = 'fonts/VISITOR.FON'; $x = 275; $y = 9; $size = 15; $rotation = 0; imagefontext($image, $size, $rotation, $x, $y, $color, $font, $str);
header('Content-Type: image/jpeg'); imagepng($image); imagedestroy($image);
?> http://darkilscape.hostoi.com/DynamicDarkilscapeUserbar.PHP
|
|
|
|
Exilis
Optimistic & Creative
Global Moderator
Offline
Posts: 929
Badges: (View All)
|
Line 4 and 5 errors are because the image isn't uploaded to the server. Line 11 is because the function is imagettftext, not imagefontext.
|
|
|
|
Mojobojo82
MVP
Offline
Gender:
Posts: 838
Badges: (View All)
|
Argh! I uploaded the pic to the site. Now when I click the Dynamic Sig it just comes up with the link http://darkilscape.hostoi.com/DynamicDarkilscapeUserbar.PHP<?php
$str = $_GET['txt']; $image = imagecreatefromjpeg('properdarkilscapeuserbar.jpg');; $color = imagecolorallocate($image, 0, 0, 0); $font = 'fonts/VISITOR.FON'; $x = 310; $y = 10; $size = 15; $rotation = 0; imagettftext($image, $size, $rotation, $x, $y, $color, $font, $str);
header('Content-Type: image/jpg'); imagepng($image); imagedestroy($image);
?>
|
|
« Last Edit: July 08, 2009, 01:29:02 am by mojobojo82 »
|
Report Spam
Logged
|
|
|
|
Exilis
Optimistic & Creative
Global Moderator
Offline
Posts: 929
Badges: (View All)
|
<?php
$str = $_GET['txt']; $image = imagecreatefromjpeg('properdarkilscapeuserbar.jpg'); $color = imagecolorallocate($image, 0, 0, 0); $font = 'fonts/VISITOR.FON'; $x = 310; $y = 10; $size = 15; $rotation = 0; imagettftext($image, $size, $rotation, $x, $y, $color, $font, $str);
header('Content-Type: image/jpg'); imagejpeg($image); imagedestroy($image);
?>
You need to upload the font too.
|
|
« Last Edit: July 08, 2009, 09:18:46 am by SyntaxBlitz »
|
Report Spam
Logged
|
|
|
|
|
|