Posts

Editing XML using PHP for Project Manipulation

I had an idea about creating tutorial that will cover manipulating XML in PHP. The idea was to create some website that will use XML as a database.You can use it for password storage for your website admin and even your website configuration. In this tutorial we'll try to edit some data in XML. Our XML looks like this. Apple 10.25 15 We'll load item element and change it's content. Then we'll create new item element and append it to fruits after first item. So let's start. Loading Document And Elements First we have to create new DOMDocument class instance. We'll set XML version and encoding. Next we'll set formatOutput to true so we can have nice output. We'll also set preserveWhiteSpace to false because there is some bug in PHP that will not save nicely newly created elements. Now we just have to load our XML file. $xml = new DOMDocument('1.0', 'utf-8'); $xml->formatOutput = true; $xml->preserveWhiteSpace = fal...

Execute Simple MySql Queries in Joomla

Hi as a Joomla Developer i faced so many problems while I started working on Joomla Development and i was always in the need of developing those components and modules easily without much using Joomla Code... Now a days I am getting so much responses on my Email regarding Learning Joomla Development.. So today i have started writing this post for my friends and other E-Friends who has some problems while starting with joomla development.. see you must be known to programming in PHP and Mysql to use this post,, some times you get a project about little update in joomla project and you refuse because you don't know how to start working with it.. here's a quick tip... suppose you have a PHP code file that perform and manipulate the basic tasks about what you want to do. you can then use the include method of PHP in joomla and joomla will not dis-allow it ... eg. include("../components/com_kddemo/phpcodefile.php"); execute your any of the code in phpcodefile.ph...

Tech Blog For Developers: 100 Twitter Tools to Help You Achieve All Your Goals

Tech Blog For Developers: 100 Twitter Tools to Help You Achieve All Your Goals

100 Twitter Tools to Help You Achieve All Your Goals

Twitter has become an incredible tool not just for communication, but for improving your life. College students can use it to expand their social circle, promote their side business, keep their coursework organized, and more. Whether you want to achieve your Twitter goals, or just use it as a tool to achieve others, these tools will help you get there. Twitter Analysis If your goal is to be popular and influential on Twitter, be sure to check out these tools that will tell you how you’re doing. 1. Twitter Grader: Learn your Twitter grade, your local Twitter Elite, and find new people to follow through Twitter Grader. 2. Twitterholic: Check out the top Twitter users and find out your Twitter stats on Twitterholic. 3. TweetStats: TweetStats offers a graphical analysis of your Twitter stats. 4. Twitter Friends: Carefully measure your Twitter conversations using Twitter Friends. 5. Twinfluence: Twinfluence will measure your Twitter influence based on reach, velocity, and soc...

Most Desirable Collection Of powerful jQuery- part1

Image
jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. As Web developers we are always in search of new tutorials and resources, tips, tricks for our readers . Today we listed Most Desirable Collection Of powerful jQuery etc. We obviously cannot cover all the best from the web, but we have tried to cover as much as possible. I will appreciate if you can spread the word via Digg, Stumbleupon and other social media websites, Thank you. 1. NestedSortable : 2. jQuery Flick : 3. Jquery-Absolutize : 4. Greybox Redux : 5. jquery Hover Sub Tag Cloud : 6. Background Animation Plugin : 7. Justify elements using jQuery : 8. jQuery InputHintBox : 9. jQuery Form Input Plugin : 10. Jquery-Animated Hover : 11. Jquery - akModal alternative to thickbox : 12. Jquery-AIR : 13. jQuery Slider Gallery : 14. Farbtast...

Authentication over HTTP

Image
HTTP authentication traditionally takes the form of .htaccess files scattered around various directories webmasters want to keep private. A typical .htaccess file, combined with a .htpasswd file, contains information about users that are allowed access to a directory and their password. Even though Apache allows you to customise these permissions, the system is far from flexible - hand-editing files each time you add users, or having to group authorised users together by password is a little behind the times. HTTP authentication is mostly just a matter of sending special HTTP headers to your client asking them to provide access codes, and it is straightforward to implement in PHP as long as you have configured PHP to run as an Apache module (see previous issue for our installation guide). Let's look at basic authentication by creating the file auth.php, which should look like this: if (!isset( $_SERVER [ 'PHP_AUTH_USER' ])) { header ( "WWW-Authenticat...

Reading queued headers

array headers_list ( void ) We already looked at the headers_sent() function, which tells us whether or not HTTP headers have already been sent to the client. This function duplicates that functionality, but, crucially, also returns headers that have yet to be sent, which when you think about it is a bit more useful. As you can see from the prototype, it takes no parameters, and returns an array. That array contains a numerically indexed list of the headers that are ready for sending, which means we can extend our previous example like this: header ( "Expires: Sat, 22 Dec 1979 05:30:00 GMT" ); echo "This is some text for output. " ; if (! headers_sent ( $filename , $linenum )) { // if no headers have been sent, send one // this will not execute, as we sent the Expires header. header ( "Location: www.yoursite.com" ); exit; } else { echo "Headers alr...