php-general Digest 7 Feb 2003 14:23:58 -0000 Issue 1869

Topics (messages 134702 through 134724):

problems with ==?
        134702 by: Peter Gumbrell
        134703 by: Martin Towell
        134710 by: Seraphim

Re: WYSIWYG Content Management system?
        134704 by: . Nilaab
        134705 by: Luke Woollard

Re: Client Side PHP
        134706 by: Justin French

Re: Problem with include PHP 4.3.0 (Fixed)
        134707 by: Jean-Pierre Gallou

session lost after window close
        134708 by: Libor Bubik

Different dates with lmost same script
        134709 by: Miguel Brás

Re: empty variables from a form
        134711 by: Ford, Mike               [LSS]

Dynamic input fields in Form
        134712 by: fkeessen.planet.nl
        134714 by: Jon Haworth

dynamic form input fields
        134713 by: fkeessen.planet.nl

Re: Powerpoint presentations?!?
        134715 by: Philippe Saladin

looking for php mailing-list in chinese language
        134716 by: yang.baozhang.com

Re: empty and isset
        134717 by: Ford, Mike               [LSS]

4.0.6 to 4.3.0
        134718 by: Brian V Bonini
        134719 by: nicos.php.net

Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and 
imagecreatefrompng() id defined? A bug?
        134720 by: SED
        134721 by: nicos.php.net
        134722 by: nicos.php.net
        134723 by: SED
        134724 by: nicos.php.net

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
In the following code

$view = $HTTP_GET_VARS[view];
print $view;
if ($view == "vendor")
{ code here
}

print $view produces 'vendor'

but the if statement in the next section isn't being triggered. Can anyone
see what is wrong here? I have tried double quotes, single quotes and no
quotes around 'vendor' but none of them work.

Thanks

Peter Gumbrell


--- End Message ---
--- Begin Message ---
check for leading/trailing spaces

if (trim($view) == "vendor")

HTH
Martin

-----Original Message-----
From: Peter Gumbrell [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 3:07 PM
To: Php-General
Subject: [PHP] problems with ==?


In the following code

$view = $HTTP_GET_VARS[view];
print $view;
if ($view == "vendor")
{ code here
}

print $view produces 'vendor'

but the if statement in the next section isn't being triggered. Can anyone
see what is wrong here? I have tried double quotes, single quotes and no
quotes around 'vendor' but none of them work.

Thanks

Peter Gumbrell



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Peter Gumbrell wrote:
> In the following code
>
> $view = $HTTP_GET_VARS[view];
> print $view;
> if ($view == "vendor")
> { code here
> }
>
> print $view produces 'vendor'
>
> but the if statement in the next section isn't being triggered. Can
> anyone see what is wrong here? I have tried double quotes, single
> quotes and no quotes around 'vendor' but none of them work.

You forgot the qoutes around the array argument:
$HTTP_GET_VARS[view] should be $HTTP_GET_VARS['view'].

-Peter


--- End Message ---
--- Begin Message ---
Why don't you two gather up a few more developers, decide on what is needed
and what the goals are, then assign parts to build for the new CMS. Once
finished, you can maybe present it to PHP.net and see if they will allow it
to be developed and documented in the future by other developers. A CMS is a
very important and popular prog, so it might get the same attention as basic
templates get, like SMARTY. Who knows, maybe it can even be integrated with
SMARTY too, and/or other PHP programs still out there. This might yield one
of the best CMS out there in the PHP world, which can constantly be
developed. There's my two cents, good luck...



> -----Original Message-----
> From: Sascha Braun [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 7:01 PM
> To: PHP General list; Hardik Doshi
> Subject: Re: [PHP] WYSIWYG Content Management system?
>
>
> I am working on such a CMS right yet.
>
> I want to implement infinitly Language Support and an Wordpad
> like HTML Editor which allows you to chose basic design tem-
> plates and lets you upload some images.
>
> I want to build an extraordinary Usermanagement, where you can
> write parts of an Text while somebody else is writing on another
> Part of the same text maybe in different language at the same Time.
>
> When you wrote a text you can chose between your mates for
> let them make the translation based on userprofiles every web-
> content admin has to fill out.
>
> And a lota more things, but right now i dont have very much time,
> I have to build a small shop inbetween. But the Multilanguage sup-
> port ist basically finished.
>
> But I may say some more, have you ever read about the execCommand
> in IE (Internet Explorer)? You can build an fully working wysiwyg HTML
> Editor with these commands. I'm going to send you a nice example after-
> wards Hardik.
>
> Maybe somebody wants to help me with the CMS System. I dont really
> like the Design of PHPNuke and I want to build an even more professional
> Article Management than it is developed in phpnuke.
>
> See Ya
>
> Sascha
>
> ----- Original Message -----
> From: "Hardik Doshi" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, February 05, 2003 3:32 PM
> Subject: Re: [PHP] WYSIWYG Content Management system?
>
>
> >
> > Hey Jason,
> > I am looking for the same. Do you have or any one in this list has any
> idea? Please let me know.
> > thanks
> > Hardik
> >  Jason Wong <[EMAIL PROTECTED]> wrote:On Wednesday 05
> February 2003
> 09:43, J J wrote:
> > > I've seen CMS systems like phpnuke but it's kind of
> > > overkill for what I need and almost more news like.
> > > I'm looking for something that would allow the user to
> > > change content, change/upload images, all in a wysiwyg
> > > style so it's easy to see and use.
> > >
> > > It'd be cool to be able to login to the admin area,
> > > select a page to edit, and it would allow you to
> > > preview the page just like it looks. Then you click
> > > on a text area or image you want to update.
> > >
> > > Is there a CMS that allows for WYSIWYG like editing
> > > but will work within specified headers/footers, style
> > > sheets, etc? Then the site content would all be
> > > generated on the fly from php/mysql.
> >
> > All the major/popular ones would/should have been registered at
> freshmeat
> and
> > soureforge so check them out.
> >
> > --
> > Jason Wong -> Gremlins Associates -> www.gremlins.biz
> > Open Source Software Systems Integrators
> > * Web Design & Hosting * Internet & Intranet Applications Development *
> > ------------------------------------------
> > Search the list archives before you post
> > http://marc.theaimsgroup.com/?l=php-general
> > ------------------------------------------
> > /*
> > You're already carrying the sphere!
> > */
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up now
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
www.webeditpro.com has a nice 'static' page editor with one of the most
advanced WYSIWYG interfaces I've seen.

The company I work for uses a similar one I wrote named SITEWAVE however
they wont let me release it under GPL.

Heres a great article on building one which I used as the basis for
SITEWAVE: http://www.devarticles.com/art/1/90/2

LW



-----Original Message-----
From: @ Nilaab [mailto:[EMAIL PROTECTED]]
Sent: Friday, 7 February 2003 3:56 PM
To: PHP General list
Subject: RE: [PHP] WYSIWYG Content Management system?


Why don't you two gather up a few more developers, decide on what is needed
and what the goals are, then assign parts to build for the new CMS. Once
finished, you can maybe present it to PHP.net and see if they will allow it
to be developed and documented in the future by other developers. A CMS is a
very important and popular prog, so it might get the same attention as basic
templates get, like SMARTY. Who knows, maybe it can even be integrated with
SMARTY too, and/or other PHP programs still out there. This might yield one
of the best CMS out there in the PHP world, which can constantly be
developed. There's my two cents, good luck...



> -----Original Message-----
> From: Sascha Braun [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 7:01 PM
> To: PHP General list; Hardik Doshi
> Subject: Re: [PHP] WYSIWYG Content Management system?
>
>
> I am working on such a CMS right yet.
>
> I want to implement infinitly Language Support and an Wordpad
> like HTML Editor which allows you to chose basic design tem-
> plates and lets you upload some images.
>
> I want to build an extraordinary Usermanagement, where you can
> write parts of an Text while somebody else is writing on another
> Part of the same text maybe in different language at the same Time.
>
> When you wrote a text you can chose between your mates for
> let them make the translation based on userprofiles every web-
> content admin has to fill out.
>
> And a lota more things, but right now i dont have very much time,
> I have to build a small shop inbetween. But the Multilanguage sup-
> port ist basically finished.
>
> But I may say some more, have you ever read about the execCommand
> in IE (Internet Explorer)? You can build an fully working wysiwyg HTML
> Editor with these commands. I'm going to send you a nice example after-
> wards Hardik.
>
> Maybe somebody wants to help me with the CMS System. I dont really
> like the Design of PHPNuke and I want to build an even more professional
> Article Management than it is developed in phpnuke.
>
> See Ya
>
> Sascha
>
> ----- Original Message -----
> From: "Hardik Doshi" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, February 05, 2003 3:32 PM
> Subject: Re: [PHP] WYSIWYG Content Management system?
>
>
> >
> > Hey Jason,
> > I am looking for the same. Do you have or any one in this list has any
> idea? Please let me know.
> > thanks
> > Hardik
> >  Jason Wong <[EMAIL PROTECTED]> wrote:On Wednesday 05
> February 2003
> 09:43, J J wrote:
> > > I've seen CMS systems like phpnuke but it's kind of
> > > overkill for what I need and almost more news like.
> > > I'm looking for something that would allow the user to
> > > change content, change/upload images, all in a wysiwyg
> > > style so it's easy to see and use.
> > >
> > > It'd be cool to be able to login to the admin area,
> > > select a page to edit, and it would allow you to
> > > preview the page just like it looks. Then you click
> > > on a text area or image you want to update.
> > >
> > > Is there a CMS that allows for WYSIWYG like editing
> > > but will work within specified headers/footers, style
> > > sheets, etc? Then the site content would all be
> > > generated on the fly from php/mysql.
> >
> > All the major/popular ones would/should have been registered at
> freshmeat
> and
> > soureforge so check them out.
> >
> > --
> > Jason Wong -> Gremlins Associates -> www.gremlins.biz
> > Open Source Software Systems Integrators
> > * Web Design & Hosting * Internet & Intranet Applications Development *
> > ------------------------------------------
> > Search the list archives before you post
> > http://marc.theaimsgroup.com/?l=php-general
> > ------------------------------------------
> > /*
> > You're already carrying the sphere!
> > */
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up now
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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



--- End Message ---
--- Begin Message ---
on 07/02/03 2:41 AM, Pete ([EMAIL PROTECTED]) wrote:

> Think thje user base will be quite big if we got it together.
> How many oho programmers are there who struggle with Javascript - me
> included ;-)
> Anyway the opensourcness of php would make the plugins more efficient
> for each browser.

I dunno if people stuggle weith javascript -- the biggest problem for me has
always been guaranteeing it's available on the client... clearly this issue
gets worse when trying to encourage users to adopt a "PHP" plugin.

Justin

--- End Message ---
--- Begin Message ---
I wrote :

I have problems with relative paths and 4.3.0. Include() do not seem to work the same way in 4.3.0 and 4.2.1.
This is mostly due to a characteristic of Solaris and a minor change in the way PHP handles includes (I guess):

1) Before parsing a script, PHP sets the directory of this script as the working dir. In pathnames and include_paths, '.' represents this directory, and '..' its parent, but PHP needs to getcwd in order to use them.
On Solaris, getcwd() needs "r" access to _all_ directories of the path, otherwise you get (from man getcwd):
EACCES A parent directory cannot be read to get its name.
It's not a bug, but a feature (seems strange to me).

2) If PHP can't find an included file in any directory of "include_path", it tries the directory of the main script in 4.2.1, and that of the including file in 4.3.0 (I guess that from my tests).

On my server, a directory of the script path was not readable by the user the server runs under. I fixed it, and now PHP is able to include the requested file by way of '..' in include_path.

--- End Message ---
--- Begin Message ---
I have problem with session in MS IE.
When I open new window from main window and then I close this window, in
parent window are lost all session variables.

Libor

--- End Message ---
--- Begin Message ---
Hi,

I have 2 pages that shows a table contents
On one, it shows the title and date with the following script

**************************************
<?
// includes
include("../regulations/conf.php");
include("../regulations/functions.php");
// abre ligação à base de dados
$connection = mysql_connect($host, $user, $pass) or die ("Erro de execução.
Informe-nos sobre a situação!");

// escolhe a base de dados
mysql_select_db($db) or die ("Erro de execução. Informe-nos sobre a
situação!");

// gera e executa o pedido SQL
$query = "SELECT * FROM noticias ORDER BY id DESC LIMIT 6";
$result = mysql_query($query) or die ("Erro no pedido: $query. " .
mysql_error());

// se algum registo
if (mysql_num_rows($result) > 0)
{
 // iterate através do conj resultados
 // print titulo dos artigos
 while($row = mysql_fetch_object($result))
 {
?>
<tr>
<td width="7%" align="left"><font size="1" face="Arial"><img border="0"
src="images/ez1.jpg" width="18" height="16"></font></td>
<td width="7%" align="left"></td>
<td width="51%" align="left"> <font color="#808080" size="1" face="Arial"><a
href="http://www.ivao-pt.org/noticias/";><? echo $row->titulo;
?></font></a></td>
<td width="35%" align="left">
<p align="left"><font color="#808080" size="1" face="Arial"> <? echo
formatDate ($row->timestamp); ?></font></td>
</tr>
<tr>
<td width="100%" align="left" colspan="4"><br>
</td>
</tr>


<?
 }
}

else
{
?>
<p align="center"><font size="1" face="Arial" color="#4F547A">Nenhuma
notícia disponível!</font></p>
<?
}
// fecha ligação à base de dados
mysql_close($connection);
?>

*****************************************************
functions.php script

<?
// format MySQL DATETIME value into a more readable string
function formatDate($val)
{
 $arr = explode("/", $val);
 return date("d/m/y", mktime(0,0,0, $arr[1], $arr[2], $arr[0]));
}
?>

*****************************************************

On the other one, besides showing date and title, it shows also the text,
autor and some other stuff almost with same code
The problem is that on the one where only the title and date are shown, he
gives me always the same date, no matter if i posted yesterday or today. The
date is always 30/11/02
On the more detailed page, the date is shown correctly, today's date if
posted today, yesterday's date if posted yesterday.
Any idea for that? I checked the table, and the date is correct...i don't
know what else to do

Miguel



--- End Message ---
--- Begin Message ---
> ----- Original Message -----
> From: "Erich Beyrent" <[EMAIL PROTECTED]>
> To: "Sunfire" <[EMAIL PROTECTED]>
> 
> 
> > > hi..
> > >
> > > how would you test for an empty (unused) variable from a form..
> > > i have a phone number split into 3 different vairiables 
> and want to test
> > to
> > > see if they were used in the form before displaying 
> either the phone
> > number
> > > itself or just leaving it out of the display... what code 
> would be good
> to
> > > test it with.. the variables are $ac2 $ext2 and $num2
> >
> > Use the isset() function:
> >
> > if(isset($ac2)) and
> > if(isset($ext2)) and
> > if(isset($num2)) { do something }
> > else { do something else }

Eesh!  I think you mean:

   if (isset($ac2) && isset($ext2) && isset($num2)) { do something }

And, depending on what sort of form field it is, isset() might not be a very good test 
anyway!

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 
--- End Message ---
--- Begin Message ---
Hi,

Does anyone have a working example or a hint in the right direction for the following;

I have a form where the user selects for example; how many cars you have:  4. Then it 
most dynamicly create 4 input fields (with different names) in the form where they can 
fill in the car brand and also a field for the car type.

Many thanks for helping me out!

Thanks,

Frank

--- End Message ---
--- Begin Message ---
Hi Frank,

> I have a form where the user selects for example; how many cars 
> you have:  4. Then it most dynamicly create 4 input fields 
[...]

Using only PHP, you'll have to make this a two-step process where page 1
collects the number of cars and posts to page 2, which generates the form
accordingly.

If is has to be done on the same page, you'll need to call a Javascript
function every time the number of cars changes. That function will have to
add or remove <input>s from the form depending on the number  of cars
entered, and of course the whole page will break completely for anyone
without Javascript.

I'd make it a two-step process myself, it's considerably more robust and
offers considerably less room for problems (what happens if I claim I have
five cars, fill out their details, and then change it to three cars? which
details do you get rid of?)

Cheers
Jon
--- End Message ---
--- Begin Message ---
Hi, 

Does anyone have a working example or a hint in the right direction for the following; 

I have a form where the user selects for example; how many cars you have: 4. Then it 
most dynamicly create 4 input fields (with different names) in the form where they can 
fill in the car brand and also a field for the car type. 

Many thanks for helping me out! 

Thanks, 

Frank 
--- End Message ---
--- Begin Message ---
> I've been asked to write code that will dynamically generate Microsoft
> Powerpoint presentations.  It has to assemble collections of pages, and
> possibly substitute a word or phrase here and there (mailmerge style).
>
> There doesn't seem to be a published document describing Powerpoint file
> format or capabilities.  The only generation tool I can find is a
> sourceforge.net project that has no files.  The only conversion tools I
> can find convert FROM powerpoint, not TO it.

a French company www.arpege.tm.fr has made a software called Soprano which
uses this scenario :
- you create powerpoint files with "variables" embedded into something like
<%myvariable1%> <%mypicture%> etc
- their program replace the variables with data from a database.
(It is used to animate elections shows)
So it is possible, but I don't know how they did that. I don't think they
will give you the tip.


--- End Message ---
--- Begin Message ---
I'm sorry for my english

if you know mailing-list about php in Chinese language, please let me know!

thanks!

Yang Zhaori
--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Sunfire [mailto:[EMAIL PROTECTED]]
> Sent: 06 February 2003 21:27
> 
> actually so does empty end up testing true on an empty var... 
> thats because
> empty thinks "" or string(0) is actually a string just 
> blank... a trick to
> do with empty is use !empty which will say if the string is 
> at least 1 char
> long other wish if it is less than 1 char long even though a 
> string does
> exist then it must be empty.. because:
> if(empty(var)){
> echo "its blank";//eek doesnt work cuz string does exist
> }else{
> echo "something in there";//defaults regardless string(0)""
> //is a string so above block will never be used
> //im sort of confused because:
> if(!empty(var)){
> echo "something in there";//it works for a wierd reason
> }else{
> echo "its blank"//works if string(0)"" or null exists
> }
> its strange that !empty will always return a 0 char 
> string/null as false but
> empty it doesnt care its always true regardless... any reason 
> for that? cuz
> im confused as to why you have to use !empty instead of empty


OK, let's set some of this confusion to rest:

isset($x) will be TRUE if $x *both*:
   - exists as a variable in the current scope (even if it
     has not yet been assigned a value, as might happen if you
     use a var or global declaration).
   - is not NULL

empty($x) will be TRUE if $x is *any* of the following:
   - a non-existent variable (in the current scope)
   - NULL
   - a numeric 0 (or 0.0)
   - the empty string ("") or the string "0"
   - an empty array

is_null($x) is the same as !isset($x), except that is_null()
produces an undefined variable notice if $x does not exist
(which you will not see if your error_reporting is set not to
display notices, or if you suppress it with @).

and finally, if($x) is the same as if(!empty($x)), except
that if($x) will also produce an undefined variable notice.

This is all defined in the online manual, although it's
sometimes a bit hard to digest.  There's also a great little
set of tables that may help you visualize things better at
http://www.blueshoes.org/en/developer/php_cheat_sheet/

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 
--- End Message ---
--- Begin Message ---
Any thoughts as to why this snippet:

25: if ($attach != "none")
26:  {
27:    $file = fopen($attach, "r");
28:    $contents = fread($file, $attach_size);
29:    $encoded_attach = chunk_split(base64_encode($contents));
30:    fclose($file);

would produce these errors:

Warning: fread(): supplied argument is not a valid stream resource in
/usr/virtual/share/pkgs/installed/aeromail/1.40/aeromail/send_message.php on line 28

Warning: fclose(): supplied argument is not a valid stream resource in
/usr/virtual/share/pkgs/installed/aeromail/1.40/aeromail/send_message.php on line 30

After upgrading from 4.0.6 to 4.3.0

--- End Message ---
--- Begin Message ---
Yes, see http://www.php.net/manual/en/language.variables.predefined.php
You should use $attach = $_GET['attach']; before if it's comming from an URI
or $_POST or $_SESSION or $_COOKIE...

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

"Brian V Bonini" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> Any thoughts as to why this snippet:
>
> 25: if ($attach != "none")
> 26:  {
> 27:    $file = fopen($attach, "r");
> 28:    $contents = fread($file, $attach_size);
> 29:    $encoded_attach = chunk_split(base64_encode($contents));
> 30:    fclose($file);
>
> would produce these errors:
>
> Warning: fread(): supplied argument is not a valid stream resource in
> /usr/virtual/share/pkgs/installed/aeromail/1.40/aeromail/send_message.php
on line 28
>
> Warning: fclose(): supplied argument is not a valid stream resource in
> /usr/virtual/share/pkgs/installed/aeromail/1.40/aeromail/send_message.php
on line 30
>
> After upgrading from 4.0.6 to 4.3.0
>


--- End Message ---
--- Begin Message ---
Hi,

Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is
enabled and imagecreatefrompng() id defined?



Is it a bug? Or? 

My ISP config:

System  Linux titan 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686  
Build Date  Jan 24 2003 19:35:29  
Configure Command  './configure' '--with-mysql' '--with-apxs'
'--with-zlib' '--with-bz2' '--with-gd' '--with-gettext' '--with-pgsql'  
Server API  Apache  
Virtual Directory Support  disabled  
Configuration File (php.ini) Path  /usr/local/lib/php.ini  
PHP API  20020918  
PHP Extension  20020429  
Zend Extension  20021010  
Debug Build  no  
Thread Safety  disabled  
Registered PHP Streams  php, http, ftp, compress.bzip2, compress.zlib  


Regards,
Sumarlidi E. Dadason

SED - Graphic Design

E-mail: [EMAIL PROTECTED]
website: www.sed.is

--- End Message ---
--- Begin Message ---
You need to install  jpeg-6bftp://ftp.uu.net/graphics/jpeg/ and
dd  --with-jpeg-dir=DIR.

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

"Sed" <[EMAIL PROTECTED]> a écrit dans le message de news:
000901c2ceb3$90746450$[EMAIL PROTECTED]
> Hi,
>
> Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is
> enabled and imagecreatefrompng() id defined?
>
>
>
> Is it a bug? Or?
>
> My ISP config:
>
> System  Linux titan 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686
> Build Date  Jan 24 2003 19:35:29
> Configure Command  './configure' '--with-mysql' '--with-apxs'
> '--with-zlib' '--with-bz2' '--with-gd' '--with-gettext' '--with-pgsql'
> Server API  Apache
> Virtual Directory Support  disabled
> Configuration File (php.ini) Path  /usr/local/lib/php.ini
> PHP API  20020918
> PHP Extension  20020429
> Zend Extension  20021010
> Debug Build  no
> Thread Safety  disabled
> Registered PHP Streams  php, http, ftp, compress.bzip2, compress.zlib
>
>
> Regards,
> Sumarlidi E. Dadason
>
> SED - Graphic Design
>
> E-mail: [EMAIL PROTECTED]
> website: www.sed.is
>


--- End Message ---
--- Begin Message ---
Typos:

You need to install jpeg-6b ftp://ftp.uu.net/graphics/jpeg/
and then add  --with-jpeg-dir=DIR on your configure line.

Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

----- Original Message -----
From: <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Friday, February 07, 2003 3:14 PM
Subject: Re: Why is function imagecreatefromjpeg() undefined in PHP 4.3 when
GD is enabled and imagecreatefrompng() id defined? A bug?


> You need to install  jpeg-6bftp://ftp.uu.net/graphics/jpeg/ and
> dd  --with-jpeg-dir=DIR.
>
> --
> Regards.
> M.CHAILLAN Nicolas
> [EMAIL PROTECTED]
> www.WorldAKT.com Hébergement de sites internets.
>
> "Sed" <[EMAIL PROTECTED]> a écrit dans le message de news:
> 000901c2ceb3$90746450$[EMAIL PROTECTED]
> > Hi,
> >
> > Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is
> > enabled and imagecreatefrompng() id defined?
> >
> >
> >
> > Is it a bug? Or?
> >
> > My ISP config:
> >
> > System  Linux titan 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686
> > Build Date  Jan 24 2003 19:35:29
> > Configure Command  './configure' '--with-mysql' '--with-apxs'
> > '--with-zlib' '--with-bz2' '--with-gd' '--with-gettext' '--with-pgsql'
> > Server API  Apache
> > Virtual Directory Support  disabled
> > Configuration File (php.ini) Path  /usr/local/lib/php.ini
> > PHP API  20020918
> > PHP Extension  20020429
> > Zend Extension  20021010
> > Debug Build  no
> > Thread Safety  disabled
> > Registered PHP Streams  php, http, ftp, compress.bzip2, compress.zlib
> >
> >
> > Regards,
> > Sumarlidi E. Dadason
> >
> > SED - Graphic Design
> >
> > E-mail: [EMAIL PROTECTED]
> > website: www.sed.is
> >
>
>

--- End Message ---
--- Begin Message ---
So, why is this function not included in GD like imagecreatefrompng()?
Can this be just bad configuration at my Administrator behalf?

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: 7. febrúar 2003 14:15
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Why is function imagecreatefromjpeg() undefined in
PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug?


You need to install  jpeg-6bftp://ftp.uu.net/graphics/jpeg/ and dd
--with-jpeg-dir=DIR.

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

"Sed" <[EMAIL PROTECTED]> a écrit dans le message de news:
000901c2ceb3$90746450$[EMAIL PROTECTED]
> Hi,
>
> Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is 
> enabled and imagecreatefrompng() id defined?
>
>
>
> Is it a bug? Or?
>
> My ISP config:
>
> System  Linux titan 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686 
> Build Date  Jan 24 2003 19:35:29 Configure Command  './configure' 
> '--with-mysql' '--with-apxs' '--with-zlib' '--with-bz2' '--with-gd' 
> '--with-gettext' '--with-pgsql' Server API  Apache
> Virtual Directory Support  disabled
> Configuration File (php.ini) Path  /usr/local/lib/php.ini
> PHP API  20020918
> PHP Extension  20020429
> Zend Extension  20021010
> Debug Build  no
> Thread Safety  disabled
> Registered PHP Streams  php, http, ftp, compress.bzip2, compress.zlib
>
>
> Regards,
> Sumarlidi E. Dadason
>
> SED - Graphic Design
>
> E-mail: [EMAIL PROTECTED]
> website: www.sed.is
>



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


--- End Message ---
--- Begin Message ---
It is not included because your didn't installed jpeg lib.

GD needs an external lib to work with jpeg, so yes it's an administrator's
work.

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

"Sed" <[EMAIL PROTECTED]> a écrit dans le message de news:
000d01c2ceb4$c96f60b0$[EMAIL PROTECTED]
So, why is this function not included in GD like imagecreatefrompng()?
Can this be just bad configuration at my Administrator behalf?

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 7. febrúar 2003 14:15
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Why is function imagecreatefromjpeg() undefined in
PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug?


You need to install  jpeg-6bftp://ftp.uu.net/graphics/jpeg/ and dd
--with-jpeg-dir=DIR.

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

"Sed" <[EMAIL PROTECTED]> a écrit dans le message de news:
000901c2ceb3$90746450$[EMAIL PROTECTED]
> Hi,
>
> Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is
> enabled and imagecreatefrompng() id defined?
>
>
>
> Is it a bug? Or?
>
> My ISP config:
>
> System  Linux titan 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686
> Build Date  Jan 24 2003 19:35:29 Configure Command  './configure'
> '--with-mysql' '--with-apxs' '--with-zlib' '--with-bz2' '--with-gd'
> '--with-gettext' '--with-pgsql' Server API  Apache
> Virtual Directory Support  disabled
> Configuration File (php.ini) Path  /usr/local/lib/php.ini
> PHP API  20020918
> PHP Extension  20020429
> Zend Extension  20021010
> Debug Build  no
> Thread Safety  disabled
> Registered PHP Streams  php, http, ftp, compress.bzip2, compress.zlib
>
>
> Regards,
> Sumarlidi E. Dadason
>
> SED - Graphic Design
>
> E-mail: [EMAIL PROTECTED]
> website: www.sed.is
>



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




--- End Message ---

Reply via email to