Helping ordinary people create extraordinary websites!

Go Back   Web Development Forum > Website Programming > Server-Side Scripting
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-06-2008, 09:00 AM
Ducani's Avatar
Administrator
 
Join Date: Sep 2004
Posts: 220
Default Tutorial Discussion - Port Scanning and Service Status Checking in PHP

Use this thread to discuss all questions related to the tutorial
Port Scanning and Service Status Checking in PHP
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-22-2009, 04:07 AM
Junior Member
 
Join Date: Jan 2009
Posts: 1
Default

Hello,

First of all, this post is very useful and interesting.
I've been playing with your script and I think it can be improved a little changing the code of the table in order to include a foreach loop. If you want to put more services is not necessary to modify the table, only add a new item in the $svcs array.

The code would read:

<table>
<tr>
<th>Service</th>
<th>Status</th>
</tr>
<?php foreach($report as $service=>$status) : ?>
<tr>
<td><?=$service?></td>
<td><?=$status ? "Online" : "Offline"; ?></td>
</tr>
<?php endforeach;?>
</table>



Bye
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-24-2009, 10:43 AM
Junior Member
 
Join Date: Feb 2009
Posts: 1
Default

Great tutorial. I just added it to tutlist.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-07-2009, 12:15 AM
Junior Member
 
Join Date: Mar 2009
Posts: 2
Default

Good Post, Thanks for sharing
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-11-2009, 04:53 AM
Junior Member
 
Join Date: Mar 2009
Posts: 20
Default overseas

What we're looking for are ideas, not Pulitzer Prize writers. Ideas are what fuel our magazine and our website. Now we want to expand that concept into eBooks for expats. You don't have to be a professional writer to submit a report that provides important information - - information that you yourself have learned by having been there and done it. That is exactly what our readers are seeking, facts about living overseas from people who've done it. Yes, you can make money from a good report or two... possibly a lot.
For more information visit:
FRUITSDRINKS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Thread Tools
Display Modes

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

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

All times are GMT -5. The time now is 09:29 AM.


Website Design by Ducani Media Group
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.