Call to undefined function imagecreate

Call to undefined function imagecreate() in C:\Data\inetpub\domains\cteksolutions.net\home\html\includes\graphics.php on line 13

Not sure how to explain this but here goes…
Server 2003, IIS6, PHP5.2.6.6(I Believe)via IIS-Aid_PHP_Installer_x86_529.
On the Feedback Form http://www.cteksolutions.net/contact.php bottom right there should be an image to verify the user is a real person. The file that controls this I believe is “image-verify.php” which is in the website but when you fill out the form and submit it just goes to a blank page. I am pretty sure it’s something I need to have installed and/or configured on the server but I have no idea what or where.
Here is the website on a test server… http://dexperts.us/computek/contact.php

Thanks

Do you have the PHP GD extension installed / activated?

Please can you post your php.ini to http://pastie.org and provide the link here.

PHP GD extension? Probably not but get it downloaded…

http://pastie.org/3027427

Thanks

On line 553, change:

;extension=php_gd2.dll

To:

extension=php_gd2.dll

And restart the server (IIS). Try it afterwards.

That fix it but no I get this after I click Submit…

PHP Notice: Undefined variable: to in C:\Data\inetpub\domains\cteksolutions.net\home\html\response.php on line 24 PHP Notice: Undefined variable: lname in C:\Data\inetpub\domains\cteksolutions.net\home\html\response.php on line 32 PHP Notice: Undefined variable: details in C:\Data\inetpub\domains\cteksolutions.net\home\html\response.php on line 75 PHP Warning: mail() [function.mail]: Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set() in C:\Data\inetpub\domains\cteksolutions.net\home\html\response.php on line 111

smtp(Mail server) is on another different server.
Thanks

You need to set the mail server in the php.ini file (lines 635-638).

[mail function] ; For Win32 only. SMTP = localhost smtp_port = 25

Also, can you post the code on the response.php page?

http://pastie.org/3028171

My mail server is not on the same server as the website… I found a program Free smtp Mail but it hangs I’m guessing its waiting on a password. I also read that Windows smtp service would work.?

Thanks

Sponsor our Newsletter | Privacy Policy | Terms of Service