Please help me with the code for the following question


HOME ยป PHP
Write PHP Code for printing the difference between the number
of days from Date of Birth to the current date such that it should
accept the Date of birth in Date field and Current date should be
Printed from the system current date. EXAMPLE::Dateofbirth:25-02-2014.
current date:17-11-2014. RESULT:Number of days:266.
I have a simple chatroom on a site.
It posts and then reads from
a .txt flatfile.
Only problem is, when it opens the page and
reads the txt file, it reads the whole file (as it should).
Is
there any way I can get the php to read only the last 50 lines ? />Here's the code:
class="bbcode_description">Code:
class="bbcode_code"><?php
$data =
file("log.html");
        foreach
($data as $line) {
        echo $line; />        }
?>
Mods: If this
is posted
Ubuntu
Example-1:>>> '"Yes," he said.' />'"Yes," he said.'
Example-2:>>>
""Yes," he said."
'"Yes," he
said.'
I just started using Python and above is an example they
give. I was just wondering Why would you use the slashes in example 2
because it adds 2 more characters to type and you get the same result
as in example 1? So why would you use the longer method?
Thanx
for the answers in advance...
P.S. I have read that in programing
you should learn proper spelling. I understand this but does that mean
I should not use abbreviations or slang at all so I can brea
Ubuntu
This code is in no way finished but what the eventual aim of the
program is to record lower case key strokes then display them when the
program terminates as displayed in case a and b (other letters i have
not yet implemented). The code runs fine and does what i want however
when the loop runs it asks twice for an input but takes the first as
blank and the second letter you enter a letter. Why is this? />#include <iostream>
using namespace std;
int
main()
{
char letter;
int num = 0;
string
textSaved;
while (letter !='0'){
cout <<
"enter any character : ";
cin.get(let
Ubuntu
Can't figure out how to properly enter this code in the terminal: />Code:
lspci | grep Wireless
When I try to type it this is
what shows up:
lspci I grep Wireless.
As you can see, I
cannot get the correct symbol to appear between lspci and grep. I'm
using a capital I for the symbol but the correct symbol appears to be
just a vertical line not a capital I. What key should I use?
All
help would be greatly appreciated.
Ubuntu
So, hey, I'm going to be upfront. I'm a ridiculously amateur
programmer, but what can I say, one attempt at a time! />Honestly, I LOVE the concept of your programming challenge, and I'm
probably going to start lurking those threads, but for the moment I'm
kinda banging my head against a brick wall on a shell script I'm
trying to do, so I thought I'd ask for advice.
I've been trying
to piece together a bash shell script to organize my music library.
(3 or 4 distinct file types in various directories). The problem
such as it is, is it has to be able to fetch *.mp3 files recursively
from any location in the filesystem, and move them. I was
experimenting with
Ubuntu
Write PHP Code for printing the difference between the number
of days from Date of Birth to the current date such that it should
accept the Date of birth in Date field and Current date should be
Printed from the system current date. EXAMPLE::Dateofbirth:25-02-2014.
current date:17-11-2014. RESULT:Number of days:266.
PHP

- Technology - Languages
+ Webmasters
+ Development
+ Development Tools
+ Internet
+ Mobile Programming
+ Linux
+ Unix
+ Apple
+ Ubuntu
+ Mobile & Tablets
+ Databases
+ Android
+ Network & Servers
+ Operating Systems
+ Coding
+ Design Software
+ Web Development
+ Game Development
+ Access
+ Excel
+ Web Design
+ Web Hosting
+ Web Site Reviews
+ Domain Name
+ Information Security
+ Software
+ Computers
+ Electronics
+ Hardware
+ Windows
+ PHP
+ ASP/ASP.Net
+ C/C++/C#
+ VB/VB.Net
+ JAVA
+ Javascript
+ Programming
Privacy Policy - Copyrights Notice - Feedback - Report Violation 2018 © BigHow