Yeah, use Indy:
Also make sure that in your PHP file you don't just do like $yourcount - $_GET['ID'], because if some guy decides to visit your page with www.mysite.com/users.php?I
Main Topics
Browse All TopicsI am using a php script to determine the number of users using a program which i have created.
When the program is started or ended, a php script, hosted in a remote location, is accessed.
This increases or decreases the number of users, stored in a remote file.
How can i access the php script non-visibly,
I have tried the code below, but SW_HIDE seems to have no effect on the visibility of the browser window.
I look forward to a quick reply.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Yeah, use Indy:
Also make sure that in your PHP file you don't just do like $yourcount - $_GET['ID'], because if some guy decides to visit your page with www.mysite.com/users.php?I
dougaug, your method does not open the specified URL, only the home page. I have tried to solve this but so far it hasnt worked :s
Freddy1990, i am aware of internetopenurl and have tried to implement it but have been so far unsuccessful.
I am still undecided as to which method to use but would appreciate a complete solution to one please.
Thank you for your reply EddieShipman, however, as stated previously:
the small file size of the final application is critical to its success which is why i cannot use TWebBrowser, or Indy components.
dougaug, i would use your code, but i need to know how to kill the iexplore.exe process after visiting the webpage for it to be efficient enough.
OK, then try this, the compiled app will be smaller than having any component on it.
This is based on code from Mike Shkolnik avail here: http://www.scalabium.com/f
i am using this:
CreateProcess(PChar(Progra
PAnsiChar(' '+site+'?UPVR='+SteamUsern
NORMAL_PRIORITY_CLASS, nil, nil, StartupInfo, ProcessInformation);
sleep(3000);
TerminateProcess(processIn
TerminateThread(processInf
CloseHandle(processInforma
The way you are killing Internet Explorer works, but it's not recommended as remarked in Win32 Developers Refence:
The TerminateProcess function is used to unconditionally cause a process to exit. Use it only in extreme circumstances. The state of global data maintained by dynamic-link libraries (DLLs) may be compromised if TerminateProcess is used rather than ExitProcess.
Another way to kill Internet Explorer could be this:
var
h: THandle;
begin
h := FindWindow('IEFrame', InternetExplorerTitle **);
SendMessage(h, WM_SYSCOMMAND, SC_CLOSE, 0);
end;
** InternetExplorerTitle - title that would appear in Internet Explorer Window if the window was visible when you opened your site
Example:
h := FindWindow('IEFrame', '[Delphi] Visit URL hidden - Microsoft Internet Explorer'); //the Internet Explorer title when I enter this topic
Why are you going to all the effort of launching IE to post a single digit to a PHP script? I posted code that
makes things work for you and you don't have to worry about launching or killing any processes.
A few more bytes in your program by using the WinInet unit isn't going to kill your application. In fact
I would bet that it makes your app smaller than the other code posted here.
You can find the window using the function posted in the following link:
http://www.experts-exchang
You can use it, like this:
var
sTitleFound: string;
h := FindWindowWildcard('[Delph
If you want to ensure that the found window is an Internet Explorer window, you must do this:
var
sTitleFound: string;
begin
if FindWindowWildcard('[Delph
h := FindWindow('IEFrame', sTitleFound);
end;
Business Accounts
Answer for Membership
by: psaltPosted on 2009-08-12 at 01:52:15ID: 25076782
Instead of opening a new application you should try to handle it within your own code. Try TWebBrowser or even better the Indy HTTP Component (http://www.indyproject.or g/Sockets/ index.DE.a spx)