Search found 8 matches

by mikeincousa
Mon Sep 16, 2013 7:02 pm
Forum: PHP coding => General
Topic: Newbie | Attempting connecting a port to a listener
Replies: 3
Views: 1271

Re: Newbie | Attempting connecting a port to a listener

So far I've been relying on the “ ...or die” statement in commands.

Which code tracer / debugger do you suggest for a newbie?

Where should I start for a more sophisticate track?

http://php.net/manual/en/ref.errorfunc.php

I'd like to to trace script progress line by line.
by mikeincousa
Mon Sep 09, 2013 4:05 pm
Forum: PHP coding => General
Topic: Very Basic php
Replies: 1
Views: 736

Very Basic php

I am trying to get a handle on the basics of port I/O. The first script on this page seemed like an easy start. Simply open an close a port using php seemed like an easy first step, and that's what I expected from this srcipt. http://php.net/manual/en/function.fsockopen.php (substituting my fixed IP...
by mikeincousa
Sun Sep 08, 2013 1:59 pm
Forum: PHP coding => General
Topic: Newbie | Attempting connecting a port to a listener
Replies: 3
Views: 1271

Newbie | Attempting connecting a port to a listener

First I tested the connection. Local Client $ nc [ip address] 6023 Hosted server nc -l 6023 #Text flows from one to the other as expected Next, a tutorial and debugging led me to this script: ************* <? $host = "0.0.0.0" ; $port = 6023; set_time_limit(0); $socket = socket_create(AF_INET, SOCK_...
by mikeincousa
Wed Jul 10, 2013 9:41 am
Forum: PHP coding => General
Topic: Ping Script | Newbie Confusion
Replies: 9
Views: 2440

Re: Ping Script | Newbie Confusion

Thanks again for your reply. Sorry for my delay in responding to your question. "Life" trigged a subroutine that branched me away :). === I did not use a script. After connecting through SSH and gaining access to the Bluehost command line, I recall now all I needed was #traceroute example.com. That ...
by mikeincousa
Thu Jul 04, 2013 3:47 pm
Forum: PHP coding => General
Topic: Ping Script | Newbie Confusion
Replies: 9
Views: 2440

Re: Ping Script | Newbie Confusion

Thanks for your inputs. Bluehost support helped me find my way to their command line via the SSH connection. Contrary to their earlier statments "ping" is not allowed, but "traceroute" is. *********************************** improvh9@improve-my-english.org [~]# ping example.com ping: icmp open socke...
by mikeincousa
Tue Jul 02, 2013 3:16 pm
Forum: PHP coding => General
Topic: Ping Script | Newbie Confusion
Replies: 9
Views: 2440

Re: Ping Script | Newbie Confusion

Am I still missing something? _ I saved the file as *.php but it seems to still have some problems. [02-Jul-2013 16:14:52] PHP Parse error: syntax error, unexpected '>' in /home2/improvh9/public_html/ping.johnj.php on line 21 ****************** <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http...
by mikeincousa
Thu Jun 27, 2013 5:27 pm
Forum: PHP coding => General
Topic: Ping Script | Newbie Confusion
Replies: 9
Views: 2440

Re: Ping Script | Newbie Confusion

I think you missed the "not" in my original post. Bluehost says they have NOT locked out system or like drop to shell commands. But if there is way to test that claim, that test might be worth a trial. ============================== I cut and pasted the revised version. The results are at http://imp...
by mikeincousa
Wed Jun 26, 2013 8:57 pm
Forum: PHP coding => General
Topic: Ping Script | Newbie Confusion
Replies: 9
Views: 2440

Ping Script | Newbie Confusion

I'm a brand new to php, and very rusty with programming techniques (forty years rusty roughly). I took a script from Beginnng Php and MySQL From Novice to Professional, pg 348, Pinging a server. I embeded it an HTML page and set the permissions to 777. I have also tried to run it as a script without...