gnope php gtk gui gnope.org  

the run.phpw file

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
onlyican



Joined: 19 Sep 2006
Posts: 3
Location: UK

PostPosted: Wed Sep 20, 2006 1:59 am    Post subject: the run.phpw file Reply with quote

Hey

I was tinking about the fact that theres no decent compilers at the moment for GTK 2

and the fact that if I want to send this app to someone i have to send them the php file, which with a simple notepad, they can view my code

So I was tinking

Is it possible to run the apps from a Web Server

I uploaded the files to my Web Server

I changed the run.phpw file to read
include('http://www.example.com/gtk/main.php');

but I got a parse error on that code
This is because the Web Server is not supporting GTK
so Line 6 (Where the error is) reads

function login(GtkWindow $wnd, GtkEntry $txtUsername, GtkEntry $txtPassword){

Which is correct for GTK, but not for Web

so does this mean, if I get php GTK installed on the server, then the user does not need GTK installed on there machine to run the scripts

If true, then How would they run this, as if they aint got gtk installed, then how would they run the phpw file

If this aint true, then why am I getting a parse error if I use the one on the web, but the same copy on my machine works fine

Anyone have any suggestion comments ect please
Type below
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Wed Sep 20, 2006 12:08 pm    Post subject: Reply with quote

PHP-Gtk is for the desktop. It does not run on a server. Further, your server might have php4, while php-gtk2 is php5 and so your code gives a parse error. Again: You cannot run a php-gtk application on a webserver.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.