Question: I have been searching for a while to find a good answer to my problem. 
I have a new server where I would like to run a script in `.php` which uses a database to store some data. What I have done so far is:

1. Place the .php file in the server with the help of Putty.
2. Create a database in phpmyadmin, export it and place it in the same folder of my project in putty.
3. Run `php5 crawl.php > logfile.log 2&>1&`

but it doesn't update the database. 

I am little bit confused with the steps I have to make in order to make it work. I have been reading also this article <http://www.aspkin.com/using-putty-to-import-a-database/> but when I run the 

```
mysql -u dbusername -p databasename < backupname.sql

```

I get this error: 

> 
> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
> 
> 
> 

Any idea what I might be doing wrong?

Answer: 
You can use next open source class [Browser View Controller](https://github.com/tonisalae/TSMiniWebBrowser "Browser View Controller")

```
TSMiniWebBrowser *webBrowser = [[TSMiniWebBrowser alloc] initWithUrl:[NSURL URLWithString:@"http://indiedevstories.com"]];

[self.navigationController pushViewController:webBrowser animated:YES];

```

![TSMiniWebBrowser](https://i.stack.imgur.com/g3C9N.png)
You can add segment control on you navigation bar....

```
  - (IBAction)segment_control_index_changed:(id)sender {

switch (self.segment_control.selectedSegmentIndex) {

    case 0:

        if (self._webview.canGoBack) {
            [self._webview goBack];
        }

        break;

    case 1:

        if (self._webview.canGoForward) {
            [self._webview goForward];
        }

        break;

        case 2:

        break;

    default:

        break;

}

```

}