Interview – PHP-GTK’s Andrei Zmievski

Share this article

Andrei Zmievski is a man of many talents. Although he is best known for his contributions to the PHP-GTK and Smarty Template Engine projects, his interests range as far afield as history and linguistics. The PHP community is lucky to have kept his attention for this long!

In this exclusive interview, Andrei tells us what drew him to PHP and what plans he has for the future.

Beginnings

SP: Firstly, can you tell us a little about your background? What originally got you into software development?

AZ: I am originally from Uzbekistan, been living in the USA for the past 10 years. I started programming when I was 9 or 10, first on programmable calculators, and then on bigger and better machines. I have to credit my parents with recognizing and supporting my interests in this area, buying me books, magazines, and even computers.

SP: When did you first come across PHP, and what was it that “got you hooked”?

AZ: PHP first appeared on my horizon some time in 1997. At work we purchased Apache StrongHold package and it came with PHP 2 and some documentation for it. Initially, it seemed a simple curiousity because our systems were all written in a different, proprietary 3rd party language. But at the beginning of 1998 we started switching all our products to PHP, because it proved to be more familiar to people with background in C and Perl, more flexible, with pretty good support from the community, but most importantly, it was free of licensing costs. Personally, I liked that it came with a fairly good and easy to use API. These reasons remain PHP’s strengths to this day.

On PHP

SP: Are you still actively involved in the PHP project?

AZ: Yes, although I took a hiatus recently. After 3 years I needed a little break from the barrage of mailing list messages, bugs, and other similar things. I am still not subscribed to the lists, rather I monitor them through the Web interface. This is a bit of a transitional period for me, but I expect to be back in the saddle by the end of summer.

SP: What’s your opinion of recent changes to PHP, like register_globals off in 4.2.0, and the new pre-defined variables in 4.1.0?

AZ: I think it is a step in the right direction. These changes make PHP more consistent and secure at the same time.

SP: Do you think PHP has reached maturity? What further big enhancements to security do you see coming?

AZ: How does one define maturity in this field? Is it the number of programs written with the language? The number of libraries available for it? The amount of documentation and tutorials it has? If so, then PHP passes the mark easily.

As far as security, the biggest thing would be overhauling the safe mode as a basic sandbox mechanism.

SP: Where does PHP stand in the light of Microsoft’s .NET?

AZ: .NET is a fairly interesting technology, and I especially like its class library. However, I do not see what extraordinary benefits it could offer PHP. For one, .NET doesn’t yet play nicely with loosely typed languages. And then there is the question of all those extensions that PHP relies on. Having PHP be a fully-fledged .NET language would require a lot of investment of time and effort with little potential payoff.

That said, there is already a dotnet extension available that lets you instantiate .NET objects and invoke methods on them (on Win32 platforms only so far).

On Smarty

SP: On Smarty and general separation of coding logic from content, do you feel that PHP has solutions that satisfy both PHP coders and Web designers?

AZ: Yes.

SP: What else would like, or are you planning to do with Smarty?

AZ: Make it more modular, more lightweight, so that only necessary pieces are loaded for each stage. Also I’d like to rework the API and the language to be more consistent and easier to use, but we have to be aware of the backward compatibility. The documentation could stand to be improved, of course, but I feel that this task is best left to the community of Smarty users.

SP: One of PHP’s disadvantages is the sheer number of different approaches to programming it encompasses, each backed with it’s own Open Source project (for example, Smarty vs. FastTemplate, if you’ll excuse the comparison). Do you feel the Pear library is ready to deliver a standard application framework for PHP? Is there an alternative project you feel should be endorsed by the PHP group?

AZ: First of all, PHP group is not in the business of endorsing projects or products.

Secondly, PEAR has made great strides in the last few months and with the 4.3.0 release of PHP it will finally be possible to transparently download and install whatever libraries you wish. But PEAR is not an application framework, rather it is a collection of components, some of them serving the same purpose, that can help you rapidly develop your applications.

Thirdly, “the sheer number of different approaches” seems to be an intrinsic property of open source development, and not necessarily a deleterious one.

SP: Apart from those you’re been involved in, which Open Source projects written in PHP have impressed you most?

AZ: Gallery – the online photo album software. Swwwing – a groupware tool made by a company in Denmark. JPGraph – a Graph drawing library. And then there is a web server written in PHP

Andrei and PHP-GTK

SP: How did you become principal developer of PHP-GTK? What was it like to work on this project, and how long did it take?

AZ: I guess I was the only one crazy enough to work on it. I started writing initial code in September of 2000 and the first release was made on March 1, 2001. Working on it was a lot of fun — figuring out whether PHP could handle bindings to such a toolkit and discovering and fixing some deficiencies in PHP along the way. I firmly believe that PHP is a better project because of PHP-GTK.

SP: PHP-GTK allows developers to write cross-platform, windowed applications for users to run right on their desktops. What can PHP-GTK do for developers experienced in building Websites in PHP?

AZ: The main thing it gives them is yet another way to control the backend system, unencumbered by the interface limitations imposed by HTML and the browser. Such features as drag-n-drop, grids, tree views, etc. are much more powerful than their in-browser counteparts and can be a boon to productivity.

SP: How does PHP-GTK even the playing field with Perl, C, Tk, etc.?

AZ: I have received email from people who say they are really glad to have found PHP-GTK, because now they can use their favorite language to build solutions on the client side, and that otherwise they would have had to resort to Java or something similar. To me it means that PHP-GTK is filling a much needed niche.

SP: How would you describe the current state PHP-GTK project? What would you like to see added?

AZ: Currently there is not much development being done, mainly bugfixes. I am waiting for my schedule to clear up a bit so that I can start on PHP-GTK 2 which will support Gtk+ 2 and rely on the new version of Zend Engine which fixes a lot of annoyances.

But the documentation is still a work in progress. About half the classes are documented, and it’s a bit slow going, probably because writing the documentation properly requires understanding of PHP, C, and Gtk+. Hopefully, there will be more people interested in helping with writing docs.

SP: Do you see any common ground between PHP-GTK and the .NET client side framework? Do you foresee PHP-GTK being the client side of a future PHP.NET language?

AZ: No, .NET already includes its own interface to GUI systems, called WinForms. On Windows, WinForms relies on GDI and other libraries, and on Linux it uses Gtk+ already (in the Mono project).

SP: With many thousands of experienced PHP Web developers out there, are there any plans to encourage them to make use of PHP-GTK? And will we see a PHP-GTK competition or Coding Contest (similar to this one for PHP) any time soon?

AZ: I would love for more people to know about PHP-GTK and to start using it, but I’m only one person and I would rather dedicate my available time to improving PHP-GTK technically. Besides I’m not a very good marketolog.

Open source projects have self-organizing communities, and hopefully the same thing is happening with this one. If you have any ideas on how to encourage developers to use PHP-GTK, let them be heard on the php-gtk-general mailing list.

Coding competition? By all means!

SP: You also developed PHP’s WDDX extension. Is there a common theme between this and PHP-GTK? Are there plans for a standard interface between PHP-GTK applications and PHP-enabled Websites?

AZ: No, the extensions don’t really have much in common, but I guess WDDX could be used as a data exchange protocol between client side PHP-GTK program and its counterpart on the server side. I would rather not tie PHP-GTK to any specific interface. The developers are already aware of a need for something like that (not just for PHP-GTK). SRM and sockets extension are probably partly due to this need.

SP: What use have you made of PHP-GTK yourself?

AZ: You mean other than speaking about it at the conferences? Oh, I’ve made a little app that manages my diary on advogato.org. That’s about it.

SP: If one of SitePoint’s members developed a “killer app”, is PHP-GTK capable of putting it on every desktop?

AZ: Not literally, which is one of the shortcomings. Currently, there is no easy way to distribute applications — for PHP-GTK apps there is nothing as easy as running setup.exe or installing an RPM package. Although I think Simon Wheeler has done some interesting work in this area.

That aside, I think PHP-GTK can provide a good platform for your “killer app”, especially with the next version that I have in mind.

Andrei’s Plans

SP: On your Website at http://gravitonic.com/, you quote John Burroughs:

“I still find each day too short for all the thoughts I want to think, all the walks I want to take, all the books I want to read, and all the friends I want to see.”

With everything you’re involved in, one question begs to be asked: how do you find the time?

AZ: With some difficulty, lately. Usually I try and make a schedule for the week, setting aside time for exercise, programming, reading, fun, housework, and other miscellanea. But by nature I am a very curious person and I frequently end up getting interested in and working on several things at once, although there are times when I am so far “in the zone” that I hardly notice the passage of time. Hence the quote.

SP: You’re the Research and Development director at ispi, a news publishing Application Service Provider (ASP). A few years ago ASPs were hailed as the successors to ISPs. How far do you think that’s become a reality, and what do you see as the future for ASPs?

AZ: ISPs are in no danger. A lot of people simply want connectivity. ASPs might have siphoned business customers away from ISPs, but that is a win-win situation: businesses get better services with ASPs, and ISPs can concentrate on what they do best.

The future for ASPs? Vertical markets and orientation towards local (city or neighborhood-level) communities.

SP: In general, what do you see coming on Internet, both in terms of technology and how businesses and individuals use it?

AZ: If I knew the answer to that, I’d be logging into my brokerage account and doing some trading, if you know what I mean. But seriously, I’d just like to quote Alan Kay, “The best way to predict the future is to invent it.”

SP: In the Zend Hall of Fame, you’re quoted as saying:

“I’m impressed by what mod_perl can do, and I’d like to make PHP jump through the same kind of hoop, so that it would be possible to write any sort of Apache handlers in straight PHP code,”

Are we likely to see this happen? What will this allow developers to do with PHP?

AZ: I have not heard of anyone working on this yet, but I think this would be a very interesting project. Especially with Apache 2 coming around. You would basically be able to write Apache modules in PHP: rewrite URIs, perform authentication based on any kind of scheme PHP supports, filter the input and output of the web server, manipulate headers, implement new protocols, and so on.

SP: What does the future hold for you? What are you working on now?

AZ: I am doing a bit more learning: C#, Scheme, compiler technology, speech and language processing, theories of investment and markets, history of western culture. My reading booklist is as long as my arm. And some time sooner than later I would also like to go back to school for a master’s degree in linguistics. And win the lottery.

I’d like to thank Andrei for taking the time to answer the SitePoint Community’s questions!

Kevin YankKevin Yank
View Author

Kevin Yank is an accomplished web developer, speaker, trainer and author of Build Your Own Database Driven Website Using PHP & MySQL and Co-Author of Simply JavaScript and Everything You Know About CSS is Wrong! Kevin loves to share his wealth of knowledge and it didn't stop at books, he's also the course instructor to 3 online courses in web development. Currently Kevin is the Director of Front End Engineering at Culture Amp.

Share this article
Read Next
Creating Fluid Typography with the CSS clamp() Function
Creating Fluid Typography with the CSS clamp() Function
Daine Mawer
Comparing Full Stack and Headless CMS Platforms
Comparing Full Stack and Headless CMS Platforms
Vultr
7 Easy Ways to Make a Magento 2 Website Faster
7 Easy Ways to Make a Magento 2 Website Faster
Konstantin Gerasimov
Powerful React Form Builders to Consider in 2024
Powerful React Form Builders to Consider in 2024
Femi Akinyemi
Quick Tip: How to Animate Text Gradients and Patterns in CSS
Quick Tip: How to Animate Text Gradients and Patterns in CSS
Ralph Mason
Sending Email Using Node.js
Sending Email Using Node.js
Craig Buckler
Creating a Navbar in React
Creating a Navbar in React
Vidura Senevirathne
A Complete Guide to CSS Logical Properties, with Cheat Sheet
A Complete Guide to CSS Logical Properties, with Cheat Sheet
Ralph Mason
Using JSON Web Tokens with Node.js
Using JSON Web Tokens with Node.js
Lakindu Hewawasam
How to Build a Simple Web Server with Node.js
How to Build a Simple Web Server with Node.js
Chameera Dulanga
Building a Digital Fortress: How to Strengthen DNS Against DDoS Attacks?
Building a Digital Fortress: How to Strengthen DNS Against DDoS Attacks?
Beloslava Petrova
Crafting Interactive Scatter Plots with Plotly
Crafting Interactive Scatter Plots with Plotly
Binara Prabhanga
GenAI: How to Reduce Cost with Prompt Compression Techniques
GenAI: How to Reduce Cost with Prompt Compression Techniques
Suvoraj Biswas
How to Use jQuery’s ajax() Function for Asynchronous HTTP Requests
How to Use jQuery’s ajax() Function for Asynchronous HTTP Requests
Aurelio De RosaMaria Antonietta Perna
Quick Tip: How to Align Column Rows with CSS Subgrid
Quick Tip: How to Align Column Rows with CSS Subgrid
Ralph Mason
15 Top Web Design Tools & Resources To Try in 2024
15 Top Web Design Tools & Resources To Try in 2024
SitePoint Sponsors
7 Simple Rules for Better Data Visualization
7 Simple Rules for Better Data Visualization
Mariia Merkulova
Cloudways Autonomous: Fully-Managed Scalable WordPress Hosting
Cloudways Autonomous: Fully-Managed Scalable WordPress Hosting
SitePoint Team
Best Programming Language for AI
Best Programming Language for AI
Lucero del Alba
Quick Tip: How to Add Gradient Effects and Patterns to Text
Quick Tip: How to Add Gradient Effects and Patterns to Text
Ralph Mason
Logging Made Easy: A Beginner’s Guide to Winston in Node.js
Logging Made Easy: A Beginner’s Guide to Winston in Node.js
Vultr
How to Optimize Website Content for Featured Snippets
How to Optimize Website Content for Featured Snippets
Dipen Visavadiya
Psychology and UX: Decoding the Science Behind User Clicks
Psychology and UX: Decoding the Science Behind User Clicks
Tanya Kumari
Build a Full-stack App with Node.js and htmx
Build a Full-stack App with Node.js and htmx
James Hibbard
Digital Transformation with AI: The Benefits and Challenges
Digital Transformation with AI: The Benefits and Challenges
Priyanka Prajapat
Quick Tip: Creating a Date Picker in React
Quick Tip: Creating a Date Picker in React
Dianne Pena
How to Create Interactive Animations Using React Spring
How to Create Interactive Animations Using React Spring
Yemi Ojedapo
10 Reasons to Love Google Docs
10 Reasons to Love Google Docs
Joshua KrausZain Zaidi
How to Use Magento 2 for International Ecommerce Success
How to Use Magento 2 for International Ecommerce Success
Mitul Patel
5 Exciting New JavaScript Features in 2024
5 Exciting New JavaScript Features in 2024
Olivia GibsonDarren Jones
Tools and Strategies for Efficient Web Project Management
Tools and Strategies for Efficient Web Project Management
Juliet Ofoegbu
Choosing the Best WordPress CRM Plugin for Your Business
Choosing the Best WordPress CRM Plugin for Your Business
Neve Wilkinson
ChatGPT Plugins for Marketing Success
ChatGPT Plugins for Marketing Success
Neil Jordan
Managing Static Files in Django: A Comprehensive Guide
Managing Static Files in Django: A Comprehensive Guide
Kabaki Antony
The Ultimate Guide to Choosing the Best React Website Builder
The Ultimate Guide to Choosing the Best React Website Builder
Dianne Pena
Exploring the Creative Power of CSS Filters and Blending
Exploring the Creative Power of CSS Filters and Blending
Joan Ayebola
How to Use WebSockets in Node.js to Create Real-time Apps
How to Use WebSockets in Node.js to Create Real-time Apps
Craig Buckler
Best Node.js Framework Choices for Modern App Development
Best Node.js Framework Choices for Modern App Development
Dianne Pena
SaaS Boilerplates: What They Are, And 10 of the Best
SaaS Boilerplates: What They Are, And 10 of the Best
Zain Zaidi
Understanding Cookies and Sessions in React
Understanding Cookies and Sessions in React
Blessing Ene Anyebe
Enhanced Internationalization (i18n) in Next.js 14
Enhanced Internationalization (i18n) in Next.js 14
Emmanuel Onyeyaforo
Essential React Native Performance Tips and Tricks
Essential React Native Performance Tips and Tricks
Shaik Mukthahar
How to Use Server-sent Events in Node.js
How to Use Server-sent Events in Node.js
Craig Buckler
Five Simple Ways to Boost a WooCommerce Site’s Performance
Five Simple Ways to Boost a WooCommerce Site’s Performance
Palash Ghosh
Elevate Your Online Store with Top WooCommerce Plugins
Elevate Your Online Store with Top WooCommerce Plugins
Dianne Pena
Unleash Your Website’s Potential: Top 5 SEO Tools of 2024
Unleash Your Website’s Potential: Top 5 SEO Tools of 2024
Dianne Pena
How to Build a Chat Interface using Gradio & Vultr Cloud GPU
How to Build a Chat Interface using Gradio & Vultr Cloud GPU
Vultr
Enhance Your React Apps with ShadCn Utilities and Components
Enhance Your React Apps with ShadCn Utilities and Components
David Jaja
10 Best Create React App Alternatives for Different Use Cases
10 Best Create React App Alternatives for Different Use Cases
Zain Zaidi
Control Lazy Load, Infinite Scroll and Animations in React
Control Lazy Load, Infinite Scroll and Animations in React
Blessing Ene Anyebe
Building a Research Assistant Tool with AI and JavaScript
Building a Research Assistant Tool with AI and JavaScript
Mahmud Adeleye
Understanding React useEffect
Understanding React useEffect
Dianne Pena
Web Design Trends to Watch in 2024
Web Design Trends to Watch in 2024
Juliet Ofoegbu
Building a 3D Card Flip Animation with CSS Houdini
Building a 3D Card Flip Animation with CSS Houdini
Fred Zugs
How to Use ChatGPT in an Unavailable Country
How to Use ChatGPT in an Unavailable Country
Dianne Pena
An Introduction to Node.js Multithreading
An Introduction to Node.js Multithreading
Craig Buckler
How to Boost WordPress Security and Protect Your SEO Ranking
How to Boost WordPress Security and Protect Your SEO Ranking
Jaya Iyer
Understanding How ChatGPT Maintains Context
Understanding How ChatGPT Maintains Context
Dianne Pena
Building Interactive Data Visualizations with D3.js and React
Building Interactive Data Visualizations with D3.js and React
Oluwabusayo Jacobs
JavaScript vs Python: Which One Should You Learn First?
JavaScript vs Python: Which One Should You Learn First?
Olivia GibsonDarren Jones
13 Best Books, Courses and Communities for Learning React
13 Best Books, Courses and Communities for Learning React
Zain Zaidi
5 jQuery.each() Function Examples
5 jQuery.each() Function Examples
Florian RapplJames Hibbard
Implementing User Authentication in React Apps with Appwrite
Implementing User Authentication in React Apps with Appwrite
Yemi Ojedapo
AI-Powered Search Engine With Milvus Vector Database on Vultr
AI-Powered Search Engine With Milvus Vector Database on Vultr
Vultr
Understanding Signals in Django
Understanding Signals in Django
Kabaki Antony
Why React Icons May Be the Only Icon Library You Need
Why React Icons May Be the Only Icon Library You Need
Zain Zaidi
View Transitions in Astro
View Transitions in Astro
Tamas Piros
Getting Started with Content Collections in Astro
Getting Started with Content Collections in Astro
Tamas Piros
What Does the Java Virtual Machine Do All Day?
What Does the Java Virtual Machine Do All Day?
Peter Kessler
Become a Freelance Web Developer on Fiverr: Ultimate Guide
Become a Freelance Web Developer on Fiverr: Ultimate Guide
Mayank Singh
Layouts in Astro
Layouts in Astro
Tamas Piros
.NET 8: Blazor Render Modes Explained
.NET 8: Blazor Render Modes Explained
Peter De Tender
Mastering Node CSV
Mastering Node CSV
Dianne Pena
A Beginner’s Guide to SvelteKit
A Beginner’s Guide to SvelteKit
Erik KückelheimSimon Holthausen
Brighten Up Your Astro Site with KwesForms and Rive
Brighten Up Your Astro Site with KwesForms and Rive
Paul Scanlon
Which Programming Language Should I Learn First in 2024?
Which Programming Language Should I Learn First in 2024?
Joel Falconer
Managing PHP Versions with Laravel Herd
Managing PHP Versions with Laravel Herd
Dianne Pena
Accelerating the Cloud: The Final Steps
Accelerating the Cloud: The Final Steps
Dave Neary
An Alphebetized List of MIME Types
An Alphebetized List of MIME Types
Dianne Pena
The Best PHP Frameworks for 2024
The Best PHP Frameworks for 2024
Claudio Ribeiro
11 Best WordPress Themes for Developers & Designers in 2024
11 Best WordPress Themes for Developers & Designers in 2024
SitePoint Sponsors
Top 10 Best WordPress AI Plugins of 2024
Top 10 Best WordPress AI Plugins of 2024
Dianne Pena
20+ Tools for Node.js Development in 2024
20+ Tools for Node.js Development in 2024
Dianne Pena
The Best Figma Plugins to Enhance Your Design Workflow in 2024
The Best Figma Plugins to Enhance Your Design Workflow in 2024
Dianne Pena
Harnessing the Power of Zenserp for Advanced Search Engine Parsing
Harnessing the Power of Zenserp for Advanced Search Engine Parsing
Christopher Collins
Build Your Own AI Tools in Python Using the OpenAI API
Build Your Own AI Tools in Python Using the OpenAI API
Zain Zaidi
The Best React Chart Libraries for Data Visualization in 2024
The Best React Chart Libraries for Data Visualization in 2024
Dianne Pena
7 Free AI Logo Generators to Get Started
7 Free AI Logo Generators to Get Started
Zain Zaidi
Turn Your Vue App into an Offline-ready Progressive Web App
Turn Your Vue App into an Offline-ready Progressive Web App
Imran Alam
Clean Architecture: Theming with Tailwind and CSS Variables
Clean Architecture: Theming with Tailwind and CSS Variables
Emmanuel Onyeyaforo
How to Analyze Large Text Datasets with LangChain and Python
How to Analyze Large Text Datasets with LangChain and Python
Matt Nikonorov
6 Techniques for Conditional Rendering in React, with Examples
6 Techniques for Conditional Rendering in React, with Examples
Yemi Ojedapo
Introducing STRICH: Barcode Scanning for Web Apps
Introducing STRICH: Barcode Scanning for Web Apps
Alex Suzuki
Using Nodemon and Watch in Node.js for Live Restarts
Using Nodemon and Watch in Node.js for Live Restarts
Craig Buckler
Task Automation and Debugging with AI-Powered Tools
Task Automation and Debugging with AI-Powered Tools
Timi Omoyeni
Quick Tip: Understanding React Tooltip
Quick Tip: Understanding React Tooltip
Dianne Pena
12 Outstanding AI Tools that Enhance Efficiency & Productivity
12 Outstanding AI Tools that Enhance Efficiency & Productivity
Ilija Sekulov
React Performance Optimization
React Performance Optimization
Blessing Ene Anyebe
Introducing Chatbots and Large Language Models (LLMs)
Introducing Chatbots and Large Language Models (LLMs)
Timi Omoyeni
Migrate to Ampere on OCI with Heterogeneous Kubernetes Clusters
Migrate to Ampere on OCI with Heterogeneous Kubernetes Clusters
Ampere Computing
Get the freshest news and resources for developers, designers and digital creators in your inbox each week