php-general Digest 20 Jan 2002 11:34:06 -0000 Issue 1122

Topics (messages 81252 through 81260):

Re: RTFM
        81252 by: B. van Ouwerkerk
        81254 by: Miles Thompson

Re: application variable
        81253 by: Joe Van Meer

Variable referencing/substitution
        81255 by: Gaylen Fraley
        81256 by: Fred

Upload & View Image
        81257 by: Thomas Edison Jr.
        81259 by: Jason Wong
        81260 by: Malte Fucks

imap problems
        81258 by: Cary Mathews

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 ---

>Yeah, I've seen (and used) that.  But it requires searching.  My idea is to
>put together a list of the simple questions in one place ... much like the
>apache faq ... and also allowing "world input" like the php manual does.

Sorry.. can't resist to reply :)

 From what I've seen it doesn't matter how many faqs minifaqs.. 
whateverfaqs you create.. Some will never learn cause the don't spend 
enough time to understand.. There are more then enough tutorials out there 
for anyone to find.

How to learn PHP, or any other language: tutorials, manuals/books online or 
printed. Spending a LOT of time.. testing.. playing..

Bye,


B.

--- End Message ---
--- Begin Message ---
B.

Yeah - play. It's the only way --  take a function, use it the right way 
and the wrong way. Can it be combined with other functions. What quirks of 
punctuation are there, etc etc.

You know, I'd forgotten that too -- piddling about brings returns.

Now excuse me, I have to go play with an array.

Ah, true geekdom - Miles

At 11:38 PM 1/19/2002 +0100, B. van Ouwerkerk wrote:

>>Yeah, I've seen (and used) that.  But it requires searching.  My idea is to
>>put together a list of the simple questions in one place ... much like the
>>apache faq ... and also allowing "world input" like the php manual does.
>
>Sorry.. can't resist to reply :)
>
> From what I've seen it doesn't matter how many faqs minifaqs.. 
> whateverfaqs you create.. Some will never learn cause the don't spend 
> enough time to understand.. There are more then enough tutorials out 
> there for anyone to find.
>
>How to learn PHP, or any other language: tutorials, manuals/books online 
>or printed. Spending a LOT of time.. testing.. playing..
>
>Bye,
>
>
>B.
>
>
>--
>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]

--- End Message ---
--- Begin Message ---
Hi there, I usually test at the top of the page that does my 'logging-in' to
see if the variable I set for each user once they actually login is set.
So if I set a variable called '$isloggedin' upon a successful login, I would
check at the top of that page to see if it is set or not, if it's already
set bypass the login and redirect them to a new page.

HTH Joe :)




Ye Tun <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Do we have application variable in PHP as in ASP?
>
> I have a small database running with user name and password kept in MySQL
> database.  Once user is login, how can I prevent the same user from
> logging in again?
>
> REgards,
>
> Ye
>


--- End Message ---
--- Begin Message ---
How can this be done?

If I have the name of a variable that is stored in an array, how do I use
the stored value to represent the actual variable?

Example:

$variable = "old value";
$vNames[1] = '$variable';  //literal $variable

I want to say $vNames[1] = "new value";  /and have $variable actually
change.

How?

--
Gaylen
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com/
PHP KISGB v3.1 Guest Book http://www.gaylenandmargie.com/phpwebsite/



--- End Message ---
--- Begin Message ---
See the manual on references:
http://php.he.net/manual/en/language.references.php
$vNames[1] = &$variable

Fred

Gaylen Fraley <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How can this be done?
>
> If I have the name of a variable that is stored in an array, how do I use
> the stored value to represent the actual variable?
>
> Example:
>
> $variable = "old value";
> $vNames[1] = '$variable';  //literal $variable
>
> I want to say $vNames[1] = "new value";  /and have $variable actually
> change.
>
> How?
>
> --
> Gaylen
> [EMAIL PROTECTED]
> Home http://www.gaylenandmargie.com/
> PHP KISGB v3.1 Guest Book http://www.gaylenandmargie.com/phpwebsite/
>
>
>


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

I have a penpal system running on a site. I want to
add a feature wherein the person can upload his image
and when somebody views the PenPal list, the uploaded
image is shown next to his ad.

Can we also control the Image Width & Height? I mean
when the Image is displayed, it should be in a Size i
want, and not any size. And also the File Size.. i
dont' want very heavy images uploaded. Can that be
restricted?

Thanks,
T. Edison jr.


=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
*******************************************

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
--- End Message ---
--- Begin Message ---
On Sunday 20 January 2002 14:42, Thomas Edison Jr. wrote:

> Hi,
>
> I have a penpal system running on a site. I want to
> add a feature wherein the person can upload his image
> and when somebody views the PenPal list, the uploaded
> image is shown next to his ad.
>
> Can we also control the Image Width & Height? I mean
> when the Image is displayed, it should be in a Size i
> want, and not any size. 

Take a look at the "Image Functions" section in the manual.

> And also the File Size.. i
> dont' want very heavy images uploaded. Can that be
> restricted?
>

Ditto "Handling file uploads"


-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
C'est magnifique, mais ce n'est pas l'Informatique.
                -- Bosquet [on seeing the IBM 4341]
*/
--- End Message ---
--- Begin Message ---
I think the PHP image functions aren't what this guy needs...

First thing : File Uploads
You have to make a form, including an <input type="file" name="yourfile">
tag, which refers to a php script like...

<?
if($file)
{
   if(@copy($yourfile,"./$yourfile_name"))
   {
       echo "$yourfile_name was uploaded succesfully";
   }
    else echo "ERROR - UPLOAD ABORTED";
}
?>

$yourfile_size includes the size of the file in bytes, use an if-statement
to check if the picture-size fits your needs...
$yourfile_type includes... guess what... the file type..
this should solve the upload problem...

To control the size of an image is a matter of your HTML... do something
like
<img src="yourimage" width="40px" height="40px">. Its even possible to
insert height and width-values in percent...



--- End Message ---
--- Begin Message ---
I am trying to get twiggi-gw (http://sourceforge.net/projects/twiggi/) to
run on an OpenBSD 2.9 system using Apache 1.3.22 with php 4.1.1 compiled
as a static module. Is this even possible?  I'm starting to think it is
not!

php is configured with the --with-imap, --with-mysql, and --with-apache
options. php does not seem to have any problems with these flags.
However, when compiling apache, I got errors relating to my c-client
linker module (?) : /usr/local/lib/libc-client.so.2.1.  The actual error
message doesn't come to mind at the moment.

So I tried recompiling the imap binary; I'm using the one which comes with
pine4.44. When I configured php with --with-imap=/tmp/pine4.44, it told me
it should be --with-imap-ssl. So I changed it to
--with-imap-ssl=/tmp/pine4.44, and re-configured it. No problems with php
or apache this time. Apache and php both work wonderfully.  But when I run
the twiggi installation test, I get the following error regarding imap:

Fatal error:  Call to undefined function:  imap_rfc822_parse_adrlist() in
/usr/local/apache/htdocs/twiggi/lib/mail/php-imap.inc.php on line 873

After reading the Zend and Php.net pages regarding imap, I copied the new
libc-client.a, rfc822.h, mail.h, and linkage.h files to my include path,
and tried recompiling once more.  Again, php, apache compiled fine, but
the same error as above occured.

Why did php tell me it configured in imap functionality and then give me
this error?

Any help, additional documentation would be greatly appreciated!
Cary



--- End Message ---

Reply via email to