[PHP] IP atlas alternatives anyone?
I'm looking for a little script like IP atlas: IP-Atlas uses NetGeo data to find latitude and longitude coordinates for a domain or ip address, as well as the city and country. It then uses GD or CSS to plot it on the globe. http://xpenguin.com/ip-atlas.php This script seems to work for me, but still has bugs hasn't been updated since long. Any alternatives? thanks Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PDF generation asian languages
Hi, Has anyone tried to generate PDF's that contain Japanese or Chinese characters with the PHP functions? I know you have to install the Asian language fontpack for PDF's but even generating the simplest test page leads to the most horrible crashes on my Windows XP system. (using PHP 4.3.0) Any pointers, example scripts or references would be greatly appreciated, Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] serious problem with mbstring functions
When trying to do a search in a mbstring, I sometimes(!) get the following error: Warning: mb_ereg_search()[function.mb-ereg-search]:mbregex compile err: premature end of regular expression in c:\myfile.php on line 12. It's only the case for some strings. Why is this? I assume it must something related to the word itself interacting with the mbfunctions I'm using PHP 4.3.0. Thanks a lot! Simon Maybe this little file helps to see what i'm talking about: Copy paste away html head meta http-equiv=Content-Type content=Text/Html; Charset=UTF-8 titlecoding-problem/title /head body ?php $examplesnt=ã‚ãŸã—ã‚; $word=愛犬; //**FUNCTIONS*** function find_word($word,$sentence) { mb_ereg_search_init ($sentence); $result=mb_ereg_search($word); if($result==1){ echo $sentence contains $wordbr; } return $result; } //MAIN** /* Set internal character encoding to UTF-8 */ mb_internal_encoding(UTF-8); /* Display current internal character encoding */ echo mb_internal_encoding().br; echo $examplesnt. is the example sentencebr; echo $word. is the word we're looking for in the sentencebr;// i know the word is not in it, but that doesn't matter find_word($word,$examplesnt); ? /body /html
[PHP] Mysql/php database performance question
Hi, I got a question about using Mysql databases. I load textdata in VARCHAR colums up to size 50. I have about 5 of those columns. The last columns often contain empty cells. (data are wordmeanings, many words have only a 1 or 2meanings) What would be faster/better: - putting everything in a big varchar column (size 5x50) and PHP parsing them by comma after fetching or - keeping those 5 columns with a lot of empty cells in the last columns? Thanks, Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mysql/php database performance question
I see what you mean Khalid, but I only retrieve 1 entry at the time, so exploding wouldn't be the biggest problem I suppose. Furthermore, if I use char columns, and some of those columns have lots of empty cells, isn't it a waste of space/lookup-time? So I think I have to reformulate the question: which is better 5 varchar columns of size 50 or 1 varchar column of size 250 (regardless of parsing). Thanks, Simon --- the thing that may make difference in performance (as i think) is whether you make it a fixed -CHAR- or a variable -VARCHAR- it's preferable that you make separate char columns, so that PHP will not have to explode every record! Regards, Khalid Al-Kary, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.3.0 and multibytestrings?
I got a simple question. What do you have to do when you want to use multibytestring functions under PHP 4.3.0 assuming you're using the windows binaries and you're running on XP? Is it standard or do you have to adjust some things? Cheers, Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Split that keeps delimiter
Is there a way to split a string without using something like this: $keywords=preg_split(/[?!.]/, this ! Is a possible test,PREG_SPLIT_DELIM_CAPTURE); My php version doesn't seem to support the flags, and I want to know which delimiter the string was splitted by. Kind regards, Simon De Deyne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Upgrading PHP windows binaries
Hi, I want to see if I can use PHP 4.3.0RC1, and downloaded the windows binaries. Currently I'm using PHP 4.2.3 on a Win NT and XP OS, I've made the installation with the phpdev package from firepages. My question. What files do I have to change so I don't have to reinstall my Apache and Mysql? Is it just copying the Files from the Win PHP 4.3 ORC1 to my current php directory, and then altering the php.ini file or are there other files (such as httpd.conf) that should be reconfigured? If so, which files? Thanks! Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Looking for compiled Windows PHP installation with multistring fts support
Hi, Does anybody know where to find a pre-compiled Windows (XP) version of PHP that includes multistring functions? I checked phpdev on firegpages and other sites that usually hold these installations but their versions don't support those multistrings yet. Any help/links are appreciated! Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] regular expressions question
I have a little question. I'm having some difficulty with regular expressions: here it is: (this)example should be output in an array [0]= this [1]= thisexample I'm supposing this should be done with preg_grep, but I'm not really familiar with some of it's syntax for the regular expression. I could use some ideas, cheers, Simon