I am converting a look-up table in PHP which looks like this to JavaScript using json_encode:
AbilitiesLookup Object
(
[abilities:private] => Array
(
[1] => Ability_MeleeAttack Object
(
[abilityid:protected] =>
[range:protected] => 1
[name:protected] => MeleeAttac...
Hi Friends!
I have a html form which have a select list box from which you can select multiple values because its multiple property is set to multiple. Consider form method is get method. The html code for form is as follows.
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="get" act...
My code is inside a plugin's init function and I'm trying to file_get_contents() on a file inside my plugin folder..
I'm using...
file_get_contents(ABSPATH.'/wp-content/plugins/myplugin/myfile.html');
Not sure why can't I just use...
file_get_contents('myfile.html');
...
I am using PHP, i want to display a string which comes as title of a post, in a textbox as value. if this title has inverted commas then the string value tag of input field terminates on that quote. now as there is an add slash function to add back slashes, is there a similar function to add forward slashes ? but just before quotes, and ...
Hello Everyone,
I am trying to get my UniqueEmail validator working but it seems that my validator is never triggered.
This is my form:
class EventManager_Form_User_Base extends SF_Form_Abstract{
public function init(){
$this->addElementPrefixPath(
'EventManager_Validate',
APPLICATION_PATH . '/modules/eventManage...
Hi
I am developing an eshop application. I am using webservice to create Order in Oracle database and websvc will give a response (OrderNumber) and I will inform customer that his Order (OrderNumber) is generated
My problem
The creation of order is taking too much time in backend system and user is keeping refreshing the page, On each re...
I have a silverlight application to call the SQL Azure's stored procedure and show the data. I use the service to call stored procedure, and it is working when it is run at VS 2008. But when I integrate in php page, the data is not shown. I think the service is not running.
How can I call SQL Azure stored procedure without using service...
I have a array of links and i have another array which contains certain values i would like to filter in the list
eg:
http://www.liquidshredder.co.uk/shop%3Fkw%3Dsurfboards%26fl%3D330343%26ci%3D3889610385%26network%3Ds
http://www.bournemouth-surfing.co.uk/index.php%3FcPath%3D32
http://www.stcstores.co.uk/wetsuit-range-sizing--pricing-in...
I have a jQuery AJAX call with type:'GET' like this:
$.ajax({type:'GET',url:'/createUser',data:"userId=12345&userName=test",
success:function(data){
alert('successful');
}
});
In my console output is:
GET:http://sample.com/createUser?userId=12345&userName=test
params: userId 12345
userName test
In my script i ...
I have SQL Server with following table :
table PROMO, column:
code , varchar(10)
name , varchar(10)
image_data, image
desc , text
How to insert image file as binary into sql server using PHP PDO? the image will be stored in column image_data
EDIT: What type of variable should I pass to the PDO parameter
$stmt = $conn->prepare($qu...
Hi,
i'd like to ask your help on a longstanding issue with php/mysql connections.
Every time i execute a "SHOW PROCESSLIST" command it shows me about 400 idle (Status: Sleep) connections to the database Server emerging from our 5 Webservers.
That never was much of a problem (and i didn't find a quick solution) until recently traffic n...
Say I have a class which represents a person, a variable within that class would be $name.
Previously, In my scripts I would create an instance of the object then set the name by just using:
$object->name = "x";
However, I was told this was not best practice? That I should have a function set_name() or something similar like this:
f...
In order to get better SEO and cleaner URLs, I tend to export certain RewriteRules directly into the .htaccess (eg, RewriteRule ^The_North_Face(.*)$ index.php?a=brands&id=27&extras=%1 [NC,L] and so forth for each brand or category). It's a lot more complex than that but today I discovered that the file is only as good as the data it's tr...
What is a good way to represent a collection of bits?
I have a set of various on/off toggles (thousands of them) and need to store and retrieve their state. The naïve implementation would be an array of booleans, but I'm wondering if there's a better way (better in terms of access speed and/or memory requirements).
I've found this BitA...
I have a program that is interacting with hardware via parallel port programming. i had compiled it and using its object file to interact with the hardware (a simple led). when i execute it directly on the shell it serves the purpose of glowing the LED but when i execute it using shell_exec() in php the command is executed but unable to ...
I am using Symfony 1.3.2 with Propel ORM on Ubuntu 9.10.
I have developed a form that dynamically populates a select widget with cities in a selected country, using AJAX.
Before the data entered on the form is saved, I validate the form. If validation fails, the form is presented back to the user for correction. However, because the c...
Hi!
I cant get a PHP file to send correct headers at my WAMP server. Wouldn't be a problem normally except that is phpMyAdmin that is freaking out and that the main css files are not working in Firefox.
Here's the row that in the file that merges the css files together, used to send the output as CSS.
header('Content-Type: text/css; c...
I'm a newbie facebok developer from Italy Sorry, but my english is very poor.
I would like to ask you how to create in my facebook application a multi-friend selector to allow my users to post news on friend's wall.
How can I let my user select friends, and than send to those friends a news on their wall?
I 'don't know ajax, so please c...
I have a form that I am validating with JS and PHP. Everything is going well so far apart from when I try to check if the passwords match.
Here is the form:
<div>
<label for="passlength">Password, valid: 0-9</label>
<input type="text" name="passlength" value="<?=@$_REQUEST['passlength']?>" id="p...
Can anyone how I might convert an RSS feed of events to an ical format so that I can import into Google Calendar?
...