Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 18-11-2003, 01:06 PM
Novice Webmaster
 
Join Date: Feb 2003
Location: JB
Posts: 26
Rep Power: 0
koisempoi is on a distinguished road
Send a message via Yahoo to koisempoi
Calling all php hustler.

Aku baru hendak belajar php ni kerana projek akhir aku wajib menggunakan php.jadi projek aku ialah kawalan cyber cafe berasaskan web. soalan aku ialah :-

1) Boleh tak kita kontrol client computer secara online menggunakan php ?

2) Susah ke nak membuatnya ?

Harap ada hustler yang sudi menolong.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 18-11-2003, 01:38 PM
Senior Webmaster
 
Join Date: Oct 2001
Location: Melbourne, AU
Posts: 456
Rep Power: 95
sufyan is on a distinguished road
Hi there,

What you're doing is possible (to an extent), however, it'll be extereme hard to develop and implement even for an experience php programmer. Although it is possible, you will still need to use other languages such as C++, C# to control computer processes.

This project would be much easier if programmed in pure C++ or C# where you could just create a program to control the system and communicate with the host.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 18-11-2003, 02:57 PM
lcf's Avatar
lcf lcf is offline
Pro-Blogger
 
Join Date: Feb 2003
Location: Kluang, Johor
Posts: 2,376
Rep Power: 116
lcf will become famous soon enough
Send a message via ICQ to lcf Send a message via MSN to lcf Send a message via Yahoo to lcf
Sad to say that but PHP is not the suitable language for your project purpose.
__________________
LiewCF | Malaysia Bloggers Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 18-11-2003, 03:08 PM
mysticmind's Avatar
Super Moderator
 
Join Date: Jun 2001
Location: Mystic Kingdoms
Posts: 2,633
Rep Power: 142
mysticmind will become famous soon enough mysticmind will become famous soon enough
Send a message via Yahoo to mysticmind
php is web pograming.. not C++ programing..
but SQL database ada laah kaitan rasanya
__________________
Personal's Blog! - Malaysian Artist!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 18-11-2003, 03:40 PM
zaimlah's Avatar
Inspired Webmaster
 
Join Date: Jul 2001
Location: ttdi
Posts: 129
Rep Power: 91
zaimlah is on a distinguished road
boleh tak kasi contoh apa jenis control yg diperlukan? eg: login/logout, shutdown the pc, end processes, etc...

kalau terpaksa guna PHP, kata sufyan tu betul, mesti guna sedikit c/c++/c#...

ataupun... PHP ada built-in function untuk access Win32 API: http://www.php.net/manual/en/ref.w32api.php http://wobster.mynnga.de/w32api.txt
__________________
blog:zaim_bakar_blog | biz:box
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 18-11-2003, 03:56 PM
lcf's Avatar
lcf lcf is offline
Pro-Blogger
 
Join Date: Feb 2003
Location: Kluang, Johor
Posts: 2,376
Rep Power: 116
lcf will become famous soon enough
Send a message via ICQ to lcf Send a message via MSN to lcf Send a message via Yahoo to lcf
can run any windows api? It will cause security questions, rite?
__________________
LiewCF | Malaysia Bloggers Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 18-11-2003, 04:01 PM
white_neck's Avatar
Senior Webmaster
 
Join Date: Jan 2003
Location: dreamland
Posts: 240
Rep Power: 74
white_neck is on a distinguished road
Send a message via Yahoo to white_neck
ermm... dulu aku pernah try nak control client pakai php..
tp tak jadik...

so baik pakai vb untuk develop application tuh...
pastu jadi kan application boleh run kat web based...
itu solution yg aku baca... tp tak try pun...
__________________
^_^ <== stay happy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 19-11-2003, 02:02 PM
zaimlah's Avatar
Inspired Webmaster
 
Join Date: Jul 2001
Location: ttdi
Posts: 129
Rep Power: 91
zaimlah is on a distinguished road
lcf, if u're concerned about client security (eg: the website visitors) -- not really an issue, because the windows API's are run server side, right?

but yes, there could be security issues on the server side, its just based on how good the script is i think.

anyway the Win32 API functionality in PHP is declared as experimental... so use at own risk
__________________
blog:zaim_bakar_blog | biz:box
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 19-11-2003, 02:29 PM
Novice Webmaster
 
Join Date: Feb 2003
Location: JB
Posts: 26
Rep Power: 0
koisempoi is on a distinguished road
Send a message via Yahoo to koisempoi
Saya ada membuat pengawalan client cyber cafe menggunakan visual basic.dengan vb kita boleh hide desktop komputer client and i want to translate the funtion in php language.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 19-11-2003, 03:11 PM
Senior Webmaster
 
Join Date: Oct 2001
Location: Melbourne, AU
Posts: 456
Rep Power: 95
sufyan is on a distinguished road
Ic, since you have that, it would probably be easier to do something like this:

Keep the client and modify it slightly to record the time the client has been active (how much time the customer has used). Once you have that, create the routine in VB that transmit that data to the host (db). There are 2 ways you can do that:

1) connect directly to the database or
2) if you're using VB.net, you can create a webservice to query a webpage that maybe on the host (the webpage maybe in php which interacts with the database).

Secondly, you can use a web based admin client for the host to manage all the client pc(s).

To do that, you might need some knowledge in socket programming. But the general idea is like this:

Modify you VB client to make it listen to a certain port, for instance port 4444 or something. Then with php, you can create functions to open up that port on that pc, using the clients ip. Once the php fuction has opened the port, it can then tunnel data from the webbased admin panel (php) to the pc client (vb). Once the vb client gets the data/message, it will trigger an action.

For example, if the message 'reboot' is sent from the host to one of the clients, the vb app can respond to that by rebooting.

This project would demonstrate:
- Usage of VB
- Usage of PHP
- Socket programming concept (basic)

I don't recommend this solution for production purposes, becauses of issues such as security. But, it sould be fine for an academic assignment.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 19-11-2003, 03:30 PM
yjonkawaii's Avatar
Inspired Webmaster
 
Join Date: Oct 2001
Location: kay el city
Posts: 126
Rep Power: 88
yjonkawaii is on a distinguished road
Send a message via ICQ to yjonkawaii
kalau 100% programming dgan php aje... tu memang xbleh. buatler projek lain
__________________
_<BR><CENTER><IMG src="http://avatar.peachjon.com" alt="My Avatar"><A HREF="http://www.peachjon.com/wp"><IMG SRC="http://www.peachjon.com/mybanner.gif" BORDER="0" ALT="visit wAntAn productions, click here!"></A><BR><FONT FACE="arial, tahoma, helvetica" SIZE="1">- = l E E w Y E j O N = -</FONT></CENTER>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 20-11-2003, 07:15 PM
hymns's Avatar
Senior Webmaster
 
Join Date: Nov 2001
Location: Johor
Posts: 768
Rep Power: 100
hymns is on a distinguished road
Send a message via ICQ to hymns Send a message via Yahoo to hymns
sape kata tak leh? boleh la geng! for client just set timeout 2 sec or less (pc power skit). bantu dgn hidewindow (winfiles.com) utk hide client. kalau x nak trafic tinggi guna internal network utk server. kalau x guna web hosting tapi bandwidth byk lers. utk client web server x yah guna. just standalone php. ok? more tips? tunggu....
__________________
I hate when:

vBulletin Message:
Sorry! The administrator has specified that users can only post one message every 60 seconds
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 20-11-2003, 08:04 PM
Senior Webmaster
 
Join Date: Oct 2001
Location: Melbourne, AU
Posts: 456
Rep Power: 95
sufyan is on a distinguished road
Quote:
Originally posted by hymns
for client just set timeout 2 sec or less (pc power skit). bantu dgn hidewindow (winfiles.com) utk hide client.
Hi there... interesting idea... could u elaborate more on that please...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 20-11-2003, 08:13 PM
hymns's Avatar
Senior Webmaster
 
Join Date: Nov 2001
Location: Johor
Posts: 768
Rep Power: 100
hymns is on a distinguished road
Send a message via ICQ to hymns Send a message via Yahoo to hymns
PHP Code:
 /* Set time limit of php Script to infinite */
 
set_time_limit(0);

 
/* Include main files */
 
include('inc/config.inc.php');
 include(
'languages/'.$_CONFIG["lang"].'.php');
 include(
'functions/strings.php');
 include(
'class/server.php');
 
 
/* Create a new Server class instance */ 
 
$server = new server;

 
/* The firts gtk::timeout wille read the socket */ 
 
$server->timeout_add[1] = gtk::timeout_add('20', array(&$server,"read")); 
test sample ni... add le function kowang sendiri...
__________________
I hate when:

vBulletin Message:
Sorry! The administrator has specified that users can only post one message every 60 seconds

Last edited by hymns; 20-11-2003 at 08:32 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 20-11-2003, 08:30 PM
Senior Webmaster
 
Join Date: Oct 2001
Location: Melbourne, AU
Posts: 456
Rep Power: 95
sufyan is on a distinguished road
Hi,
That still doesn't really explain your idea.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
calling all expertise... jeng3 geniuz E-Commerce 5 24-08-2006 09:34 AM
tulung..tulun.g...help PHP hustler eina_227 Website Programming 9 07-12-2004 08:51 AM
Calling all Graphic Designer soekre Mamak Stall 0 22-01-2004 09:49 PM
International Calling Card Distributors Wanted billb News and Announcements 0 04-11-2003 10:20 PM
Calling All Web Developers!! imx Job Vacancies 0 19-01-2003 02:42 AM