sidrs Posted April 16, 2011 Report Share Posted April 16, 2011 Lieta sekojoša uz pc strādā koda gabals, ka uzlieku uz hosta serveri ta šis errors izmetās x reizes: Warning: file_get_contents() expects at most 2 parameters, 5 given in /usr/home/....php on line 41 cik noprotu jāregulē php konfigurācija? Quote Link to comment Share on other sites More sharing options...
waplet Posted April 16, 2011 Report Share Posted April 16, 2011 parādi, kātu izsauc? iespējams serverī vecāks php, vai arī allow_url_fopen ir 0? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted April 16, 2011 Report Share Posted April 16, 2011 Parādi to rindiņu... Quote Link to comment Share on other sites More sharing options...
sidrs Posted April 16, 2011 Author Report Share Posted April 16, 2011 (edited) hostingam ir Php 4.4.9 versija. Pie php.ini nav access. Ja vajag ko nomainit tad jasazinas ar hosteriem pašiem. Ka es varu parbaudit php konfigurāciju vismaz vizuāli :D ? function check_result($code) { global $prices, $ntp_user_id; foreach($prices as $i => $key){ $answer = file_get_contents("http://sms.techpoint.lv/confirm.php?code=$code&id=$ntp_user_id&price=$key", FALSE, NULL, 0, 140); if ($answer == 'key_ok') { return $key; } } } Edited April 16, 2011 by sidrs Quote Link to comment Share on other sites More sharing options...
daGrevis Posted April 16, 2011 Report Share Posted April 16, 2011 Ka es varu parbaudit php konfigurāciju vismaz vizuāli :D ? phpInfo(). Quote Link to comment Share on other sites More sharing options...
sidrs Posted April 16, 2011 Author Report Share Posted April 16, 2011 Bet ar ko var aizstāt to funkciju? Uz pc man ir PHP Version 5.2.6 uz hosta 4.xx tur allow_url_fopen abos ir uz on Quote Link to comment Share on other sites More sharing options...
wintermute Posted April 16, 2011 Report Share Posted April 16, 2011 Uz php 4.x file_get_contents() funkcijai bija tikai 2vi parametri. Ja tavs hostings joprojam tup uz 4.x versijas, tad maini hostingu. Tas nozīmē, ka pēdējo reizi viņī serveri konfigurējuši 2007ajā, jo tad tika pārtraukts php 4.x supports. Šobrīd vienīgā support'ētā php versija ir 5.3.x Quote Link to comment Share on other sites More sharing options...
sidrs Posted April 16, 2011 Author Report Share Posted April 16, 2011 Bus japadoma par hosta maiņu ari tomēr.. Bet tas prasis nedaudz laika. Vai ir kads variants ka aizvietot šo brinumu lai stradatu? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted April 16, 2011 Report Share Posted April 16, 2011 Jā, izmanto divus argumentus - nevis piecus. Quote Link to comment Share on other sites More sharing options...
rebuilder Posted April 16, 2011 Report Share Posted April 16, 2011 Iesaku uzrakstīts hostam, ja neliekas ne zinis, tad iesaku mainīt. Quote Link to comment Share on other sites More sharing options...
sidrs Posted April 19, 2011 Author Report Share Posted April 19, 2011 uzrakstiju hostam, sie veica upgreidu, tik man tagad ir ta ka useri lapa nevar tikt bez www pieliksanas, ka sito nokonfiguret? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted April 19, 2011 Report Share Posted April 19, 2011 Būtu jauki, ja katram jautājumam būtu jauns topiks. Savādāk galīgi Mūsu pēcnācējiem nemeklēsies. Quote Link to comment Share on other sites More sharing options...
wintermute Posted April 20, 2011 Report Share Posted April 20, 2011 uzrakstiju hostam, sie veica upgreidu, tik man tagad ir ta ka useri lapa nevar tikt bez www pieliksanas, ka sito nokonfiguret? google: "mod_rewrite www" Liekas tas būs tas ko tu meklē Quote Link to comment Share on other sites More sharing options...
mad182 Posted April 20, 2011 Report Share Posted April 20, 2011 (edited) Nebūs gan. Ja pirms konfiga maiņas gāja, tad saki lai regulē vēl. Iespēja lapai piekļūt ar vai bez "www" ir atkarīga no dns un webservera konfiga. Edited April 20, 2011 by mad182 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.