-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add vendor files back temporarily
- Loading branch information
Showing
4 changed files
with
397 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ base.php | |
.idea | ||
/bin/vendor/ | ||
composer.lock | ||
|
||
scripts/vendor/data/* | ||
scripts/vendor/vendor |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
ini_set('display_errors', 1); | ||
ini_set('memory_limit', '-1'); | ||
ini_set('max_execution_time', 300); | ||
ini_set('error_reporting', E_ALL & ~E_NOTICE); | ||
date_default_timezone_set('Asia/Kolkata'); | ||
|
||
require_once __DIR__.'/vendor/autoload.php'; | ||
|
||
header('Content-type: text/plain'); | ||
|
||
$NUMBER_OF_SECONDS = 1; | ||
$API_KEY = ''; // Your RapidApi GeoDBCities Api Key | ||
|
||
$servername = "127.0.0.1"; | ||
$username = "root"; | ||
$password = "root"; | ||
$dbname = "world"; | ||
$port = 3306; | ||
|
||
// Create connection | ||
$conn = new mysqli($servername, $username, $password, $dbname, $port); | ||
|
||
// Check connection | ||
if ($conn->connect_error) { | ||
die("Connection failed: " . $conn->connect_error); | ||
} | ||
|
||
// change character set to utf8 | ||
if (!$conn->set_charset("utf8mb4")) { | ||
printf("Error loading character set utf8: %s\n", $conn->error); | ||
} else { | ||
printf("Current character set: %s\n", $conn->character_set_name()); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "dr5hn/csc-db", | ||
"description": "Full Database of city state country available in JSON and SQL Format All Countries, States & Cities are Covered and Populated with Different Combinations & Versions.", | ||
"version": "v0.2", | ||
"require": { | ||
"mashape/unirest-php": "^3.0", | ||
"spatie/array-to-xml": "^3.0", | ||
"symfony/yaml": "^6.0" | ||
} | ||
} |
Oops, something went wrong.