[PHP] ICMP Ping

2001-08-13 Thread James Crowley
Hi, Is there any way to send an ICMP ping (or packet) from PHP? (without using exec(ping)!!) Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk Email - [EMAIL PROTECTED] ICQ# - 60612011 Fax - +44(0)8707052859 == -- PHP General

[PHP] ICMP Ping

2001-08-07 Thread James Crowley
Hi, I'm trying to write a port scanner similar to http://scan.sygatetech.com to expose security holes in a PC or server. However, I can't figure out how to perform an ICMP ping. Does anyone know how? Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk

[PHP] Traceroute without traceroute command!

2001-08-07 Thread James Crowley
Hi, I would like to perform a traceroute with PHP. However, my ISP has disabled the traceroute command normally available in /usr/sbin/traceroute. Is there any other way? Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk Email - [EMAIL PROTECTED] ICQ# -

[PHP] fread (with fsockopen) returns nothing for CGI file

2001-08-06 Thread James Crowley
Hi, I am using fsockopen and fread to get the contents of a file on a server. Everything seems to work fine, except for one url. Opening http://ad-adex3.flycast.com/server/img/3327812_VBWeb/11196014_Restofsite /999 Works fine, however,

[PHP] Re: a good PHP editor

2001-07-20 Thread James Crowley
I would recommend Developers Pad (http://www.developerspad.com/). It's free and open source. OK, I am the author, but I've had lots of positive comments about it :-) Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk Email - [EMAIL PROTECTED] ICQ# - 60612011 Fax

[PHP] What's wrong with this regular expression?

2001-07-20 Thread James Crowley
Hi, Could someone please point out where I've gone wrong with this regular expression...? $body=a href=\http://www.fred.com\;my test/a or a href=\/show.asp?id=333\here/a; $body=eregi_replace (a href=\([^\\[]*)\([^\\[]*)/a,[url=\\\1\]\\2[/url],$body); #$body should now be

[PHP] Large Text Fields from MS SQL DB Truncated

2001-07-02 Thread James Crowley
Hi, I've hit a little problem... When retreiving large TEXT data (equivilant to MySQL's MEDIUMTEXT) from a MS SQL database using PHP, the data becomes truncated after 4,095 bytes. I have tried connecting both with ODBC, and the MsSQL php functions, but to no avail. It works fine in ASP

[PHP] wierd array problem using mysql_fetch_array and mssql_fetch_array

2001-06-29 Thread James Crowley
Hi, I've been having some very wierd problems using arrays and the database functions for mysql_fetch_array and mssql_fetch_array. (Running on Windows 2000). Please see the comments in the code below. #connect to the ms sql db #(the problem also occurs when using a mysql db) $connsrc =

FW: [PHP] PHP Editor

2001-05-13 Thread James Crowley
You might also want to try a freeware opens ource editor I am developing, called Developers Pad http://www.developerspad.com/ Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk Email - [EMAIL PROTECTED] ICQ# - 60612011 ==

[PHP] Multiple Result sets

2001-05-07 Thread James Crowley
Hi, I've written a recursive stored procedure in MS SQL, which returns a number of result sets (ie 3 different recordsets rather than the usual 1). How can I access the other result sets in php? Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk Email -

[PHP] Recursive SQL Queries: Web Directory Categories

2001-05-07 Thread James Crowley
Hi, I have a web directory which allows sub-categories to an unlimited level. This is done with a categories table, and assigning a parentid to each... For example ID ParentIDName 10 Products 21 Sub-Category of Products (Level 1) 31 Another

[PHP] php editors

2001-03-30 Thread James Crowley
You might also be interested in Developers Pad http://www.developerspad.com/ It's free and open source too ;-) Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk Email - [EMAIL PROTECTED] ICQ# - 60612011 == -Original Message- From:

[PHP] Good Free PHP Editor - And it's not Edit Plus!

2001-03-18 Thread James Crowley
Dear All, Given the recent discussion regarding a PHP editor, I thought you would like to know that VB Web Development have finally released Developers Pad BETA 2. This program is open source, and free. It's features include syntax highlighting (fully customizable), powerful project

[PHP] MS SQL and Date Fields

2001-02-15 Thread James Crowley
Hi, I have a problem (!). I am using an MS SQL db, which returns a date field. How can I format this using the date() function? ie how can I convert the date to a Unix timestamp? I know you can use the mktime() function, but in which case, how can I get the day/month/year etc from the ms

[PHP] Including Virtual Paths

2001-02-03 Thread James Crowley
Hi, When using ASP, I frequently reference virtual path such as !--#include virtual="/bin/header.asp"-- However, the PHP include() function doesn't seem to support this... What can I do? I don't want to have to change the reference to reflect its position in the site by