User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 328,953 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,070 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Contribute Code
This is a recursive function I made to draw purely CSS bar graphs. You pass it an array of data and the total amount, example: $someData = array('Oranges'=>4, 'Apples'=>10); $total = 14; echo drawCSSGraph($someData, $total); Also, you can pass it options in the form of an array or as space... (View Snippet)
This code will display images within an email from the server. It will display an image with a choice of file extension which can be expanded to fit your needs. this code was originally developed for a emailing system where the images to be displayed where uploaded by the user. (View Snippet)
Just copy and paste the snippet into a file and save. You need to save this under the web root, not in a web accessible folder. For example, on linux you could save it in your home directory. Say your user is "joe" then save it in /home/joe/ . Ify saved the file as interactive.php then you would... (View Snippet)
This class allows for the handling of normal and serialized cookies as well as switching between these types of cookies. Cookie Functions: Write Cookies Read Cookies Delete Cookies Use of this class is fairly simple. Step 1: Include the class source in your php project using the require or... (View Snippet)
I wrote four simple functions to manipulate .htpasswd file ( Apache ). (View Snippet)
I wont describe whats here, just figure it out yerself, enjoy =) (View Snippet)
This class will allow you to take an RSS feed (local or remote) and "export" it to an easily managed/viewed array. Below is an example of it usage: <?php include("exportrss.php"); // Parse XML/RSS 2.0 feed $feed = new ExportRSS("test.xml", "2.0"); $channel = $feed->get_channel_data(); echo... (View Snippet)
Hello, this code snippet is a function used to manage an unlimited amount of hit counters with a text file. It is crucial that each page will only be displayed once. The text file syntax: page_name.php:0 page_name.php:0 An example of a text file that was just set-up (not used by code, yet): (View Snippet)
This function distributes mail to a mailing list, out of an array. Wether the array is plundered from a database, a file, or from the code, the function only takes a prepared one. Also, this function is only good for HTML messages. The array's syntax is to be: array("recipent's... (View Snippet)
This function caps a specific letter of a string, and returns the updated string. THe first letter is 0, as it is default as well. (View Snippet)
Contribute Code
All times are GMT -4. The time now is 3:10 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC