i have a problem of reading values from excel file via spreadsheet_excel_reader which is a php class used to manipulate excel files. $data = new Spreadsheet_Excel_Reader(); $data->setOutputEncoding('CP936'); $data->read("d:\\tmp.xls"); $rows=$data->sheets['numRows']; $cell = $data->sheets['cells'];... 20 Mar 2010 03:01
Need routine to tell me number of dimensions in array.
Anyone have a function that will return an integer of the number of dimensions an array has? I did some quick searches and came up with nothing. The closest was here of someone asking the same thing, but his solution isn't right: http://www.bigresource.com/PHP-count-array-dimensions-VrIahx1b.html http://php.ne... 17 Mar 2010 08:01
how to get the local time
hi friends, I'm trying to set local time in my php script. I was trying date and time function but its always show the server time not local time. i need help on this problem. how can i set the local time. i need sweden time zone ----- Regards Saeed Ahmed http://saeed05.wordpress.com ----- ... 15 Mar 2010 18:11
Deleting multiple backslashes; regex?
Anyone have a regex pattern for deleting multiple backslashes e.g., \\\\\\\ I pretty good with regex; but, be damned if I can delete them with preg_replace() I've tried "\\\\" as the manual says preg_replace("/\\\\/", '', $str); preg_replace("/(\\\\)+/", '', $str); preg_replace("/\x5C/", '', $str); pr... 16 Mar 2010 11:25
long polling solution for LAMP with limited privilege
I wonder if you guys have a long-polling(http://meteorserver.org/interaction-modes/) solution for a shared hosting(eg. hostmonster) ... 15 Mar 2010 13:30
Using Mono library from PHP
Is there a way to use a Mono library from PHP running on Apache 2.2 on a Debian server? I have seen samples of using COM and DOTNET, but it seems to work only on Windows not on Linux. Your help is really appreciated. Thank you, Fernando. ... 15 Mar 2010 12:21
Thanks to Jochem Mass for helping earlier to the string splitting. Works great (so far). Now on to my next problem, which has to do with ldap_bind(). I have the following code: $ldapconn = @ldap_connect($adServer); $ldapbind = ldap_bind($ldapconn, $ldapuser, $ldappass); ... 15 Mar 2010 14:39
Greetings all, I'm currently looking at building a web application, however I've run into an area of development I've not come across before. The web site in its basic form allows users to send cars from a point and then the car will arrive at another point. When the car is set on its way, the start time, travel... 15 Mar 2010 19:31
Splitting a string ...
I'm not a regexp person (wish I was though), and I'm hoping someone can give me a hand here. Consider the following strings: - domain\username(a)example.org - domain\username - the same as above but with / instead of \ (hey, it happens) - username(a)example.org - ... 15 Mar 2010 10:06
Change displayed file name to download
Hi, I'm using the following code: ____________________ $fp = fopen($filename, 'r+'); $content = fread($fp, filesize($filename)); fclose($fp); header("Content-type: application/msword"); header("Content-Disposition: attachment; filename=$filename"); echo $content; exit; ___________________ Now ... 14 Mar 2010 17:41