cwarn23 387 Occupation: Genius Team Colleague Featured Poster

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

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Now I'm listing to my mouse go click click click is I pick pick pick.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Well I'm not familiar with YII as I do not recommend using external frameworks or api's as the core of your code. But if you were to translate that into raw php code I would imagine it would be something like the following.

foreach ($item->autocomplete AS $item) {
echo "<a><img src=\"'.$Image.'\" border=\"0\" width=\"25px\" height=\"25px\"/> ". ($item->label).'</a>';
}

But that is that equivalent of not using the framework you've provided.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Why don't you just use the echo() function instead of an api?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

@khialbadshah

You mean a BLOB? right? The cons outweighs the pros with this approach. Are sure you still want to go ahead? You will be exerting more memory than having the images stored in the directory (the conventional way). This method normally applies to images of high value copyrighted images.

Agreed, as you all should know mysql loads itself into memory as a service called mysqld where all of the mysql_query's are processed through. However, whenever you do a mysql query, it needs to go into a que then get processed one at a time from that que. A bit like the line at a shopping market. However, the more mysql query's you use, the longer that que will become and the slower the page will take to load. Also if you have a too longer que then the mysql service will crash or in the case of a shopping market the till runs out of change. So if for instance you have a page with 20 pictures and you have 30 people viewing the page within 10 seconds that is 600 mysql query's that the mysql service has the process. All a hacker has to do is load the same page in a few tabs a few times during the same second and the mysql service will crash with the server slowing down.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Could you please describe with more detail what exactly the problem is because that made no sense at all. Also note that php variables are case sensitive meaning that $Image must have a capital "I" when using all the time.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Actually configuring Wamp is as breeze as right clicking the tray icon and behold all configs are there :)

I find from past experiences Wamp is a devel to configure especially to enable modules such as mssql. It is better to deal with xampp. I would suggest doing Ctrl+alt+del and end task to apache then try to enable it again but once again only single click. And as I said, I strongly recommend not to use wamp as it will cause you problems for enabling modules down the track.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

you meant xampp-control.exe in step 2?

yes indeed. They call it different names in different versions.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I believe what you are after is a piece of software called "Mercury". Mercury is a program which allows you to receive and send emails on windows however I'm not sure what the Linux equivalent would be. You would also have to ask your isp for a static ip and do some port forwarding on your modem and/or router for the emails to process through your computer.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I have had this problem many times and there is a very simple solution. Do the following.
1. Open C:\xampp\apache_stop.bat file
2. Open C:\xampp\control.exe
3. Single click Start Apache and wait 30 seconds before moving the mouse or clicking anything else otherwise you will need to repeat the above three steps.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I didn't exactly get what the question was but if you are asking what questions to use in this project then I would say something like "Who was the primary contributor to the regex module" and that would test them real hard. If however you want easier questions then you could say "What is the difference between print and echo" and have 4 possible answers.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Could you please post some code to demonstrate your problem as it is difficult to solve without any code in place. Also we will need to know your database structure but usually your mysql_query's will revel that information.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

What your after is "Face Recognition Software". Try and put that term into a google search.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

2+((15^8)<<1)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

1 be the owner of oracle
2 be the owner of google
3 be the owner of facebook

How can you be three owners? You would have to be clones.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I think you are losing out on the charm as seen in this tutorial. ;-)

With a voice like that you could do anything. Pity I haven't got such a great voice. I must be the mutant of somewhere between my mother and my fathers voices which turns out not that greater voice. How I hate evolution.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Maybe you could take example of this one about PowerPoint: http://norvig.com/Gettysburg/index.htm

P.S. Please do not read my signature, I am not native speaker. ;)

Did you make that powerpoint. Good job. I guess you rely on the spell checker a lot. Good start to somebody who is just learning English so they can post on these forums.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

For the user to be able to resort the table upon clicking the column heading I would suggest making each column having a heading like index.php?orderby=birth then in the php code you can check if the $_GET variable exists and if it does then to sort by that in the mysql query.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Considering user badges have allmost the required information, it could be possible that text version could contain the data you request (or Dani could put them there). Just untested idea.

The only thing is that the login system needs to check if the user is still an active member of daniweb as I don't want people just signing up to daniweb and posting the required amount of posts which would probably be poor quality so they can sign in. So what I have done is set it so they need to have so many posts per day in addition to being a long term member of daniweb. The posts per day assures that the user is continually contributing to the community instead of just signing up to the community to access the login I've setup.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Someone is greedy:twisted: Do you know that genies only grant 3 wishes and no more wishing for more wish?

If that is greedy then I can sum it up in one wish.
* Wish 1: whatever I want I get from now on. :)

So if I want a computer capable of 28 yotta flops of cpu then a delivery man will knock on my door and deliver it.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Then I conclude that your users are double posting via redirect (design flaw). This will probably be my last post unless there is a reply in the next 12 hours as I will be away from keyboard for 4 days (due to medical reasons) and hopefully will be back better than before. Try the following. I had this problem half a decade ago until I solved it and due to a habit never had it again.

<?php
//Define Parameters
$DBhost = "localhost";
$DBuser = "bdna";
$DBpass="2010";
$DBname="bdna";
$table="trails";

//connect to DB
$con = mysql_connect($DBhost,$DBuser,$DBpass);
if(!$con) { die('Could not connect to database: ' . mysql_error()); }

//Select Database
mysql_select_db("$DBname") or die("Unable to select database $DBname");
if (isset($_POST) && !empty($_POST)) {
foreach ($_POST AS $key=>$value) {
if (!is_array($value)) {
    $_POST[$key]=mysql_real_escape_string($value);
    }
}
//Insert Data Into MYSQL
$sql="INSERT INTO $table (id, Name, Address, Suburb, Postcode, HomePhone, Mobile, DateofBirth, AgeNextYear, VNA, Email, ParentMobile, Club, AgeGroup, Position1, Position2) VALUES(' ','{$_POST['Name']}','{$_POST['Address']}','{$_POST['Suburb']}','{$_POST['Postcode']}','{$_POST['Phone']}','{$_POST['Mobile']}','{$_POST['dobd']}/{$_POST['dobm']}/{$_POST['doby']}','{$_POST['nextage']}','{$_POST['VNA']}','{$_POST['email']}','{$_POST['parentM']}','{$_POST['Club']}','{$_POST['age']}','{$_POST['pref1']}','{$_POST['pref2']}')";

//Executes
if(!mysql_query($sql))
{
	die('Error: ' . mysql_error());
}
//Close Connection
mysql_close($con)
}
?>
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Thanks for that. I shall download the 6 dvd's required on my louzy internet connection and perhaps in 6 days the 6 dvd's will be download and I can see what Slackware looks like. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster
<?php
//Define Parameters
$DBhost = "localhost";
$DBuser = "bdna";
$DBpass="2010";
$DBname="bdna";
$table="trails";

//connect to DB
$con = mysql_connect($DBhost,$DBuser,$DBpass);
if(!$con) { die('Could not connect to database: ' . mysql_error()); }

//Select Database
mysql_select_db("$DBname") or die("Unable to select database $DBname");
foreach ($_POST AS $key=>$value) {
if (!is_array($value)) {
    $_POST[$key]=mysql_real_escape_string($value);
    }
}
//Insert Data Into MYSQL
$sql="INSERT INTO $table (id, Name, Address, Suburb, Postcode, HomePhone, Mobile, DateofBirth, AgeNextYear, VNA, Email, ParentMobile, Club, AgeGroup, Position1, Position2) VALUES(' ','{$_POST['Name']}','{$_POST['Address']}','{$_POST['Suburb']}','{$_POST['Postcode']}','{$_POST['Phone']}','{$_POST['Mobile']}','{$_POST['dobd']}/{$_POST['dobm']}/{$_POST['doby']}','{$_POST['nextage']}','{$_POST['VNA']}','{$_POST['email']}','{$_POST['parentM']}','{$_POST['Club']}','{$_POST['age']}','{$_POST['pref1']}','{$_POST['pref2']}')";

//Executes
if(!mysql_query($sql))
{
	die('Error: ' . mysql_error());
}
//Close Connection
mysql_close($con)
?>
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Wow, did you notice php.net just went offline. What will we do without the manual for those few minutes or hours while it's down for maintenance.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

It seems they are both invalid scripts. I have tracked down the eval source and it leads to the following:

eval('
ƒQ‡ ’‹0ÓA“QU—a–›qן‚£’Y§¢š«²Û¯Ã³Ó]·ãž»óß¿');

And I know that is invalid php code which is why for me at least executing the original code you posted spits out an error. I get the following errors.

Warning: Unexpected character in input: '' (ASCII=16) state=1 in C:\xampp\htdocs\test.php(6) : eval()'d code on line 1

Warning: Unexpected character in input: '' (ASCII=16) state=1 in C:\xampp\htdocs\test.php(6) : eval()'d code on line 1

Parse error: parse error in C:\xampp\htdocs\test.php(6) : eval()'d code on line 1

Unless I use my decoded result in which case it is line 2. So conclusion is there is no php code to decode as php is decoding a meaningless sentence and treating that meaningless sentence as if it were php instead of the original php as php.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Hi and let me be the first to say you should really use the mysql_real_escape_string() on all of the variables you are putting into the $sql variable. Also as per removing blank values all I can suggest is an if statement on the individual $_POST variables before you make the sql query. For example you could check if $_POST is empty and if it is then assign a value to it. Hope that helps :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster
$name=mysql_real_escape_string($_GET['name']);
$r=mysql_query('SELECT * FROM `table` WHERE `column1`="'.$name'" OR  `column2`="'.$name'" OR  `column3`="'.$name'" OR  `column4`="'.$name'" OR  `column5`="'.$name'" OR  `column6`="'.$name'" OR  `column7`="'.$name'" OR  `column8`="'.$name'" OR  `column9`="'.$name'" OR  `column10`="'.$name'" OR  `column11`="'.$name'" OR  `column12`="'.$name'" OR  `column13`="'.$name'" OR  `column14`="'.$name'" OR  `column15`="'.$name'"') or die(mysql_error());

if (mysql_num_rows($r)>0) {
//it exists
$row=mysql_fetch_assoc($r);
echo '<xmp>'; print_r($row); echo '</xmp>';
} else {
echo 'No results found.';
}
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Because when a new user comes to post a thread, they don't like to look through pages of pages of results to find one answer. They prefer to see the one link then click it for the answer. Very much like a sticky or a wiki. So perhaps a sticky with links to useful solved threads like suggested however moderators would have to delete useless posts to make it a useful sticky. G' I wish daniweb had a wiki (eg mediawiki). It could be located at http://wiki.daniweb.com/. But obviously that's never going to happen because dani is too busy and I've asked before and the answer was no. But anyways yes a sticky FAQ with moderated links should be good.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

There looks to be a lot of repetition going on here:

mysql_query("SELECT * FROM user WHERE (username = '" . mysql_real_escape_string($_POST['username']) . "') and (password = '" . mysql_real_escape_string(md5($_POST['password'])) . "') and admin = ...");

You seem to be checking the same data 3 times. Why not just extract the admin value for an user and use that set a session and to relocate?

Indeed. It would be better remove admin from the sql and use $row=mysql_fetch_assoc($result); and check what $row equals but it's 10:30PM and I haven't had enough caffeine today so I'm really tired and am about to go to bed. But I shall leave the following code before I close my eyes not that I can't program with my eyes closed.

<?php session_start();
 
include('config.inc');

$result=mysql_query("SELECT * FROM user WHERE username = '" . mysql_real_escape_string($_POST['username']) . "' and password = '" . mysql_real_escape_string(md5($_POST['password'])) . "'");

$row=mysql_fetch_assoc($result);

if ($row['admin']==9) {
$_SESSION['username'] = $_POST['username'];
header("Location: main.php?admin=1"); 
    exit;
    } elseif ($row['admin']==1) {
    $_SESSION['username'] = $_POST['username'];
    header("Location: main.php");
    exit;
    } elseif ($row['admin']==0) {
    header("Location: index.php?error=3");
    exit;
    }

header("Location: index.php?error=1");
exit;
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Could we please have this thread as a sticky in the php forum as it would help solve some of the ever so common threads regarding making sms calls with php. Any input? Thanks. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I would suggest looking at the pdf module along with the mysql module along with the php documentation.:)
I believe those are the resources you are after and perhaps a few tutorials from google might be good too.:)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster
<?php


session_start();


include('config.inc');
        
$isAdmin = mysql_query("SELECT * FROM user WHERE (username = '" . mysql_real_escape_string($_POST['username']) . "') and (password = '" . mysql_real_escape_string(md5($_POST['password'])) . "') and admin = '9'");
if(mysql_num_rows($result) == 1) {
$_SESSION['username'] = $_POST['username'];
header("Location: main.php?admin=1"); 
    exit;
    }
$result = mysql_query("SELECT * FROM user WHERE (username = '" . mysql_real_escape_string($_POST['username']) . "') and (password = '" . mysql_real_escape_string(md5($_POST['password'])) . "') and admin = '1'");
    if(mysql_num_rows($result) == 1) {
	$_SESSION['username'] = $_POST['username'];
	header("Location: main.php");
    exit;
    }
$result = mysql_query("SELECT * FROM user WHERE (username = '" . mysql_real_escape_string($_POST['username']) . "') and (password = '" . mysql_real_escape_string(md5($_POST['password'])) . "') and admin = '0'");
if(mysql_num_rows($result) == 1) {
    header("Location: index.php?error=3");
    exit;
	}

header("Location: index.php?error=1");
exit;

?>
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I dud it to learn how to make an rpg, but i quickly learned that there is so much more to it than that.

That's how I learn't c++ originally. Or at least the second time round the first time round I tried learning strings without any luck due to forgetting to use using namespace std; where some tutorials had that and other tutorials didn't. So that's why I gave up the first time since how I never learn't that bit. But the second time I learn't the irrlicht engine which was well documented and here I am today with a decent knowledge of c++ but not the best due to lack of c++ documentation.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

So what language is Lazarus written in?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I wonder how many of those who voted for one browser now use a different one?
Would you change your vote now, if given the chance?

Yes I would switch from Opera to other and say Mosaic which I'm trying to install.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Fifteen years after Mosaic's introduction, the most popular contemporary browsers, Internet Explorer, Mozilla Firefox and Google Chrome, retain many of the characteristics of the original Mosaic graphical user interface (GUI) and interactive experience so why would you want to struggle with a browser that may have reduced functionality compared to the recent web challenges?

Because for me it is like a step back in time to see the memories of what things were like when I was a child. G' those days were rough trying to tell the computer to do things when error messages would pop up. Or even worse using the Macintosh computer with only one mouse button and a 12" crt screen. So these are all reminders of my childhood and I like to see what things were like when I was a child and how bad they *really* were.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I did a quick google search and got some impressive results.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

That's disappointing. :(
You can't even download an official release of the official Linux. At least I know Debian based distros don't follow the standards. Thanks for the insight anyways.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Everyone loves PHP these days it seems, and that includes the bad guys. So it should come as no surprise to learn that yet another remote access Trojan.

Please don't bump old threads as I am sure this has been fixed in PHP 5.3.*

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

theres only one problem in the comment box given by naveen
whenever you refresh it..
it resubmits the form...
is there any way to fix it?
please help..

Let me be the first to say welcome to daniweb and please do not bump 3 year old threads. Instead start a new thread and link to the old thread. As per the solution, perhaps you should set a cookie or session variable so that php knows if the user has posted the form and if the cookie is set then php knows that the form has already been sent so it doesn't need to process it again.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Just out of curiosity,

  1. What's your nationality?
  2. Was there any sound mixing or computerizing of the voice or was that a pure human voice?

I detect an Irish brogue in there, but as AD points out, it was monotone.

I'm aussie (Australian) and I speak like a natural nerd. And yes it was a pure human voice with no special effects at all with no alterations to the video. eg original file uploaded. So I guess I just have a very crappy voice because on the better quality settings my voice sounds no different. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Before posting threads please read some of the previous threads. In particular this one. I believe a moderator should make that a sticky and hope that answers your question.:)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I think you have posted in the wrong forum and believe you should have posted in the Flash forum.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I found when I started it was very hard. That was no suprise because after I became more experienced I discovered my webhost didn't even support php so it just displayed the php code as if it were html. But things became a lot simpler when I learnt the correct techniques and if I were to start all over again then it would be a lot easier. So I shall share my advice with you.
Rule number 1 - don't use api's or apps. They are nastie little buggers that confuse the new php learners as their syntax can confuse even the most experienced users. A real programmer can write their own api's and apps.
Rule number 2 - do not use oop/object oriented programming until you know a lot about php. Then you will be ready for oop. Otherwise you will get confused on day one.
Rule number 3 - start with something simple like how to make a comment box and save the comments into a text file. Then you can work on styling the comments with regex and displaying it in php. And later on you can get more technical by inserting the comments into a database.
Rule number 4 - do not get a webhost until you are fluent with php or that is if you are using the webhost for a php website. Instead test the scripts on an xampp localhost server so if you crash the localhost server you don't …

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I've filled it out and yes a command line interface is still existant in today's society as for instance when controlling remote servers, it is impossible to set them up and configure them without a CLI. Even if you had something like remote desktop (which would require CLI to setup) then it would all be pixulated due to internet speed and would slow down the network. Also it is a lot simpler to program a command line interface than it is for a graphical user interface there by making the majority of CLI's more powerful than GUI's. This is like Unix vs Windows. Unix would win because since it can be tweaked and modified with its advanced CLI it can outperform the Windows CLI which can't be tweaked and set as efficiently due to the amount of code that would be required to make all of the tweaks there by making a CLI based operating system with a GUI plugin (eg Linux) a much better alternative.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Personally I would use plain old php code to output the css instead of using the codeigniter api.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Look how stupid you are.

I know you are but what am I :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

My appologies for not knowing how Microsoft does things. I bow to your wisdon and will now shut up and sit down.

I didn't mean to offend you but rather to correct you so the information is correct. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Ubuntu, Mint, Debian, Opensuse and Fedora tend to be quite popular choices of distro, but I don't think there is any such thing as 'one true distro'.
Peoples views are different about Gnu/Linux and it's many different flavours.
What one person prefers, another may detest!

The other thing to remember is that all Gnu/Linux distros are a combination of the Linux Kernel bundled together with the complete Gnu toolchain plus lots of free software and the odd bit of non-free proprietary software here and there (the inclusion of which tends to be highly controversial in some circles!)

So if anything, as Linux IS the Kernel itself, I guess you could say that the Linux Kernel is the one true, pure Linux!

Also, there are efforts being made to standardise Gnu/Linux, try googling 'linux standard base'.
The aim of the LSB project is to standardise the entire system structure based on 'POSIX', the 'single UNIX specification' and several other standards to ensure maximum compatibility (including backwards compatibility) between Linux distros.
So in a sense, as long as all distros follow the standards set by the LSB, there would be no need for 'one true' Linux distro, as they would all be standardised.

Those are my thoughts!

Is there an iso download for the latest version 32 and 64 bit of that?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Started around 1984 I guess when I was 11. Was able to buy an Acorn Atom with a whopping 16K of memory. Quite enough for learning assembly back then.

Wow 16K of memory. That's a lot. Must have cost you a fortune. I wonder where I can buy a computer with 16K of memory with an affordable price because they are hard to find since their so new.;)