This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$mysqli = new mysqli("localhost", "user", "pass", "dbname"); | |
$mysqli->query('SET foreign_key_checks = 0'); | |
if ($result = $mysqli->query("SHOW TABLES")) | |
{ | |
while($row = $result->fetch_array(MYSQLI_NUM)) | |
{ | |
$mysqli->query('DROP TABLE IF EXISTS '.$row[0]); | |
echo $row[0].",\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void SettingUpAProxyUsingFirefoxDriver() | |
{ | |
//Create a new Firefox profile | |
var firefoxProfile = new FirefoxProfile(); | |
//Create a new proxy object | |
var proxy = new Proxy(); | |
//Set the http proxy value, host and port. | |
proxy.HttpProxy = "localhost:8888"; | |
//We then add this proxt setting to the Firefox profile we created | |
firefoxProfile.SetProxyPreferences(proxy); |
NewerOlder