Skip to content

Commit 20d718e

Browse files
committed
Allow examples to run without modification to the include path
1 parent 1092365 commit 20d718e

File tree

62 files changed

+62
-62
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+62
-62
lines changed

examples/coinbase_account_balance.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/coinbase_btc_spot_price.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/coinbase_eth_spot_price.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/custom.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/delete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/deviant_art_rss.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/download_file.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/download_file_with_callback.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/download_file_with_redirect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/flickr_photo_search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/flickr_upload_photo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33
require 'flickr.class.php';
44

55
use \Curl\Curl;

examples/get.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/get_base_url_1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/get_base_url_2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/get_pages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/github_create_gist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/gmail_send_email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/google_maps_geocode_address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/google_plus_profile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/google_spreadsheet_values_update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/gratipay_send_tip.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/head.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/instagram_popular_media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/instagram_search_photos.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/mailchimp_subscribe_email_address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/memory_leak_test_curl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/memory_leak_test_multi_curl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\MultiCurl;
55

examples/multi_curl_before_send.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\MultiCurl;
55

examples/multi_curl_delete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\MultiCurl;
55

examples/multi_curl_download.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\MultiCurl;
55

examples/multi_curl_download_with_callback.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\MultiCurl;
55

examples/multi_curl_download_with_callbacks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\MultiCurl;
55

examples/multi_curl_get.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\MultiCurl;
55

examples/multi_curl_get_callbacks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\MultiCurl;
55

examples/multi_curl_get_load_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\MultiCurl;
55

examples/multi_curl_patch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\MultiCurl;
55

examples/multi_curl_post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\MultiCurl;
55

examples/multi_curl_put.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\MultiCurl;
55

examples/multi_curl_upload_file.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\MultiCurl;
55

examples/options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/patch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/post_json.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/post_json_array_response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/post_multiple_values_same_key_with_indexes_explicit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/post_multiple_values_same_key_with_indexes_implicit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/post_multiple_values_same_key_without_indexes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Django: MultiValueDict, QueryDict, request.GET.getlist(), request.POST.getlist(), urllib.urlencode, parse.urlencode
44
// Java: request.getParameterValues()
55

6-
require __DIR__ . '/vendor/autoload.php';
6+
require __DIR__ . '/../vendor/autoload.php';
77

88
use \Curl\Curl;
99

examples/progress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/progress_advanced.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/proxy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/put.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/put_large_file_chunked.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// PUT a file using chunked data.
33
// See also "examples/receive_large_file_chunked.php".
44

5-
require __DIR__ . '/vendor/autoload.php';
5+
require __DIR__ . '/../vendor/autoload.php';
66

77
use \Curl\Curl;
88

examples/reddit_top_pics.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/set_cookie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

examples/set_url_1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require __DIR__ . '/vendor/autoload.php';
2+
require __DIR__ . '/../vendor/autoload.php';
33

44
use \Curl\Curl;
55

0 commit comments

Comments
 (0)