RE: [PHP] Making gd Extensions

2001-09-04 Thread Chris Mulcahy

Dennis:

Unfortunately, no, I have not had any luck or even any responses to my
email.

I have officially given up on PHP and have banned it from any system I
administer due to problems such as this.  Once you get past the mod_perl
compiling with Apache, all is well with Perl and extending it is easier.

Too bad, really, because PHP is an elegant language that is easy to
develop in.  Compiling extensions, however, is an entirely different
matter.

I wish you luck, if/when you resolve the problem, please be sure to post
the solution, there are still several unanswered requests for assistance
in the Google/Dejanews archives for this exact problem.

Good luck and happy programming!
Chris Mulcahy

 -Original Message-
 From: Dennis Moore [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 04, 2001 2:00 PM
 To: Chris Mulcahy; [EMAIL PROTECTED]
 Subject: Re: [PHP] Making gd Extensions


 The problem I had was with the compilation of the gd program.
  I installed
 an RPM version of gd from Redhat and recompiled.  It worked
 like a charm on
 RedHat v7.0.

 I am still working on the tarball version of gd.  The
 documentation says to
 play around the order of some of the settings in the makefile.
 Unfortunately, I have to work with a older version of RedHat on this
 machine. RedHat v6.2.

 Have you had any luck yet?

 /dkm
 - Original Message -
 From: Chris Mulcahy [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 30, 2001 11:10 AM
 Subject: RE: [PHP] Making gd Extensions


  So far, there have been no answers, so I'm guessing that
 either we're
  the only two receiving this or everyone who has received it has been
  unable to resolve the problem.
 
  My searches on Google have been unsuccessful so far.  There
 are quite a
  few reports of the problem, but no responses.
 
  If I learn anything, I'll be sure to let you know.
 
  Thanks
  Chris
 
   -Original Message-
   From: Dennis Moore [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, August 29, 2001 8:59 PM
   To: Chris Mulcahy; [EMAIL PROTECTED]
   Subject: Re: [PHP] Making gd Extensions
  
  
   I am having a similar problem using gd-2.0.1 where the
   compilation complains
   about conflicting type gdIOCtx.  I am getting a knot on my
   forehead from
   the wall in front of me.  Any ideas?
  
   /dkm
  
  
  
   - Original Message -
   From: Chris Mulcahy [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, August 29, 2001 9:31 AM
   Subject: [PHP] Making gd Extensions
  
   
The current item I'm wrestling with is the gd extensions.
   I've rebuilt
PHP and Apache so many times to enable one feature only to
   learn that I
forgot to recompile one that I'd relied on previously.
 It's a never
ending battle to get all of the features required.
   
The .so extensions option is a great feature that I'd like
   to make use
of.
   
In trying to compile the gd .so extension (gd-1.8.4), I'm
   receiving the
following errors.  Any ideas?
   
Thanks
Chris Mulcahy
---
   
Making all in ext
make[1]: Entering directory
`/home/cmulcahy/transfer/webserver/php-4.0.6/ext'
Making all in gd
make[2]: Entering directory
`/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
make[3]: Entering directory
`/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
gcc  -I.
   -I/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd -I/home/cm
ulcahy/transfer/webserver/php-4.0.6/main
   -I/home/cmulcahy/transfer/webse
rver/php-4.0.6
   -I/home/cmulcahy/transfer/webserver/php-4.0.6/Zend -I/hom
e/cmulcahy/transfer/webserver/php-4.0.6/ext/mysql/libmysql
   -I/home/cmulc
ahy/transfer/webserver/php-4.0.6/ext/xml/expat/xmltok
   -I/home/cmulcahy/t
ransfer/webserver/php-4.0.6/ext/xml/expat/xmlparse
   -I/home/cmulcahy/tran
sfer/webserver/php-4.0.6/TSRM  -DSUPPORT_UTF8
   -DXML_BYTE_ORDER=12 -g -O2
  -c gd.c  touch gd.lo
gd.c:95: conflicting types for `gdIOCtx'
/usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'
gd.c: In function `php_if_imagecreatefromgif':
gd.c:1209: `gdImageCreateFromGif' undeclared (first use in this
function)
gd.c:1209: (Each undeclared identifier is reported only once
gd.c:1209: for each function it appears in.)
gd.c: In function `php_if_imagegif':
gd.c:1404: `gdImageGif' undeclared (first use in this function)
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory
`/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/cmulcahy/transfer/webserver/php-4.0.6/ext'
make: *** [all-recursive] Error 1
   



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact

RE: [PHP] Newbie ?: form mailer not working

2001-09-04 Thread Chris Mulcahy

Michelle:

This line seems to be a problem.

print(If the problem persists you can mail your question directly to
addressa href=\%22mailto:[EMAIL PROTECTED]\%22;pthe forum
administrator/a);

Try escaping your quotes surrounding your mailto href.

hth

Happy programming!
Chris Mulcahy


 -Original Message-
 From: Michelle Marcicki [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 04, 2001 3:26 PM
 To: PHP List
 Subject: [PHP] Newbie ?: form mailer not working


 Hi all...

 Having problems with some php3 to php4 stuff..  the site has
 a form that has
 been setup to ask questions outside our discussion forums.

 The form.html contains FORM action=util/questionmailer.php
 method=post

 The questionmailer code is as below.  I have only changed the
 email addy and the
 file extension from .php3 to .php on the questionmailer file
 and the .php
 (above) in the form.html page.  I have checked the php
 on-line manual, but can
 find nothing that fits my problems or errors.

 I am getting:
 1) Warning: Unexpected character in input: '\' (ASCII=92) state=1 in
 /usr/home/blah/html/util/questionmailer.php on line 24
 2) Parse error: parse error in
 /usr/home/erc/html/util/questionmailer.php on
 line 24

 Line 24 in my code is:  a href=\%22mailto:[EMAIL PROTECTED]\%22;


 //questionmailer.php code
 body

 ?php $mailTo=[EMAIL PROTECTED] ;
   $mailSubject=Question ;
   $mailBody=Name: $name \r\n ;
   $mailBody .=Email: $email \r\n ;
   $mailBody .=Question: $question \r\n ;

   if(mail($mailTo, $mailSubject, $mailBody))
   {
   print(Thank-You, your request has been sent.);
   }
   else
   {
   print(There was a problem transporting your
 request, please try
  again.\n);
   print(If the problem persists you can mail your
 question directly
to addressa href=\%22mailto:[EMAIL PROTECTED]\%22;
   pthe forum administrator/a);
   }
 ?
 /p
 /body

 Is there something I'm missing here?
 (I am coming from an ASP background, with VB and some C++
 knowledge, so it all
 looks familiar, I am just trying to sort out syntax and think
 it must be that
 type of error.  I didn't write the original code, just trying
 to fix it all :)

 TIA.
 Michelle




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] option block

2001-09-04 Thread Chris Mulcahy

Jeremy:

Have you tried echoing your $sql variable to ensure it has in it what
you expect?  In other words, does $PHP_AUTH_USER have the value you need
it to have?

hth
Happy programming!
Chris Mulcahy

 -Original Message-
 From: Jeremy Morano [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 04, 2001 2:57 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] option block


 Hello everyone, I'm having a problem with my option block...
 I'm trying to
 pass the value of uid to the next page. I always get the last
 uid value in
 table user. How can I change this so I get to pass the value
 of the user's
 choice?




 $sql = SELECT user.uid, user.first_name, user.last_name
   FROM user, company
   Where company.uid = user.companyUid and company.company
 = '$PHP_AUTH_USER'
   ORDER BY last_name
   ;



 $result = @mysql_query($sql,$connection) or die(Couldn't
 execute query.);


 while ($row = mysql_fetch_array($result)) {
   $uid = $row['uid'];
   $first_name = $row['first_name'];
   $last_name = $row['last_name'];

   $option_block .= option value=\$uid\$last_name,
 $first_name/option;
 }

 $display_block = 

 FORM METHOD=\post\ ACTION=\show_moduser.php\

 PstrongUser:/strong
 select name=\uid\
 $option_block
 /select

 INPUT TYPE=\SUBMIT\ NAME=\submit\ VALUE=\Select this User\/P
 /form

 ;


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Making gd Extensions

2001-08-29 Thread Chris Mulcahy

Greetings:

I'm following the thread regarding PHP extensions in the thread The
future of PHP - accessory libraries very anxiously.  I've been trying
to get this feature going for quite some time but without success.

The current item I'm wrestling with is the gd extensions.  I've rebuilt
PHP and Apache so many times to enable one feature only to learn that I
forgot to recompile one that I'd relied on previously.  It's a never
ending battle to get all of the features required.

The .so extensions option is a great feature that I'd like to make use
of.

In trying to compile the gd .so extension (gd-1.8.4), I'm receiving the
following errors.  Any ideas?

Thanks
Chris Mulcahy
---

Making all in ext
make[1]: Entering directory
`/home/cmulcahy/transfer/webserver/php-4.0.6/ext'
Making all in gd
make[2]: Entering directory
`/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
make[3]: Entering directory
`/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
gcc  -I. -I/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd -I/home/cm
ulcahy/transfer/webserver/php-4.0.6/main -I/home/cmulcahy/transfer/webse
rver/php-4.0.6 -I/home/cmulcahy/transfer/webserver/php-4.0.6/Zend -I/hom
e/cmulcahy/transfer/webserver/php-4.0.6/ext/mysql/libmysql -I/home/cmulc
ahy/transfer/webserver/php-4.0.6/ext/xml/expat/xmltok -I/home/cmulcahy/t
ransfer/webserver/php-4.0.6/ext/xml/expat/xmlparse -I/home/cmulcahy/tran
sfer/webserver/php-4.0.6/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2
  -c gd.c  touch gd.lo
gd.c:95: conflicting types for `gdIOCtx'
/usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'
gd.c: In function `php_if_imagecreatefromgif':
gd.c:1209: `gdImageCreateFromGif' undeclared (first use in this
function)
gd.c:1209: (Each undeclared identifier is reported only once
gd.c:1209: for each function it appears in.)
gd.c: In function `php_if_imagegif':
gd.c:1404: `gdImageGif' undeclared (first use in this function)
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory
`/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/cmulcahy/transfer/webserver/php-4.0.6/ext'
make: *** [all-recursive] Error 1



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Free Database Design Program

2001-05-14 Thread Chris Mulcahy

No, then the software becomes stolen, not free.

Discussing cracking and stealing programs on a list populated with software
developers may not be wise.

Most software developers depend on the income from their software to make a
living.  Please do not support cracking on this list.

Chris

-Original Message-
From: Augusto Cesar Castoldi [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 13, 2001 3:19 PM
To: Anuradha Ratnaweera
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Free Database Design Program


The software can be really a freeware (better) or...

can be cracked..., than he becomes free.

regards,

Augusto Cesar Castoldi

On Fri, 11 May 2001, Anuradha Ratnaweera wrote:


 On Sat, 5 May 2001, Augusto Cesar Castoldi wrote:

  Anyone know a Free database Design program? I'm needing to organize my
  MySQL databases and design new databases.

 In what sence do you mean Free? Just curious;

 Anuradha


 --
 a href=http://www.bee.lk/people/anuradha/;home page/a


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Query Analyzer For MySQL with PHP?

2001-04-23 Thread Chris Mulcahy

Brandon:

Search www.freshmeat.net for phpmyadmin.  It's a great little tool to help
you administer MySQL, including executing arbitrary SQL statements.

There are several others there as well.  Freshmeat has plenty of tools to
get you going.

hth
Chris

-Original Message-
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 1:56 PM
To: PHP User Group
Subject: [PHP] Query Analyzer For MySQL with PHP?


Hello,
I recently took an ANSI SQL class to better familiarize my self with SQL in
general.  In the class we used MSSQL SERVER 7 and to do queries we used the
Query Analyzer.  Does anyone know of a PHP script that works like the Query
Analyzer so I can test Queries in a Browser?  Like A Text Area where I can
put the query and a simple form that sends it to MySQL.

Thanks,
Brandon


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Complex IF statement

2001-03-23 Thread Chris Mulcahy

if (($variable=="duck") || ($variable=="goose")) { } else { }


-Original Message-
From: JCampbell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 11:19 PM
To: Main PHP List
Subject: [PHP] Complex IF statement


Thank you all for your help earlier!

Now I need to know if it is possible to create a complex if statement?

if ($variable=="duck") || ($variable=="goose"){ }else{ }

Is how I thought it would work. I just need to know if there is an easy way
to do an OR in if statements IF variable equals duck or goose...

Jon
===
And shepards we shall be
For thee, my lord, for thee
For thou hath descended forth from thy hands
That our feats may swiftly carry out thy command
We will flow a river forth unto thee
And teaming with souls shall it ever be...
===
http://jcampbell.blacklightning.net


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Build with Apache on Linux

2001-01-21 Thread Chris Mulcahy

OK, I've built Apache and PHP on Linux 50 times already.  Now it's causing
me problems.

I've rebuilt my server, I've tried PHP 4.0.3 and PHP 4.0.4.  It keeps
causing me problems.

I could not find libphp4.a and found on the net where someone suggested to
rename libmodphp4.a to libphp4.a.

During configure, I'm getting an error:
  /usr/bin/ld: cannot find -lmodphp4
  collect2: ld returned 1 exit status

It's making me insane.  Attached below is a complete transcript (it's small)
of the apache configure.  PHP configure; make; make install appears to work
perfectly, but it's not going so well with Apache.

Any suggestions greatly appreciated.

Thanks in advance.
Chris

--- BEGIN Transcript ---
[root@gumby apache_1.3.14]#
./configure --activate-module=src/modules/php4/libphp4.a
Configuring for Apache, Version 1.3.14
make
 + using installation path layout: Apache (config.layout)
 + activated php4 module (modules/php4/libphp4.a)
Creating Makefile
Creating Configuration.apaci in src
cd ..;
gcc  -DLINUX=2 -I/home/cmulcahy/transfer/php-4.0.3pl1 -I/home/cmulcahy/trans
fer/php-4.0.3pl1/main -I/home/cmulcahy/transfer/php-4.0.3pl1/main -I/home/cm
ulcahy/transfer/php-4.0.3pl1/Zend -I/home/cmulcahy/transfer/php-4.0.3pl1/Zen
d -I/home/cmulcahy/transfer/php-4.0.3pl1/TSRM -I/home/cmulcahy/transfer/php-
4.0.3pl1/TSRM -I/home/cmulcahy/transfer/php-4.0.3pl1 -DUSE_EXPAT -I./lib/exp
at-lite -DNO_DL_NEEDED `./apaci` -o helpers/dummy
lpers/dummy.c   -rdynamic -Lmodules/php4 -L../modules/php4 -L../../modules/p
hp4 -lmodphp4  -lpam  -ldl -lttf -lgd -lresolv -lm -ldl -lcrypt -lnsl  -lres
olv   -lm -lcrypt
/usr/bin/ld: cannot find -lmodphp4
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
Creating Makefile in src
 + configured for Linux platform
 + setting C compiler to gcc
 + setting C pre-processor to gcc -E
 + checking for system header files
 + adding selected modules
o php4_module uses ConfigStart/End
 + checking sizeof various data types
 + doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed.  The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.

 Error Output for sanity check 
= End of Error Report =

 Aborting!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Function / String Problem

2001-01-19 Thread Chris Mulcahy

It's after a variable called $LoggedIn.

You'll have to do:

echo "brbr...are you logged in: ".LoggedIn()."brbr";

hth
Chris Mulcahy
[EMAIL PROTECTED]

-Original Message-
From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 11:17 AM
To: PHP Mailing List
Subject: [PHP] Function / String Problem


Okay, what is wrong with this:

   echo "brbr...are you logged in: $LoggedIn()brbr";
// outputs:...are you logged in: ()

Function is:
function LoggedIn(){
  global $HTTP_POST_VARS
if ($HTTP_POST_VARS["Login"] == "PHPIsCool")
{return "YES";}
else
{return "NO";}
}




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]