[PHP] Recommended package for online editing of HTML files

2003-03-18 Thread Brad Hubbard
Can anyone recommend a package suitable for editing HTML files on a remote server through a PHP interface? Basically, an online HTML editor. Cheers in advance, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Non systems-wide auto_prepend_file

2003-03-16 Thread Brad Hubbard
Is there any way anyone can think of to set up auto_prepend_file/auto_append_file so that they only affect one virtual domain on an Apache webserver (not system wide)? Cheers, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Bizarre gethostbyname() problem

2003-03-07 Thread Brad Hubbard
If I run the following code from the command line ("php -q socktest.php") it works fine. If I try to run it through a browser gethostbyname fails (prints unchanged host name). What gives? Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

Re: [PHP] The $PATH to enlightenment revisited

2002-05-23 Thread Brad Hubbard
On Wed, 22 May 2002 12:14, Brad Hubbard did align ASCII characters thusly: > What's the best way to alter the path that PHP looks in for exec(), > system(), passthru(), etc. commands. IOW, how do I add /usr/local/ to > the $PATH variable for the user (nobody in my case) that

Re: [PHP] The $PATH to enlightenment

2002-05-21 Thread Brad Hubbard
On Wed, 22 May 2002 12:59, Martin Towell did align ASCII characters thusly: > putenv() and getenv() if it's for just one page Ok, that'll do it for one page, thanks. I was thinking of something for an entire site, any other ideas? This is running on (RH) Linux BTW. Cheers, Brad -- PHP Genera

[PHP] The $PATH to enlightenment

2002-05-21 Thread Brad Hubbard
What's the best way to alter the path that PHP looks in for exec(), system(), passthru(), etc. commands. IOW, how do I add /usr/local/ to the $PATH variable for the user (nobody in my case) that the webserver runs as. This question may be OT. Thanks in advance, Brad -- PHP General Mailin

Re: [PHP] When did $_SERVER become the preferred syntax?

2002-05-17 Thread Brad Hubbard
On Sat, 18 May 2002 15:47, Brad Hubbard did align ASCII characters thusly: > What's the idea behind this syntax "$_SERVER" and when did it become the > preferred method (are there docs on this)? Thanks to all who replied. I understand this now. Cheers, Brad -- PHP Gener

[PHP] When did $_SERVER become the preferred syntax?

2002-05-17 Thread Brad Hubbard
What's the idea behind this syntax "$_SERVER" and when did it become the preferred method (are there docs on this)? Cheers, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Storing a object in the session??

2002-05-14 Thread Brad Hubbard
On Wed, 15 May 2002 04:02, Peter Atkins did align ASCII characters thusly: > All, > > I really need help on this one... I have a class called "Profile" and I > want to store the properties of this class in the session after I give them > values shown below: > > Step 1: > > // set properties of cla

[PHP] PHP >? for current PEAR

2002-05-10 Thread Brad Hubbard
I'm trying to install PEAR and having some problems. What's the minimum PHP version for the current PEAR? Cheers, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Definitive answer for large scale registration/authentication

2002-04-16 Thread Brad Hubbard
On Tue, 16 Apr 2002 23:18, Michael Kimsal did align ASCII characters thusly: > I guess the first thing you should help us with is defining "high > volume". :) 1/sec? 100 sec? Actually, this will probably have less > impact on archictecture than hardware, but I'm always curious as to what > 'hi

[PHP] Re: [PHP-DB] Re: Definitive answer for large scale registration/authentication

2002-04-15 Thread Brad Hubbard
On Tue, 16 Apr 2002 14:51, Manuel Lemos did align ASCII characters thusly: > > > then stored in cookie. The security weakness of this method is that if > > > the secret key leaks, hackers may use to forge new sessions. > > > > Is this documented anywhere? > Anyway what part didn't you > understand

Re: [PHP] Re: [PHP-DB] Re: Definitive answer for large scale registration/authentication

2002-04-15 Thread Brad Hubbard
On Tue, 16 Apr 2002 14:59, Richard Archer did align ASCII characters thusly: > Aah, but does it scale? By most aqccounts. no :-( > And do you want to run SSL for all page views? > Yes. Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

[PHP] naver.com ????

2002-04-15 Thread Brad Hubbard
Anyone else getting the weird messages from naver.com in response to posts to the list? Looks like a Korean out of office reply. Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-DB] Re: Definitive answer for large scale registration/authentication

2002-04-15 Thread Brad Hubbard
On Tue, 16 Apr 2002 14:01, Manuel Lemos did align ASCII characters thusly: > Probably the fastest way to keep session profile information is by > serializing the data array into a string that will be encrypted and then > stored in cookie. The security weakness of this method is that if the > secre

[PHP] Definitive answer for large scale registration/authentication

2002-04-15 Thread Brad Hubbard
Can I get some feedback on the conventional wisdom as to the best solution for high volume registration and authentication of users accessing a secure site? I have worked before with database/session based methods as well as htaccess. Which is preferred? Are there alternatives? Thanks for the

Re: [PHP] PHP_SELF Undefined

2002-02-19 Thread Brad Hubbard
On Tue, 19 Feb 2002 09:50, Narvaez, Teresa did align ASCII characters thusly: > When I execute the code below, why is PHP_SELF undefined? I will appretiate > any help on this. I can get its value by: > echo $_SERVER["PHP_SELF"];Thanks in advance! -Teresa > > > > > Feedback > > > $for

[PHP] Decode binhex files?

2002-02-12 Thread Brad Hubbard
Anyone know of any scripts/functions available to decode binhex 4.0 encoded files? Cheers, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] @#$@# Reg Expressions

2001-10-29 Thread Brad Hubbard
On Tue, 30 Oct 2001 15:53, brendan wrote: > hans up who else is procrastinating? > ;) My productivity was suckin' pretty badly before all this started anyway. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: [PHP] anyone know any good jokes about queenslanders?

2001-10-29 Thread Brad Hubbard
On Tue, 30 Oct 2001 15:41, brendan wrote: > c2470.rochd1.qld.optusnet.com.au (aka speedboy) > > so far i have found.. > > Did you know there really is an Australian beer (brewed in Queensland) > called , pronounced "Four-X"? Rumour has it the name is because > Queenslanders can't spell "beer."

Re: [PHP] @#$@# Reg Expressions

2001-10-29 Thread Brad Hubbard
On Tue, 30 Oct 2001 15:49, Martin Towell wrote: > Here - I'm from NSW, Oz !!! can't make it any harder for you :) > And how are things in York St.? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

Re: [PHP] @#$@# Reg Expressions

2001-10-29 Thread Brad Hubbard
On Tue, 30 Oct 2001 15:27, brendan wrote: > Your too late for that .. > recipie boy (aka speedboy) already had a go at us southerners > I reckon you noreasterners are for it next .. > Im working on finding out where he's from so we can make fun of his state > .. Im working hard.. > ill find out..

Re: [PHP] @#$@# Reg Expressions

2001-10-29 Thread Brad Hubbard
On Tue, 30 Oct 2001 15:14, brendan wrote: > or really bloody narky afgani's > > Martin Towell wrote: > > Off track - seems like the only ppl awake now are ozzies :) > > would I be right? No jokes about Tamanians or New South Welshmen though alright? -- PHP General Mailing List (http://www.php.n

Re: [PHP] @#$@# Reg Expressions

2001-10-29 Thread Brad Hubbard
On Tue, 30 Oct 2001 14:47, brendan wrote: > mate you rock.. You can tell he's an Australian (on ya mate :-) -- Brad Hubbard Congo Systems 1/286 Bolton Street, Eltham Victoria, Australia, 3095. Email: [EMAIL PROTECTED] Ph: +61-3-94391200 Fax: +61-3-94391255 Mob: +61-419107559 -- PHP

Re: [PHP] Arrays

2001-10-26 Thread Brad Hubbard
On Sat, 27 Oct 2001 01:41, Ashley M. Kirchner wrote: > In a different language I can write something that will return the > index of $section in the array, then I can use that index value to fetch > the INT afterwards: > > $array = {{"section1", 1},{"section2",4},{"section3",2}} > if (idx

Re: [PHP] fsockopen and https

2001-10-26 Thread Brad Hubbard
On Fri, 26 Oct 2001 17:18, John wrote: > Hello All, > > I am new to this list and am sure most of you are tired of this subject > appearing. Please forgive me as I am becoming tired of searching archives > and the internet and I am hoping someone here can help me. > > I am using fsockopen to post

Re: [PHP] Arrays

2001-10-26 Thread Brad Hubbard
On Fri, 26 Oct 2001 18:17, Ashley M. Kirchner wrote: > I'd like to create an array of "available resources", and be able to > check it every time. What I'd like to do is something like; > > $site = array( "section1" => #, "section2" => #, etc.. ) > > where "section*" is a STRING varia

Re: [PHP] Sockets on FreeBSD Mac OS X

2001-10-02 Thread Brad Hubbard
Is there a patch in the works > for FreeBSD? If so, I would be very happy. There's a known trojan (netbus?) that operates on 12345. That's not your problem is it? Do a netstat -an on the machine and see if that port IS in use. Cheers, Brad -- Brad Hubbard Congo Systems 12 Northgate Dr

Re: [PHP] stop standard output in cron jobs

2001-09-25 Thread Brad Hubbard
On Wed, 26 Sep 2001 07:15, bill wrote: > And so sends the resultant e-mail. Can I make it output nothing when > run as a cron job? #!/usr/local/bin/php -q php -h for your future illumination :-) Happy trails, Brad -- Brad Hubbard Congo Systems 12 Northgate Drive, Thomastown, Vi

Re: [PHP] how to make the php page always newest when clicking 'back' botton in browser?

2001-09-25 Thread Brad Hubbard
. gmdate("D, d M Y H:i:s",$expHeader)." GMT");    // Date in the past header("Last-Modified: " . gmdate("D, d M Y H:i:s",$modHeader)." GMT"); // always modified header("Pragma: no-cache"); // HTTP/1.0 }

[PHP] Choices for root privilege

2001-09-14 Thread Brad Hubbard
I'm in the planning stages of a smallish app that will need to run some shell commands that generally require root privileges to run (eg: route, ifconfig, ifup). I know this is a security nightmare but I don't really have a choice, I have to provide this functionality through a web based interf

Re: [PHP] download script

2001-08-21 Thread Brad Hubbard
lename=chopper.exe" ); else header( "Content-Disposition: filename=chopper.exe" ); $fn=fopen( "chopper.exe" , "r" ); fpassthru( $fn ); This was as close as I ever got. Still doesn't work in Konqueror but is an acknowledged bug. Cheers, Brad -- Brad H

Re: [PHP] Use cron to execute a script

2001-08-21 Thread Brad Hubbard
On Tue, 21 Aug 2001 21:27, Brad Hubbard wrote: > chkconfig --level 2345 crond on Oh and; /etc/rc.d/init.d/crond start of course. Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

Re: [PHP] Use cron to execute a script

2001-08-21 Thread Brad Hubbard
On Tue, 21 Aug 2001 21:05, Augusto Cesar Castoldi wrote: > Hi. > > I added to crontab the command "0 * * * * lynx -dump > -nolog http://localhost/backup.php"; but this task are > not running. > On RedHat. chkconfig --level 2345 crond on Brad -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] mime types

2001-08-21 Thread Brad Hubbard
On Tue, 21 Aug 2001 18:01, Evan Nemerson wrote: > Well, I hope nobody will ever have to do what I just did, so here you go. I > got them from the apache/conf/mime.types > > Have fun! > > > > $extensions = Array( "ez" => "application/andrew-inset", What are you using them for Evan? Brad -- PH

Re: [PHP] Multiple line spanning regexp

2001-08-07 Thread Brad Hubbard
On Wed, 8 Aug 2001 14:41, Brad Hubbard wrote: > I'm trying to delete everything in a that spans multiple lines. > > I just want to get rid of the whole thing and thought it would be > relatively straight forward but I'm getting nowhere. > > The list takes

[PHP] Multiple line spanning regexp

2001-08-07 Thread Brad Hubbard
response = preg_replace( "/()(.*?)(<\/ul>)/im", "", $response ); which doesn't work :-) HELP! TIA, Brad -- Brad Hubbard Congo Systems 12 Northgate Drive, Thomastown, Victoria, Australia 3074 Email: [EMAIL PROTECTED] Ph: +61-3-94645981 Fax: +61-3-94645982 Mob: +61-41910

Re: [PHP] Example high-profile PHP sites

2001-07-26 Thread Brad Hubbard
On Fri, 27 Jul 2001 07:15, Tom Malone wrote: > Doesn't Google use PHP? > > Tom GoEureka (AltaVista in Australia) do. www.goeureka.com.au/super.php Cheers, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

Re: [PHP] The Program!

2001-07-24 Thread Brad Hubbard
On Tue, 24 Jul 2001 11:00, Marty wrote: > Several months ago, I made a conscious decision not to > delete what I figured was just another "junk" e-mail. Several seconds ago, I made a conscious decision to delete what I KNEW was just another peice of F%$#ING SPAM. Then I got it out of the trash a

[PHP] Printing a HTML page

2001-07-20 Thread Brad Hubbard
s are only available on windows? Usually it's the reverse :-) Cheers, Brad -- Brad Hubbard Congo Systems 12 Northgate Drive, Thomastown, Victoria, Australia 3074 Email: [EMAIL PROTECTED] Ph: +61-3-94645981 Fax: +61-3-94645982 Mob: +61-419107559 -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] edit xml with php?

2001-07-17 Thread Brad Hubbard
On Tue, 17 Jul 2001 20:27, Jan Grafstrom wrote: > Hi! > I am trying to edit this xml-file: > I want to change one of the li-nodes. > Your call, but I think you'd be better off using these functions to parse the original file and generate the modified version. Cheers, Brad -- PHP General Mai

Re: [PHP] Output (Urgent!)

2001-07-17 Thread Brad Hubbard
This discussion reflects a surprisingly common misunderstanding of client v. server side scripting. PHP, all processing takes place on the server. Javascript, all processing takes place on the client. I've seen this misconception with ASP v. VBscript/javascript too. Strange you would think

Re: [PHP] Fetching binaires from an e-mail

2001-07-10 Thread Brad Hubbard
yes-computing.net/scripts/4/ HTH, Brad -- Brad Hubbard Congo Systems 12 Northgate Drive, Thomastown, Victoria, Australia 3074 Email: [EMAIL PROTECTED] Ph: +61-3-94645981 Fax: +61-3-94645982 Mob: +61-419107559 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECT

Re: [PHP] FEDEx API's

2001-07-06 Thread Brad Hubbard
On Sat, 7 Jul 2001 01:45, Daniel Guerrier wrote: > http://www.fedex.com/us/ebusiness/ecommerce/shipapi.html > >From the FAQ 8. What languages does FedEx Ship Manager API support? FedEx Ship Manager API code is compatible with a number of languages, including HTML, Java, C++ and Microsoft Vi

Re: [PHP] FEDEx API's

2001-07-05 Thread Brad Hubbard
On Fri, 6 Jul 2001 02:10, Daniel Guerrier wrote: > The FED Es api suite says tat windows is a > requirement. > URL? Cheers, Brad -- Brad Hubbard Congo Systems 12 Northgate Drive, Thomastown, Victoria, Australia 3074 Email: [EMAIL PROTECTED] Ph: +61-3-94645981 Fax: +61-3-94645982

[PHP] Sina.com

2001-07-03 Thread Brad Hubbard
Is anyone else getting this sina.com crap? Could the moderators/administrators of the list take a look at it? Cheers, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administ

Re: [PHP] Shell scripting and PHP.

2001-07-03 Thread Brad Hubbard
On Tue, 3 Jul 2001 17:46, Ray Hilton wrote: > I think it's the same as perl, using the backtick operator, ie: > > $result = `uptime`; > > That's ` NOT ' > Look at passthru() exec() and system() as well. Cheers, Brad -- Brad Hubbard Congo Systems 12 Nort

Re: [PHP] Objects and sessions

2001-07-03 Thread Brad Hubbard
On Tue, 3 Jul 2001 11:47, Ethan Schroeder wrote: > If what you mean is if PHP sessions can register objects, that is true and > quite effective. Can you elaborate on this Ethan so I'm sure I understand what you're saying. Cheers, Brad -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Getting Information from a CGI POST

2001-07-03 Thread Brad Hubbard
On Tue, 3 Jul 2001 02:51, Don Read wrote: > $pstr='FltNum=2972&page=fi&selectDay=July+02'; > $fp=openpost('dps2.usairways.com', '/cgi-bin/fi', $pstr); > > // i'm not so sure about that selectDay, javascript ain't my thing. This is implementation dependant (it's using an array they've created (

Re: [PHP] Pricing Advice Needed

2001-07-01 Thread Brad Hubbard
On Mon, 2 Jul 2001 01:51, ReDucTor wrote: > I lost half this subject whilst i format'd > some one mind explaining what you are talking about with > your foos, bars, foobars, dofoos, etc :) One of the original posters suggested charging by line for programming work. We were pointing out how this

Re: [PHP] Pricing Advice Needed

2001-07-01 Thread Brad Hubbard
On Fri, 29 Jun 2001 01:42, Thomas Deliduka wrote: > You get paid more > depending on your style: > > If ($foo == "bar") { > $dofoo = fobar($foo); > } else { > $dofoo = foobar($bar); > } > > Or > If ($foo == "bar") > { > $dofoo = fobar($foo); > } > else > { > $dofoo = foobar($bar);

Re: [PHP] Pricing Advice Needed

2001-07-01 Thread Brad Hubbard
On Sun, 1 Jul 2001 03:43, [EMAIL PROTECTED] wrote: > to make you feel better, lemme tell you that after more than 3ys w/ PHP > I earn somewhere arround 3 ( I mean 3!) $/h in Romania > so let me tell you more about geographic disadvantages :) Hi Teo, Point taken. The grass is always greener tho

Re: [PHP] Capturing output of shell script.

2001-06-30 Thread Brad Hubbard
d string. I've > tried using exec, passthru, ``, system, and escapeshellcommand. Nothing > seems to work. any ideas? $capture = `script.sh 2>&1`; // redirect standard error to standard output Cheers, Brad -- Brad Hubbard Congo Systems 12 Northgate Drive, Thomastown, Victo

Re: [PHP] making e-mail link

2001-06-30 Thread Brad Hubbard
nows how to modify it so it would only show www.something.com > when linked, that would be perfect. Dohh! if( !ereg( "http", $text ) ) should be if( !ereg( "ftp|http", $text ) ) Cheers, Brad -- Brad Hubbard Congo Systems 12 Northgate Drive, Thomastown, Victoria, Austra

Re: [PHP] Re: Regular Expression help

2001-06-30 Thread Brad Hubbard
_ERRORINVEMAIL.""; > ---snip--- > > This works, but how can I add a second domain? How 'bout; ---snip--- if ((!$email) || ($email=="") || (!eregi("^[_\.0-9a-z-]+@domain|otherdomain.+[a-z]",$email) ) $stop = "&qu

Re: [PHP] Pricing Advice Needed

2001-06-30 Thread Brad Hubbard
On Fri, 29 Jun 2001 01:42, Thomas Deliduka wrote: > I think in general it's about $100-$150/hour for programming/database work. Yankee dollars? Gawwd... I AM being exploited due to geographic disadvantage! Cheers, Brad -- Brad Hubbard Congo Systems 12 Northgate Drive, Th

Re: [PHP] making e-mail link

2001-06-30 Thread Brad Hubbard
, $text); $text = ereg_replace("(((ftp://|http://|https://){1})[a-zA-Z0-9@:%_.~#-\?&]+[a-zA-Z0-9@:%_~#\?&/])", "\\1", $text); $text = ereg_replace("([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})","mailto:\\1\";&g

Re: [PHP] Sending html email

2001-03-23 Thread Brad Hubbard
> Can anybody tell me the easiest and quickest way to send email in HTML > format? http://www.php.net/manual/en/function.mail.php Read it. Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] Show output of program in realtime on website

2001-01-10 Thread Brad Hubbard
Have you tried passthru() instead of popen() ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Show output of program in realtime on website

2001-01-10 Thread Brad Hubbard
I've seen this done with some CGI (not PHP) programs like online traceroutes and things. Is there something you can do with a CGI lib that facilitates this? Cheers, Brad - Original Message - From: "Christian Reiniger" <[EMAIL PROTECTED]> To: "Stefan Scherf" <[EMAIL PROTECTED]> Cc: <[EMA

Re: [PHP] Ping

2001-01-10 Thread Brad Hubbard
Unfortunately I added some code today to show the local time/date and haven't tested them since ;) If the machine being pinged is up it shows a green "Light" if it loses a ping it'll show red and if it loses 5 in a row it's name goes red and there should (this is the bit I haven't tested) be a ti

Re: [PHP] Calling a Windows Com object or an Extended Fetch?

2001-01-09 Thread Brad Hubbard
> Or you could just look at the phpbuilder.com column on using COM objects in php, or you could RTFM at the php.net site. >just type in php.net/com and see what happens. > > We use php and com here a lot, and while the implementation lacks a few features of the asp/vb implementation it's handy >wh

Re: [PHP] looking for a PHP editor

2001-01-09 Thread Brad Hubbard
> It's even better than sex... (Well... maybe LOL) I got it myself and have fallen in love with it in about 3 days! > What is it? HTML-Kit? Cheers, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

Re: [PHP] installing PHP4 on Apache on Win2000

2001-01-09 Thread Brad Hubbard
Check out PHPTriad. It should get you up and running quickly. Cheers, Brad - Original Message - From: "Saied Gerami" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 08, 2000 08:57 Subject: [PHP] installing PHP4 on Apache on Win2000 > Dear Sir/Madam, > > I followed yo