Search found 1449 matches

by raghavan20
Fri Jun 13, 2008 3:15 pm
Forum: PHP - Theory and Design
Topic: Authorization libraries
Replies: 5
Views: 810

Authorization libraries

i have been searching for some authorization libraries so that i do not reinvent the wheel. i have common kind of entities as most applications have. the following are there 1. objects 2. different actions that can be perfomed on those objects 3. users 4. groups a common complex condition may be an ...
by raghavan20
Sat Mar 01, 2008 4:52 pm
Forum: PHP - Code
Topic: zend framework: forward not working
Replies: 0
Views: 1411

zend framework: forward not working

i am having two actions, addUserFormAction and addUserAction. addUserAction has some validation on it and on errors, it tries to forward to addUserFormAction in the same controller User. but if i call directly addUserAction(http://site/addUserAction) directly without input values, it find those fiel...
by raghavan20
Fri Nov 16, 2007 6:11 am
Forum: Linux
Topic: need open source debugger
Replies: 2
Views: 2142

need open source debugger

hi, i have linux and windows boxes. all my web code are running in my linux box. but i normally use IDE in windows. I want to debug my scripts in my linux box from a IDE in windows. All web code are exposed to windows box using Samba. I can only work with free or open-source IDE or debugger since th...
by raghavan20
Thu Sep 20, 2007 10:56 am
Forum: PHP - Code
Topic: cannot get PDO working for mysql
Replies: 1
Views: 793

cannot get PDO working for mysql

i got a zip file for php 5.2.4 and used it with apache 2.2.x. i had two problems. one is mysqli would not work with existing php_mysqli.dll and replaced this with php_mysqli.dll for php 5.2.1 from http://www.mysql.com and mysqli started working. for pdo, looks like pdo extensions for other dbs are w...
by raghavan20
Wed Sep 12, 2007 11:24 am
Forum: Linux
Topic: apt-get in debian - updating one package only
Replies: 4
Views: 3007

okay i think that will work. thanks a lot.
by raghavan20
Tue Sep 11, 2007 10:57 am
Forum: Linux
Topic: apt-get in debian - updating one package only
Replies: 4
Views: 3007

if a package lets us say vim is already installed and has an older version, then how do i update this package alone to the recent version?
by raghavan20
Tue Sep 11, 2007 9:06 am
Forum: Linux
Topic: apt-get in debian - updating one package only
Replies: 4
Views: 3007

apt-get in debian - updating one package only

i am wondering how is it possible to update one package only with apt-get in debian. from the man pages, i see it updates all packages at once. any suggestions?
by raghavan20
Wed Aug 29, 2007 1:16 pm
Forum: PHP - Code
Topic: Code required for interfaces, Iterator & Countable in ph
Replies: 2
Views: 558

i did create Countable and Iterator interfaces from the api provided. It did work. These interfaces are required by Zend_Config. anyway, thanks for your help.
by raghavan20
Wed Aug 29, 2007 9:54 am
Forum: PHP - Code
Topic: Code required for interfaces, Iterator & Countable in ph
Replies: 2
Views: 558

Code required for interfaces, Iterator & Countable in ph

we have a live server running with PHP version 5.0.4 but we have a latest version running in our test server. I managed to use a Zend module from Zend framework in test server but it throws error as it could not find Countable.php and Iterator.php. I am wondering whether I would be able to get actua...
by raghavan20
Sun Aug 26, 2007 10:45 am
Forum: Databases
Topic: simplest query to move all saved not items not found in cart
Replies: 8
Views: 943

if you join on both the fields user id and product id, then i think where would be a row matching where product id is null and user id is equal. please try it with these sample values.

Code: Select all

shopping cart
product id 	user id
077	1
078	2
079	3

saved item
product id	user id
077	1
078	1
079	1
089	2
by raghavan20
Fri Aug 24, 2007 11:05 am
Forum: Databases
Topic: simplest query to move all saved not items not found in cart
Replies: 8
Views: 943

feyd wrote:Have you looked at the JOIN provided in one of the Useful Posts thread links?
hello feyd, your solution described here here would not work for this situation because of these two influencing parameters, user id and product id.
by raghavan20
Fri Aug 24, 2007 10:45 am
Forum: Databases
Topic: simplest query to move all saved not items not found in cart
Replies: 8
Views: 943

feyd wrote:Have you looked at the JOIN provided in one of the Useful Posts thread links?
i could not find that thread under 'useful resources' of database forum.
by raghavan20
Fri Aug 24, 2007 10:14 am
Forum: Databases
Topic: simplest query to move all saved not items not found in cart
Replies: 8
Views: 943

simplest query to move all saved not items not found in cart

i have two tables, saveditemslist and shoppingcart. they both have two fields in common userid and productid. a user may want to move all saved items to shopping cart. but we will only move the ones that does not already exist in shopping cart. what is the simplest way to find the products that exis...
by raghavan20
Thu Aug 23, 2007 7:43 am
Forum: PHP - Theory and Design
Topic: storing a hashmap permanently
Replies: 7
Views: 1786

To all intent and purpose, arrays are equivalent to HashMaps in Java. You can serialize an array easily enough: $data = array(); $data["key1"] = "value1"; $data["key2"] = "value2"; file_put_contents("data.sore", serialize($data)); And to get it back...
by raghavan20
Thu Aug 23, 2007 4:50 am
Forum: PHP - Theory and Design
Topic: storing a hashmap permanently
Replies: 7
Views: 1786

storing a hashmap permanently

hello, i am looking to store something like an hashmap(set of key:value pairs) but i do not really want to save it in mysql db. i want to keep this as close as possible to php code in file system. it needs to be stored permanently so that it can be retrieved in subsequent requests. the value wont be...