File tree 4 files changed +28
-28
lines changed
4 files changed +28
-28
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ Bir adresten kaynak kodlarını almak
29
29
* Proxy kullanmak için 2. bir parametrede proxy adresini belirtmeniz yeterlidir. proxyip:sifre şeklinde göndermelisiniz
30
30
*/
31
31
32
- $source=$easyCurl->SourceCode ('http://savascanaltun.com.tr');
32
+ $source=$easyCurl->sourceCode ('http://savascanaltun.com.tr');
33
33
```
34
34
35
35
Proxy Kullanılmış örnek
36
36
---------------------
37
37
``` 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');
39
39
```
40
40
41
41
Bir adresteki formu post ettirmek
Original file line number Diff line number Diff line change 5
5
6
6
* GİT : http://github.com/saltun
7
7
* Date : 27.08.2014
8
- * Update : 24.10.2014
8
+ * Update : 26.06.2016
9
9
*/
10
10
11
11
cLass easyCurl{
12
12
13
13
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 " ;
24
24
private $ curl ;
25
25
26
26
/* run class and curl control - sınıf başlangıcı ve curl kontrolü */
@@ -56,7 +56,7 @@ public function init($url,$proxy){
56
56
57
57
58
58
59
- public function SourceCode ($ url ,$ proxy =NULL ){
59
+ public function sourceCode ($ url ,$ proxy =NULL ){
60
60
$ this ->init ($ url , $ proxy );
61
61
$ exec = curl_exec ($ this ->curl );
62
62
return $ exec ;
Original file line number Diff line number Diff line change 5
5
6
6
* GİT : http://github.com/saltun
7
7
* Date : 27.08.2014
8
- * Update : 24.10.2014
8
+ * Update : 26.06.2016
9
9
*/
10
10
11
11
cLass easyCurl{
12
12
13
13
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 " ;
24
24
private $ curl ;
25
25
26
26
/* run class and curl control - sınıf başlangıcı ve curl kontrolü */
@@ -56,7 +56,7 @@ public function init($url,$proxy){
56
56
57
57
58
58
59
- public function SourceCode ($ url ,$ proxy =NULL ){
59
+ public function sourceCode ($ url ,$ proxy =NULL ){
60
60
$ this ->init ($ url , $ proxy );
61
61
$ exec = curl_exec ($ this ->curl );
62
62
return $ exec ;
Original file line number Diff line number Diff line change 26
26
27
27
/*
28
28
* 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.
30
30
* Referans adresi vs.. düzenlemek için bu fonksiyondan önce referer gibi değişkenlere değer vermelisiniz.
31
31
* Proxy kullanmak için 2. bir parametrede proxy adresini belirtmeniz yeterlidir. proxyip:sifre şeklinde göndermelisiniz
32
32
*/
33
33
34
- $ source =$ easyCurl ->SourceCode ('http://savascanaltun.com.tr ' );
34
+ $ source =$ easyCurl ->sourceCode ('http://savascanaltun.com.tr ' );
35
35
echo $ source ;
36
36
37
37
You can’t perform that action at this time.
0 commit comments