![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| My menu function [new code -revised] | amatuer_lee_3 | Shell Programming and Scripting | 3 | 05-18-2008 08:05 AM |
| kills command | shwe | UNIX for Dummies Questions & Answers | 1 | 05-13-2008 12:03 PM |
| how to write a wrapper c code to return uid using getuid() function | pwd | High Level Programming | 4 | 05-13-2008 11:01 AM |
| Linux kills windows :( | woofie | SuSE | 6 | 05-16-2005 09:19 PM |
| Crash Kills Printer Device | ckurt | UNIX for Dummies Questions & Answers | 2 | 02-08-2002 03:10 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
PHP function kills my code?
So I'm making a page for one of my web sites that scans the visitors ports (just a few specific ones, not ALL) and tells them if they have any open. Now I made up the code and it worked great. Now instead of having the same chunk of code all over my script, I tried to make my own subroutine so I could just call it from all over. But since I did that, it now gives me an error of type 0, which means it couldn't even try to connect to the host, before it got an error. I can't figure it out at all?
Here's my code PHP Code:
PHP Code:
|
|
||||
|
Quote:
|
|
|||||
|
Sorry, editing the post. Well, all I can say is that the function works on my pc as written. As I said, I am a beginer at PHP too. I will add though that the code you posted does not work for me. I get the same error as you mentioned "Closed 0"
Last edited by google; 12-11-2003 at 11:14 PM.. |
|
||||
|
I tried that and it had no effect. I don't think my problem is calling my function, the problem is somehow that the script can't great a new socket from within the function. I do already get a result from the function, its just an error code from the socket. And I thought you didn't NEED a return if you didn't need the result of the function.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|