fputs($fd,$Images);
> as you don't need to specify the length. If you 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
0xc2
Quantization table 0x01 was not defined
pnmscale: Command not found.
Empty input file
Any suggestions would be appreciated..
Really, all I'm trying to do is take a MySQL jpg image and shring it 10%
and then save it again as another MySQL Image (a thumbnail)...
Mike
--
Mike G
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
/home/mike/wtoa
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:
Warning
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
Th
of this image then:
http://www.wtoaction.org/caravan2001/ReThumbnail.jpg
I was assuming that I couldn't see it because I didn't have the header.
I was just trying to use ImageJPEG to force in a header. It would be
far easier to just write the contents of an image from a database and
ins
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 nu
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]
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/ w
>>"Rasmus Lerdorf" and "Photo Album"
The google reference was a bit indirect (but it got to the same place too).
Thanks Richard for this. Although I did have problems actually viewing the script.
Mike
>>- Original Message -
>>From: Mike Gifford <[EMA
e any 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 bett
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"
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, '
quot;, "", $userfile_name);
However 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
--
Mik
y results from:
echo $HTTP_POST_VARS['Approve_Selected_y';
What the heck am I doing wrong 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/peti
ink I was able 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 s
; IcyGEN Corporation
> http://www.icygen.com
> 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 -
ublic 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.c
haric
comes out in invitea friend emails 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
Mike
Don Read wrote:
> 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
>>ord
mber of days into the date field & I'm not sure if
it's going to work...
Rather skeptical at the moment.
Suggestions would be appreciated.
Mike
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization needs for an effective web site.
Abol
nguage varchar(5),
URL varchar(100),
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 PROTEC
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, OpenConce
another related problem in that I've set up the following fields in one
table:
firstName
lastName
organization
and I need to be able to order them by a combination of lastName & organization.
I could list the organization field simply as the lastName, but tha
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
publisher.addressID = WLPaddress.addressID 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 eff
st($key, $val) = each($multiple_profileID)) {
echo $key . " : " . $val . "";
}
}
I would hope that the result would be
2 : 2
2 : 3
5 : 6
5 : 7
I can then pull out the author's name using the profileID.
If someone has an idea of a better way t
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.
problem couple month ago.
> I'll look int omy codes.
I hear ya.. Somewhere, within which project lies the answer (likely).. Now
which one? :)
Thanks for looking into it.
Mike
> -Original Message-
> From: Mike Gifford [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, Jul
d be the result with LEFT 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://openconce
LECT * from clients join on orders where clients.cid = orders.cid;
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 i
folks 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 -
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 Giffo
ew apps
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
Offerin
0),
>>Type varchar(50),
>>Old date,
>>Source varchar(100),
>>SourceURL varchar(100),
>>PRIMARY KEY (ID)
>>);
>>
>>I also tried to insert a date generated by:
>>$Date = date(Y-m-d);
>>
>>using the following variation:
;insert into dbrss (Feed, Title, URL, Abstract, Old)
VALUES ('$Feed','$Title','$URL','$Date','",$db);
Any help would be appreciated.
Mike
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization needs fo
php
I've also attached the full script (since I've made some changes to it).
Any additional help would be appreciated.
Mike
> "Mike Gifford" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>> Hello,
>>
e
> ampersand ...
> - Original 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
penews.rdf
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
Off
SC LIMIT 0,5";
> $result = mysql_query( $query )
> or die("never expect your query to work: $query");
>
> while ( $row = mysql_fetch_array( $result ) ) {
>
> echo "" . stripslashes($row["FirstName"]) . " " .
> stripslashes($
ashes($individuals_array["FirstName"]) . " " .
stripslashes($individuals_array["LastName"]) . " from " .
stripslashes($individuals_array["CityState"]);
}
However, it gave me the following error:
Warning: Supplied argument is not a valid MySQL result r
how up.
Does anyone 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
ct) VALUES
('$Feed[$v]','$Title[$v]','$URL[$v]','$Abstract[$v]')",$db);
Any suggestions on how to deal with this issue?
--
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization needs for an effective web
rgs);
>
> header("Location: $url");
> exit;
>
> That has worked for me before and will most likely work again.
>
> --Joe
>
> On Wed, Apr 04, 2001 at 09:42:20PM -0400, Mike Gifford wrote:
> > Hi Joe,
> >
> > I don't doubt that at all..
an array of every variable posted by GET (the way you 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
ike
Joe Stump wrote:
> It works for me 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 wro
that translates to this in PHP:
>
>
> $test = array(
> joe => 'stump',
> harry => 'bar',
> jane => 'scott');
>
> ?>
>
> --Joe
>
> On Wed, Apr
ay_superRSS[]);
}
Obviously I'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://w
emplates/view.cgi?/news/2001/03/28/cdnx010328">
Canadian Venture Exchange approves TSE takeover plan
The boards 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.
t; . stripslashes($LastName) . "
from " . stripslashes($CityState);
// echo "" . stripslashes($sameIP_array["FirstName"]) . " " .
stripslashes($sameIP_array["LastName"]) . " from " .
stripslashes($sameIP_array["CityState"]);
}
}
Hello Again,
Can anyone tell me what the best form of Email validation there is? It needs to
be quick & as open to - and . as possible.
I've seen the following:
But this one looks quite impressive too:
Not sure which is the best.
Mike
--
Mike Gifford, OpenConcept Consult
e"]);
}
}
If the database already has entries which have been submitted from the same
IPAddress, I'd like to have those names and numbers listed.
The previous version of this code is published and available here:
http://openconcept.ca/guide-petition.phtml
Thanks.
Mike
--
52 matches
Mail list logo