Jūs esatephp
php
PHP. Simple SOAP client & server
Today we're going to create a simple Simple Object Access Protocol (SOAP) client and server.
First of all you must ensure that your php.ini file have PHP SOAP and XML RPC extensions enabled:
extension=php_soap.dll
extension=php_xmlrpc.dll
Notes about Drupal 7. hook_theme() changed a bit
Today I was programming with Drupal 7. And I expierenced a problem with hook_theme() hook.
In Drupal 6 I did like that:
What is JSON?
I was googling about JSON and PHP and found a very good website: http://www.itnewb.com/v/Introduction-to-JSON-and-PHP
Happy reading ;)
My impressions about Drupal CMS (or should I say CMF?)
The more I read about Drupal Content Management System (Framework?) - the more I like it :) It's very flexible, provides good API and well documented :)
But why it's not object oriented?..
PHP. Working with CSV files
I wanted to create an index for my blog, so I needed to download stock prices. I download them from "Nasdaq OMX Vilnius" web site.
Maybe this might be useful for more people, so, here it is :)
Good friend of mine Paulius helped me with this CSV-based stock index counter :) If you need awesome web site for a very attractive price - don't hesitate to contact him :)
Ok, so my index counter :) I'm not very good at PHP, so the code is not perfect.
phpMyAdmin klaida ant MySQL
Sukėliau phpMyAdmin'ą, sukūriau konfiguraciją, pabandžiau paleisti šį daikčiuką ir gavau bjaurią klaidą:
#1045 - Access denied for user 'root'@'localhost' (using password: NO)
Pakapsčiau internete ir išsprendžiau problemą - konfiguracijoje šio to trūko.
<?php
/*
* Generated configuration file
* Generated by: phpMyAdmin 2.11.8.1 setup script by Michal Čihař <michal@cihar.com>
* Version: $Id: setup.php 11423 2008-07-24 17:26:05Z lem9 $
* Date: Fri, 15 Aug 2008 09:37:15 GMT
*/
/* Servers configuration */
$i = 0;
/* Server localhost (config:root) [1] */
$i++;
PHP/MySQL neveikia arba nemoku
Klausimas programuotojams. PHP ir MySQL hibridas pas mane ne visai veikti nori.
Turim tokį kodą:
class MySQL {
// Variables
private $connector = null;
// Kodas....
// Executes a MySQL query
function execQuery($query) {
return mysql_query($query) or die(ERROR_QUERY_EXEC . '\"'. $query . '\" ' .
Kokių programų aš pasigendu Linux'e?
Ta taigi. Linux'as - gera sistema, veikia sparčiai ir t.t. ir pan. Bet šios žinutės tikslas nėra aptarti Linux privalumų.
Man trūksta kai kurių Windows'inių programų. O jei tiksliau: Adobe Dreamweaver (buvusi Macromedia Dreamweaver) - vietoj jos naudoju KDevelop ir/arba vim. Kita programa: Adobe PhotoShop (naudoju GIMP arba Krita, Karbon14).
Jeigu žinote gerą PHP redaktorių Linux'e, būtinai parašykite.
MySQL'o funkcijos PHP'e
Galbūt žinote gerą MySQL framework'ą PHP programavimo kalbai? Nes atsibodo su mysql_query(), mysql_fetch_array() ir pan. sugyventi.
Norėčiau kad jame būtų funkcijos, kurios supaprastintų gyvenimą su MySQL. Pvz. pateikiu užklausą SELECT * FROM news, tada su kokiomis nors funkcijomis galėčiau pasirinkti ką nors tokio: getFirstResult(); getNextResult() ir t.t.
P.S. Jei pats tokį daiktą nutversiu, informuosiu :)

