Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

Does PHP support these ? Help me please

General discussions related to php

Moderators: macek, egami, gesf

Re: Does PHP support these ? Help me please

Postby swirlee » Tue Jul 08, 2003 8:00 pm

Zhiyong Ma wrote:(1) Does PHP support some kind of dynamic refresh of web pages to remind the administrator some data from mysql has been changed and what their new value is . One simplest example maybe just like a forum page automaticlly tells its online user how many people is online? Of couse, this can be fulfilled by just refresh the pages by hand, but it is not recommended.


It's hard to know exactly what you're asking for here. If you want the server to somehow be able to cause the client browser to refresh at will, then neither PHP or JSP can do this. This is a 'problem' specific to the HTTP protocol. You could come up with a workaround, perhaps, via a client-side Java applet, but otherwise you'll have to 'fake' it via META refresh in the HTML or JavaScript code that causes the browser window to refresh periodically. I could get into the latter a great deal, but I'll save it for now.

Zhiyong Ma wrote:(2) Does PHP or apache have enough security technology to ensure remote control through a web server?


Yes. If you have a need for truly secure site (if, for example, you need to transfer sensitive data like credit card numbers or SSNs), you'll want to look into SSL (Secure Sockets Layer) for encryption between the client and the server. Try Apache-SSL or mod_ssl for starters. For the record, Apache is usually considered, with or without SSL, to have security far superior to Microsoft's ISS, though in both cases it's of tantamount importance to keep your security patches up to date.

I'm not an expert in PHP or JSP security, but I do know that the two biggest security factors on either (or any, really) platform are script integrity and patches. Script integrity means, essentially, that your scripts are written from day 1 with security in mind. This cannot be explained in a terse manner, so I recommend you do lots and lots of reading on secure scripting. Patches, as above, are essential to any enviroment that requires any security. Most of these technologies have associated newsletters, and I suggest that you subscribe to them so that you can have up-to-the-minute knowledge of new security patches that have been issued. I consider PHP to be secure, and I recommend it. You are, of course, on a PHP forum.

Zhiyong Ma wrote:(3) Does PHP script have some way to communicate with my main control process which is running in the server? The source code for my main control process will be in C language. One solution that I found is to use pipe file. But I am not sure. And are there other ways?
Thank you.


Again, I'm not an expert in this area, so I'll leave it up to another poster to answer more completely, but I assure you that PHP ships with support for many libraries and APIs as well as standard program execution functions, so I don't think you'll find it at all lacking in that department. I recommend that you browse the function reference to get a better idea of PHP's process interoperability support.
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Postby bezmond » Tue Jul 08, 2003 11:45 pm

3) look up http://www.php.net/exec that'll give you some leads to what your after there :)

Andrew
User avatar
bezmond
Moderator
Moderator
 
Posts: 312
Joined: Sat Apr 05, 2003 4:33 am
Location: Mansfield, UK

Re: Does PHP support these ? Help me please

Postby WiZARD » Wed Jul 09, 2003 12:37 am

Zhiyong Ma wrote:(3) Does PHP script have some way to communicate with my main control process which is running in the server? The source code for my main control process will be in C language. One solution that I found is to use pipe file. But I am not sure. And are there other ways?

More admin's use PHP like base for manage big server's and LAN/Network and then need fast and easy script used PHP....
Apache+SSL_module+PHP+MySQL(PostgreSQL) very good solution for internet/intranet/extranet
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Postby frogrocker » Wed Jul 09, 2003 6:39 am

an obvious advantage of PHP/MySql is that it is seiously easy to install....

even I managed it!
User avatar
frogrocker
New php-forum User
New php-forum User
 
Posts: 98
Joined: Mon Jul 07, 2003 10:30 pm
Location: Manchester


Return to PHP General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.