php-windows Digest 22 Aug 2003 18:59:29 -0000 Issue 1882 Topics (messages 21210 through 21216):
Re:Re: [PHP-WIN] ascii to utf-16 21210 by: Neil Smith Re: how to establish relationship in Mysql 21211 by: Svensson, B.A.T. \(HKG\) php read asp session variable ? 21212 by: giko Re: Form data 21213 by: Svensson, B.A.T. \(HKG\) MS Word COM Object formatting 21214 by: Herhuth, Ron 21215 by: Chris Kranz GD Library vs ImageMagick 21216 by: Arijit Chaudhuri Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
--- Begin Message --- Ahem. If you convert and store your data in XML format and handle it like that (say using sablotron or DomXML), as XML uses UTF16 internally, shouldn't that solve this (and a number of other) problem ?
Cheers - Neil.
At 02:28 22/08/2003 +0000, you wrote:Date: Fri, 22 Aug 2003 11:31:45 +0900 From: Joel Rees <[EMAIL PROTECTED]> To: "Achilles Maroulis" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Message-Id: <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [PHP-WIN] ascii to utf-16
"Achilles Maroulis" <[EMAIL PROTECTED]>
> > Is there a way to convert a string to unicode utf-16? > > Apparently not built into php, which sort of surprises me.. > > You could make one if you want, it's not hard. > ... > If you REALLY REALLY REALLY want a conversion function, I might be able > to build one for you next week. But I don't think you want one. Try this > instead: > > header( 'Content-Type: text/html; charset=UTF-8' );
Okay, I got this far two weeks ago, haven't been able to break any more time out since. (Take the kids to see the dolphins and all, you know.) So I'm posting what I have, which is incomplete and entirely untested. It should serve as a starting point for anyone who really wants to be able to convert between forms.
======================================================== CaptionKit http://www.captionkit.com : Production tools for accessible subtitled internet media, transcripts and searchable video. Supports Real Player, Quicktime and Windows Media Player.
VideoChat with friends online, get Freshly Toasted every day at http://www.fresh-toast.net : NetMeeting solutions for a connected world.
--- End Message ---
--- Begin Message ---> If you're looking for foreign keys, no. MySQL doesn't support that. > (Though I think it may be on the list of things to do.) The entrire ISO SQL-92 is said to be on the list of things to do, but do have you an idea how priorized the above issue is ?
--- End Message ---
--- Begin Message ---if is possible can anyone help me? I must read a session variable of asp in an app PHP ... is possible? thank's a lot...
--- End Message ---
--- Begin Message ---Where do you have your HTML code for the FORM then? May one see it? -----Original Message----- From: Muhammad Imran To: [EMAIL PROTECTED] Sent: 22-8-03 4:56 Subject: [PHP-WIN] Form data How i can process my form data, my form contain just one text input field and .php code have to show it but when i press ""SUBMIT" button my page url does not change nor the input text seen thier. my php code is : <html> <body> <p>Welcome<?php echo ($Applicant); ?>!</p> </body> </html> html form just send the input text with Applicant text field data. However my php and apache is working fine. Do any one have idea. Imran
--- End Message ---
--- Begin Message ---I have a situation where I am storing Bios in SQL Server that contain HTML tags so they display correctly on Web Pages and on our company Portal. They recently decided that they want to have these Bios available in MS Word format. Because of the dynamic nature of the Bios and the importance of them, they have to be created on the fly. I have been somewhat successful in that I can create the MS Word file and place the text in it. But unfortunately I am having trouble changing the font attributes. I have been recording macros while performing the changes I want to make and then opening them in the VB Editor to get the syntax. When I incorporate them into my PHP script they have no effect. My question is how can I change the font styling using the MS Word COM object from PHP? ...or better yet...is there a way to have the HTML styling "carry over" to the MS Word Doc? VB Code from Macro: Selection.WholeStory Selection.Font.Name = "Arial" My PHP Code (I left out the code to pull the $bio from the database): $bio = str_replace("?","'",$bio); $bio = strip_tags($bio); } $word=new COM("Word.Application") or die("Cannot start word for you"); $word->visible =0 ; $word->Documents->Add(); $word->Selection->Typetext("$bio"); $word->Selection->WholeStory; $word->Selection->Font->Name("Arial"); $word->Documents[1]->SaveAs("testwrite.doc"); $word->Quit(); Thanks, Ron
--- End Message ---
--- Begin Message ---you should be able to ... in word ... open up the html page from word itself, and then save it as a word doc... thinking in my head, soemthing along the lines of... $file="bios.html" $word=new COM("Word.Application") or die("Cannot start word for you"); $word->visible =0 ; $word->Documents->Open($file); $word->Documents[1]->SaveAs("testwrite.doc"); $word->Quit(); in theory, should work... although i could be wrong...
--- End Message ---
--- Begin Message ---I need to implement the following: a) Get the image height and width of images b) Create thumbnails and other lower resolution images from one high res image The site is expected to handle a large number of such operations with bulk uploaded images. Which would be better for implementation - gd library or imagemagick? For the latter, I read that some additional overhead may slow down operations as php will need a pear module to call imagemagick functions. Any help or link to a relevant article is welcome. Thanks for the trouble, Arijit
--- End Message ---