[PHP] problem using imagejpeg function all

2006-11-21 Thread Tom
Hello,

I’m trying to use the imagejpeg function call in a php script and I
can’t quite seem to get it working properly.

 

Here is my gd dump.

 

  'GD Version' => 'bundled (2.0.28 compatible)' (length=27)
  'FreeType Support' => true
  'FreeType Linkage' => 'with freetype' (length=13)
  'T1Lib Support' => false
  'GIF Read Support' => true
  'GIF Create Support' => true
  'JPG Support' => true
  'PNG Support' => true
  'WBMP Support' => true
  'XPM Support' => false
  'XBM Support' => true
  'JIS-mapped Japanese Font Support' => false

 

 

Would I need to have T1Lib support in order for this it work?

 

As a quick example, here is some code I’ve been playing around with that I
found somewhere.

 



 

Should make a red square.

 

Any help would be greatly appreciated. Thank you.

 

Tom

 


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.430 / Virus Database: 268.14.11/543 - Release Date: 20/11/2006
9:20 PM
 


Re: [PHP] problem using imagejpeg function all

2006-11-21 Thread Robert Cummings
On Tue, 2006-11-21 at 23:31 -0500, Tom wrote:
>   $image = imagecreate(200, 200);
>  $colorRed = imagecolorallocate($image, 255, 0, 0);
>  imagefill($image, 0, 0, $colorRed);
> 
>  //send image
>  //header("Content-type: image/jpeg");
>  imagejpeg($image);
> 
> ?> 

Works for me with the header line uncommented.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] problem using imagejpeg function all

2006-11-21 Thread Tom
Can you show me what your gd dump looks like?




Is that way I got mine.

Also, what php version are you using? I'm using 5.1.6.

Thanks for the info.

Tom


-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED] 
Sent: November 21, 2006 11:40 PM
To: Tom
Cc: php-general@lists.php.net
Subject: Re: [PHP] problem using imagejpeg function all

On Tue, 2006-11-21 at 23:31 -0500, Tom wrote:
>   $image = imagecreate(200, 200);
>  $colorRed = imagecolorallocate($image, 255, 0, 0);
>  imagefill($image, 0, 0, $colorRed);
> 
>  //send image
>  //header("Content-type: image/jpeg");
>  imagejpeg($image);
> 
> ?> 

Works for me with the header line uncommented.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.430 / Virus Database: 268.14.11/543 - Release Date: 20/11/2006
9:20 PM
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.430 / Virus Database: 268.14.11/543 - Release Date: 20/11/2006
9:20 PM
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] problem using imagejpeg function all

2006-11-21 Thread Robert Cummings
On Tue, 2006-11-21 at 23:42 -0500, Tom wrote:
> Can you show me what your gd dump looks like?
> 
> 
>  var_dump(gd_info());
>  ?>
> 
> Is that way I got mine.
> 
> Also, what php version are you using? I'm using 5.1.6.

PHP 4.4.4 and PHP 5.2.0 both compiled from source.

This is my PHP 5.2.0 var_dump()...

array(11) {
  ["GD Version"]=>
  string(27) "bundled (2.0.28 compatible)"
  ["FreeType Support"]=>
  bool(false)
  ["T1Lib Support"]=>
  bool(false)
  ["GIF Read Support"]=>
  bool(true)
  ["GIF Create Support"]=>
  bool(true)
  ["JPG Support"]=>
  bool(true)
  ["PNG Support"]=>
  bool(true)
  ["WBMP Support"]=>
  bool(true)
  ["XPM Support"]=>
  bool(false)
  ["XBM Support"]=>
  bool(true)
  ["JIS-mapped Japanese Font Support"]=>
  bool(false)
}

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] XML parser error ..

2006-11-21 Thread onewaylife

dear Richard 
I have written a PHP file in that with help of php document tags i have
created XML file in that PHP file and in xml file i have taken care of the
 tag. 
with regards 
rakesh  


Richard Lynch wrote:
> 
> On Tue, November 21, 2006 2:30 am, onewaylife wrote:
>> the file is : -
>> 
> 
>> it give this output " XML parser error: Reserved XML Name"
> 
> One Possible Interpretation:
> 
> XML files start with:
>  
> Your file does not start with:
>  
> Your file is not XML.
> 
> Fix it.
> 
> -- 
> Some people have a "gift" link here.
> Know what I want?
> I want you to buy a CD from some starving artist.
> http://cdbaby.com/browse/from/lynch
> Yeah, I get a buck. So?
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/XML-parser-error-..-tf2677513.html#a7485238
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] multiple upload files?

2006-11-21 Thread Kevin Waterson
This one time, at band camp, Stut <[EMAIL PROTECTED]> wrote:

> > Does anybody know if yes/no?

Quick example here...

http://phpro.org/examples/Mulitple-file-upload.html

Kevin
-- 
"Democracy is two wolves and a lamb voting on what to have for lunch. 
Liberty is a well-armed lamb contesting the vote."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: 3d modeling-php

2006-11-21 Thread Manuel Lemos
Hello,

on 11/21/2006 04:44 PM blackwater dev said the following:
> I want people to be able to put in some dimensions, like a lot size, and
> then pick some other items (which will have their dimensions stored).  The
> user can then drag the other items onto their lot, move them, etc just to
> see what fits and where.  They could even view it in 3d.  My current app is
> all PHP so trying to find the best way to do this.  Does anyone have any
> ideas or of a site which does something similiar?  Will I have to use
> something like Flash?

This might not be exactly what you are looking for, but surely
demonstrates that PHP can be used to render 3D graphics:

3D graphics in pure PHP
http://www.phpdeveloper.org/news/6665

As for interacting with the 3D graphics, that is another story. Flash
may be a good solution but I think you still need a 3D object render
engine for Flash.



-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] 3d modeling-php

2006-11-21 Thread Micky Hulse
Not sure of your project requirements, but you might want to think about 
Director/Havok/Shockwave...






--
 Wishlist: 
   Switch: 
 BCC?: 
   My: 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php