•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 331,729 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,074 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
•
•
•
•
•
•
•
•
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)
Create the HTML we will be using. I will show the whole code and then break it down so you can see what each thing does. Let's start. Create a new html file called index.html.
HTML Code:
<html>
<head>
<title>AJAX Demo</title>
<script src='getnv.js'></script>
</head>
<body>
<div... (View Snippet)
Hello.
I know that there are many ways to convert date in PHP, but i use those to two convert from/to MySQL DB. (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)
I absolutely hate it when I trust a person and never collect a deposit on work only to NOT be paid when I'm done.
I recently designed a flash page turn effect that is all XML controlled for a Realtor where the agents could simply upload the images to a folder, use the online editor to edit the... (View Snippet)
While doing a redesign of two sites I had this need to take my clients TemplateMonster template and show flash on ONLY the front page and a static image on the internal pages but the problem was that it ran on a template engine which used a single load header type setup not to different from a... (View Snippet)
Okay so I had this need to vary the template layout of an osCommerce theme using its BTS (basic template system) and noticed that unlike standard osCommerce where you can edit each and every individual page to have a unique layout, BTS uses a template system to generate its look. I've ran into... (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)
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)
Searching the net I couldn't find a simple way of retrieving HTTP Request Headers and HTTP Request Body in a PHP Script.
PECL extensions offer this but not a standard PHP install.
So heres a simple class that will do it for you.
Docs in my blog: http://fijiwebdesign.com/content/view/90/77/ (View Snippet)