[PHP] change server unix->win
Hi I have a serious problem: The client want's to emigrate the webhosting from a unix server to a windows server. Now my biggest problem are the path's. Is there a way to fast convert all the /root-style directories into the windows standard \ ?? Thanks for your consideration, I have the strong feeling that this is much work coming. -- Patrick Fehr Swiss Federal Institute Of Technology -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] compileproblem gd into php4.3.9 under gentoo
For the definition of some needed graphical functions, I depend on gd compiled into php. As I am using a linux gentoo2.6.8.1 box, I use portage for that kind. I emerge'd php again, but with the USE-Flag +gd set, this seemed to work. But still the function php_info(); shows that php was compiled without gd support. What I did: emerge gd emerge php (+gd) emerge apache do I need the flag gd-external as well or what am I doing wrong? I tried to find a extension entry in the php.ini but all I could find was a .dll entry, and under linux, this can't be the right thing :) Well, I thank you for your consideration and hope to having written it clearly enough(in a few words: gd doesn't get compiled into php, why?) and I'm thankful for every hint greets Patrick -- Patrick Fehr Swiss Federal Institute Of Technology -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] compileproblem gd into php4.3.9 under gentoo[solved]
It was php_mod that had to be emerged as well (with USEvar 'gd' enabled). Now it works thanks and cu -- Patrick Fehr Swiss Federal Institute Of Technology -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] find duplicated values in array and count them
Hi all I need to compare values of multiple arrays, the tricky thing: I can't just use array_diff, because I also need to count all the occurences and give them back. The more tricky thing: It's a foreach loop through $arr[x ['comparable value'] while x is 1,4,3,6... so it's not that easy to compare one item in the array under index 4 with the next one(which is in 3) because foreach just loops. The idea is: If two keys of different arrays hold the same value, I want to just show one entry and tell the same time, how often it occurs(in other arrays), so I don't show all the entries(as I would, if they weren't the same. But it is still a bit more complicated, because: only if the date_s value lies 7 days from each other, I want to "concatenate" them to one entry + show the number of occurences. In the example below, the lessons 18 and 15 fit that need. so I want them to be shown as: [room] : Raum1 [teacher] : Marianne [class] : SundayClass starttime : 1099404000 (which is Array[19][date_s]) endtime : 099418400 + 7*24*60*60 (which is Array[15][date_e]) occurences : 2 eg --> print_r($my_big_array) shows: Array ( [7] => Array ( [name] => course1 [comment] => my bad comment [lessons] => Array ( [14] => Array ( [room] => Raum2 [teacher] => Andrew [class] => Team2 [date_s] => 1100796900 [date_e] => 1100805000 ) ) ) [3] => Array ( [name] => test [comment] => testing [lessons] => Array ( [19] => Array ( [room] => Raum1 [teacher] => Marianne [class] => SundayClass [date_s] => 1099404000 [date_e] => 1099418400 ) [15] => Array ( [room] => Raum1 [teacher] => Marianne [class] => SundayClass [date_s] => 1099404000 + 7*24*60*60 [date_e] => 1099418400 + 7*24*60*60 ) [13] => Array ( [room] => Raum1 [teacher] => Peter [class] => Team1 [date_s] => 1100798160 [date_e] => 1100803500 ) ) ) -- Patrick Fehr Swiss Federal Institute Of Technology -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] UPDATE: find duplicated values in array and count them
Patrick Fehr wrote: > Hi all > > > I need to compare values of multiple arrays The obvious problem is, that I can't use array_count_values() because the values are in different arrays, and array_count_values() refuses to compare over different arrays :) greets to all patrick -- Patrick Fehr Swiss Federal Institute Of Technology -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php