The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Composer
post Feb 14 2018, 02:21 PM
Post #1

Advanced Member

Group: Members
Posts: 180
Joined: 30-September 14
Member No.: 21,611


I am having trouble resolving paths. I have installed composer in a directory called 'Composer' but my script says it cannot find 'vendor/autoload.php'. Vendor directory is installed under Composer with composer.json and composer.lock (see attached).

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<style type="text/css"><!--
body {
background-color: #660000;
style1 {
font-size: 36px;
color: #00FF33;
style5 {
font-size: 36px;
color: #00FF00;


(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

ga('create', 'UA-908952-3', 'auto');
ga('send', 'pageview');



require '../Composer/vendor/autoloader.php';

$surname= $_GET['Surname'];
$name= $firstname.''.$surname;
$email= $_GET['email'];
$Price= $_GET['Price'];
$Graphic= $_GET['Graphic'];

$apiKey= 'F9802AM9NdTVj1VDz/ns9WxWWvKh4Y4yOKBO99XZGTZgF6ZpU1g5geP/H8vgOZNeAjr8Jh';

$client = \Eway\Rapid::createClient($apiKey, $apiPassword, $apiEndpoint);

$transaction = [
'Customer'=> [
'FirstName'=> $firstname,
'LastName'=> $surname,
'Email'=> $email,
'item'=> [
'Description'=> 'Graphic:'.$Graphic,
'Quantity'=> 1,
'RedirectUrl' => "http://$_SERVER[HTTP_HOST]" . dirname($_SERVER['REQUEST_URI']) . '/response.php',
'CancelUrl' => "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]",

'Payment'=> [
'TotalAmount'=> $Price*100,


'TransactionType'=> \Eway\Rapid\Enum\TransactionType::PURCHASE,

$response = $client->createTransaction(\Eway\Rapid\Enum\ApiMethod::TRANSPARENT_REDIRECT, $transaction);

$transactionResponse = $response->Transactions[0];

if ($transactionResponse->TransactionStatus) {
echo 'Payment successful! ID: ' .
} else {
$errors = split(', ', $transactionResponse->ResponseMessage);
foreach ($errors as $error) {
echo "Payment failed: " .

echo '<a href="'.$sharedURL.'">Pay with our secure payment page</a>';


//database connection goes here

$servername= "localhost";
$user= "ecovibdc_tudsy66";
$password= "power99661";

$conn = new PDO("mysql:host=$servername;dbname=ecovibdc_Subscribers", $user, $password);
// set the PDO error mode to exception

//add the information to the database.
$query = "INSERT INTO CustomersArt (itemid,email,graphic,name,Price)
VALUES ('$itemid','$email','$Graphic','$name','$Price')";

$conn->query($query) OR die(mysql_error());

catch(PDOException $e)
echo "Connection failed: " . $e->getMessage();

$line3 = "<br>;<a href=''> Back to my blog - Try again !</a>" ;
echo $line3;


Attached thumbnail(s)
Attached Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


- Lo-Fi Version Time is now: 13th December 2019 - 05:01 AM