Archive for June, 2010
Do you think it’d be ok if I took Introduction to programming:Java and PHP:MySQL at the same time in the fall?
Is it ok to take PHP&MySQL without prior programming experience besides HTML?
I would say not to take them at the same time. What you want to do is get a good understanding of the fundamentals and then expand on them. So taking an intro to programming and perhaps intro to database design would be the way to go.
If you have access to an adviser, I’d say talk with one before deciding. They will be in a better position to help you layout your course selections.
php date function, how to calculate how many days user are in website?
i’m stuck with php programming..
I need calculate how many days user have been in site. (Flat file website)
Registered since: <?php echo "$info[4]"; ?><br />
It prints out this : 03 Jan 2007 08:22 am
[ date("d M Y h:i a"); ]
So how can i calculate how mani days user are in website?
I have tried this, but it’s wrong.
<?php $bDay = mktime($info[4]);
$cTime = time();
$vecums = $cTime-$bDay;
$day = floor($vecums/(60*60*24));
echo " $day days<br />";?>
Here’s a complete solution:
http://www.addedbytes.com/php/php-datediff-function/
I always wondered why PHP doesn’t have an actual DateDiff function…
Any good free Web design programs for PHP?
There’s a Website in which the page is entirely in PHP, but displays the page as HTML. I need a free Web design program that would display PHP code as HTML so I can make some changes to the page.
Dude , PHP code is interpreted to the appropriate HTML when the Web server sends the requested Web page to the browser ( the Web server does NOT send PHP under normal conditions UNLESS error)
…not sure what ur asking about
Programming language for Computer Security ?
hi , can anyone tell me what programming language that r mostly used in security & forensic computing ? , currently i’ve learnt Java , C and vb.net , do i need to learn langauge like Phyton , PerL ? or maybe markup language like (X)HTML ? (php , javascript etc ) ? thanks in advance ![]()
If you are looking to generalise in security and forensic computing you are gonna have to ask yourself what languages are out there and what hardware are you going to specialise in? What kind of devices will you be looking at? What sort of programming languages are those devices platforms used to manuipulate and control? And who will that attract at the unauthorised-user level?
There are a whole lot of languages out there and it’s just not practical to learn every one of them, so you have to narrow the field, pick out those you’re most likely to come across in your working life. (Obviously that is going to have to change to keep up with the march of technology…)
Java, delphi and C/C++ are a definite, as are the Windows/Unix/Linux platforms they run on …for now. Why? They’re everywhere! But, so too is Python, and maybe to a lesser extent Perl. But again – it comes right down to which sort of devices you are going to be asked to look at.
Other than desktop PCs and Macs, Mobile phones and other devices are widely used – but so too are hi-tech static devices. More importantly – what sort of hardware is currently used (and what about the future). What is most likely to be used by the wider group of users, and how does that relate to the smaller, more highly-skilled users with criminal intent.
You are going to be making some pretty risky decisions. You’re bound to make a few mistakes – but hopefully there will be more good decisions based on your research.
Good luck
Web/PHP programming – detecting spiders/robots?
Is there a reliable way to detect non-malicious spiders/robots/crawlers in a PHP script? (Malicious ones can easily impersonate browsers, so that’s out of scope for my question) I’m looking for something like an open-source User Agent list that’s updated periodically. Does any such thing exist? Thanks
Snow is right.
-Billy
Which is better to learn PHP programming or Web designing or SEO?
I went to a training institute where they are teaching all the above three!!
For Php they are charging 25000 Rupees individually.
For SEO, the cost is 20k rs.
For web designing it is same as php.
I am a BSC grad & dont have a mca
So which should i do out of above 3?
I am presently earning 15k rs
My opinion is that you do not need think about how much money you will make in the future, because good PHP programmer and good designer, and also SEO make almost the same amount.
You need to know in which field of knowledge you are most talented and could show the best results!
And not less important thing is enjoy what you do!
Good luck!
php program help please!!!!?
really need this program but can’t make it no matter how hard i try
if a user types w e r g i in one test field,
the return should be
Total Number of elements: 5
Heighest element: w
Lowest element: e
please help me out here. i m new 2 php and really need it. thank you.
two files:
1) input.html
<HTML>
<BODY>
<center>
<form method=’post’ action=’xhi.php’ >
Please enter the alphabets:
<input type=’textbox’ length=30 name=’alpha’ />
<input type=’submit’ value=’submit’ />
</form>
</center>
</BODY>
</HTML>
2) xhi.php
<?php
$entered_val = explode(" " , $_POST['alpha']);
$total_char = 0;
$high = ‘a’;
$low = ‘z’;
//declaring array $arr
$arr = array(‘a’,'b’,'c’,'d’,'e’,
‘f’,'g’,'h’,'i’,'j’,'k’,'l’,'m’,'n’,'o’
,’p',’q',’r',’s',’t',’u',’v',’w',’x’
,’y',’z');
//associating value with alphabets a=1, b=2, z=26
// in $find
for($i=0;$i<count($arr);$i++){
$find[$arr[$i]]=$i+1;
}
for($i=0;$i<count($entered_val);$i++){
if($find[$entered_val[$i]]<$find[$low]){
$low = $entered_val[$i];
}
if($find[$entered_val[$i]]>$find[$high]){
$high = $entered_val[$i];
}
}
echo "Total number of elements : " . count($entered_val);
echo "Highest Element : " . $high;
echo "Lowest Element : " . $low;
?>
What is the best Web Development Institute in India ?
Hi Everyone!
I will like to know which is the best Web Development institute in India (Mainly in Bangalore and Kolkata), what are the prices and their course durations ? Please don’t tell me CEGON, i have a very bad experience with them already.
Language or Programming details : JavaScript, Ajax, PHP and MySQL.
Thank you in Advance.
Information is below./
what do I need to start PHP programming and web design?
I have a website and I am thinking of slowly making small mods to it and learn through tutorials along the way. To start using PHP where do I start?
Should I use dreamweaver? or do I need a PHP program that will allow me to access and edit the code? My websites programmed in cakephp
PHP only runs on a server. You need the PHP system which is totally freeware with extensive documentation.Try http://php.net/index.php