[PHP] snippet
can someone explain this for me: ... $sFont =submit(font) ? SITE_ROOT . PROG_PATH . submit(font) : ; ... mfg. hwiens -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php5 and mysql
i've got a wamp with php5. is there any possibility to activate or reinstall, etc. the mysql extension? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Can Objects be passed to another page?
you can store your object in a session bye Harry Wiens Webmaster [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hi, is it possible to pass an Object to another php page? I want to pass a whole bunch of varibales to another page. For example the session ID, the language that the user choose,etc. All those variables are in one or more objects. Do I have to copy all those object attributes to variables and pass them via the URL? How is this done professionally? Up to now I used cookies. But I would like to change that. Not all users have cookies enabled. Thx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] problem with gd
Hi, i got a problem with the gd library at my isp's server. I've got the following script, to put a string on a image: ?PHP header (Content-type: image/png); $gd_text = $_GET['stadt']; $font = /home/stadt-internetde/public_html/bilder/ariblk.ttf; //ariblk.ttf; ; $x = imagettfbbox (23, 0, $font, $_GET['stadt']); if((154 + ($x['2']-$x['0'])+12) 281) $breite = 281; else $breite = 154 + ($x['2']-$x['0']+12); $im = ImageCreate($breite ,173); $im2 = ImageCreateFromJPEG(logo.jpg); $orange = ImageColorAllocate ($im, 220, 167, 23); $blau = ImageColorAllocate ($im, 51, 102, 153); $bgc = ImageColorAllocate ($im, 255, 255, 255); ImageFilledRectangle ($im, 0, 0, ImageSX($im), ImageSY($im), $bgc); ImageCopyResized($im, $im2, 0, 0, 0, 0, 281, 173, ImageSX($im2), ImageSY($im2)); //border - $test = ImageTTFText ($im, 23, 0, 154, 58, $blau, $font, $gd_text); $test = ImageTTFText ($im, 23, 0, 154, 56, $blau, $font, $gd_text); $test = ImageTTFText ($im, 23, 0, 156, 56, $blau, $font, $gd_text); $test = ImageTTFText ($im, 23, 0, 156, 58, $blau, $font, $gd_text); //text $test = ImageTTFText ($im, 23, 0, 155, 57, $orange, $font, $gd_text); ImageColorTransparent($im , $bgc); ImagePNG ($im); ImageDestroy($im); ? On my localhost, everything works fine, but on the internetserver, the created image is very ugly! On the internet-server i got gd-version 2.0 or higher, so i tried to change $im = ImageCreate($breite ,173); to $im = ImageCreateTrueColor($breite ,173); but when I use ImageCreateTrueColor the transparency is gone and the image is still ugly! Phpinfo shows: gd supportenabled gd version2.0 or higher Freetype supportenabled Freetype linkagewith Freetype JPG supportenabled PNG supportenabled wbmp supportenabled Anyone got an idea for me? mfg. Harry Wiens -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] problem with gd
I have PHP-Version 4.2.2 Jason Wong [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] On Wednesday 17 September 2003 15:25, Harry Wiens wrote: i got a problem with the gd library at my isp's server. What version of PHP? [snip] but when I use ImageCreateTrueColor the transparency is gone and the image is still ugly! Phpinfo shows: gd supportenabled gd version2.0 or higher Freetype supportenabled Freetype linkagewith Freetype JPG supportenabled PNG supportenabled wbmp supportenabled Anyone got an idea for me? Maybe it's related to this: With PHP 4.3.2 compiled with the bundled gd libs, there is a problem with imagecopymerge(). Instead of merging the images, one image overwrites the other. Recompiling PHP 4.3.2 to use the standard gd libs (not the bundled ones) resolves the problem. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* I smell a RANCID CORN DOG! */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] correct encoding for emails
Hi, i'm coding a mail handler in php. i live in germany, and in germany we have umlaute (ä,ö,ü). I don't know how to display them right, or how i have to convert the text. sometimes, not always when i display my mails in php i have L=F6sungen but it must be Lösungen. What do I have to do, to display everything correct? mfg. Harry Wiens -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: correct encoding for emails
The problem is not sending or composing the email (what your class is for), but displaying all the recieved messages. Btw how do i use quoted-printable encoding ? mfg. Harry Wiens Manuel Lemos [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hello, On 06/24/2003 07:47 AM, Harry Wiens wrote: i'm coding a mail handler in php. i live in germany, and in germany we have umlaute (ä,ö,ü). I don't know how to display them right, or how i have to convert the text. sometimes, not always when i display my mails in php i have L=F6sungen but it must be Lösungen. What do I have to do, to display everything correct? You need to use q-encoding to use non 7 bit ASCII characters in the headers and quoted-printable encoding in the text body parts. You may want to try this class that already does that for you making it easy to compose and send messages in any idioms: http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Javascript in PHP
i think you have to add \n after each row of java script code. $js .= }\n; mfg. harry wiens [EMAIL PROTECTED] [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] How can I get a script to work on a page that has HTML generated by PHP and a javascript with functions called by an checkbox? javascript: function PrintScript(){ $js = function CheckBox1(); $js .= {var box1 = window.document.ctype.wr;var box2 = window.document.ctype.pfo;var box3 = window.document.ctype.pr;; $js .= if (box1.checked == true ) {box2.checked = false;box3.checked = false;}; $js .= }; $js .= function CheckBox2(){var box1 = window.document.ctype.wr;var box2 = window.document.ctype.pfo;var box3 = window.document.ctype.pr;; $js .= if (box2.checked == true ) {box1.checked = false;box3.checked = false;}; $js .= }; $js .= function CheckBox3(){var box1 = window.document.ctype.wr;var box2 = window.document.ctype.pfo;var box3 = window.document.ctype.pr;; $js .= if (box3.checked == true ) {box1.checked = false;box2.checked = false;}}; return $js; }//end function This function is called by a Display() function and here is the final out put in HTML: head title Independent Fact Finders Inc. /title meta name=description content=Independent Fact Finders Inc. META name=keywords content=Legal, background checks, background, check, records, paralegal, lawyer, attorney meta name=allow-search content=yes meta name=audience content=all meta name=robots content=all, index, follow meta name=revisit-after content=14 days meta name=Rating content=General meta name=Language content=en meta name=distribution content=Global meta name=Classification content=Legal meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 link rel=stylesheet href=iffinet.css type=text/css / scriptfunction CheckBox1(){var box1 = window.document.ctype.wr;var box2 = window.document.ctype.pfo;var box3 = window.document.ctype.pr;if (box1.checked == true ) {box2.checked = false;box3.checked = false;}}function CheckBox2(){var box1 = window.document.ctype.wr;var box2 = window.document.ctype.pfo;var box3 = window.document.ctype.pr;if (box2.checked == true ) {box1.checked = false;box3.checked = false;}}function CheckBox3(){var box1 = window.document.ctype.wr;var box2 = window.document.ctype.pfo;var box3 = window.document.ctype.pr;if (box3.checked == true ) {box1.checked = false;box2.checked = false;}}/script/head body TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 table width=100% align=center cellpadding=0 cellspacing=0 tr nowrap td class=tdHorHeader width=100% align=center valign=middle/h1strong iffinet.com/h1/strong /td /tr /table div align=center table cellpadding=0 cellspacing=1 width=712 align=middle valign=toptable width=712 height=211 border=0 cellpadding=10 cellspacing=5 tr td class=tdtop width=230 height=205 align=right valign=middle/td td class=tdtop width=230 height=205 align=center valign=middle/td td class=tdtop width=230 height=205 valign=middleh1 Independent Fact Finders Inc. /h1 h2 Our site, Iffinet.com, is currently under construction. We will be operational soon. /h2 /td /tr /table table width=100% bgcolor=#66 align=center cellspacing=1 cellpadding=2 trtd form name=crimetype method=post action= input type=checkbox name=WR value=1 onClick=return CheckBox1(); input type=checkbox name=PFO value=2 onClick=return CheckBox2(); input type=checkbox name=PR value=3 onClick=return CheckBox3();/form/td td1/td td1/td tdTim/td tdC/td tdBest/td td1972-10-02/td td fb/td tdNOLA/td tdLA/td td70114/td td0/td tdhappy to be here/td td0/td /tr trtd form name=crimetype method=post action= input type=checkbox name=WR value=1 onClick=return CheckBox1(); input type=checkbox name=PFO value=2 onClick=return CheckBox2(); input type=checkbox name=PR value=3 onClick=return CheckBox3();/form/td td2/td td1/td tdMolly/td tdM/td tdBest/td td-00-00/td td/td td/td td/td td0/td td0/td td/td td0/td /tr /table/table/divtable width=100% align=center cellpadding=0 cellspacing=0 tr nowrap td class=tdHorHeader width=100% valign=bottom align=rightp class=maintextSite Development and Graphic Design by a class=maintext href=http://www.best-it.biz; target=_blankBest IT/a/p /td /tr /table /body /html This doesn¹t work but it illustrates what I would like to do (a little)... /T -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] correct syntax
What would be the correct syntax? 1. $_SESSION[test] 2. $_SESSION['test'] 3. $_SESSION[test] mfg. harry wiens -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Fw: upload
this is working for me: [snip] $data = addslashes(fread(fopen($userfile, r), filesize($userfile))); $fp = fopen($filename, w); fwrite($fp,stripslashes($data)); fclose($fp); [/snip] greets harry wiens Jay Blanchard [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] [snip] this is the form that i have form action=archivo2.php method=post enctype=multipart/form-data input type=hidden name=MAX_FILE_SIZE value=5 Send this file: input name=userfile type=file input type=submit value=Send File /form and this is the script for upload $Archivo = $HTTP_POST_VARS['userfile']; copy($Archivo,Archivos/.$Archivo); but it doesnt work . [/snip] See TFM at http://us3.php.net/manual/en/features.file-upload.php HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Having problems with an IF statement, just doesn't make sense
if (isset($theme)) { print(Current theme is $theme); require content/header_$theme.php; if you try to send headers in header_$theme.php, this wont work, because you can't send headers after you've printed or echoed something. try this: if (isset($theme)) { require content/header_$theme.php; print(Current theme is $theme); } else { require content/header.php; print($theme); } mfg. harry wiens -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] wamphp4, php5
how do i have to configure my httpd.conf to run both, php4 and php5 i have php4 in c:\php where schould i put the php5 stuff ? do i need only one php.ini or two? questions, questions, questions mfg. harry wiens -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: newbie array question
try this: $query = select name from names (where age '23''); $numero= sybase_connect(database , user , password ) or die (Unable to connect to database server); $result=sybase_query($query,$numero ); while($temp=sybase_fetch_array($result)){ $names[] = $temp[name]; } mfg. harry wiens Bob pilly [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hi All Im new to php and are getting a bit confused about the sybase_fetch_array function (i think that this is the same as mysql_fetch_array?). If i have a valid sql query that returns three the records 'john','jack' and 'mary' and i want to put that into an array where array[0]-john,array[1]-jack etc how do i do this? Im trying to use sybase_fetch_array as follows: $query = select name from names (where age '23''); $numero= sybase_connect(database , user , password ) or die (Unable to connect to database server); $result=sybase_query($query,$numero ); $names=sybase_fetch_array($result); I then try and do something like print $names[0]; but it doesnt work. Sorry if this is really basic any help would be greatly appreciated! - Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] what does this mean?
$this-styles['shadow'] = (boolean)$bool; what does (boolean)$bool mean? mfg. harry wiens -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Php mailer
Nocc is the app you're looking for take a look at http://nocc.sourceforge.net/ Mrs. Geeta Thanu [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hi all, I am new to php and want to use php for our mailing program. At present we have servlet program what the users access it thru web interface and use for sending,receiving and composing mails. But it is giving lot of problem and hence I want to shift the entrie system to PHP . Please give me advice how to start with or URL of some example scripts etc. Thanks and Regds Geetha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php