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 427,643 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 4,486 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
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)
Well like my previous snippet but completing the collection i suppose, this snippet counts how long it takes to parse the page and displays it somewhere.. (View Snippet)
Ping a server (View Snippet)
hi i was set the task to increment a number by x every x seconds and i tried to find some code off the net, but found the subject covered very sparsley so for whoevers benefit ill post the code here hope it helps... (View Snippet)
This snippit is a follow up to my first snippit, namely "Simple website hit counter" which is written in Perl. It does exactly the same thing using PHP. "Boring", you might say? Well, I have my reasons for wanting to learn this language and one needs to start somewhere :) . Also, it will give... (View Snippet)
Format a local time/date according to locale settings (View Snippet)
This is about as simple as it gets with menu generators. Everything is explained in the code. Note that the menu is simply an unordered list so to pretty it up it really relies on the CSS. If you don't want to write any CSS of your own here is a sample stylesheet. #Menu... (View Snippet)
Here are two simple functions to validate name and e-mail . int valName( string $arg1 ) - this function returns 1 if name is correct, 0 if incorrect int valMail( string $arg1 ) - this function returns 1 if name is correct, 0 if incorrect (View Snippet)
menuWerx is a PHP class to generate a menu for your site. Options include: debug mode, horizontal or vertical orientation & hooks, optional inline styles, and strict or transitional modes. See an example at: http://www.Clear-Mind.com/menuwerx/ (View Snippet)
I was being really lazy and didn't want to write one up myself, couldn't find one, and ended writing one up myself anyways. Hope this helps other lazy people. (View Snippet)
Contribute Code
All times are GMT -4. The time now is 10:27 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC