Aeonix 71 Posting Whiz
$('.cls').click(function(){
    $('.mwindow').hide();
});

I don't see .cls nor .mwindow to begin with. Could you share more code? Maybe there is something in the code that you're not showing us.

Also, be sure to include jQuery and have JavaScript enabled.

Aeonix 71 Posting Whiz

In terminal you can use touch which will create empty file in the directory. It also depends where your root directory is. Normally, in XAMPP it would be touch /opt/lampp/htdocs/newfile.

Aeonix 71 Posting Whiz

Hmmm, this may require direct access for faster solution. Would you mind installing TeamViewer and passing me the data through private message? It is a program that would grant me temporary access to your computer, in case you felt like I'm doing something I shouldn't be doing, you can easily shut the access down.

Because I can't think of anything extra from distance.

In case you'd rather not prefer to do this. Try touch("../header/test.txt); and look up if file appears next to header.php.

Aeonix 71 Posting Whiz

Change your * into <span id="uname">tmp</span><br/>
And add before last }); this code:

        $('.users').click(function(e) {
            var txt = $(e.target).text();
            document.getElementById("uname").innerHTML = txt;
        });

});
Aeonix 71 Posting Whiz
<?php $thisIsMyUberValue = "phoenix254"; ?>

<script>
    var uberValue = <?php echo $thisIsMyUberValue; ?>;
    alert("My value was: " + uberValue);
</script>

This should work, and prompt you "My value was: phoenix254". Go ahead, adjust it to your purposes.

I can't apply this personally to your Codepen, because I don't have access to your PHP variable, your folder structure and Codepen doesn't seem to support PHP.

Looking at your project, if I were you I would Google "Ajax", because the thing that you're attempting to create, can be made much easier. Just hinting.

Aeonix 71 Posting Whiz

The error it prompted:

Lintian check results for /home/aeonix/Downloads/opera-stable_29.0.1795.47_amd64.deb:
/usr/bin/ar: /tmp/temp-lintian-lab-NWwyABKZNo/pool/o/opera-stable/opera-stable_29.0.1795.47_amd64_binary/deb: No such file or directory
E: opera-stable: malformed-deb-archive ar error: *main::STDERR

When I choose for "Ignore and Install", nothing happens, and Ubuntu Software Center changes logo of product to a question mark inside of reversed (up-side-down) white triangle with thick red border.

It seems like the temp-linitian-lab-* folder is deleted before/while Lintian does whatever it needs to do. I'm not expert of Linux though.

Aeonix 71 Posting Whiz

I think it should be include ("../header/header.php");. Also, keep in mind that if you include it that way, you need to make sure that the path is correct.

Aeonix 71 Posting Whiz

I get exactly this same error as this Sir over here. There is solution given:

cd ~/Downloads
sudo dpkg -i *.deb
sudo apt-get install -f

What worries me more is that Brackets (by Adobe), Opera (by Opera), Chrome (by Google) are also considered bad quality. I could understand that sometimes it can go wrong, but these are three (one medium, two gigantic) companies, and all of their packages are considered of bad quality.

Bad Quality in Linux means:

To make sure that packages we install using the Software Center are free of errors and Debian policy violations they are checked using Lintian. Only then the installation of a package will be granted.

That means, there's nothing wrong with their packages but with my verification software. I can't imagine that these three corporations compiled their packages incorrectly. Is there a way to check that without reinstalling the entire Linux (using Ubuntu right now)?

Aeonix 71 Posting Whiz

I'm sorry, but I don't know how to interpret your answer. What do you mean by "1. All of them"? If you mean that I got them all wrong, as I already mentioned it was purely for giving you idea of what I meant.

By PHP, being defended by people "at a Masters or PhD level of investigation/research", but still, if you want to attack website based on PHP, there's many more potential security holes in every layer of software that supports it, than an Assembly program.

That's why I was wondering, about how many layers could have potential holes in them when programming a... program (Sherlock strikes again) in C++.

Sometime ago I've heard of null-byte exploit, which allowed you to call myimage.jpgx00.php file on server, this is Apache issue but through PHP commands. I mean such holes. I can't really explain this, I really hoped that the examples and the final "showcase" would make it clear.

Aeonix 71 Posting Whiz

How are you planning to send this contact through? You want this in database, in a file, through email, what is the output you're expecting?

Also I believe <input type="hidden" /> is still visible in source-code, just so you know.

Aeonix 71 Posting Whiz

Thanks, what about the second question?

Gee, why the downvote? Topic was burrowed, 6 days old and no one answered, I still requested answer. Explain the logic.

Aeonix 71 Posting Whiz

I'm sorry, but I don't understand. Maybe I may ask a littlebit more assistance with this, as I would present what I've done with screenshots, is that okay?

So, I went to Tools > External Tools, then have set the dialogue according to your instructions. Then you told me about "external tool", which I created, but I've created none. Replacing $(TargetPath) with C:/.../ConsoleApplication3 or C:/.../ConsoleApplication3/ConsoleApplication3.exe didn't work.
$(TargetPath) also generated number of errors but then it vanished rapidly, all saying something about "PDO missing in SysWoW64".

Aeonix 71 Posting Whiz

!bump

rubberman commented: See my comment below. +13
Aeonix 71 Posting Whiz

You might also not have done something needed.

I did all the steps without an error. I don't think I forgot anything.

You might also not have done something needed, like the output window check box in your external tool.

Which "external tool" ? I did check the checkbox.

Aeonix 71 Posting Whiz

Typically you'd have your program open in a new console window for testing, is that not sufficient for your needs?

Apparently it forces C++ to be .NET dependant because it's Win32 console application.

This is what I'm trying to avoid, I want to learn general C++, which would work on Windows and Linux, when provided exactly same code, so to see, only one I can write is C++/CLI for .NET, but I want to write general C++ code. Just to learn it, not distribute.

And I'll try to use the tricks you mentioned. Also, it takes SO LOOOONG...

@edit - Trick didn't work, it opens in cmd.exe, not in output window :|

Aeonix 71 Posting Whiz

The video tutorials that I'm following are led by a certain programmer, which uses XCode on iOS laptop/computer. He is able to write code and click on "Run", then little console shows up at the bottom of his editor, and makes printf("Hello!"); display "Hello", after the program has ended it says Program Ended with 0 code. (0x0), is there no such thing for Windows? I would install XCode if I could, but if I look it up, every time I see that one of the requirements is virtual machine.

Aeonix 71 Posting Whiz

When you need to create a login page using PHP and MySQL, the safety of this login page relies on
- Your PHP scripting abilities
- How well and securely has PHP been programmed in C++.
- How well C++ compiler of interpreter of PHP has been programmed.
- How well and securely has MySQL been programmed.
- How well and securely has interpreter of SQL been programmed.
- The safety of libraries on machine that Apache/MySQL rely on.
- The safety of integrity of machine (operating system).

When you need to create a C# console application, the safety of this application relies on
- Your C# programming abilities
- How well and securely C# .NET compiler has been programmed.
- The safety of libraries on machine.
- The safety of integrity of machine (operating system).

Those were all examples, maybe list is not full, or something isn't supposed to be there, but this is just to give you concept and show you my point of view. Now comes the question:

When you need to create a C++ console application, the safety of this application relies on:
- Your C++ programming abilities
- How well and securely C++ compiler has been programmed.
- The safety of integrity of machine (not, because C++ is translated to Assembly and isn't a code that needs to be interpreted by another interpreter).
- The safety of libraries on machine

Aeonix 71 Posting Whiz

Moschops

#include <iostream>
#include <string>
#include <sstream>

using namespace std;

int main() {

    const System::Int64 TheNumbah = 1844674407370955161;
    const std::string MarcoPolo = "Yupikayay!";
    cout << MarcoPolo << endl;
    cout << TheNumbah << endl;

    return 0;
}

Results in: Error 1 error C1083: Cannot open include file: 'stdafx.h': No such file or directory. The funny answer I got is "just delete it"... but it's not even there and it isn't even included.

SCHOL-R-LEA

It is a dialect created by Microsoft and specific to their systems, which runs on the .Net CLR. It is really a new language, distinct from standard C++,

Is there no way to program standard C++ CLI applications without having this ".NET CLR"? To create C++ code that will work for general purpose, instead for Windows only? I did find Win32 > Win32 Console Application. I selected
Application type: Console Application
Additional options: [ ] Empty Project, [ ] Precompiled header, [X] Security Development Lifecycle checks.
Add common header files for: [ ] ATL, [ ] MFC.

After pressing "Finish", the code I got in return is:

#include "stdafx.h"

int _tmain(int argc, _TCHAR* argv[]) {
    return 0;
}

Modified:

#include "stdafx.h"
#include <iostream>
#include <string>
#include <sstream>

using namespace std;

int main() {

    const __int64 TheNumbah = 1844674407370955161;
    const string MarcoPolo = "Yupikayay!";
    cout << MarcoPolo << endl;
    cout << TheNumbah << endl;

    return 0;
}

Worked, thank you for your solutions everybody. Output:

Yupikayay!
1844674407370955161
Press …

Aeonix 71 Posting Whiz

You could go for Properties while marking your application with right mouse button, then go for Compatibility, there should be a checkbox for administrator permissions, check it, and every time you start this application, will require administrator permissions, regardless of your manifest.

Is this what you requested?

Aeonix 71 Posting Whiz

"Sounds like homework", show us whatcha got. I could do this script for you, but you won't learn anything. And if you know it yourself, you'll be able to solve your question much faster than waiting for someone to answer it for you.

Aeonix 71 Posting Whiz

I tried to build really basic associative array but it turned out I don't have enough knowledge, so I tried something less, and less, and less, because I kept failing at it. Finally I just tried to set variables and print them in the command-line. But I can't even do that, and this is like ridiculous begin of all the programming and that even failed. I can't precisely understand what error means and Googling refers to other programming languages or errors that don't match mine. The code I have:

#include <string>
#include "stdafx.h"
#include <limits>
#include <iostream>

int main() {
    const System::Int64 TheNumbah = 1844674407370955161;
    const std::string MarcoPolo = "Yupikayay!";
    System::Console::WriteLine(MarcoPolo);
    System::Console::WriteLine(TheNumbah);

    std::string s;
    std::getline(std::cin, s);
}

Where did I go wrong? The first System:: line, especially System::Console::WriteLine has red underline, most likely related (and the only) error is:

IntelliSense: no instance of overloaded function "System::Console::WriteLine" matches the argument list argument types are: (const std::string)

Error doesn't say anything to me, and the syntax for this basic task is so simple I'm surprized I failed at it.

Could anybody help me solve this issue?

The operating system I tried it on is Windows 7 x64, codes from C++11 work in my IDE (so I expect that onward versions will work as well) which is Microsoft Visual Studio Community 2013, Update 4.

Aeonix 71 Posting Whiz

Very "serious" companies create their own game engines (that I've heard). Although game like FarCry 3 was made with Dunia Engine which is just remake of Unreal Engine, which uses C++ programming. Very low, very powerful but also complicated.

Unreal Engine does have amazing graphics (go Google the latest ones), without even programming anything.

Aeonix 71 Posting Whiz

BLoBs? I would encode the picture in base64 and then BLoB it down the database.

Aeonix 71 Posting Whiz

o_O

That's one of the weirdest bugs I've ever seen. If I try fresh Fiddle and I say alert("Hi."); it alerts me "Hi.", when I comment your entire jQuery out, and I type alert("Hi."); no response is given.

I can't really help you. If I were you, I'd wait day or two, if nobody can solve this. I'd be visitng Mozilla soon, because somehow, your code commented or not, blocks every single attempt to alert(); anything, so I wouldn't be surprized that your or any other code cannot be executed, thus you aren't receiving reaction that you'd like to receive.

Then I thought why else if if there's not if. So I changed it to if, but, still nothing happened.

As I said, let's just wait until experts come along that would give you advice or hopefully solve it.

The most matchmade program so far, eliminating missing semicolons and brackets and all, are:

(function( $ ) {
  $.fn.multiButtonClick = function (settings) {
    var defaults = {
    area : 'p',
    speed : 'slow',
    tog : 'parent',
    store: 'my test'
    };
    settings = $.extend({}, defaults, settings);
    if (settings.tog == 'parent')
    {
        return $(this).click(function() { 
        $(this).parent().nextAll(settings.area).toggle(settings.speed);
        localStorage.setItem(settings.store, $(".innercontainer").siblings().is(":visible"));
        alert($(".innercontainer").siblings().is(":visible"));
        });
    var set = localStorage.getItem(settings.store);
    if (set == 'true') {
        $(settings.area).show();
    }
    else{
        $(settings.area).hide();
    }
  }
  };});

I used program to it :|, I'm sorry.

Aeonix 71 Posting Whiz

Is it me or are we open to SQL injections here as we're using raw input and not sanitizing. Better to use prepared statements.

We provide answer to unfinished script, hoping, that the OP will change his/her script sometime to more secure one. As of now, the question is other than "how do I protect my script?".

Aeonix 71 Posting Whiz

Can, we, uh... see the CSS?

Aeonix 71 Posting Whiz

Do you mean this?, it's quite downloadable application written by people who are into this stuff. This might help you. WYSWIG are applications which would automatically format text for you, so it looks normal at first as you type.

Aeonix 71 Posting Whiz

Yea, was just about to send you link to this thread (so you'd have more vision on the situation), then it turned out you are already here.

Aeonix 71 Posting Whiz

You won't learn anything if I end up making entire homework for you. I provided you the script, the lines of code I provided, if you combine this with, mathematical functions and mathematical operators. You'll find out how to make this work.

Aeonix 71 Posting Whiz

Okay, forget what I said, ^^^^, better solution.

Aeonix 71 Posting Whiz

And would it be ok if i ask you to explain this for me too!!
preg_match("/^[A-Za-z0-9'?!-\s\\]+$/", $field)
If you know it, Thank you.

You like torturing people, don't you :D?
Here's the webpage go suit yourself, and here's another one. The example I provided is rather "hardcore" one, that's why this one is on another website, someone made this enough complicated, he/she needed help with it.

So would it be correct?

It is supposed to work if I look at it. Why not try it?

Aeonix 71 Posting Whiz

They say the only way you can be a good programmer is if you learn it the hard way

You don’t really understand something unless you can explain it to your grandmother. --- Albert Einsten

It's not about if you learned it hardway, in my case, I imagine the script being moving parts of a mechanism. spooky

My way of solving C++ bugs is attempting to think like compiler, if it says that something's wrong on line 30, I go back one or two loops and critically analyse every single step, if nothing found, then I just make search bigger and bigger.

If I can't do that, I go Google it, many people have tried the same before me, so they probably also have an answer. And if that fails, I can also ask DaniWeb experts. ascension God-like sound effect

But this is really global, the situations vary heavily depending on which type of projects you are doing, are there libraries, is this CLI or GUI. Like, there's literally millions of ways to write a program and even more ways to get it wrong, there's no The Ultimate C++ Error Solve recipe. You just go on working on your code, and if something goes wrong, you expect with hope that someone else have solved your issue, and if there's is none, you're the one solving it, and then someone else will have more hand. This is how we expand "knowledge base", by making easily reachable errors resolvable.

Aeonix 71 Posting Whiz

Oh, crap! Thanks! Oh, crap, use this one instead:

$output = file_get_contents($api_url);
if($output=="")
{
    echo "No output received";
}
else
{
    $arr_output = json_decode($output, true);
    if(isset($arr_output['msg']))
    {
        $msg = $arr_output['msg'];
        $msg_text = $arr_output['msg_text'];
        if($msg == "SUCCESS")
        {
            if(isset($arr_output['data']))
            {
                $arr_data = $arr_output['data'];
                // above array will contain your data
                // print_r($arr_data);
                mysqli_query("INSERT INTO table (sn, mob_no, date, time) VALUES ($myarray['sn'], $myarray['mob_no'], $myarray['date'], $myarray['time'])");
            }
            else
            {
                echo "Json data not set !!";
            }
        }
        else
        {   
            echo "Error : ".$msg_text;
        }
    }
    else
    {
        echo "Output not set !!";
    }
}
while($item = array_shift($arr_data))
{
    foreach ($item as $key => $value)
    {
        echo $key.' => '.$value."\n";
    }
}
Aeonix 71 Posting Whiz

I'm not professor of PHP.

So far I understand it /ubuntu/ will seek for every "ubuntu" in the text, regardless whether it's at the begin, or in middle, or at the end. While just ubuntu seeks for straight text, so far example if your operating system would be called "Linux Ubuntu", /Ubuntu/ will say "Yes, I found it", while Ubuntu won't. Also i at the end indicates that you don't care about the case, so UbUNTU and ubuntu and Ubuntu and ubunTU will all be detected and treated exactly same way.

I wouldn't really be bothered with this if I were you, lets be happy together that it works as it gets sometimes as complicated as preg_match("/^[A-Za-z0-9'?!-\s\\\\]+$/", $field).

Aeonix 71 Posting Whiz

I am trying to store the state of a show/hide button so that when the browser is refreshed it will show the previous stored state.

So, you want, if you left it toggled on, and you refresh the page, it's still on, but if you toggled it off, it will be toggled off after refresh as well?

Works on Opera and Chrome, I expect it to work on Firefox and Safari as well. Maybe your browser denies localStorage space to your JavaScript application.

:visible is true no matter the toggle state

Or you want totally avoid it? But this statement is false, it's not always :visible. At least not in my browsers.

Also if (set == 'true') { can replaced with if (set) {, works same.

Aeonix 71 Posting Whiz

I'm pretty sure, just out of my head, that if you replace:

                            '/linux/i'              =>  'Linux',
                            '/ubuntu/i'             =>  'Ubuntu',

With:

                            '/linux/i'              =>  'Unspecified Linux',
                            '/ubuntu/i'             =>  'Linux Ubuntu',
                            '/slackware/i'          =>  'Linux Slackware',
                            '/kali/i'               =>  'Linux Kali',
                            '/fedora/i'             =>  'Linux Fedora',
                            '/mint/i'               =>  'Linux Mint',
                            etc. etc. etc.

That it will work pretty well. There's almost no reason it shouldn't. Linux has technically always same pattern like Windows, of it's own of course. The only line that would change with same browser on same hardware, but different distribution, is just one single string that it should find.

Here's top 50 most known according to this website (maybe not trustworthy, but still covers 90% of most used Linux OSes)

Aeonix 71 Posting Whiz
<?php

$user_agent = $_SERVER["HTTP_USER_AGENT"];
function getOS() { 
    global $user_agent;
    $os_platform    =   "Unknown OS Platform";
    $os_array       =   array(
                            '/windows nt 10/i'     =>  'Windows 10',
                            '/windows nt 6.3/i'     =>  'Windows 8.1',
                            '/windows nt 6.2/i'     =>  'Windows 8',
                            '/windows nt 6.1/i'     =>  'Windows 7',
                            '/windows nt 6.0/i'     =>  'Windows Vista',
                            '/windows nt 5.2/i'     =>  'Windows Server 2003/XP x64',
                            '/windows nt 5.1/i'     =>  'Windows XP',
                            '/windows xp/i'         =>  'Windows XP',
                            '/windows nt 5.0/i'     =>  'Windows 2000',
                            '/windows me/i'         =>  'Windows ME',
                            '/win98/i'              =>  'Windows 98',
                            '/win95/i'              =>  'Windows 95',
                            '/win16/i'              =>  'Windows 3.11',
                            '/macintosh|mac os x/i' =>  'Mac OS X',
                            '/mac_powerpc/i'        =>  'Mac OS 9',
                            '/linux/i'              =>  'Linux',
                            '/ubuntu/i'             =>  'Ubuntu',
                            '/iphone/i'             =>  'iPhone',
                            '/ipod/i'               =>  'iPod',
                            '/ipad/i'               =>  'iPad',
                            '/android/i'            =>  'Android',
                            '/blackberry/i'         =>  'BlackBerry',
                            '/webos/i'              =>  'Mobile'
                        );

    foreach ($os_array as $regex => $value) { 

        if (preg_match($regex, $user_agent)) {
            $os_platform    =   $value;
        }

    }   

    return $os_platform;

}

echo "Operating system is: " . getOS() . "<br />";
echo "Understood from: " . $_SERVER["HTTP_USER_AGENT"];

?>

Stolen, from here, then modified.

Be aware, this is easily spoofable. Works for me.

Aeonix 71 Posting Whiz
$output = file_get_contents($api_url);
if($output=="")
{
    echo "No output received";
}
else
{
    $arr_output = json_decode($output, true);
    if(isset($arr_output['msg']))
    {
        $msg = $arr_output['msg'];
        $msg_text = $arr_output['msg_text'];
        if($msg == "SUCCESS")
        {
            if(isset($arr_output['data']))
            {
                $arr_data = $arr_output['data'];
                // above array will contain your data
                // print_r($arr_data);

                mysqli_query("INSERT INTO table (sn, mob_no, date, time) VALUES ($myarray["sn"], $myarray["mob_no"], $myarray["date"], $myarray["time"]));
            }
            else
            {
                echo "Json data not set !!";
            }
        }
        else
        {   
            echo "Error : ".$msg_text;
        }
    }
    else
    {
        echo "Output not set !!";
    }
}
while($item = array_shift($arr_data))
{
    foreach ($item as $key => $value)
    {
        echo $key.' => '.$value."\n";
    }
}

I'm assuming that commented array is my target array. You need to make sure to have config file out there, and include it, which would connect to SQL database. And execute the script.

If it's still not working, specify where exactly are you getting your input from.

Aeonix 71 Posting Whiz

You could let Ajax do this. You would then repeat certain PHP function over and over again, with space of around 2 seconds, wait until PHP finds something new in the database and produces output, and then create a new field (with JavaScript) and make it's content, the content that PHP has provided you.

Aeonix 71 Posting Whiz

Let's say, this array is called $myarray.

mysqli_query("INSERT INTO table (sn, mob_no, date, time) VALUES ($myarray["sn"], $myarray["mob_no"], $myarray["date"], $myarray["time"]));
Aeonix 71 Posting Whiz

You mean maximum value and the minimum value?

$a=100;
$b=200;
$c=300;
$d=500;
$e=600;
echo "The highest value is: " . max($a, $b, $c, $d, $e);
echo "The lowest value is: " . min($a, $b, $c, $d, $e);

But I think it would be better if you just had done this:

$values = array(100, 200, 300, 400, 500, 600);
echo "The highest value is: " . $max($values);
echo "The lowest value is: " . $min($values);

But that's only my opinion. Alternatively, you could put all numbers in numerical array, then use for(;;) {} and create process of elimination, where you'd look up if previous number is larger or smaller than the current one.

Aeonix 71 Posting Whiz
  • And would it work with much larger one? If I had 500TB one? Could I also use it?

  • hard drives*, if I had 4xSSD with 600MBs, it at 2GBs is the only limit I need to worry about it? Or is there anything else?

Aeonix 71 Posting Whiz

Okay, third attempt, :D, If I had a desktop, and if I had SATA entrance that would be able to handle 3 1/2" drives, would it be able to handle "infinitely" much storage memory? Like 8TB one?

There's still the 2nd question.

Aeonix 71 Posting Whiz

I know, that they don't exist... but question was, would support immensely large HDD storage, I found 8TB, it would be nice if it fit.

Aeonix 71 Posting Whiz

On certain websites you can order laptops, and sometimes even they allow you to change certain parts of it.
Let's take the example of HDD, the website offered quite an amount of types of HDD's.

The largest HDD they can deliver to the laptop is 2TB, could I instead ask them to let the slot open, and then buy let's say 860EB and put it in.

  • Will Linux adapt these entire 860EB? Will it be able to write to this disk as it could to normal 2TB disk? Is there no limitation to amount of data understood? Entire 860EB will be absolutely usable? And what if I had 4 slots, and all of them had 860EB HDD, would it still be able to utilize all 4 entire HDD's? Would the same apply to SSDs?

Don't ask me why would I need 860EB or how, I won't be probably getting 2TB disk either. This is just a thing that I thought about, that I find interesting to know. And knowledge is the key.

  • When thinking about speed, is speed of SATA all I need to worry about? It turns out it's maximum speed (according to Wikipedia) is theoretically 16Gbps which is 2GBs. That means that every HDD and SSD connected to my SATA bays will technically never be able to read/write more than 2GB per second. Is there anything else I should be paying attention to?

By Linux, I mean regular user-grade distribution of OS (Ubuntu, Fedora, Arch), …

Aeonix 71 Posting Whiz
sudo apt-get install python-software-properties

If this won't work

sudo nano /etc/apt/sources.list

And edit manually :)

Aeonix 71 Posting Whiz

mysql is how the database is called, but there has been an update to it called mysqli which is essentially just "MySQL improved", I think you need to upgrade your SQL server. The file should be put inside of htdocs or www folder, but you already figured that out.

Aeonix 71 Posting Whiz
sudo nano /var/log/boot.log
sudo nano /var/log/dmesg

First line is log for boot and dmesg is supposedly Ring 0 log, or you could just dmesg | less in case when you have access to command line, working command line.

Aeonix 71 Posting Whiz
sudo add-apt-repository ppa:nmi/vim-snapshots
sudo apt-add-repository ppa:passy/vim
sudo apt-get update
sudo apt-get upgrade

There has been somebody who had already one version of Vim, and there was newer one which he/she couldn't find on his/her repository. This solved his/her issue, maybe it could solve yours.

Aeonix 71 Posting Whiz

Okay, questionaire:

  1. Do you have Apache server? Start it.
  2. Do you have MySQL server? Start it.
  3. Create a file called config.php, put inside

    <?php
        $sql_un = "root";   // default: "root";
        $sql_pd = "";       // default: "";
        $sql_db = "";       // you will need to create database and input here it's name
        $sql_conn = mysqli_connect("127.0.0.1", $sql_un, $sql_pd, $sql_db);
        if (!$sql_conn) {
            die("Something didn't work, the file couldn't connect to database!");
        }
        echo "File's request has been successfully sent and answer received.";
    ?>
    

I don't get the <?php echo 'DDD'; ?> part... what about it?