[PHP] Library GD dont work

2008-10-10 Thread opc



Hi forum

I install library GD in Centos with

yum install php-gd

I follow your instructions and install,
but when i execute phpinfo( ),� i see the next

'./configure' '--build=i686-redhat-linux-gnu' '. without-gdbm'
'--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr'
'--with-png' '--without-gd' ...

and�

gd



GD Support 
enabled 


GD Version 
bundled (2.0.28 compatible) 


FreeType Support 
enabled 


FreeType Linkage 
with freetype 


FreeType Version 
2.2.1 


GIF Read Support 
enabled 


GIF Create Support 
enabled 


JPG Support 
enabled 


PNG Support 
enabled 


WBMP Support 
enabled 


XBM Support 
enabled 




But don't work with instructions of this library�
.

And in other server install XAMPP and work very good the same
code, but need work in first server.�

And other server the
result phpinfo�( ) is

�--with-gdbm=/opt/lampp
--with-jpeg-dir=/opt/lampp --with-png-dir=/opt/lampp
--with-freetype-dir=/opt/lampp� --with-gd 

I think when
re-compile the php don't suport instruction --with-gd�

You
can help me please.

Thanks.







[PHP] Problem with install lybrary GD

2008-09-24 Thread opc
Hi forum

I try install library GD on Centos 5

I download the gd-2.0.35.tar with the next sentece

./configure --prefix=/usr/local --with=/usr/local --with-jpeg=/usr/local
make
make install

Here all ok.

And next install the php-5.2.6

./configure (... n parameter...) --with-gd=/usr/local/lib
--with-png-dir=/usr/local/bin --with-jpeg-dir=/usr/local/bin
make
make install

And don't get any problem, all ok.

But, execute in code php, the command phpinfo(); and see the next result

Configure Command'./configure' ... '--with-freetype-dir=/usr'
'--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm'
'--with-gettext' '--with-jpeg-dir=/usr' '--with-png' '--without-gd'
..

And test with code in php var_dump(gd_info()); but nothing.

What is wrong. Why don't work

Thanks,

P.D. The content the directory are:

/usr/local/bin

annotate
bdftogd
gd2copypal
gd2togif
gd2topng
gdcmpgif
gdlib-config
gdparttopng
gdtopng
giftogd2
pngtogd
pngtogd2
wcmgr
webalizer
webazolver
webpng


/usr/local/lib

gd.h
libgd.a
libgd.la
libgd.so
libgd.so.2
libgd.so.2.0.0
libpcap.a


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



[PHP] SOLUTION [Fwd: Start/Stop Service from program php]

2008-07-27 Thread opc
In the /var/log/secure i can see

sudo: apache : sorry, you must have a tty to run sudo; TTY:unknown

So, i edit line and comment in visudo to next

### Default requiretty

And, eureka, work fine from a web page

Thanks all

 Mensaje original 
Asunto: Start/Stop Service from program php
De: [EMAIL PROTECTED]
Fecha:  Sab, 26 de Julio de 2008, 11:02 pm
Para:   php-general@lists.php.net
--

Hi

I try execute unsucesfull the next code from web page

?php
$cmd1 = shell_exec (sudo /sbin/service named stop);
echo $cmd1;
?

I need write a script execute some command, but try start or stop service
like named, network this don't work

I edit visudo and add the next lines

User_Alias MYGROUP = apache, xyz
Cmnd_Alias MYCOMMAND = /sbin/service
%MYGROUP ALL = MYCOMMAND
%MYGROUP ALL=(ALL) NOPASSWD: ALL

But don't work.

Suggest? Thanks ...


+-
Ing. Oswaldo Peñaloza C.
EMPSETEL CIA. LTDA. - ORENSES.COM
Proveedor Autorizado de Servicios de Internet
Recaudación y Ventas: 9 de Mayo # 2011 e/ Bolívar y Pichincha
Tlf. 07-2923-958
Nodo: 5ta Norte # 509 e/ Buenavista y Colón
Tlf. 07-2922-396
Soporte Técnico: 093-310-310
Machala - Ecuador


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



[PHP] Start/Stop Service from program php

2008-07-26 Thread opc
Hi

I try execute unsucesfull the next code from web page

?php
$cmd1 = shell_exec (sudo /sbin/service named stop);
echo $cmd1;
?

I need write a script execute some command, but try start or stop service
like named, network this don't work

I edit visudo and add the next lines

User_Alias MYGROUP = apache, xyz
Cmnd_Alias MYCOMMAND = /sbin/service
%MYGROUP ALL = MYCOMMAND
%MYGROUP ALL=(ALL) NOPASSWD: ALL

But don't work.

Suggest? Thanks ...

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



[PHP] Execute command from web browser

2008-05-03 Thread opc

Hi all


I try write a code to execute service in my server from web browser

I write next

/var/www/html/squidup.html
?
exec ('/usr/bin/squid/sbin/squid')
echo Squid UP
?

but, don't work from web browser.

What is wrong

Thanks,

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