2015 m. lapkričio 18 d., trečiadienis
FULL ajax page seo
https://developers.google.com/webmasters/ajax-crawling/docs/specification
naudokite www.tavosaitas.lt/#!/paris url strukturas, o google puslapi matys kaip
www.tavosaitas.lt?_escaped_fragment_=paris
naudokite www.tavosaitas.lt/#!/paris url strukturas, o google puslapi matys kaip
www.tavosaitas.lt?_escaped_fragment_=paris
2015 m. lapkričio 11 d., trečiadienis
Apache log analyzer
Puiki nemokama programa analizuoti WEB LOG'ams: http://www.apacheviewer.com/
2015 m. lapkričio 10 d., antradienis
Mysql Backup via CMD / cron
Visu failu backup i viena faila sugzipinta, su datos reiksme
mysqldump -u username -pPASWORDAS --opt --all-databases | gzip > DailyDB_`date '+%Y-%m-%d_%T'`.sql.gz
Arba skriptas - backupu darymas i atskirus failus pagal duombazes
mysqldump -u username -pPASWORDAS --opt --all-databases | gzip > DailyDB_`date '+%Y-%m-%d_%T'`.sql.gz
Arba skriptas - backupu darymas i atskirus failus pagal duombazes
#!/bin/bash
USER="dfdsf"
PASSWORD="sdfdsf"
OUTPUT="/path/to/dir/"
databases=`mysql -u $USER -p$PASSWORD -e "SHOW DATABASES;" | tr -d "| " | grep -v Database`
for db in $databases; do
if [[ "$db" != "information_schema" ]] && [[ "$db" != "performance_schema" ]] && [[ "$db" != "mysql" ]] && [[ "$db" != _* ]] ; then
echo "Dumping database: $db"
mysqldump -u $USER -p$PASSWORD --databases $db | gzip > $OUTPUT/$db._`date '+%Y-%m-%d_%T'`.sql.gz
fi
done
you save the code in file backup.sh $ chmod +x
2015 m. spalio 26 d., pirmadienis
PHP text spinner / thesaurus
Thesaurus (anglų k. leksikinis sinonimų žodynas) mysql duombazė: https://code.google.com/p/moby-thesaurus/
Vienas geresnių spinner API http://script4.prothemes.biz/
Vienas geresnių spinner API http://script4.prothemes.biz/
PDO Database Class
https://github.com/indieteq/PHP-MySQL-PDO-Database-Class/blob/master/README.md
PDO multi prepare (insert multiple rows with single query): https://www.daniweb.com/programming/web-development/code/495371/insert-multiple-records-with-pdo-prepared-statement
https://code.tutsplus.com/tutorials/php-database-access-are-you-doing-it-correctly--net-25338
PDO multi prepare (insert multiple rows with single query): https://www.daniweb.com/programming/web-development/code/495371/insert-multiple-records-with-pdo-prepared-statement
https://code.tutsplus.com/tutorials/php-database-access-are-you-doing-it-correctly--net-25338
Užsisakykite:
Pranešimai (Atom)