•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 373,565 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,851 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
•
•
•
•
•
•
•
•
class_db.php is a database class that provides methods to work with mysql, postgres, and mssql databases. Other database types can be easily added. The class provides a common interface to the various database types. A powerful feature of the class is the ability to cache datasets to disk using a... (View Snippet)
If you have done a PHP based website, chances are you have dynamic content called by variables and so on.
As many people use a main page (index.php) and use code within that page to dictate what content is displayed, either with if or switches or whatever.
Thing is, Google and other search engines... (View Snippet)
You've seen those sites that say how many seconds it took to parse the page and how many database queries comprised the page. Well heres the database query bit... (View Snippet)
Example of using INCLUDE to show a nav bar. For beginners. Simply uses include to show an external file (in this case, nav.php) and that's it! You can also include this in another page with a CSS style. The CSS will be automatically included in formatting the INCLUDEd page! :D (View Snippet)
This code snippet will attempt to show newbies to php how to connect and retrieve data from a PostgreSQL Database Server using PHP. (View Snippet)
class_http.php is a "screen-scraping" utility that makes it easy to scrape content and cache scraped content for any number of seconds desired before hitting the live source again. Caching makes you a good neighbor!
The class has 2 static methods that make it easy to extract individual tables of... (View Snippet)
This tutorial shows how to greet your visitors depending on what time of day it is. If it's morning, it greets your visitor with "Good Morning!" If it's afternoon, it greets them with "Good Afternoon!" Magic? Noooo! Just PHP!
We will start by looking at the entire script and then dissecting it... (View Snippet)
Ok, this is about as simple as it gets. This is a hit counter for your page that stores the count in a simple text file of your choosing. No need for a database, MySQL or otherwise. No complicated rubbish. Just one single function and one single file to store the count. Thats it. (View Snippet)
Allows a user to login to an ftp and upload files. (View Snippet)
This is a very simple statistics script that provides for services on/offline, memory info, server load averages and uptime and lastly drive info.
Its easily customised and i have usef <font> alot where you could have set come css and have it all done easily and look a bit more tidy than mine. (View Snippet)