zq29
-
Posts
2,752 -
Joined
-
Last visited
-
Days Won
1
Posts posted by zq29
-
-
As long as Microsoft bundle IE with Windows, it will never be a thing of the past I don't think. I wouldn't be as bothered if it was as standards complient as the Mozilla browsers, I'm fed up with designing for FireFox and then spending hours tweaking it so that it works in IE too...
-
I dont understand 100%. Are you asking for someone to provide you with pre-written code, or are you asking for assistance on a script your are currently working on? I hope it's the latter, if not, post in our freelancing forum or check out a site like hotscripts.com or something.
-
You'd need to sign up to a Geolocation (or GeoIP) service, Googling "GeoIP" brings up a few companies that offer this service. It's generally a paid service though. You'd either be provided with a database, or access to a webservice.
-
As easy as adding in the anchor tag.
[code]<html>
<head>
<title>Listing 10.14 Listing the contents
of a directory with readdir()</title>
</head>
<body>
<?php
$dirname = "./updates";
$dh = opendir( $dirname ) or die("couldn't open directory");
while ( ! ( ( $file = readdir( $dh ) ) === false ) ) {
if ( is_dir( "$dirname/$file" ) )
print " <a href='$dirname/$file'>$file</a> <br>";
}
closedir( $dh );
?>
</body>
</html>[/code] -
It's called the GD Library, and I think you can check if it is installed by running the gd_info() function.
-
You'll need something like JavaScript for this, maybe even using an Ajax technique.
-
Sorry, I didn't understand any of that. Could you maybe give us some more information?
-
You need to enable short tags in your php.ini
-
As far as I'm aware, you can do that if you configure your web server to process .htm files with the PHP interpreter.
[quote author=onlyican link=topic=103976.msg414510#msg414510 date=1155386671]
<% %> (I know this is known as ASP, but it works in PHP as well)
<? ?> (Common used)
<?= ?> (forgotten)
[/quote]
For the above three, I believe they need to be specifically enabled in your php.ini to be usable, not all servers have short tags enabled so they shouldn't be used commonly as you have annotated. -
If you're only doing simple searches like that, it would be more efficient to use strpos().
[code]<?php
$title_old = "The payment system is currently unavailable while
we perform a system upgrade. Bringing these features back is
our top priority, and we expect to have them restored shortly.";
$title_new = "online";
if(strpos($title_old,$title_new) !== false) {
echo "Yeah, i saw it!";
} else {
echo "I can't see it!";
}
?>[/code] -
And technically, Ruby on Rails is a [i]framework[/i] based on Ruby. I believe.
-
Force both of your variables to lower case with strtolower() and then compare them.
-
[quote author=corbin link=topic=103818.msg413697#msg413697 date=1155284108]
[quote author=redarrow link=topic=103818.msg413670#msg413670 date=1155281809]
that why i done the survay becouse my company went bust lol
a large browser company has also asared me that there browser wont be having nothink to do with javascript soon.
they will only be support for flash.
scary man.................
[/quote]
Hmmmm when ever you get back please tell me what browser company...
[/quote]
It's obviously not one of 'the big 3', they'd be shooting themselves in the foot big time. And also ONLY support Flash out of the box? All of the browsers that I know of require Flash to be installed as a plug-in, and allow a lot more support than just Flash. Someone is 'aving you on mate. Oh, and you can't use CSS to fully replace JavaScript. -
I don't believe this either, I think your figures are either the wrong way around, or your cross section of users were sourced on a JavaScript haters forum. You're saying that an estimated 90% of people that use the internet have disabled a piece of functionality in their browser that is switched on by default - I'd be supprised if 90% of the people that used the internet knew what JavaScript actually is... I also highly doubt that your company went bust because of the sole fact that you used JavaScript on your website.
-
Check the following functions in the manual: hash(), md5() sha1().
-
Thanks for pointing that out Toplay, I'm still somewhat of a novice when it comes to RegEx!
-
[code]15 //Connect to MySQL Database
include("login.php");
mysql_connect("localhost",$username,$password);
@mysql_select_db($database) or die("Unable to select database");[/code] -
[quote author=ToonMariner link=topic=103404.msg411672#msg411672 date=1155036201]
lots of them....
phpbb is probably the best known..
[/quote]As well as being the most exploited too... -
Yes, this has been covered many a time. Use the search facility of the forums, or check the regular expressions forum - Which I have moved this topic to.
-
Its all to do with precedence, [b]&&[/b] and [b]||[/b] have a higher precedence than [b]AND[/b] and [b]OR[/b]. I see it like this...
[code]<?php
$a && $b OR $c; //Would be equal to ($a && $b) || $c;
$a AND $b || $c; //Would be equal to $a && ($b || $c);
$a && $b || $c; //Would be equal to ($a && $b) || $c;
?>[/code]
I think it's easier just to use parenthesise... -
You could use exec()
-
Thanks nogray, works perfectly. I don't fully understand how it works due to my less than perfect understanding of JavaScript as a whole, but I can figure out most of it. Thanks again for your input guys!
-
I develop on machines running both WinXP Pro and OS X, but my production servers are generally FreeBSD. I prefer any UNIX based OS on the production server over a Microsoft one, MS ones are just a pain in the arse to work with when you don't have CLI access to change file and directory permissions etc.
Oh, I edited your poll to include FreeBSD :) -
Like this?
[code]<?php
$strings = array("here","are","thousands","of","strings","2006-08-07","blah","blah");
foreach($strings as $s) {
if(ereg("([0-9]{4})-([0-9]{2})-([0-9]{2})",$s)) echo "<p>$s is in a date format.</p>";
}
?>[/code]
how did you learn..?
in Miscellaneous
Posted