Jump to content

matrixrp

Members
  • Posts

    12
  • Joined

  • Last visited

About matrixrp

  • Birthday 02/16/1982

Profile Information

  • Gender
    Male

matrixrp's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I've just installed copy of free php forum script and everything is ok all images are showing like captcha which means it is not problem with the server or php error, so now a'll try different examples and see what happens.
  2. Well i already have the latest versions of php apache and mysql, and i'm using individual components, and my last chance is to use WAMP and see what will happen .
  3. Yes i've tried this example on public server and it runs fine, maybe the problem is somewhere else i'll continue to struggle with this problem but thanks again for your help.
  4. Yes i have error reporting on set in the php ini. But there is no php error here two screenshots from this page: [attachment deleted by admin]
  5. Now after i comment out the header when i open the page directly it is full with bunch of garbage as you said and i believe this is finally something good, but when i try to open with image tag on other page like this: <img src="gdTest.php" width="200" height="200" /> Again the page is empty.
  6. Well i did everything you said and now when i open the file directly it is showing: The image “http://localhost/gdtest.php” cannot be displayed, because it contains errors. I've got no clue what to do but thanks for you help.
  7. I've tried on Mozilla, IE, Safari, Opera on the newest versions and all a get is empty page. Is there possibility the problem to be somewhere else, i mean problem with apache or some other system component.
  8. I've allready checked that everything is ok: GD Support enabled GD Version bundled (2.0.34 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.1.9 T1Lib Support enabled GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled The strange thing is that this same example is in the php manual and after the example there is little image placeholder which should be the image from this example but it isn't shown there either.
  9. Well i did everything you said: Tryed to open directly in browser window but nothing showed up. I commented those two lines of code and still there is nothing in the browser and it doesn't show any errors. I have no idea what could be the problem A'm running this script on local apache 2.2 server on my computer .
  10. I have problem with gd generated images when i try to run simple script from php manual to generate image only thing that i see on screen is placeholder for image but not the image self, and as i can see images are not shown in the php manual too where the example is i really have no idea what could be the problem if anyone has experienced the same problem please help. And here is the sample code from php manual: <?php // create a 200*200 image $img = imagecreatetruecolor(200, 200); // allocate some colors $white = imagecolorallocate($img, 255, 255, 255); $red = imagecolorallocate($img, 255, 0, 0); $green = imagecolorallocate($img, 0, 255, 0); $blue = imagecolorallocate($img, 0, 0, 255); // draw the head imagearc($img, 100, 100, 200, 200, 0, 360, $white); // mouth imagearc($img, 100, 100, 150, 150, 25, 155, $red); // left and then the right eye imagearc($img, 60, 75, 50, 50, 0, 360, $green); imagearc($img, 140, 75, 50, 50, 0, 360, $blue); // output image in the browser header("Content-type: image/png"); imagepng($img); // free memory imagedestroy($img); ?> and the sample page to call this image <img src="simpleImage.php" width="200" height="200" />
  11. Thanks for your help. Anyway i was just trying this because when user clicks check 'username' button if is available it will appear one image and if it is not then different image will appear that's why i was asking, any way thanks for your help
  12. Hello i am making simple registration page and a'm using two submit buttons one to check if username is available(it is not in use) and one for processing the whole form and is there a way of doing this.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.