How do you check if a file exists a remote ftp site.
$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,
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
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
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?
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
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
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
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
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
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
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
Is there a way to return the total number of sessions currently registered
on a server?
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.
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]
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
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
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
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
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
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
) {
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
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
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
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
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] =
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
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
-
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
29 matches
Mail list logo