Changes
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /mnt/cpcwiki-httpdocs/includes/diff/DairikiDiff.php on line 434
[[Category:Programming]] Working now, isn't it? :) :) :) <
ret
</sourcegeshi> == GeSHi ==<php><?php echo 'Hello, world!'; # What else? $my_cnx = mysql_open('localhost', 'user', 'pass'); if ($my_cnx === false) die('Unable to open connection with MySQL database engine'); mysql_select_db('database', $my_cnx) or die('Unable to select database'); $request = sprintf('UPDATE table SET column=data WHERE othercolumn=\'%s\'', $_SESSION['text']); $my_success = mysql_query($request, $my_cnx); if ($my_success === false) { die('Error when trying to update table'); } mysql_close($my_cnx);</php> <geshi lang=sql>select * from lib.tbl where this=that</geshi> <geshi lang=bash>#!/bin/ksh HOST=hostUSER=usernamePASS=passwordFILE=bad.txtLOGFILE=log.txt ftp -n -v -i ${HOST} > ${LOGFILE} 2>&1 << EOFquote USER ${USER}quote PASS ${PASS}binaryput ${FILE}quitEOF grep -q "Transfer complete." ${LOGFILE} if [[ $? != 0 ]]; then echo "ftp failed"else echo "ftp succeeded"fi rm ${LOGFILE}</geshi>