php-windows Digest 12 Sep 2001 02:11:23 -0000 Issue 750 Topics (messages 9314 through 9324): HELP! Image manipulate over the WEB 9314 by: Gu Weidong-a1923c 9315 by: Martin Lindhe 9316 by: Daniel Reichenbach 9318 by: David Elliott 9324 by: Gu Weidong-a1923c Aray problems... 9317 by: Andrew.Martin mail problem with php as cgi 9319 by: Jack 9320 by: Angie Tollerson ImageTTFBBox 9321 by: Claus Bloch fopen using a share 9322 by: Hans Breitenfellner Strange error in MS-SQL result set 9323 by: Christoph Grottolo 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] ----------------------------------------------------------------------
Does anyone know how to rotate and zoom the image over the WEB? Or any plugin can do this? Thanks, Weidong Gu
> Does anyone know how to rotate and zoom the image over the > WEB? Or any plugin can do this? > Check out the GD functions: http://www.php.net/manual/en/ref.image.php resizing: http://www.php.net/manual/en/function.imagecopyresized.php Rotating i didnt find any info on, never used this myself /Martin
> Does anyone know how to rotate and zoom the image over the > WEB? Or any plugin can do this? Try using ImageMagick http://www.imagemagick.org/ Works out to be a good solution. Better than GD I'd say. Daniel
Hello Gu On 11 September 2001 at 18:50:39 +0800 (which was 11:50 where I live) Gu Weidong thoughtfully wrote the following GWa> Does anyone know how to rotate and zoom the image over the WEB? Or any GWa> plugin can do this? Take a look at http://www.mnetwork.co.uk/aircraft/558/XH558.html. -- TTFN, _______________________________________________ David | David Elliott | Software Engineer | _________________________| [EMAIL PROTECTED] | PGP Key ID 0x650F4534 | | Fine: Tax for doing wrong. Tax: Fine for doing fine. |
Thanks. But it seems that the imagemagic is more focus on the commandline not the WEB. -----Original Message----- From: Daniel Reichenbach [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 11, 2001 9:05 PM To: Php-Windows Subject: RE: [PHP-WIN] HELP! Image manipulate over the WEB > Does anyone know how to rotate and zoom the image over the > WEB? Or any plugin can do this? Try using ImageMagick http://www.imagemagick.org/ Works out to be a good solution. Better than GD I'd say. Daniel -- PHP Windows 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]
I am I missing something or..... I have a table category in which there will be three level (possibly more), I uses ID and parent_id to distinguis between the levels. All values with parentid = 0 are top level categories, those with a parent id = id of another value are child values of that parent category. Sounds easy enough. so my structure looks like this Category 1 id 1 parent_id 0 Sub Category 1 id 2 parent_id 1 Sub Category 2 id 3 parent_id 1 Category 2 id 4 parent_id 0 Sub Category 3 id 5 parent_id 4 SS Category 1 id 6 parent_id 5 Category 3 id 6 parent_id 0 I want to beable to enter a new category and select whether or not it is a new top category or a sub category of an existing category. To do this I have a drop down box containing the values of all the categories. Now to make it more user friendly I want to dispaly the values as they appear above (tree like effect) So I build an array dynamically based on whats in the db (child parent relarionship) First I use the following code to get the top level before I go to the next record I call the category_level() and pass the id of the current top level $query = "select * from category where parent_id = 0 order by id asc"; $lc = 1; while($row = mysql_fetch_array($result)){ $main_id[$lc]= $row["id"]; $title[$lc] = $row["title"]; $defined_category[$main_id[$lc]]="TopLevel_".$title[$lc]; echo $defined_category[$main_id[$lc]]."<br>"; category_level($main_id[$lc]); $lc++; } In the recursive function goes through all child levels to see if there are more sub levels and enters a value for the dynamic array function category_level($id) { global $defined_category; $q = "SELECT * from category WHERE parent_id = $id "; while ($db->next_record()) { $dtitle = $db->f("title"); $did = $db->f("id"); $defined_category[$did]="level_".$dtitle; echo "__".$defined_category[$did]."<br>"; $category_level = category_level($did); } } When I echo the values of the array the values are displayed correctly in the correct order (as above). But the actual drop down box displays the lowest level values first then the next level higher and then the top level. Is there any way of ordering this select box? Any help much appreciated.
Hi! I've installed php as cgi (so not as apache module) using cygwin. It works fine except that mail() send to I-don't-know-where. My php.ini is fine with smtp=localhost (I do have a server), sendmail_from= me@localhost, and sendmail_path commented out. But when running phpinfo, I get path to sendmail=usr/lib/sendmail -t. Is the problem there? How to solve it? Thanks in advance Jamphp
Jack, I'm not 100% sure, but I think on windows you have to have the sendmail_path defined. You mentioned it's commented out. Can anyone confirm that? That's what I seem to recall....sorry! Angie Tollerson Alliance Technologies Web Programmer (515)245-7628 [EMAIL PROTECTED] >>> "Jack" <[EMAIL PROTECTED]> 09/11/01 12:44PM >>> Hi! I've installed php as cgi (so not as apache module) using cygwin. It works fine except that mail() send to I-don't-know-where. My php.ini is fine with smtp=localhost (I do have a server), sendmail_from= me@localhost, and sendmail_path commented out. But when running phpinfo, I get path to sendmail=usr/lib/sendmail -t. Is the problem there? How to solve it? Thanks in advance Jamphp -- PHP Windows 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 I get an error :: Could not find/open font . My the font is locating at the same dir as the file/string that call it: ImageTTFBBox($ttf_size,0,'DRAGONW.ttf',$show_txt); Is the setup of php wrong or what??? If you can help me i bee happy Claus Bloch [EMAIL PROTECTED]
is there a way to use fopen() on a share? $fp = fopen( '\\10.1.0.1\c$\folder') results a error. If i try the same from the explorer, it works well. Hans
Hi I experience a very strange behaviour of the mssql extension: the resultset of any SELECT statement gives the correct number of rows and of fields, but I can't fetch the contents of all fields with INT datatype, these fields are empty in the result array (but they exist). All other fieldtypes give correct results (i tried date, varchar, char) Connecting to the same db through ODBC gives correct results. Local system: NT4 SP6a, Apache, PHP 4.06/4.07 Dev Remote: Win2k MS-SQL 2000 Christoph