Which multibyte-handling library should I use : iconv or mbstring ?
After some Googling I didn't find enough arguments to convince me to use one particularly, and I could not get any benchmark (and I'm too lazy do create one :-p).
After all maybe this choice doesn't really matters ?
Thanks for any piece of advice.
...
hi i am using fedex api i have created the my account on fedex. my problem is that when i am using test account number and test meter number i am getting the results properly but when i am using client account detail i always get the error invalid header(invalid header).
when i have contact with the fedex team they said me to use differ...
In my life I have learned many program languages: C, C++, python, java, assembly, javascript, php, etc but some times I don't know what languages is better for some projects.
So I want to know, in your opinion:
what situation is python better in ? and Why ?
what situation is c++ better in ? and Why ?
what situation is php better in ?...
I am using Zend Framework 1.10.8 and MySQL Server 5.1.X. I create my data array to update the record but only one field updates.
<?php
$where = "`character_id` = '5'";
$healthGained = 5;
$data = array();
if ($healthGained > 0) {
$data['character_current_health'] = $character['character_max_health'] + $healthGai...
Hi,
I've got a signup/login system on my site, and I've made it so that if someone tries to sign up with a username that is already in use, it posts an error underneath the form. However, instead of posting the error message that I created, it returns a MySQL error "Error: Query was empty". Here is the code that I am trying to use to do...
I'm trying to set up a new Zend project using Zend Server CE under OS X 10.6
First, I have downloaded and successfully installed Zend Server CE: opening http://localhost:10081 in my browser shows the dashboard, and everything seems to be working fine.
Than I created a new project, following the tutorial:
$ cd /usr/local/zend/apache...
i made a custom class loader function in php
something like..
load_class($className,$parameters,$instantiate);
its supposed to include the class and optionally instantiate the class specified
the problem is about the parameters. ive been trying to pass the parameters all day
i tried
load_class('className',"'param1','param2'",TRUE);
...
I'm permanently running into issues after installing & configuring modsecurity. Currently I have the following error:
Message: Pattern match "(?:data:.*,)|(?:\w+\s*=\W*(?!https?)\w+:)|(jar:\w+:)|(=\s*"?\s*vbs(?:ript)?:)|(language\s*=\s?"?\s*vbs(?:ript)?)|on\w+\s*=\*\w+\-"?" at REQUEST_BODY. [file "/usr/local/cstm/apache2/mod-security.co...
I am brushing up on my non-framework Object Oriented PHP and decided to do a test. Unfortunately, while I understand the concept of calling methods from a class, this particular test is slightly more complicated and I don't know what the terminology is for this particular type of situation is.
Test
Create a PHP class that parses (unkno...
Hi guys,
I am posting data to a php file via jQuery's $.post method, but for some reason the string comes out escaped on the other side, like so,
Sent:
company_name="company"
Received:
company_name=\"company\"
Any idea what could be the cause?
Thanx in advance!
...
I got this issue figuring out how to build a regexp for verifying a netbios name. According to the ms standard these characters are illegal
\/:*?"<>|
So, thats what I'm trying to detect. My regex is looking like this
^[\\\/:\*\?"\<\>\|]$
But, that wont work.
Can anyone point me in the right direction? (not regexlib.com please...)
A...
Packages php5-fpm and php-apc installed from ubuntu 10.10 official repo. APC configuration:
/etc/php5/conf.d/apc.ini
extension=apc.so
apc.enabled=1
apc.shm_size=128M
Afret php5-fpm restart:
Fatal error: Call to undefined function apc_exists() in /var/www/.../application/models/user_model.php on line 271
phpinfo(); says apc module ...
Hi,
I have a php app that calls a class called Client. Every so often I get a sort of time out error. I thought it was SQL at first but it turns its pointing to the class itself.
Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\ClientPortal\classes\Conn...
Hello,
I have a upload script, working fine. But I cannot seem to get an output to the user saying, record 1 of 10 files uploaded.
I could do something like
record 1 of 10 files uploaded
record 2 of 10 files uploaded
record 3 of 10 files uploaded
record 4 of 10 files uploaded
...
..
record 10 of 10 files uploaded
which is easy.
How...
Hi,
I have this dynamic string
"ZAN ROAD HOG HEADWRAPS The most
popular ZAN headwrap style-features
custom and original artwork"
EDIT
How can I check all the capital words then if I encountered a ucwords() or title case word then I will automatically add a '--' after the last capital word?
Note: The capital words are the produ...
Hi,
createThumb() method working with localhost on apache server.But, the same function not working with Amazon EC2. Which is showing an error like,
exception 'Engine_Exception' with message 'Method "createThumb" not supported' in /var/www/justrides/application/modules/Core/Api/Abstract.php:46
GD Library enabled in the server. Any sugg...
Using the PHP5 SOAP extension I have been unable to connect to a web service having an https endpoint, with client certificate and using WS-Security, although I can connect using soapUI with the exact same wsdl and client certificate, and obtain the normal response to the request. There is no HTTP authentication and no proxy is involved....
I want to parse a websites news section. It has a RSS subscribe button but the outlook looks odd and I'm not sure how to parse it.
http://www.networkroi.co.uk/DesktopModules/ArticleManager/ArticleRss.aspx?id=324&pid=0
It's not in XML which would have been a lot easier.
Here is the news page with that link on it - http://www.netwo...
Having problems returning a list of Japanese terms from an MSSql database as JSON.
If I return them as a bunch of list items all is ok, but I can not seem to get json encode to work for me.
Any pointers much appreciated.
$prefs = array();
while($row = mssql_fetch_array($result))
{
$prefs[] = mb_convert_encoding($row["Pref"] , "UTF-8", ...
hi i need to store the weird character in my database but when i am trying to do so the weird character is replace with unknown character. i am giving you one example when i am try to enter in Sönke Wortmann in database it is stored as Sönke Wortmann. i want to store above text as same as it was.please tell me how can i do so
...