Hi Daniwebbers, can someone help me How to figure out the depth of a dynamic hash (hash of hashes) in perl. If it has consistent structure, we can traverse through while/foreach and find out the depth. Could anyone point me the right and best way to figure it out. my %hash1 = ( name => { first => "John", last => "branham", middle => "visa", }, address => { park => "cubbon", doorno => "4/6", other => { division => "division", city => "Cincinati", state => "Ohio", country => { cont => "NA", code => "USA", pin => "51123", }, …

Member Avatar
Member Avatar
+0 forum 3

Basically I'm having three text input. First is autocomplete (book name). Second is book price and third is book author. Please help me in changing the 2nd and third input text box values according to the selection of autocomplete input box. Fiddle setup is at http://jsfiddle.net/premgowda/UC74L/6/ Json code below from php echo output { "users": [ { "name": "ajax", "price": "1003", "author": "foriegn" }, { "name": "jquery", "price": "1000", "author": "dd" }, { "name": "mysql", "price": "1000", "author": "f" }, { "name": "php", "price": "1000", "author": "abc" }, { "name": "php frameword", "price": "1000", "author": "def" }, { "name": "php …

Member Avatar
Member Avatar
+0 forum 1

Hi geeks, After tireless searches of online open-source inventory management, I got no successful results. My requirement is that, there are 3 levels. A least level employee request for a inventory item to 2 level. second level manager approves and sends it to first level, First level manager approves, replies the employee with the details. These items should be tracked with an inventory management thereby showing current status for each requested items. IS there any readymade open sourcecode available at this time. Or can I achieve this in drupal. ? If yes, please suggest me the drupal module for it.

Member Avatar
Member Avatar
+0 forum 2

Hi all, I am dealing a small issue. I am missing something silly :). My need is that I want the entire lines between <TABLE> </TABLE> with no modifications. [CODE]<?php $some_string = <<<STR <HR noShade size=2> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR="" > <TR BGCOLOR="c1ffcc"> <TH ALIGN="LEFT" COLSPAN=22> <font face="Arial,Helvetica,Geneva,Swiss,Verdana" size="2" color="black">Baseline Comparison for Request Id: </font></TH> </TR> <TR BGCOLOR="lightblue"> <TH COLSPAN=1> </TH> </TABLE> </body> </html> STR; $match = preg_match('`<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR="" > (.*)</TABLE>`i', $some_string,$table); echo $match; print_r($table); [/CODE] But this code doesn't fetch me the desired output. Any help will be highly appreciated.

Member Avatar
Member Avatar
+0 forum 1

Hi all, I came across a new issue in curl request with php. I need to fetch a document from other host [url]http://xyz.com/content.html[/url]. I cannot view that page without login credentials. So I have given [url]http://user:pwd@xyz.com/content.html?get1=x&get2=y[/url]. I can send a successfull curl request to that page in a command line on my server. curl --connect-timeout 30 [url]http://user:pwd@xyz.com/content.html?get1=x\&get2=y[/url]. So I have given in my code (IM using 'simple_html_dom.php') $html = file_get_html("http://user:pwd@xyz.com/content.html?get1=x&get2=y"); This one not yielding the result and doesnot even produce any errors. Though I can yield the result by giving "php -f myfile.php" on my server host. What is that …

Member Avatar
Member Avatar
+0 forum 6

Hi All, I installed php 5 in my linux pc. My phpinfo() says libXML support active libXML Version 2.6.23 libXML streams enabled But still I cannot use DOMDocument in my script. When I use it in my script, Class 'DOMDocument' not found in /var/www/html/getcontent_3.php Any pointers will be very much appreciated. And also I need this badly to traverse my html contents. I cannot re-install libxml package with "yum" as I am not connected with internet.Please let me know any offline installation is possible. Any other equilent is available in php and its performance comparing to DOMDocument.

Member Avatar
Member Avatar
+0 forum 1

Hi folks, This is my first thread in Spring Framework and I am new to it . While creating a web app in Spring framework I cannot deploy it as it contains few errors. I couldnot resolve. So i seek help from you . . Bean creation exception is the one i got. System specification : winxp, glassfish server , netbeans IDE Stacktrace is [CODE] INFO: PWC1412: WebModule[/SpringDemo] ServletContext.log():Initializing Spring root WebApplicationContext INFO: Root WebApplicationContext: initialization started INFO: Refreshing Root WebApplicationContext: startup date [Tue Sep 28 12:27:41 IST 2010]; root of context hierarchy INFO: Loading XML bean definitions from ServletContext …

Member Avatar
Member Avatar
+0 forum 1

Hi javaAddicts I am a novice java programmer. I am in a learning process in java servlets. How to load a servlet and invoke its method from index.jsp. I want the servlet to execute first and dispatch its value to index.jsp and also i dont want to use redirect from jsp and again dispatching the values from servlet. Is there is a way to access it.

Member Avatar
Member Avatar
+0 forum 3

hi friends, I am a novice java programmer. I am in a learning process in java servlets. But i struck into a Class method which should return a result set([B]result of a join query[/B])as a an arrayList using the existing bean class. I will show my code as some one can point out what i should do or suggest me a (standard) method to access it. I am having a separate bean class for table users and table books. A book table which has list of books info, A user table which has list of users info, when a user …

Member Avatar
Member Avatar
+0 forum 2

hi friends, I am a novice java programmer. I am in a learning process in java servlets. But i struck into a uploading a file into (desired location) server I will show my code as some one can point out where am i going wrong. Currently im dealing with null value exception and it also says ServletConfig needs to be initialized. Any one help me to get rid of that. Or suggest me a new (standard) method to solve it. in doPost function [CODE] if(request.getParameter("action").toString()!=null){ String action =request.getParameter("action").toString(); if(action.equals("Upload")){ ProjectUtility util =new ProjectUtility (); util.uploadFile(request, response); System.out.print(request.getParameter("texte")); } } [/CODE] …

Member Avatar
+0 forum 0

How to upload an image with servlets. Can we do it without fileOut.write(); Is there any method to upload an image from user and save it in a desired location in server?? Thanks & regards

Member Avatar
+0 forum 0

hi friends, I am a novice java programmer. I am in a learning process in java servlets. But i struck into a Class method which should return a result set as an array. I will show my code as some one can point out where am i going wrong. Currently im dealing with null value exception. Any one help me to get rid of that. Or suggest me a new (standard) method to access it. please treat me novice in java servlet My servlet file in doGet() [CODE] protected void showAllUsers(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out …

Member Avatar
Member Avatar
+0 forum 6

Hi all, I am a php rookie. I like to get a PHP function returning an array which gets a string(search query) and db results(an array) as arguments. This array should be sorted in ascending (alphabetical) order with search query positions. I tried of querying the results but i struck up with sorting with search query positioning. My db Array() { Hussain,Dalton,Zaheerus,beltwood,usher,johnny,walker, } My snippet [CODE] function getSearchRecords ($string){ $listRecords=array(); $query="select name,member_id from member_details where name like '%$string%' order by name"; $queryResult = self::DbExecuteQuery($query); while($getRecords = self::DbFetchAssoc($queryResult)){ array_push($listRecords,$getRecords); } return $listRecords; [/CODE] $string="us"; will return hussain,usher,zaheerus (in this order). but …

Member Avatar
Member Avatar
+0 forum 1

Hi All, I'm developing a Calendar project . I have all the concepts and framework with me upto my knowledge. I need to show the events on a particular day which i will fetch it from mysql values by PHP. Forgive me if im not posting in a professional way. [CODE] <td class="cal_events" onclick="createEventonDate('18-3-2010')">//createEventonDate('18-3-2010') makes the form for events creation asking for event name and event place <a title="" href="showMonthEvents.php?event=67&sho=0">18</a> <br/> <div id="viewEvent18-3-2010" style="display: none; height: 121px; width: 229px;"> // I will Not show this div content until an Onclick Event, which calls displayEvent(18) occurs. <p>1st Event</p> <p>2nd Event</p> <p> …

Member Avatar
Member Avatar
+0 forum 3

Hi All, I went Through the tutorial of zend framework. . I can able to validate the forms outside the index controller. But the same form which is called in index controller is not validating. I searched in web but none helped me. . I wanna know why the form is not validating in index controller. here is my view page. [CODE]<?php $this->form->setAction($this->url(array('action' => 'index'))); echo $this->form;?> [/CODE] here is my index controller [CODE]<?php class IndexController extends Zend_Controller_Action { public function indexAction() {//echo "login controller"; $form = new Default_Form_Index(); $this->view->form = $form; // echo "Our home page stuff"; } [/CODE] …

Member Avatar
Member Avatar
+0 forum 2

Hi all I like to display the next and previous content's teaser for every node in drupal(PHP CMS) . .Is there any module available for this issue.. next and previous content's teaser should be of the same taxonomy of same content type.. Suppose if i a news is displayed in a current page, below the particular news next and previous news' teaser should be displayed.... It is similar to which dailymotion- video shows the next and previous video's thumbnails for every content. i think it is possibal in views and cck. . . But i dont know what should be …

Member Avatar
Member Avatar
+0 forum 3

Hi everyone, i m doing an inhome project on community development... For that i need a form such that we can send a mail to anyone without authentication,, For Ex. a user of gmail can send a update to user of yahoo or gmail. Please help me

Member Avatar
Member Avatar
+0 forum 4

hi all,.. how to display recommended items from my site to the products available How to display recommended item for a product to my customer... I have downloaded history_rec and recommender modules.. please help me with this issue... I have attached a screenshot for how i am expecting my site to be displayed

Member Avatar
+0 forum 0

hi pals, Im doing in-home project such that a document is being generated on the values i give in html document. how can i include header and footer for the word document by php code . MY cod for generating document is <?php $str=$_POST['client_name'].".doc"; header("Content-Type: application/vnd.ms-word"); header("content-disposition: attachment;filename=$str");?> <html> <body leftmargin="30px" topmargin="30px" marginwidth="50px" marginheight="50px"> This is test word document. </body> </html> thanks in advance

Member Avatar
Member Avatar
+0 forum 2

when i tried to open sxw documents using open office doc writer it asks for format to open.. please help

Member Avatar
Member Avatar
+0 forum 1

hi pals, i want to hide one select box to the web page background color.. i can set the backcolor color for select but it cant hide the dropdown triangle at the end. need help. thanks my code is [code]<script language="javascript"> function Turnover(sel){ sel.style.backgroundColor=sel.options[sel.selectedIndex].value=='yes'?'green':'' } </script> <select onchange="Turnover(this)"> <option value="yes">yes</option> <option value="no">no</option> </select>[/code]

Member Avatar
Member Avatar
+0 forum 5

hi all, Im doing in-house project ... Im creating form which has a drop down box for gender.... and also a document which contains "he/she" type... when i select the male option in that dropdown box the doc which contains "he/she" should autopopulate to its corresponding gender and generate it into a document.... please help me...

Member Avatar
Member Avatar
+0 forum 3

The End.