and shring it 10%
and then save it again as another MySQL Image (a thumbnail)...
Mike
--
Mike Gifford, OpenConcept Consulting, http://www.openconcept.ca
Offering everything your organization needs for an effective web site.
New PHP/MySQL Photogallery Great Pictures http://genevilleneuve.com
In all
don't specify the
length, it'll write the entire string. see how that goes...
-Original Message-
From: Mike Gifford [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 30, 2001 3:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Saving A Database Image to a File (Thumbnail Problems
the contents of an image from a database and
insert them into a file..
Does that make sense, or have I completely missed the point?
You got the point.. Thanks for your help.. Still not there yet though..
Mike
Mike Gifford wrote:
Hello,
I've got a number of images in a database
Sorry if I wasn't very clear abou tthis..
I don't need to echo the contents to be viewed on the web.. I'm already
doing that here:
http://www.wtoaction.org/caravan2001/
It's a matter of saving it to a file on the disk (from the database) so
I can manipulate it with djpeg, pnmscale, cjpeg
Hello,
Jtjohnston wrote:
See these. Reduire.phps probably has what you want.
http://www.collegesherbrooke.qc.ca/si/php/exemples/photos/reduire.phps
This is what I was looking for I think.. But it still gives me an
error.. This one actually got inserted right into the database:
br
Sorry, couple post-Post changes..
The initial query should have been:
$sql = SELECT Image,Width,Height FROM Images WHERE ID='$ID';
The an echo of the UPDATE sql now looks like this:
UPDATE Images SET Thumbnail='
Warning: Supplied argument is not a valid Image resource in
Sorry, I've been having troulbe sending messages to newsgroups..
--
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]
Hello,
I've got a number of images in a database.. Ultimately what I would
like to do is be able to resize the image that is already in the
database and then insert that image into another field.
Uploading the files generally inserts these both at the same time,
however I need to create a
actually viewing the script.
Mike
- Original Message -
From: Mike Gifford [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Tuesday, September 11, 2001 2:45 PM
Subject: Uploading Photos to MySQL
Hello,
Has anyone developed another class for uploading images to a MySQL
Hi Sean,
Sorry for the delay with this.. Been a rather busy month.. However your help
on this project has been very useful..
Sean C. McCarthy wrote:
Mike Gifford wrote:
Sean C. McCarthy wrote:
If you mean http://www.webtechniques.com/archives/1998/02/lerdorf/ what
inserts in the DB
good pointers to scripts to store jpg/png files in
MySQL using PHP?
Thanks.
Mike
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization needs for an effective web site.
Abolish Nuclear Weapons Now!: http://pgs.ca/petition/
In all things it is better
Thanks robin, this is very useful!
Robin Vickery wrote:
[EMAIL PROTECTED] (Mike Gifford) writes:
Hello,
I'm trying to replace a couple of lines of code:
$dotpos = 1 - (strlen($userfile_name) - strpos($userfile_name, '.'));
$extension = substr($userfile_name, $dotpos
Thanks..
_lallous wrote:
?
$str = /home/mike/test.txt;
if (preg_match(/[^\.]+$/, $str, $matches))
$ext = $matches[0];
else
$ext = no extension;
echo extension=$ext;
?
Mike Gifford [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
I'
it isn't working..
What I'd like to do is to find the extension of a file name and place that in a
variable. So in
'/home/mike/test.txt', I want to have the statement return 'txt'
Any help would be appreciated..
Mike
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering
posting?
I looked at
Webcalendar:
http://webcalendar.sourceforge.net/
Which looks great for a number of things, but it doesn't seem to allow moderated
anonymous posting.
Suggestions would be appreciated.
Mike
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering
99%
- Original Message -
From: Mike Gifford [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 29, 2001 6:58 PM
Subject: [PHP] Add Slashes - Server Adds Them Automatically - Advice Requested!
Hello,
I've created a little opensource script:
http://openconcept.ca
to grab the source files for all
of the related
files..
Mike
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization needs for an effective web site.
Abolish Nuclear Weapons Now!: http://pgs.ca/petition/
It is a miracle that curiosity survives formal
here?
Mike
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization needs for an effective web site.
Abolish Nuclear Weapons Now!: http://pgs.ca/petition/
It is a miracle that curiosity survives formal education. - A Einstein
--
PHP General Mailing List
by your system as
Patrick \the skier\ kuharic
Has anyone else experienced this? Any suggestions for work arounds?
Mike
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization needs for an effective web site.
Abolish Nuclear Weapons Now!: http://pgs.ca
:
On 29-Jul-2001 Mike Gifford wrote:
Hello,
I've got a number of press releases that I'd like to be able to order by
year.
I'd like everything from this now to a year ago (ie. July 29th, 2000) to be
ordered together and then allow folks to scroll back to the previous year
July
30, 2000 to July
Hello,
Does anyone know if there's a GPL author class out there?
There are online book stores bibliographies all need to manage author names in
a similar way (I would think), and I'd just like to not recreate the wheel if I
don't have to.
Mike
--
Mike Gifford, OpenConcept Consulting, http
),
status varchar(5),
PRIMARY KEY (bibID)
);
CREATE TABLE WLPbib2profile (
bibID mediumint(9),
profileID mediumint(9)
);
Thanks.
Mike
Mike Gifford [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
I'm not sure if any
AND
WLPbib2profile.bibID = WLPbib.bibID
I'm making progress on this app. Thanks to the assistance of a lot of good folks.
Mike
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization needs for an effective web site.
Abolish Nuclear Weapons Now!: http://pgs.ca
That did the trick Philip! Thanks for your help.
Mike
Philip Murray wrote:
- Original Message -
From: Mike Gifford [EMAIL PROTECTED]
Hello,
I'm using phplib to add functionality to my bibliography app. However I'm
not
sure how to deal with selected data from different tables
organization.
I could list the organization field simply as the lastName, but that seems
like it would be confusing the data types... Must be a way around this.. I
suspect it is limited by my logic not PHP's.
Any ideas would be appreciated.
Mike
--
Mike Gifford, OpenConcept Consulting
the profileID.
If someone has an idea of a better way to do this I'd be happy to hear it.
I can send code tables for those who might be interested.
Thanks!
Mike
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization needs for an effective web site.
Abolish
;
SELECT * from clients join on orders using (cid);
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization needs for an effective web site.
Abolish Nuclear Weapons Now!: http://pgs.ca/petition/
It is a miracle that curiosity survives formal education
JOIN, but I'm not
sure how to return a query without duplication.
This is far better than what I had this morning (which was no response from the
server).
Thanks. I'm new to joining tables...
Mike
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your
which one? :)
Thanks for looking into it.
Mike
-Original Message-
From: Mike Gifford [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 1:04 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Duplication Results When LEFT JOIN is Used Between
Multiple Tables
Hello,
I'm making
I added DISTINCT to the code (as per below):
Kamil Choma wrote:
Mike Gifford wrote:
However, when I run this query:
mysql_query(SELECT DISTINCT
WLPbib.bibID,
WLPbib.title,
WLPbib.publisher,
WLPbib.publicationDate,
WLPaddress.city
are.
Mike
Chris Anderson wrote:
profiles?
- Original Message -
From: Mike Gifford [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 2:06 AM
Subject: [PHP] Bibliography Profiles Directory - Looking for Existing GPL
Apps
Hello,
I'm looking to see if someone
on and if there are any standards which would be useful to mold existing apps into.
I'm also keen on knowing how folks have constructed MySQL tables to allow for
multilingual content.
Thanks!
Mike
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization
Hello,
I'm looking to see if someone out there has already developed a php/mysql
bibilography. I haven't been able to find one online.
I'm also looking for a profiles directory. Rather vague definition here, sorry.
Ultimately it will be i18n compliant..
Mike
--
Mike Gifford, OpenConcept
','$Title','$URL','$Date',',$db);
Any help would be appreciated.
Mike
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization needs for an effective web site.
Featured Client: http://halifaxinitiative.org
A good life is one inspired by love and guided
',',$db);
Any help would be appreciated.
Mike
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization needs for an effective web site.
Featured Client: http://halifaxinitiative.org
A good life is one inspired by love and guided by knowledge - B. Russell
Message -
From: Mike Gifford [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 18, 2001 12:24 PM
Subject: [PHP] PHP XML Parsing
Hello,
In looking for a good script to parse XML files I stumbled across the
following
tutorial (which looks very good):
http
be appreciated.
Mike
Mike Gifford [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
In looking for a good script to parse XML files I stumbled across the
following
tutorial (which looks very good):
http://www.wirelessdevnet.com/channels/wap/
My parsing definitions are as follows
$itemTitleKey = ^rdf^item^title;
$itemLinkKey = ^rdf^item^link;
$itemDescKey = ^rdf^item^description;
Any help would be appreciated.
Mike
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization needs
)
or die(never expect your query to work: $query);
while ( $row = mysql_fetch_array( $result ) ) {
echo LI . stripslashes($row[FirstName]) . .
stripslashes($row[LastName]) . from . stripslashes($row[CityState]);
}
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
($individuals_array[LastName]) . from .
stripslashes($individuals_array[CityState]);
}
However, it gave me the following error:
Warning: Supplied argument is not a valid MySQL result resource in
/usr/local/rabble/petition/index.php3 on line 89
How do I get around this?
Mike
--
Mike Gifford
have any suggestions?
Mike
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization needs for an effective web site.
Featured Client: http://rabble.ca - News For the Rest of Us!
If a book doesn't make us better, then what on earth is it for? - Alice
2001 at 09:42:20PM -0400, Mike Gifford wrote:
Hi Joe,
I don't doubt that at all.. However, my strings aren now looking like this.
http://openconcept.ca/rabble/superRSS.phtml?Title%5B1000%5D=RBC+Dominion+Securities+investigates+URL%5B1000%5D=http%3A%2F%2Fcbc.ca%2Fcgi-bin%2Ftemplates%2Fv
'm missing a step or two here, but would really appreciate someone
filling in some of the gaps.
Thanks!
Mike
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization needs for an effective web site.
Featured Client: http://www.aboriginalrightsco
:
?
$test = array(
joe = 'stump',
harry = 'bar',
jane = 'scott');
?
--Joe
On Wed, Apr 04, 2001 at 12:00:48PM -0400, Mike Gifford wrote:
Hello,
I'm trying to build an array out of data submitted from a URL
in production.
On Wed, Apr 04, 2001 at 08:56:53PM -0400, Mike Gifford wrote:
I tried this, but it converted [ and ] to url friendly codes. Does this still
work?
Mike
Joe Stump wrote:
FYI you can send data like this on the url:
http://www.foo.com/script.php?test[joe]=stumptest[harry
described)
It was a GET not POST indeed.
Else :
Split the different key/values with the delimiter '' and thereafter split the
elements in the array by '='
How do I pull in this data if not as an array?
Mike
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your or
ds of directors of both the Toronto Stock Exchange and the Canadian
Venture Exchange (CDNX) have both voted in principle to approve the takeover of
the CDNX by the TSE.
/ABSTRACT
/ITEM
/CHANNEL
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization need
a-z,A-Z]){2}([0-9,a-z,A-Z])?$", $mail ) ) {
return false;
}
else
{
return true;
}
}
?
Not sure which is the best.
Mike
--
Mike Gifford, OpenConcept Consulting, http://openconce
shes($FirstName) . " " . stripslashes($LastName) . "
from " . stripslashes($CityState);
// echo "LI" . stripslashes($sameIP_array["FirstName"]) . " " .
stripslashes($sameIP_array["LastName"]) . " from " .
stripslashes($sameIP_a
49 matches
Mail list logo