Skip to content

Commit eda54e6

Browse files
committed
fixed CamelCase
1 parent da1fe6b commit eda54e6

File tree

4 files changed

+28
-28
lines changed

4 files changed

+28
-28
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ Bir adresten kaynak kodlarını almak
2929
* Proxy kullanmak için 2. bir parametrede proxy adresini belirtmeniz yeterlidir. proxyip:sifre şeklinde göndermelisiniz
3030
*/
3131

32-
$source=$easyCurl->SourceCode('http://savascanaltun.com.tr');
32+
$source=$easyCurl->sourceCode('http://savascanaltun.com.tr');
3333
```
3434

3535
Proxy Kullanılmış örnek
3636
---------------------
3737
``` php
38-
$source=$easyCurl->SourceCode('http://savascanaltun.com.tr','122.323.32.22:8082');
38+
$source=$easyCurl->sourceCode('http://savascanaltun.com.tr','122.323.32.22:8082');
3939
```
4040

4141
Bir adresteki formu post ettirmek

easyCurl.php

+12-12
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
66
* GİT : http://github.com/saltun
77
* Date : 27.08.2014
8-
* Update : 24.10.2014
8+
* Update : 26.06.2016
99
*/
1010

1111
cLass easyCurl{
1212

1313

14-
public $referer="http://google.com";
15-
public $followlocation=false;
16-
public $header=false;
17-
public $timeout=5;
18-
public $ssl_verifypeer=false;
19-
public $ssl_verifyhost=false;
20-
public $cookie=false;
21-
public $error;
22-
public $errorNumber;
23-
public $speed="None";
14+
public $referer="http://google.com";
15+
public $followlocation=false;
16+
public $header=false;
17+
public $timeout=5;
18+
public $ssl_verifypeer=false;
19+
public $ssl_verifyhost=false;
20+
public $cookie=false;
21+
public $error;
22+
public $errorNumber;
23+
public $speed="None";
2424
private $curl;
2525

2626
/* run class and curl control - sınıf başlangıcı ve curl kontrolü */
@@ -56,7 +56,7 @@ public function init($url,$proxy){
5656

5757

5858

59-
public function SourceCode($url,$proxy=NULL){
59+
public function sourceCode($url,$proxy=NULL){
6060
$this->init($url, $proxy);
6161
$exec = curl_exec($this->curl);
6262
return $exec;

example/easyCurl.php

+12-12
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
66
* GİT : http://github.com/saltun
77
* Date : 27.08.2014
8-
* Update : 24.10.2014
8+
* Update : 26.06.2016
99
*/
1010

1111
cLass easyCurl{
1212

1313

14-
public $referer="http://google.com";
15-
public $followlocation=false;
16-
public $header=false;
17-
public $timeout=5;
18-
public $ssl_verifypeer=false;
19-
public $ssl_verifyhost=false;
20-
public $cookie=false;
21-
public $error;
22-
public $errorNumber;
23-
public $speed="None";
14+
public $referer="http://google.com";
15+
public $followlocation=false;
16+
public $header=false;
17+
public $timeout=5;
18+
public $ssl_verifypeer=false;
19+
public $ssl_verifyhost=false;
20+
public $cookie=false;
21+
public $error;
22+
public $errorNumber;
23+
public $speed="None";
2424
private $curl;
2525

2626
/* run class and curl control - sınıf başlangıcı ve curl kontrolü */
@@ -56,7 +56,7 @@ public function init($url,$proxy){
5656

5757

5858

59-
public function SourceCode($url,$proxy=NULL){
59+
public function sourceCode($url,$proxy=NULL){
6060
$this->init($url, $proxy);
6161
$exec = curl_exec($this->curl);
6262
return $exec;

example/index.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626

2727
/*
2828
* Sayfa Kaynak kodlarını alma
29-
* SourceCode Fonksiyonuna adresi tanımlayarak kaynak kodlarını alıp değişkene aktara bilirsiniz veya ekrana yansıta bilirsiniz.
29+
* sourceCode Fonksiyonuna adresi tanımlayarak kaynak kodlarını alıp değişkene aktara bilirsiniz veya ekrana yansıta bilirsiniz.
3030
* Referans adresi vs.. düzenlemek için bu fonksiyondan önce referer gibi değişkenlere değer vermelisiniz.
3131
* Proxy kullanmak için 2. bir parametrede proxy adresini belirtmeniz yeterlidir. proxyip:sifre şeklinde göndermelisiniz
3232
*/
3333

34-
$source=$easyCurl->SourceCode('http://savascanaltun.com.tr');
34+
$source=$easyCurl->sourceCode('http://savascanaltun.com.tr');
3535
echo $source;
3636

3737

0 commit comments

Comments
 (0)