[PHP] Comments in excel

2008-12-05 Thread Erfan Shirazi
Hi, I use the excel spreadsheet writer to export some info to an excel file. When I insert some note with writeNote(), the note/comment works well in open office, but if I open it with ms excel 2003, the note/comment can not show all, just a few lines of the note/comment instead of the whole c

[PHP] Multiple session

2007-07-27 Thread Erfan Shirazi
Hi all I have a problem which I need some help with. I have a e-commerce site were the user must log in in order to use some of the functions. But I only want 1 active session for each user, so the user should not be able to have 2 browsers opened and being able to log in with both. So I n

[PHP] Notice warnings and performance

2007-07-25 Thread Erfan Shirazi
Hi all The site I'm working on has a lot of notice warnings, thousands. And they are all about: (Notice: Undefined variable..) I was wondering if I set the php.ini file to not log these in file or display them, does all of these notice warnings still degrade performance? Or does it become a

[PHP] AJAX Framework

2005-12-19 Thread Erfan Shirazi
Hi all Just wanted to get some feedback on which AJAX Framework people uses? I use SAJAX, is there anybody which maybe has used SAJAX but are now using something else instead, maybe somebody knows some better frameworks? Best Regards, /Erfan -- PHP General Mailing List (http://www.php.net/)

Re: FW: [PHP] IE6 not returning POST data from a textarea

2005-12-13 Thread Erfan Shirazi
Are you doing a mysql_escape_string on the POST variable received? That doesn't work so good with textareas. Jay Blanchard wrote: [snip] Everyone keeps asking it. Of course it's named or Mozzilla wouldn't work. [/snip] You can insert a textarea into a page without a name and mozilla will wo

[PHP] Sending $_GET directly to AJAX

2005-12-13 Thread Erfan Shirazi
Hi all I'm writing a function which will redirect the user to the last page they were at when a session timeout occurred. The function will save all variables and set them through POST or whatever was used on that page. I.e: $_POST[$variableName] = $variableContent; This works fine with reg

[PHP] $_POST returns Array when getting data from multiple dropdown

2005-12-01 Thread Erfan Shirazi
Hi all I want to get all data passed on to a certain page, I use this to make it happen: foreach($_POST as $key => $tempvalue) { $cVariable .= $key."=".$tempvalue."&"; } This works fine as long it is textfields etc... I.e: $cVariable //Contains foobar=something& But if it is multipl

Re: [PHP] Problem with special chars.

2005-10-14 Thread Erfan Shirazi
using fwrite(). Jochem Maas wrote: Erfan Shirazi wrote: The problem is if I don't specify and encoding even an echo() on the specify a different encoding if you don't want html entities. string shows strange chars when I have made a mb_strtoupper() on the string. With HTML-ENTIT

Re: [PHP] Problem with special chars.

2005-10-14 Thread Erfan Shirazi
er to make the string into capital letters, be able to save it to a file and looking as it should look, that is: Asunción and not ASUNCIÓN? /Erfan Jochem Maas wrote: Erfan Shirazi wrote: Hi all I have some problems when I make a string containing the following "Malmö, Asunción&q

[PHP] Problem with special chars.

2005-10-14 Thread Erfan Shirazi
Hi all I have some problems when I make a string containing the following "Malmö, Asunción" to capital letters and then save it to a file. I use the following to make it to capital letters: $msg = mb_strtoupper($msg, "HTML-ENTITIES"); And this works just fine, everything looks as it should,