[PHP] generate e.g. circles on the fly with coordinates for postioning
Can php + what modules do this and has anybody succeeded to do something like the followingbefore? I want to generate simple images on the fly, e.g. a 50px circle on a transparent background of 200x200 px using php. I want to position the circle on the background using x and y coodinates. Is this possible with what php and additional tools? Thanks alot Helmut
[PHP] GD installed but imageFUNCTIONS dont work
Hi, hopefully somebody can help to solve this miracle. My phpinfo My provider (and phpinfo) says GD <=1.62 is installed. But when I run scripts using the php-imagefunctions that require gd like The lines containing the functions like createImage(), or ImagecolorAllocate() return error messages. How can I find out without doubt whether the functions work properly or not? Every advice is appreciated. Helmut
[PHP] loops with array_walk or foreach using array??? of variable pairs
I need to run the if-construct below (containing a number of variables in each "branch") using the 2 variables $table1 and $table2 in each run for each combination Is it array_walk or foreach ? (I "guess" that here I need a 2-dim-array, or so, passing always these 2 variables with each run: This expression has to be run using the 2 variables $table1 and $table2 in each possible combination, which is : $table1="a"; $table2="x"; $table1="a"; $table2="y"; $table1="a"; $table2="z"; $table1="b"; $table2="x"; $table1="b"; $table2="y"; $table1="b"; $table2="z"; How do I assign these valies to a multidim array and pass pairs of $table1 and $table2 to a foreach() or array_walk loop? Now this is the construct that shall be looped thru: For($i=0,$i<$numfields,$i++) { If($table1=="a" || $table1=="b" ) { if($table1=="a") {Do this using 4 variables} elseif($table1=="b") {Do that using 6 varuables} } elseif($table1=="c") { if($table2=="x") {Do this} using 4 variables elseif($table2=="y") {Do that using 4 variables} elseif($table3=="z") {Do something else using 6 variables} } } //endfor Thanks for any idea on this. -- 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]
[PHP] Can PHP top limited Windows Explorer? (Visual not filelistlike Image selectiosn for upload forms)
Are there any visual Image select solutions for upload forms topping the limited Windows Explorer? If you have an input type=file the explorer opens and gives you a list of files in the directory. Thats nice exept u need to select a specific image from a larger number of image files. Is there any way to get a SELECTABLE list of images shown in a PHP replacement of Windows Explorer? Really curious... Helmut
[PHP] Wrong result ("345php.tmp") instead a filepath from
I have a page with a html-form headed with ...ENCTYPE="multipart/form-data" ... and multiple inputs,e.g.: "..." If I select a file,e.g. "abc.jpg" with the path "c:\abc.jpg" I get a value like "345php.tmp" instead of "c:\abc.jpg". Any idea what is wrong?
[PHP] list only checkbox-marked records on a new page
Hi, I need help from checkbox-specialists needed ! I have a list of records each carrying a checkbox. The source in this original page looks like this as for the checkbox - the value of "value" equals the ID of the record: ... ... ... The user shall mark interesting records and upon submitting the form shall be shown on a new page showing only the marked records. The script for this new page exept for the query is shown below. WHAT MUST THE QUERY ON THIS NEW PAGE LOOK LIKE? e.g. Thanks for any help! Helmut \n"; } $val = urlencode(mysql_result($result,$i,"id")); echo ""; echo ""; $val = mysql_result($result,$i,"id"); print_sp(w.$val); echo ""; echo ""; $val = mysql_result($result, $i, "field1"); print_sp($val); echo ""; echo ""; $val = mysql_result($result, $i, "field2"); print_sp($val); echo ""; echo ""; endfor; echo ""; if ($result){mysql_free_result($result);} endif /* Show selected */ ?>