cwarn23 387 Occupation: Genius Team Colleague Featured Poster

The fact that McAfee has not detected "sogouexplorer" as a threat is a sign that you need a new ant-virus and anti-malware scanner. I would suggest installing better anti-virus and anti-malware scanners as posted in my previous post and they should delete most of the threats. If you want every threat deleted then you will need to reinstall windows with the format hard drive option. But hey, I put up with a few trogens on my system so I didn't have to reinstall windows although it means putting up with the system recourse decrease.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I am on the other side of the fence. Soon we won't be using keyboards and commands won't be but buttons, drop down menus and stuff like that.

Let's not forget that no matter how powerful or not DOS was it's the GUI that made computers popular and easy to interact with. Users - not admins but users - don't want to remember commands and switches and they don't want to type for hours. They want to click while talking to the phone or something.
Excel nowadays has autofill for your functions, as if the f button and typing vlookup or whatever wasn't enough.

Let's face it the "Men do it by the keyboard" days are over. You can get GUI on your mobile and click away. It's not like we still connect to the internet with 9600bps.

PS: Don't get me wrong. When I started dealing with computers Basic was considered an OS (Commodore 64k)

In saying that intel and ibm are currently working on brain wave recognition technology where you can implant a chip into your brain and computers can read what you think to respond to your thoughts. Quote from intel "Emagine browsing the web with the power of your thoughts". Then I thought, what if I thought about something naughty coincidently while reading up on some biology text. Would the computer automatically search that in google images and bring back some nasty results. Makes it difficult for brain recognition technology to function correctly.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Do you have cookies enabled because having cookies disabled will disable sessions. If you want to know how to use sessions with cookies disabled then click here.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Also I see you have McAfee installed and that is a very bad virus scanner. Not that long ago McAfee had an update that blocked svhost.exe Also there are quite a few viruses it doesn't block and I would recommend getting a better virus scanner such as Avast or Kaspersky. The 3 virus scanners that are a definite nono are McAfee, Nortons and AVG. They are the worst of the worst. I once got my computer filled with viruses on both Nortons and AVG. However if find Avast works fine. Thought I would warn you about that security issue on your computer. Also you have a lot of junkware on your computer which can be uninstalled to speed up performance.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

You know you are old when your mobile phone is more powerful then your first computer.
http://www.daniweb.com/community-center/geeks-lounge/threads/251691/1262726#post1262726

That is a memorable quote from another thread I posted in. Love the times :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

To solve this problem simply delete the session_register() function wherever you have used it and also at the top of each page (on line 1) place the following.

<?php session_start();

That should solve it.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

@Agilemind
It was a joke biff.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I wonder if the dictionary allows for regex? If so then it could be achieved by the sentence [a-z]{26}\. . hmm, I wonder if it is possible to make it shorter.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

@rrrrajat
It was more readable with the spacing and didn't seem like so much. But hope you keep on posting on daniweb :)

Great story and seems like the sort of thing you typically get asked on daniweb. For example, my computer isn't working, I press the button and nothing happens. It's just a black screen. Then you later ask: "Does your computer have power", and they say, "actually we are in the middle of a blackout where the power is cut". G' that can sometimes be annoying. :)

WaltP commented: Sometimes??? +0
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Normally for a registration system you start at 0 and count up from that as each user is registered. So for example in the database you could have auto incremental or you could get php to fetch the highest number and add one to that. Hope that helps :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Maybe you should look at a few comparisons.

I was hoping to buy one of the Bulldozer cpu's, but looking at some of the results, I will be sticking with my 1090T 6 core.

http://www.anandtech.com/show/4955/the-bulldozer-review-amd-fx8150-tested/7

The link provided tests the AMD 990FX however doesn't the AMD Bulldozer include AMD's version of hyper-threading along with better caching, lower power consumption and higher clock speeds? Thanks.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Now that would make a nice president for the United States. Just your average man.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

You don't need regex. There is another function called ltrim(). Use the following.

<?php
$input='--_some_String_123';
$input=ltrim($input,'-_');
echo $input;
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

You have far too much time on your hands.

Indeed, perhaps I need to subscribe to second life or something like that? Or better yet make my own version of second life. But yer, it is kinda sad when all I do all day is just write tutorials and post them on my site and when I get board of that I help out here on daniweb. :(

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I love firefox because I'm used to. It have never failed me that much so why shift anyway? BTW I have Opera, Chrome, FF for testing web apps

Well the thing with web browsers is you use what works for you. The reason is if I were to use firefox, it will crash within the first hour due to having so many tabs open. However in opera and chrome, there are multi-threading capabilities that combat this bug which firefox and many other browsers do not possess. However by using lots of tabs in Opera and chrome I am limited to what features I can use and how easy it is for features to be implemented. But that is why I chose chrome and Opera as my primary browsers as they are the only ones that do not crash on me after an hour of intensive work and they get the job done. So really its like the following formula.

<?php
$your_needs=20; //percent
$browser_efficiency=100; //percent;
echo (4-floor(4/(($your_needs/$browser_efficiency)*5)));
YOUR RESULT TO WHICH BROWSER
0 = chrome
1 = opera
2 = internet explorer
3 = safari
4 = firefox

So following that script is an example of how you can find the right browser for the right person. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Just worked out a sentence containing only 1 of every letter. Must be a world record.

decrypt "mqnwbvxzulikojhagsf".

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

when messing up with mime it is better to use third party packages that will save you pain like PHPMailer or swiftmailer

I find it better to use the in built mail function because it uses the local mail server rather than a third party mail server. Also using the mail function can speed things up if you have configured the mail function correctly in the php.ini file along with an active mail server on the local server. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Hi, I have come across the sentence "The quick brown fox jumps over the lazy dog" and found there are shorter sentences. Perhaps we should work out some. I have worked out the following.
"The quick brown fox jumps over a lazy god"
Can anybody think of shorter containing all of the letters of the alphabet? Is that a record to make a shorter sentence than the original one in question?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Try the following:

if(!(is_array($errors)))
	{

$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$headers .= "From: \"".$from_name."\" <".$from_email.">\n";

		$query="SELECT email From newsletter WHERE visible='1'";
		$result=mysql_query($query) or mysql_error();
		for ($i=0;$rowdata=mysql_fetch_array($result) && $i<200;$i++)
		{
		   $headers .= "To: \"".$to_name."\" <".$rowdata['email'].">\n";	
	           mail($rowdata['email'], "$sub",$message, $headers);
                }	
	}
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I don't have the idea about this. waiting for the answer.

Do you mean you don't understand me or need me to further explain? If so then here it is.
My site I have registered on Google Webmaster Tools and on Google Webmaster Tools you should be able to get statistics about google's bot scanning your site. And yes my site has just recently been scanned. But when I log into Google Webmaster Tools it says No data available. Google's answer is that Google Webmaster Tools isn't always in sync with the google bot so that is why I ask how long it takes to sync.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

insert-page.php

<?php
class httppost {
    public $value;
    function stripslashes($value) {
        $value = is_array($value) ? array_map(array($this,'stripslashes'), $value) : stripslashes($value);
        return $value;
        }
    function __construct($in) {
    if(get_magic_quotes_gpc()) {
        //magic quotes enabled
        $this->value=$this->stripslashes($in);
        } else {
        $this->value=$in;
        }
    }
}

$post=new httppost($_POST);
mysql_connect('localhost','root','cakste');
mysql_select_db('dem');

$sql='INSERT INTO pageconfig (title) VALUES ("'.mysql_real_escape_string($post->value['title']).'")';
mysql_query($sql) or die('Error: '.mysql_error().'<hr>'.htmlentities($sql));

echo '1 record added';
?>

And the last line of the other page can be deleted as it does nothing (line 135)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I have been waiting all week for my Google Webmaster Tools to sync with the Googlebot but still no information is appearing. Does anybody here know how long it takes for a website to sync from Googlebot to Google Webmaster Tools?
Thank you.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

People use the same argument for RAM hungry software, but I say, what is the RAM for? What is the cpu for?
Surely they are to be utilised? Provided that the software programs are utilising them efficiently, all is good?

Well it is like comparing Windows 95 to DOS 6. Which is more recourse efficient? Obviously DOS 6 because it doesn't need to initiate an interface and only sections need to be loaded to perform operations. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

i did mean to bold "until you've figured it out", but forgot :)

I was just mentioning it because it couldn't be stressed enough and you would be surprised how many people just copy and paste then skip most of the words unless something goes wrong. :)

mschroeder commented: so true +9
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Both chrome and opera are lightweight but I just didn't mention about the chrome part. Chrome might seem plain but is not as light as opera;)

However it is the gui which is the biggest cpu killer in todays programs you know and chrome is light on the gui. However Opera on the other hand has many features on its gui with lots of customization capabilities. This is what slows down the gui. Having to use variables, classes, functions, constants, databases to define where things should go and how it should be placed where as chrome has none of this. Chrome is all pre set. What you download is what you get. No customization. Or little at that which Chrome offers. Virtually all of the features Chrome offers are just for string and number crunching where as opera has features for not only string and number crunching but also for processing things differently which take up a lot of cpu. The same can be said about firefox. So if you want light weight then use Chrome because it has very very few features that use the cpu unlike many other browsers. You should do a stress test on both chrome and opera. I bet chrome will win.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I fought the law - The Clash

Not "The Mash" I hope. lol. I had to mention that. Anyways right now I am listening to my mix of harry potter again but this time shuffled.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

>> Line 12 of update.php has a bug in it.
>> SQL Injections on your sql queries
And I'm not much of an odbc fan but I think you should be using some debugging methods to see what type of sql errors might be comming from the sql string. For example, in mysql the function is mysql_error(). Also I must mention that while $_REQUEST may be used for debugging it isn't a good variable to use. It is by far better to use $_POST and $_GET in its place. Thought I would let you know. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

You've got it backwards. The future technology is the current magic. Corollary to Arthur C Clark's law.

Then perhaps in the next 20 or 30 years we could see in the market a Wand powered by a Zero Point Module the size of a tiny battery and is able to do all of the tricks shown in the harry potter films using quantum mechanics. Now that would be cool. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

cwarn23, please don't sidetrack the topic in consideration but posting off-topic replies. You have officially diverted the "RIP John" thread with comments which would be thought of by some as "borderline online stalking".

Ok, I guess we don't want another topic like in Area 51 so lets continue with our RIP John McCarthy

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

to generate an api code simply use the following function

<?php
function api_code($salt) {
return sha1($salt.time().substr($salt,-floor(strlen($salt)/2)));
}

echo api_code('my_secret_salt');

Then store your api codes in a database to refer to so that you can check if an api code is valid or not.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

sounds to me like you ate to much eggs and bacon all ready and you are off you coo-coo lol

but i think it a great idea, but such an expense just to cook eggs and bacon, i think you should add the extra 50 bucks and get the Nvidia quadro 10000 to cook a Steak on it

Not much effort if you have a whole in the side of the case to slot the bacon and eggs into. To make this whole you simply buy a case with a glass panel and smash the glass panel. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

As those of you who have read from the Harry Potter Novel series which made 1 billion dollars to JK Rowling, yesterday was the 30th anniversary to the death of Lilly and James Potter. The Parents of Harry Potter stared as the main character. You may ask what does this have to do with technology? Well perhaps in the future magic will replace technology ;)

RIP Lilly and James Potter.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Do you mean like the following:

<?php
$error='';
if (isset($_POST) && !empty($_POST)) {
if ($_POST['name']=='') {
$error = 'Name cannot be empty.<br />';
}
if ($error=='') {
//insert into mysql
}
}
?>
<form method="POST" action="">
<?php echo $error; ?>
<input type="text" name="name" />
<input type="submit" value="Send" />
</form>
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

@cwarn ....Yep it's Solved for now

Then can you please click the solved link at the bottom of the page near the reply box. Thank you. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

How did this make it into the so called "quality tutorials section"?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

This is a guess but I bet your problem is you cannot access the data on the drive now in the USB..You don't have permission. If so what you need to do is take owner ship of the folders and subfolders.

Take a look at this Microsoft tech tip on how to take ownership of files and folders.

http://support.microsoft.com/kb/308421

Yes or you could just delete all of the contents of the drive with a Linux utility called gparted.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

The reason for the php mail() function not working is that the computer with php installed does not have a mail server installed or the mail server is not configured with php correctly. If you are using xampp or wamp then forget about setting up a mail server as it is a devel of a task that 99% of the time is just too hard to do and maintain. The easiest solution if using xampp or wamp is to use a third party mail server such as gmail and evest has posted a link to that. If however this is part of a website on the internet then I would strongly suggest contacting your web host if you are on a shared hosting plan so they can fix the mail server for all people on the server. Perhaps their mail server has crashed due to mass emails or lack of maintenance but what ever the case, if your web host is involved then contact your web host by launching a ticket.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Is it possible to get a Nvidia quadro 6000 graphics card then put a sheet of laminated plastic on top of it with some eggs on top of the laminated sheet to cook my eggs for free? Also could I cook my bacon the same way? I was just wondering because it would be a cheap way of cooking bacon and eggs in the morning.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

OMG Who's next? Dani? Please tell me your in good health dani! :( RIP

Don't tell me it's RIP dani now :( It's been over 24 hours and no response.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Yeah, opera is light.

That's a first. I would have to disagree and say Chrome is light weight. Opera contains every feature except the slot for toilet paper in its installation package where as chrome has virtually nothing unless you do a few hacks and modifications. This is what makes chrome the lighter browser.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

So answer is yes, are we solved? :)

Good one. Are we solved yet? Are we solved yet?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Now I'm listening to the sound of thunder. Wait no it's me farting. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I would have to say Chrome is better of those two because chrome is Firefox's offspring. I guess you could say Chrome is the son of Firefox and Safari with Safari being the Mother. This is because Chrome is based on Safari code and the funding that went into Firefox got transferred into Chrome. So you could say Chrome is the next generation browser if you will. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Place the following at the top of your script.

set_time_limit(0);
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Or you could use phpexcel from codeplex

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

didn't see appache process in task manager..

It should be under services in the task manager

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Thanks for your reply
Somehow I do not agree with you since php is supporting the other languages like Farsi and I can easily populate all Farsi(Persian) alphabetical characters in PHP.The only problem is working with numbers!

If you like I shall give you a little history lesson that explains it. It all started in the late 1970's when scientists were finding a way to display characters on a monitor (strings) for command line operating systems like Unix and dos. Back then all they had were binary codes that represented the flow of electrons going along the circuits. But the only problem with that was they couldn't do it or at least easily unless they placed a set of transistors in a specific order generating the electrons. So the scientists had to tackle the bigger problem first before they could get to displaying characters. This is when software was invented. To invent software what scientists would have to do is assign numbers to binary codes. For example 0=0 1=1 2=10 3=11 4=100 5=101 6=110 7=111 and so on to represent the electrons in the circuit. The scientists then tout the computer how to do mathematics with the numbers/integers allowing for graphical interfaces and 3d games to be possible later on. After mathematics had been invented on a binary level, characters were invented the same way except characters were and still are today just meaningless symbols assigned to a binary code. These symbols at first went from 0 to 127 …

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

PHP can only read its native language.

<?php

$numberArray = array();

for ($i = 1‎; $i < 31; $i++)
{
  $numberArray[] = $i;
 } 
  for ($i = 0; $i < sizeof($numberArray); $i++) {
         echo $numberArray[$i]."<br />";
	}
?>
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Looks like you need to mark the thread solved

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I'm also looking for a program that does the same thing except I don't care if it's not open source as long as I don't have to pay for it. I found "Autodesk Photo Scene Editor" but it requires you to upload the 20GB of photos to their website then download another 1GB of textures and data to render the model. Surely there is a better way. Please advice.