I have a site I want to migrate from ISO to UTF-8.
I have a record in database indexed by the following primary key :
s:22:"Informations générales";
The problem is, now (with UTF-8), when I serialize the string, I get :
s:24:"Informations générales";
(notice the size of the string is now the number of bytes, not string length)
So...
Hi all,
I am trying to implement bluepay payment service in my PHP project,but I'm getting a return message of "Security Error". Here's the exact debug page results:
Response: STATUS=E&MESSAGE=SECURITY%20ERROR
Trans Id:
Status: E
AVS Resp:
CVV2 Resp:
Auth Code:
Message: SECURITY ERROR
Rebid:
I'm using the correct merchant ID and Secret...
Thanks to stackoverflow.com's frienly experts I've managed to create my first php + mysql application.
The code searches a mysql database for last names and cities. The choices are made through two drop lists like these:
Choose city:
All cities
Liverpool
Manchester
Choose last name:
All last names
Lennon
Gallagher
The code would retur...
Hi,
I have a open-book test this week and I've been notified that the test will be an exercise whereby a chunk of legacy code is provided and a requirement to 'port' the code.
I understand what a open-book test is and the requirement of it (to test your thought process etc) but (it's a long shot) what could 'porting' involve? I have a ...
object(stdClass)[1]
public 'inbox' =>
array
0 =>
object(stdClass)[2]
public 'from' => string '55512351' (length=8)
public 'date' => string '29/03/2010' (length=10)
public 'time' => string '21:24:10' (length=8)
public 'utcOffsetSeconds' => int 3600
public 're...
Hey all,
Quick question about Wordpress PHP:
I am writing a theme and I want to display (on the main index page) one icon if my post has one tag, and another if it has the other.
I wrote something like
<?php has_tag('pc') { ?><img src="<?php bloginfo('template_directory'); ?>/images/pc-icon.gif"><?php }; ?>
<?php has_tag('mb') { ?><i...
I want to sort results set first based on one column and then based on second column. I know how to do it on server side. And then I want to show these results with pagination feature.
Question: would it be better to do it on client side via ajax in jQuery? I'm using Zend Framework. Would Zend_Paginator module be useful in this scenario...
Hello,
I'm working on games using javascript some html and css, and I was wondering if there was any way to secure the game so that the user can't just call game.php?result=victory to finish the game and earn some point.
As of right now here are the solution I have.
For a chance game, start the page
with the result already in place, ...
I quickly wrote an interpreter for some sort of experimental programing language i came up with, in PHP (yes, in PHP). The language itself doesn't have anything really special, I just wanted to give it a try.
I got the basic things working (Hello World, input to output, string manipulation, arithmetics) but I'm getting stuck with the ma...
What is Call Time Pass Reference? What does it do?
...
I have a project built on Symfony 1.4 and it has multiple environments - each developer has their own copy installed on their local machine and therefore has their own environment.
I am able to dynamically set the environment in index.php, but how can I do this for CLI tasks?
I could of course use --env=myenvironment on all tasks, but ...
I'm using Eclipse to write php and naturally I get color coding like all IDEs do.
How do I get the same effect in a blog?
See this example (scroll down to see the code colors), he has full colors, green, red, blue, pretty acceptable I'd say
http://www.tellinya.com/read/2007/06/15/20.html
Is there something that's standalone PHP that...
Hi,
I want to do something like this: (in php)
$a = "class_name1";
$b = "class_name2";
$object1 = new $a;
$object2 = new $b
is this possible?
thank you very much for your time
...
Hi,
i wa trying to do mail with php codeigner, but unfortunately its not working. the error which i got was the following; somebody please help me..
A PHP Error was encountered
Severity: Warning
Message: fsockopen() [function.fsockopen]: unable to connect to localhost:8025 (Connection refused)
Filename: libraries/smtp.php
Line Numb...
Is .zfproject.xml a must in a Zend Framework project?
What does it do?
Is it's location absolute?
...
My company took some old php application over. Due to our preference to ASP.net and to the lack of any documentation from the previous developer, we do not want to spend much resources on developing in PHP.
For implementing new features, we will create an Asp.net application that has the same look to the user. We want to develop a kind o...
I would like to know from my application if a myisam table can accept writes (i.e. not locked). If an exception is thrown, everything is fine as I can catch this and log the failed statement to a file. However, if a 'flush tables with read lock' command has been issued (possibly for backup), the query I send will pretty much hang out f...
hi....
I wud like to use file upload(ajax/javascript with php) in my form that has other controls also.
when i uploaded an img it displays on the same form with delete option.
if i click on submit it goes into folder as well as database &
if i click on delete it deletes an img....
anybody can help me?pls
u knw gmail file upload exact li...
Hi All,
I am looking for a 3rd party licensing module that can be incorporated into my PHP project. I can always implement a custom one but client needs to understand if there are any 3rd party options readily available...
does any such 3rd party module exist at all for PHP... such are availabe for .Net but couldn't find any for PHP....
Hi,
i have a validation class which needs improving. If I require some custom validation I need to specify a custom function. It works a bit like this:
The controller tells the validation that a custom validation function is required.
The controller runs the validation.
--- Gets iffy here ---
Validation class creates a new instance ...