[PHP] Problems with PHP 4.2.2 and *IMAP*

2002-08-28 Thread Ryan Faricy

Yes. Another poor soul who is having problems with PHP and installing the
IMAP library. I've installed Apache 1.3.26, PHP 4.2.2 and MySQL and they all
work just fine together. But I want IMAP as well, because I want my webmail
app to work.

I compiled PHP like so:
$./configure --with-apache=[valid path to apache
source] --with-imap --with-kerberos
and there were no errors to speak of.

It created many of these files in my php-source-directory/ext/imap:
config.m4  imap.dsp  libimap.la  Makefile php_imap.c
php_imap.lo  setup.stub
CREDITSIMAP_Win32_HOWTO.txt  libs.mk Makefile.in  php_imap.h
php_imap.o

The only file that is missing from my entire system - I have looked - is
php_imap.so. Oh sure, php_imap.LO is here, but no php_imap.so. And so Apache
barfs but keeps going when I go and start it:

[root@ns apache_1.3.26]# /etc/rc.d/init.d/apache start
PHP Warning:  Unable to load dynamic library '/usr/local/lib/php_imap.so' -
/usr/local/lib/php_imap.so: No such file or directory

Of course, I know it isn't in /usr/local/lib but it isn't anywhere on my
system. How do I get this gosh darn php_imap.so file??

I would graciously appreciate a reply by email because these are such active
groups. Thank you.

Ryan Faricy



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




[PHP] Re: How to declare Vars in PHP?

2005-05-05 Thread Ryan Faricy

"Jon M." <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>I know it's not necessary, but I still want to know how.
>
>
> I know in JavaScript, that you declare vars like so:
>
> var = variableName;
>
> So I'm assuming that in PHP you do it like this:
>
> var = $variableName;
>
> But there doesn't seem to be a single shred of documentation on PHP.net 
> (or in ANY book) that covers this. All they say is that it's good 
> practice, but not necessary. Then they always skip telling you how.
>
> I always like to declare vars since it helps me keep track of the vars I 
> will be using, and I just like to do things right.
>
> So am I right about how you do it? "Yes", "No", example please??
>
>
> -Jon

It is good practice to define your variables (i.e., set them to 0, or empty, 
etc) at the beginning of a script, for security and reliability reasons.

With PHP however, there technically is no definition of variables as in 
other languages such as Java or BASIC. To define a variable in PHP simply 
requires a $variableName = ''; or $variableName = 0; or $variableName = 
empty; etc etc. A variable is defined as soon as a value is set for it, 
therefore to define a variable, simply give it a value. 

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



[PHP] Re: How do you declare Vars in PHP? -I know it's not necessary, but I still want to know

2005-05-05 Thread Ryan Faricy

"Jon M." <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>I just found a place here:
>
> http://us2.php.net/manual/en/language.oop.php
>
> That has this example:
>
> /* This is how it should be done. */
> class Cart {
>   var $todays_date;
>   var $name;
>   var $owner;
>   var $items = array("VCR", "TV");
>
>   function Cart() {
>   $this->todays_date = date("Y-m-d");
>   $this->name = $GLOBALS['firstname'];
>   /* etc. . . */
>   }
> }
>
> It appears that they are declaring vars like this:
>
> var $todays_date;
>
>
> Is this something you can only do inside a class???

Yes, as has been said within this thread several times. 

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



[PHP] Re: php5-mysqli

2005-05-05 Thread Ryan Faricy
"Nsk" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]

> which config files are responsible for loading mysqli in apache/php5 ?

php.ini

;; Old MySQL support
extension=mysql.so
;; New MySQL support.
extension=mysqli.so

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



Re: [PHP] form variables

2005-05-05 Thread Ryan Faricy
A hidden INPUT would be better...



...


"Bala Chandar" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
hi

On 5/5/05, Anasta <[EMAIL PROTECTED]> wrote:
> Can anyone tell me how a submit button can be used to send set a variable 
> so
> there is only a button --no textfield.
use value="" in the button html component


-- 
bala> balachandar muruganantham
blog> lynx http://chandar.blogspot.com
web> http://www.chennaishopping.com 

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