Nezinītis Posted January 26, 2010 Report Share Posted January 26, 2010 Labdien. Tā kā esmu tikai newbie ar php, rodas daudz, daudz kļūdu. Viena no tām - Fatal error: Call to undefined function mysql_connect() in /var/www/posting.php on line 2 Izmetās, ka no primitīvas lapas, vēlos pievienot komentāru un aizsūtīt datus uz mysql, bet izlec šis. Man uzstādīts LAMP. Kāds var palīdzēt sakarā ar to erroru? Quote Link to comment Share on other sites More sharing options...
2easy Posted January 26, 2010 Report Share Posted January 26, 2010 atrodam php.ini failu atrodam rindiņu ;extension=php_mysql.dll nodzēšam ";" restartējam apache Quote Link to comment Share on other sites More sharing options...
Nezinītis Posted January 26, 2010 Author Report Share Posted January 26, 2010 Ir noņemts, ir restartēts, bet tāpatās. Quote Link to comment Share on other sites More sharing options...
briedis Posted January 26, 2010 Report Share Posted January 26, 2010 Paskaties vai tur nav kāds citis php.ini kādā citā mapē... Quote Link to comment Share on other sites More sharing options...
Nezinītis Posted January 26, 2010 Author Report Share Posted January 26, 2010 āā, nepareizo extensionu rediģēju, bet atkal sākas problēmas.. Nevaru rediģēt php.ini failu, saka, ka nav accessa. Linux. :( Quote Link to comment Share on other sites More sharing options...
2easy Posted January 26, 2010 Report Share Posted January 26, 2010 nokillo visus procesus, kas aiztiek to php.ini Quote Link to comment Share on other sites More sharing options...
Nezinītis Posted January 26, 2010 Author Report Share Posted January 26, 2010 neviens viņu neaiztiek, man vnk nav pieejas /... mapēm. :/ Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted January 26, 2010 Report Share Posted January 26, 2010 (edited) sudo gedit /path/to/php.ini gedit var aizstat ar savu redaktoru... Edited January 26, 2010 by rATRIJS Quote Link to comment Share on other sites More sharing options...
Nezinītis Posted January 26, 2010 Author Report Share Posted January 26, 2010 paldies, ratrij, viss čiki. + es auna piere, nebiju php-mysql pluginu pieinstalējis. Bet nu kas nemācās, neko nedara arī neko neiemācīsies. 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.