thats easy, but before i gave a solution or correct mistakes, did you try anything yet ?

show us some code

isnt shell_exec only for executing a cmd on the shell ?

here we use exec() to interact with C programs.
and since your script is more the only cmd line ...

check it out maybe it can help

that was my 1st task when i was hired, put the site for i18n standards.
but, i was a noob at the time, so maybe my approach isnt the best

i did that differently thu.

1) check cookie if cookie == null, detect language and set cookie

2) drop down list to set cookie language to different language

3) had a en.php, fr.php and spa.php files which contained each the required text for the pages, content, nav bar, promos and so on. Basicly i have put the same variable names in all the language php files. So when you ask for $greeting on your page depending on the require_once file they would output the proper language. Exemple: $greeting from en.php is Hi, fr.php is Salut and spa.php was Ola.

but when i was writing the spa.php they had me take it off and restore the old site, because they lost SEO performance.

sorry if im not much help

<div>value  |  number</div>
$arr = array(10, 7, 2, 4);
$i = 0;
foreach ($arr as $key => $value) {
    $i += $value;
    echo "<p>" . $key . "  |  " . $i;
reco21 commented: Great! +1

you need to add the values:

hold up ill correct that, at work, BRB
reco21 commented: Thanks +0

yes, he's saying you need to pass the database name in mysqli

like this:
$db = new mysqli($host, $user, $pass, $dbname) or die($error);

Here's an exemple of AJAX code that delete an employee from our data:
Always remember that AJAX needs to send an HTTP request so PHP can return a response.
In this exemple the response is store in $chaine, so you can continue your php code around it.

$chaine = "<script type='text/javascript'>
                function delEmploye(str){
                    var xmlhttp;
                    if (str==''){
                    if (window.XMLHttpRequest){
                        xmlhttp=new XMLHttpRequest();
                    }else{// code for IE6, IE5
                        xmlhttp=new ActiveXObject('Microsoft.XMLHTTP');
                        if (xmlhttp.readyState==4 && xmlhttp.status==200){

And if you're like me just an exemple is not enough, you maybe want to start from scratch here:

which shows you the basics.

have fun.

ditto :P

hmm... function session_destory(), maybe ... function session_destroy()
maybe just a synthax error

like Sqid said the code will help.

and if nothing works try this:

1st line of your page, even html
<? ob_start();//Start buffer output ?>

and the last line of your page
<? ob_flush();//Flush buffer output ?>

and i've pick that trick in one of the DaniWeb thread which i dont remember when and where. Try to do search.

Really help me out.

ive complete your survey.
its a kool idea to buy infinished projects.

only 1 thing thus, would of been nice to put the link target="_blank" so we dont leave DaniWeb :P


mmoustafa commented: Oh, Sorry. +0