Re: [PHP] Saving A Database Image to a File (Thumbnail Problems)

2001-11-29 Thread Mike Gifford
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

[PHP] Saving A Database Image to a File (Thumbnail Problems)

2001-11-29 Thread Mike Gifford
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

[PHP] Re: JPG Images from database to filename.jpg

2001-11-16 Thread Mike Gifford
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

[PHP] Re: JPG Images from database to filename.jpg

2001-11-16 Thread Mike Gifford
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

[PHP] Re: JPG Images from database to filename.jpg

2001-11-16 Thread Mike Gifford
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

[PHP] Re: JPG Images from database to filename.jpg

2001-11-16 Thread Mike Gifford
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

[PHP] JPG Images from database to filename.jpg

2001-11-15 Thread Mike Gifford
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

[PHP] test

2001-11-15 Thread Mike Gifford
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]

Re: [PHP] Re: Uploading Photos to MySQL

2001-09-12 Thread Mike Gifford
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

Re: [PHP] Re: Uploading Photos to MySQL

2001-09-12 Thread Mike Gifford
>>"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

[PHP] Uploading Photos to MySQL

2001-09-11 Thread Mike Gifford
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

[PHP] Re: Regular Expressions - A relatively simple search...

2001-09-09 Thread Mike Gifford
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"

[PHP] Re: Regular Expressions - A relatively simple search...

2001-09-09 Thread 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, '

[PHP] Regular Expressions - A relatively simple search...

2001-09-06 Thread Mike Gifford
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

Re: [PHP] Decent Web Calendar With Moderated Public Postings

2001-08-30 Thread Mike Gifford
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

Re: [PHP] Decent Web Calendar With Moderated Public Postings

2001-08-30 Thread Mike Gifford
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

Re: [PHP] Add Slashes - Server Adds Them Automatically - Advice Requested!

2001-08-30 Thread Mike Gifford
; 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 -

[PHP] Decent Web Calendar With Moderated Public Postings

2001-08-30 Thread Mike Gifford
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

[PHP] Add Slashes - Server Adds Them Automatically - Advice Requested!

2001-08-29 Thread Mike Gifford
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

Re: [PHP] Using a query to selecting between two dates

2001-07-30 Thread Mike Gifford
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

[PHP] Using a query to selecting between two dates

2001-07-29 Thread Mike Gifford
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

[PHP] Re: One2Many Logic Problem - phpMySQL bibliography

2001-07-23 Thread Mike Gifford
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

[PHP] Author.class - Does it exist?

2001-07-23 Thread Mike Gifford
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

[PHP] One2Many Logic Problem - phpMySQL bibliography

2001-07-22 Thread Mike Gifford
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

Re: [PHP] $this->db->Record["WLPcountry.name"]

2001-07-22 Thread Mike Gifford
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

[PHP] $this->db->Record["WLPcountry.name"]

2001-07-21 Thread Mike Gifford
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

[PHP] Adding to an array within while loop

2001-07-13 Thread Mike Gifford
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

Re: [PHP] Duplication Results When LEFT JOIN is Used Between MultipleTables

2001-07-11 Thread Mike Gifford
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.

Re: [PHP] Duplication Results When LEFT JOIN is Used Between Multiple Tables

2001-07-11 Thread Mike Gifford
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

[PHP] Duplication Results When LEFT JOIN is Used Between Multiple Tables

2001-07-11 Thread Mike Gifford
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

[PHP] Joining a number of tables in a MySQL query

2001-07-11 Thread Mike Gifford
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

Re: [PHP] Bibliography & Profiles Directory - Looking for Existing GPL Apps

2001-07-06 Thread Mike Gifford
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 -

[PHP] Bibliography & Profiles Directory - Looking for Existing GPL Apps

2001-07-05 Thread Mike Gifford
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

[PHP] Creating Internationally Accessible Web Apps - i18n

2001-07-05 Thread Mike Gifford
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

Re: [PHP] Inserting the date into MySQL via PHP

2001-05-23 Thread Mike Gifford
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:

[PHP] Inserting the date into MySQL via PHP

2001-05-23 Thread Mike Gifford
;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

Re: [PHP] PHP & XML Parsing

2001-05-22 Thread Mike Gifford
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, >>

Re: [PHP] PHP & XML Parsing

2001-05-22 Thread Mike Gifford
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

[PHP] PHP & XML Parsing

2001-05-18 Thread Mike Gifford
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

Re: [PHP] Managing Multiple Conditions in a MySQL Query

2001-05-02 Thread Mike Gifford
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($

[PHP] Managing Multiple Conditions in a MySQL Query

2001-05-01 Thread Mike Gifford
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

[PHP] Win Apache/PHP config triping up virtual directory

2001-04-27 Thread Mike Gifford
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

[PHP] Passing Arrays Between Pages Using Forms

2001-04-05 Thread Mike Gifford
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

Re: [PHP] Building an array from a URL

2001-04-05 Thread Mike Gifford
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..

Re: [PHP] Building an array from a URL

2001-04-04 Thread Mike Gifford
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

Re: [PHP] Building an array from a URL

2001-04-04 Thread Mike Gifford
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

Re: [PHP] Building an array from a URL

2001-04-04 Thread Mike Gifford
that translates to this in PHP: > > > $test = array( > joe => 'stump', > harry => 'bar', > jane => 'scott'); > > ?> > > --Joe > > On Wed, Apr

[PHP] Building an array from a URL

2001-04-04 Thread Mike Gifford
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

[PHP] Parsing XML CDF format in PHP3 - Stumbling over

2001-03-29 Thread Mike Gifford
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.

Re: [PHP] PHP/MySQL & Control Structures -> if (mysql_query())

2001-03-20 Thread Mike Gifford
t; . stripslashes($LastName) . " from " . stripslashes($CityState); // echo "" . stripslashes($sameIP_array["FirstName"]) . " " . stripslashes($sameIP_array["LastName"]) . " from " . stripslashes($sameIP_array["CityState"]); } }

[PHP] Email validation

2001-03-20 Thread Mike Gifford
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

[PHP] PHP/MySQL & Control Structures -> if (mysql_query())

2001-03-20 Thread Mike Gifford
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 --