 |
| View previous topic :: View next topic |
| Author |
Message |
onlyican
Joined: 19 Sep 2006 Posts: 3 Location: UK
|
Posted: Wed Sep 20, 2006 1:59 am Post subject: the run.phpw file |
|
|
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
|
Posted: Wed Sep 20, 2006 12:08 pm Post subject: |
|
|
| 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 |
|
 |
|
|
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
|
|
 |