I'm looking to design a doctrine-backed ACL system for my own use, although I'm struggling with some of the initial design considerations.
Right now I'm looking at making it based on classes and unique identifiers, storing them in a table as such:
Table: ACL
ResourceClass
ResourceKey
RoleClass
RoleKey
Permission
O...
Im having a little trouble with running a php script in the background.
I have my admin area which has HTTP authentication to access and a mail out script which I want to run in the background. This script will take a long time to execute so I wish it to execute in the background.
My idea is when I access the "send" page, it executes t...
I am trying to pass data to an ASP.NET based Web Service using the WSDL file containing the below:
<s:element minOccurs="1" maxOccurs="1" name="ContactId" nillable="true" type="s:int"/>
<s:element minOccurs="1" maxOccurs="1" name="GenderId" type="s:int"/>
<s:element minOccurs="1" maxOccurs="1" name="EthnicityId" type="s:int"/>
<s:elemen...
I have an array as following and I want to order that array by the value of the key "attack". First keys of the arrays (15, 13, 18) are ID of some certain item from database, so I don't want these keys to be changed when the array is sorted. Any help would be greatly appreciated.
This is the array:
$data = array('15' => array('attack' ...
Is it possible to determine if the user has selected a file for a particular input type="file" field using javascript/jQuery?
I have developed a custom fieldtype for ExpressionEngine (PHP-based CMS) that lets users upload and store their files on Amazon S3, but the most popular EE hosting service has set a max_file_uploads limit of 20. ...
Hi,
I tried to upgrade our shopsoftware from Ver. 1.3.2.3 to 1.4.1.0 and I used the Magento Connect Manager. It loads all the files and said they has been installed, but they are not. Under “downloader/pearlib/download/” are all these files. Have I forgotten anything or is that maybe a bug in our customized shopversion?
I’m searching f...
now I use:
PRAGMA table_info(table_name)
construct, but it don't allow me to narrow search result to only column names, as it turns out much of unwanted data. That is array of arrays
Array
(
[0] => Array
(
[cid] => 0
[name] => id
[type] => INTEGER
[notnull] => 0
...
What is the best way to calculate the length of flv file using php with out external dependencies like ffmpege because client site run on shared hosting,
itry http://code.google.com/p/flv4php/, but it extract metadata and not all video contain meta data ?
...
I'm using PHP 5.2 to make a website
I like to have explicit names for my classes
I also have a convention saying 'the path and name of a file' match the 'name of the class'
So a class called:
ABCSiteCore_Ctrlrs_DataTransfer_ImportMergeController
would sit in my svn working copy at:
C:\_my\websrv\ABCCoUkHosting2\webserve\my_library\...
How do I make the text disappear like the way some fields work here on stackoverflow once I start putting in text? I tried out the different 'on'-actions in HTML but that didn't really do what I wanted.
Thanks.
...
I am doing a query which fetches two fields.
I need each of those fields into a different array.
Will this rerun the query for each call or just re iterate over the result set?
$a= Laststatment->fetchAll(PDO::FETCH_COLUMN,0);
$b= Laststatment->fetchAll(PDO::FETCH_COLUMN,1);
...
I may say I'm not a PHP programmer. I've been reading at http://php.net/manual/en/function.date.php that:
The valid range of a timestamp is
typically from Fri, 13 Dec 1901
20:45:54 GMT to Tue, 19 Jan 2038
03:14:07 GMT. (These are the dates
that correspond to the minimum and
maximum values for a 32-bit signed
integer). How...
Hello Stackers,
Right now I'm learning about the CakePHP framework, and I just wanted to know what makes CakePHP secure. How secure are its components like for example how secure is the authentication component. Also, what can we do as developers to increase the security of our CakePHP base web application?
Also do you guys recommend a...
PHPunit can create a multitude of result reports, but I am having trouble figuring out how to get an overall result for all tests.
...
How to create custom login and register page in wordpress? I want to show the login and register page in the current template itself. Is there anyway to show these pages in the content area of the site?
...
I'm looking for a way to convert any amount from one currency to another on a website. The user would enter something like '100' and select USD as the currency, and then chooses Australian or Canadian dollars as the currency to convert to. When he clicks the 'Convert' button, I'd like to convert that amount automatically, through some AP...
Javascript noob here (I'm assuming I will need Javascript to solve this).
I need to make a page which directs a user depending on the selection they make from two dropdown lists.
Lets say I have a form with two lists:
A contains
<option>1</option>
<option>2</option>
<option>3</option>
B contains
<option>1</option>
<option>2</optio...
I'm experiencing some behavior I did not expect. I have a synchronous procedure that is kicked off via PHP/OCI8. At the beginning of the process there is a SELECT...FOR UPDATE NOWAIT
I do NOWAIT because I want users notified immediately with an error message that the process is already running, rather than having their browser wait fo...
Hello Everyone!
I cannot figure out why this code works locally on my PC (localhost) but not online on a public server? Can it be a PHP version issue? Thankful for all help!
$post_data = array('item_type_id' => '8', 'string_key' => 'Test Nyckel2', 'string_value' => 'Test Varde2', 'string_extra' => 'Test Extra', 'numeric_extra' => 'T...
Hi,
I'm thinking about using Cassandra for a large data project. The data will be sourced from a traditional data warehouse. Cassandra will host the data formated in a way my application can correctly read it.
I don't quite understand how I will prune the data from Cassandra.
For example, I want to count the number of visits a partic...