[PHP] ftp file exists

2002-11-08 Thread Fifield, Mike
How do you check if a file exists a remote ftp site.

RE: [PHP] Dynamic HTML Email

2002-09-20 Thread Fifield, Mike
$header .= MIME-Version: 1.0\r\n; $header .= Content-Type: text/html; charset=iso-8859-1\r\n; $header .= From: $sender_email\r\n; mail($rcpt_email, $subject, $msg, $header); This works it is what I use. -Original Message- From: Mike Dunlop [mailto:[EMAIL PROTECTED]] Sent: Friday,

[PHP] Image resizing

2002-09-06 Thread Fifield, Mike
I have been trying to figure out the best way to resize photo quality images to thumbnail size and have them come out looking good. I have read about the function http://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor() and it looks like it may do this. However I do

[PHP] Image Resizing ... lets try this again.

2002-09-06 Thread Fifield, Mike
I sent this email out earlier this morning and got no response. It was quite early so I thought I would send it again now that more people are hopefully at work :-) I have been trying to figure out the best way to resize photo quality images to thumbnail size and have them come out looking

[PHP] check for a number

2002-09-04 Thread Fifield, Mike
I am using substr($f, 0, 1); to get the first character of a string but what to be able to tell if the first character is a digit or a letter is there a way to do this?

[PHP] mysql_query() ERROR

2002-08-21 Thread Fifield, Mike
This is a query that I am sending to mysql. The problem is that sometimes in the variable $message characters like ) will get posted and when they do it makes mysql die. I can only assume that mysql thinks that the ) in the $message variable is meant to close the sql query, but I am having

[PHP] php 4.2.2 on redhat 7.3

2002-07-26 Thread Fifield, Mike
I am trying to figure out how to upgrade php from 4.1.2 (which is the default that comes with redhat 7.3), to version 4.2.2. From the small amount of documentation I have been able to find on the subject, it looks like I need to download a rpm. Is this the best way to do it or would it be better

RE: [PHP] INCLUDE vs Functions

2002-06-27 Thread Fifield, Mike
I cannot answer this for sure but my guess would be that having separately included files would be faster. There are two reasons for this. First functions are almost always slower then regular php code. Second you will be loading the entire Routines.php on every page even if you only require one

RE: [PHP] PHP_AUTH_USER

2002-06-04 Thread Fifield, Mike
Correction Redhat7 :-) Got it working thanks for all the help! -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 9:36 AM To: Fifield, Mike; [EMAIL PROTECTED] Subject: Re: [PHP] PHP_AUTH_USER I have a bunch of pages on my site inside

RE: [PHP] PHP_AUTH_USER

2002-06-04 Thread Fifield, Mike
W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 10:48 AM To: Fifield, Mike Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP_AUTH_USER And the solution was? remember, other people actually search the archives before they post, so giving the solution to your problem will help those

[PHP] PHP_AUTH_USER

2002-06-04 Thread Fifield, Mike
I have a bunch of pages on my site inside an apache .htaccess protected directory. After visitors have logged in I am on part of my site I need to find out which user it is that has logged in. I thought this information was stored in the $PHP_AUTH_USER variable, but when I print this variable it

[PHP] sum

2002-05-06 Thread Fifield, Mike
I am using the mysql sum() function to return the sum of a bunch of dolor amounts stored float values. But what I get back it something like this 98.18855591 it is to precise. All I want is the dolor amounts added up and rounded up to the closest penny. Is there a better value type to use or

[PHP] sessions

2002-04-26 Thread Fifield, Mike
Is there a way to return the total number of sessions currently registered on a server?

[PHP] authentication

2002-04-23 Thread Fifield, Mike
I have one directory that is protected with an .htaccess file on my server where I store all member content. What I want to do is have a page where members can log in, and after they have entered there user name and password I what the php script to authenticate them against the .htaccess file.

RE: [PHP] If else question

2002-04-23 Thread Fifield, Mike
Have you checked the obvious, that the condition of the if statement is actually being met? I mean are you sure that $var is returning greater then 1? -Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 11:18 AM To: [EMAIL PROTECTED]

RE: [PHP] authentication

2002-04-23 Thread Fifield, Mike
If you go to a site that has a password protected directory and you access a file in that directory, you have to enter your user name and password. After you have entered your user name and password, as long as you keep the browser window open you can navigate to any other file that is in the

RE: [PHP] Re: Backup of MySQL database

2002-04-22 Thread Fifield, Mike
I think everyone is aware that there is a mysql manual, obviously if someone is posting in this forum they have not been able to find what they are looking for in the manual. Or simply do not have to time to wade through the manual to find what they are looking for. Here is a link to a script

RE: [PHP] Re: Backup of MySQL database

2002-04-22 Thread Fifield, Mike
I agree it is annoying to see someone ask a question when it doesn't look like they even tried to find the answer on there own. We just have to remember that we have all been in the situation where we new so little about a subject that we didn't even know were to begin to look. When a beginner

[PHP] MySql query

2002-04-19 Thread Fifield, Mike
Ok this could be the wrong place to ask this but there seems to be some people in here that know mysql quite well. My question is this; I have a database that looks like this. galleries gallery_id gallery_name 1 3d 2 fractals 3 abstract 4 cats 5 cars Images image_id gallery_id

RE: [PHP] MySql query

2002-04-19 Thread Fifield, Mike
Ok the formatting got lost on that I will try this again. -Original Message- From: Fifield, Mike [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 8:57 AM To: [EMAIL PROTECTED] Subject: [PHP] MySql query Ok this could be the wrong place to ask this but there seems to be some

RE: [PHP] Images don't save

2002-04-18 Thread Fifield, Mike
Actually you can do this if all you are trying to do is disable right clicking. If you are thinking this will stop people from getting your pictures this is not the case. When a picture is viewed by someone it is downloaded to there comp first. No way to disable this. To disable right clicking

RE: [PHP] Images don't save

2002-04-18 Thread Fifield, Mike
) { alert(message); return false; }} if (document.layers) { if (e.which == 3) { alert(message);return false; }}} if (document.layers) { document.captureEvents(Event.MOUSEDOWN); } document.onmousedown=click; // --/script -Original Message- From: Fifield, Mike [mailto:[EMAIL PROTECTED

[PHP] Performance question

2002-04-16 Thread Fifield, Mike
Ok I have a performance question. I run a wallpaper site; this is the url to the main gallery page http://www.cognitivedistortion.com/php/gal.php http://www.cognitivedistortion.com/php/gal.php The page does a dir read and lists all pictures found in each directory, it does this every time the

[PHP] Performance question

2002-04-16 Thread Fifield, Mike
If no one in this forum can answer this, can someone point me in the direction of list or other resource that may be able to provide some input? Thanks in advance. -Original Message- From: Fifield, Mike [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 9:22 AM To: [EMAIL

[PHP] Storing images in MySql

2002-04-16 Thread Fifield, Mike
After posting my question about performance earlier this morning it was suggested that I also store the jpg's in the database, (thanks Maxim). I did a little research and got a lot of conflicting information on weather this is a good idea or not. For example the following url states that you

[PHP] Sorting an array of arrays....

2002-02-14 Thread Fifield, Mike
What I am trying to do is sort a array of arrays but I want to sort by one of the pieces of data stored in the arrays inside the array. For example; $data[blue] = array(name, age, time, 3); $data[green] = array(name, age, time, 7); $data[red] = array(name, age, time, 6); $data[yellow] =

RE: [PHP] Sorting an array of arrays....

2002-02-14 Thread Fifield, Mike
have to do it this way. I need it to go through each key and sort the keys based on a value in the array held in that key. Thanks Mike -Original Message- From: Darren Gamble [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 9:35 AM To: 'Fifield, Mike'; [EMAIL PROTECTED] Subject

[PHP] Checking to see it a host is up.

2002-02-08 Thread Fifield, Mike
I am looking for a way to check to see if a website is up, something like a ping command. Does anyone know of a way to do this? Mike Fifield Charles Schwab Co, Inc. WARNING: All e-mail sent to or from this address will be received by the Charles Schwab corporate e-mail system and is subject to

[PHP] Checking to see it a host is up.

2002-02-08 Thread Fifield, Mike
- From: Fifield, Mike [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:36 AM To: [EMAIL PROTECTED] Subject: [PHP] Checking to see it a host is up. I am looking for a way to check to see if a website is up, something like a ping command. Does anyone know of a way to do this? Mike