cucumber Posted June 8, 2007 Report Posted June 8, 2007 (edited) Ir parasta izvade no mysql, lauka tips ir BLOB binary, vai ir iespeja uztaisit ta, lai php kods stradatu, tas ir ierakstit ieksh mysql failu un pie shadas izvades to palaist? while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "\t<tr>\n"; foreach ($line as $col_value) { echo "\t\t<td>$col_value</td>\n"; Edited June 8, 2007 by cucumber
andrisp Posted June 8, 2007 Report Posted June 8, 2007 ...to palaist... Tas ir kā ? Kas tas par failu ? Tu varbūt gribi php kodu glabāt iekš mysql ? Tad tev jāskatās uz eval()
cucumber Posted June 8, 2007 Author Report Posted June 8, 2007 Ja, palaist php scriptu, tikai man nav iespejas neko mainit.
andrisp Posted June 8, 2007 Report Posted June 8, 2007 Aaa, nepamaniiju topika nosaukumu saakumaa. Kur iisti probleema ir ?
cucumber Posted June 8, 2007 Author Report Posted June 8, 2007 Kaut kada veida ir jasaglaba php scripts, lai pie shi scripta (pirmais posts), varetu to palaist.
andrisp Posted June 8, 2007 Report Posted June 8, 2007 http://dev.mysql.com/doc/refman/5.0/en/insert.html
cucumber Posted June 8, 2007 Author Report Posted June 8, 2007 Ne iebraucu ko tu gribi man pateikt ar to linku? Ne es saprotu, ka ir javeics insert, tani lauka. Bet kadam scriptam jaiskatas, ja uzraksta <?php echo "aa"?>, tad php neizpildisies.
GedroX Posted June 8, 2007 Report Posted June 8, 2007 Ja, cik es nopratu, tu gribi, nemainot PHP, bet tikai ierakstot MySql-a tabulā skripta tekstu, kautko uzhakot, tad nu nekas nespīd.
cucumber Posted June 8, 2007 Author Report Posted June 8, 2007 Ja. Ir kaut kads variants, lai spidetu? Tabluas strukturu ir iespejams mainit.
andrisp Posted June 8, 2007 Report Posted June 8, 2007 Ja mysql rezults netiek evalēts (eval()), tad nav variantu.
GedroX Posted June 8, 2007 Report Posted June 8, 2007 Visnotaļ naivi. :) Bet XXS gan tu vari uztaisīt. Par pamatpiemēru -- ievieto tabulā <script>location.href="http://www.sex.com";</script> Atkarībā no sistēmas, var saņemt sesijas ID, izdzēst profilu... Have fun! :D
cucumber Posted June 8, 2007 Author Report Posted June 8, 2007 Nezinu labi javascript, bet ka var dabut sessijas ID un ko tas dos?
andrisp Posted June 8, 2007 Report Posted June 8, 2007 Vai nu būs labi tādas lietas darīt ? :) Ja tik ļoti interesē tad pameklē gūglē.
cucumber Posted June 8, 2007 Author Report Posted June 8, 2007 (edited) Doma bija tada, ir uzlazts saits un ieguta mysql administreshana (phpmyadmin). Ta ka var redzet ka saitu update labi ja vienreizs gada, tad uzmest shellu un vienkarshi likt uz ta savus scriptus talakam sliktam lietam ?). Taka tads halavnijs hostings. Edited June 8, 2007 by cucumber
andrisp Posted June 8, 2007 Report Posted June 8, 2007 Tipa phpmyadminam parole nebija uzlikta ? Tu nu gan esi dīvains, cerēdams, ka mēs tev tagad dosim padomus kā ar nelegālām lietām nodarboties.
Recommended Posts