RE: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread Chris Mason
I had a later php so my phpBB did not get hacked. However, on another
dedicated server, I am running Redhat 7.3 and it would be dificult at
present to move to a more up to date server. I can't find a more recent rpm,
is there a way I can patch the source rpm to fix this vunerability?

Chris Mason

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.3 - Release Date: 12/21/2004
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Launch windows application and fle

2004-12-10 Thread Chris Mason
I have an internal application requirement to generate a webpage that lists
media files (movies) on our linux server and when the user clicks the name
of the file on the webpage, launch the application on the local machine
playing the correct file. How can I accomplish that? I know the computers
that will be used, this is not on the internet so there are no security
concerns. I can change and configure the browsers at will, this is a single
purpose computer under my direct control on which I have installed the
application.

Chris Mason

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.8 - Release Date: 12/8/2004
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Pre-built CMS - Anyone recommend one?

2003-01-12 Thread Chris Mason
eZPublish is probably your best bet.

-Original Message-
From: Nick Wilson [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 12, 2003 3:31 PM
To: php-general
Subject: [PHP] Pre-built CMS - Anyone recommend one?


Hi all, 

I'm looking for a *free*, pre-built CMS with PHP/MySQL.

I've looked at ezpublish but I'm having trouble installing.

Criteria: 

*   Must have SE friendly urls (example.com/4/34/)
*   Must allow different 'sections' for articles
*   Must be easy to fix templates for the html/css

Anyone make a recommendation?

Many thanks...

-- 
Nick Wilson //  www.tioka.com




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] output compression

2002-11-18 Thread Chris Mason
I've enabled output buffering in php.ini with

output_buffering = On
output_handler = ob_gzhandler

I have had one user in the UK email and say their browser is crashing,
has anyone seen this with output compression?

Any other comments about using ob_gzhandler?


Chris Mason
[EMAIL PROTECTED]
Box 340, The Valley, Anguilla, British West Indies
Tel: 264 497 5670 Fax: 264 497 8463 Cell: 264 235 5670
http://www.anguillaguide.com/ The Anguilla Guide
Talk to me in real time:
Yahoo:netconcepts_anguilla
US Fax and Voicemail: (815)301-9759



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Testing patch for 4.0.6

2002-02-28 Thread Chris Mason

I am using 4.0.6 as a apache module in a redhat server, compiling the src
rpm with a couple of custom commands in the spec file. I can't upgrade to a
newer version due to changes in the xmltree() function that breaks some of
my projects.
With the recent vunerability, I needed to generate a patched version. I ran
rpm -Uvh on the src rpm, then
rpm -bp to clean up

vi php-4.06.spec
and changed the version number,
made a couple of changes
saved the spec file

cd to /usr/src/redhat/BUILD/php-4.0.6/main
cp /root/rfc1867.c.diff-4.0.6.gz .
patch -p0 rfc1867.c rfc1867.c.diff-4.0.6.gz
cd /usr/src/redhat/SPEC
rpm -bb --short-circuit php-4.0.6.spec

cd ../RPM/i386
rpm -Uvh php-4.0.6.cm.i386.rpm

/etc/init.d/httpd restart


Apache works fine, I have a patched serveror do I?

How can I check I have actually fixed it?

Is there a test i can run. I don;t need the whole exploit, I don't think,
just some kind of test.


Chris Mason
[EMAIL PROTECTED]
Box 340, The Valley, Anguilla, British West Indies
Tel: 264 497 5670 Fax: 264 497 8463
Take a virtual tour of the island
http://www.anguillaguide.com/ The Anguilla Guide
Find your perfect rental villa www.mycaribbean.com
Talk to me in real time:
MSN Instant Messenger: [EMAIL PROTECTED]
ICQ 118159388 Yahoo:netconcepts_anguilla
US Fax and Voicemail: (605)253-1759


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP PGP

2001-06-29 Thread Chris Mason

Yes, here's some code, adapt to your needs.

-Original Message-
From: Pepe Lopez [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 10:06 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP  PGP


Hi there,

I want to encrypt mails coming from my webform with pgp. Is it possible?

regards,
Lopez



-- 
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]





-- 
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] PHP PGP

2001-06-29 Thread Chris Mason

class eZGPG
{
/*!
  \static
  Encrypt function
*/
   function eZGPG( $plaintxt, $keyname, $wwwuser)
   {

  $this-keyname=$keyname;
  if ( sizeof( $this-keyname ) == 0 )
$this-body = WARNING: No Keys Specified;

  $this-pcmd = echo '$plaintxt' | ;
  $this-pcmd .= $this-pathtogpg.$this-encryptcommand;
  $this-pcmd.=  -a -q --no-tty -e -u . $wwwuser .  --homedir ' .
$this-home .' -r '. $this-keyname . ' ;

  //clear return array and execute encrypt command
  unset( $ret );
  exec($this-pcmd, $ret);

  //loop return array for encrypted text
  foreach( $ret as $key=$value )
  {
 $this-body .= $value;
 $this-body .=\n;
  }

   }

   // return $this-body
   function getbody()
   {
  return $this-body;
   }

   var $body;
   var $keyname = array();
   var $ret = array();
   var $pathtogpg = /usr/bin/;
   var $pcmd;
   var $encryptcommand = gpg --encrypt --batch --no-secmem-warning;
   var $home = /var/www/.gnupg;


}

-Original Message-
From: Pepe Lopez [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 10:06 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP  PGP


Hi there,

I want to encrypt mails coming from my webform with pgp. Is it possible?

regards,
Lopez



--
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]





-- 
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]




[PHP] validate form with javascript

2001-05-13 Thread Chris Mason

I have a form in which I validate the email address using a php function
then alert the operson if the email address is not correct. However, I would
like to pop up an alert with javascript if the email field is left blank. I
am using the function below but it down't work with php, probably works
great with a cgi.

Does anyone have a better way to do this?

Chris Mason
Code:
in the head

function validForm(replyForm)
{
if(replyForm.email.value==\\){
alert(\You must enter an email address\)
replyform.email.value.focus()
return false
}
return true
}


in the form:
FORM  onSubmit=\return validForm(this)\ METHOD=\POST\
ACTION=\reserve.php3?action=send\ ENCTYPE=\x-www-form-urlencoded\
table
TR CLASS=\$c\   TD CLASS=\$c\E-Mail /TD   TD COLSPAN=\$i\INPUT
TYPE=\text\ NAME=\email\ VALUE=\$email\ SIZE=\50\/TD/TR

/table
/form
)





-- 
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] Contents Management Solution for Web

2001-05-08 Thread Chris Mason
Try ezpublish, available from publish.ez.no. THe package is very complate,
but not easy to install.

If you have problems, I offer hosting with publish installed.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Sakimura, Nat
Sent: Tuesday, May 08, 2001 7:04 AM
To: '[EMAIL PROTECTED]'
Subject: [PHP] Contents Management Solution for Web


Hi.

A while ago, I encountered a contents management solution for web that
allows the web contents to be edited WYSWYG manner on the web browser.  I
think it was PHP related, but now I cannot seem to find the link. Does
anyone know of such system?

Regards,

Nat Sakimura

--
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]





-- 
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] Really easy question

2001-05-06 Thread Chris Mason

Check for output compression in output buffering in your php script, I don't
think it always works.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
biscut
Sent: Sunday, May 06, 2001 5:21 PM
To: Jack Dempsey
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Really easy question


I did, even to the extent of copying and pasting the text straight off of
the tutorial into the file that I created using vi.

Very strange
biscut


 -Original Message-
 From: Jack Dempsey [mailto:[EMAIL PROTECTED]]
 Sent: 06 May 2001 22:10
 To: biscut; Tom Carter
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] Really easy question


 check your html whenver you see blank pages in netscape, but they work in
 IE...

 -jack

 -Original Message-
 From: biscut [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, May 06, 2001 5:03 PM
 To: Tom Carter
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] Really easy question


 Thanks very much for your help on this, turns out there wasnt anything
 wrong with it, I was trying to view the page with Netscape 4.7 on hte
 Linux machine and getting blank pages, if I viewed it with IE 5.5 on a
 windows machine then everything works fine...I have no idea why this is
 happening but at least it works and I am not going completely mad...

 Thanks again
 biscut


  -Original Message-
  From: Tom Carter [mailto:[EMAIL PROTECTED]]
  Sent: 06 May 2001 20:44
  To: biscut
  Cc: [EMAIL PROTECTED]
  Subject: Re: [PHP] Really easy question
 
 
  The easiest way is to create a simple page (called say
 test.php) with the
  following
 
  ?php
  phpinfo();
  ?
 
  This should display a page with all sorts of information about your PHP,
  and serves as a good test as to whether or not PHP is working
 
  Good luck!
 
  Tom Carter
  Web Architect
  roundcorners ltd.
 
  On Sun, 6 May 2001, biscut wrote:
 
   How can i check to see if PHP has been enabled, I enabled the
  modules etc
   after they were compiled and i have managed to get Apache
  working properly
   again but now even when i do the basic tutorial stuff then I
 get a blank
   page rather than what I am supposed to get, the tutorial page
  is no help as
   all it says is see your network admin to get PHP enabled this
  is only on
   my home machine so I guess I am the network admin...kind of
 anyway...can
   someone please help...
  
   thanks very much
   biscut
  
  
  
 
 
  --
  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]


 --
 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]



 --
 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]


--
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]





-- 
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]




[PHP] Finding the point

2001-05-03 Thread Chris Mason

I need to abrieviate a block of text at the first full stop after 100
characters, does anyone have a handy dandy way of doing it?

Chris Mason
Box 340, The Valley, Anguilla, British West Indies
Tel: 264 497 5670 Fax: 264 497 8463
USA Fax (561) 382-7771
Take a virtual tour of the island
http://net.ai/ The Anguilla Guide
Find out more about NetConcepts
www.netconcepts.ai
Talk to me in real time with Instant Messenger: [EMAIL PROTECTED]
Signature
F331 8AD1 36FB B3B0 DF9F  D95B 8024 D1EA 7450 D50C


-- 
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]




[PHP] Apache user

2001-04-05 Thread Chris Mason

Can anyone tell me how to get the user apache is running as from php?

Chris Mason
Box 340, The Valley, Anguilla, British West Indies
Tel: 264 497 5670 Fax: 264 497 8463
USA Fax (561) 382-7771
Take a virtual tour of the island
http://net.ai/ The Anguilla Guide
Find out more about NetConcepts
www.netconcepts.ai
Talk to me in real time with Instant Messenger: [EMAIL PROTECTED]
Signature
F331 8AD1 36FB B3B0 DF9F  D95B 8024 D1EA 7450 D50C



-- 
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]




[PHP] File create permissions

2001-04-03 Thread Chris Mason

I am trying to create and open a file in php4 using

$fp = fopen($filename,r)

php4 is compiled as an apache module. I keep gettting errors, and cannot
create the file. The directory is chmod 777, apache is running as user
apache.

Any ideas why I can't write this file?

Chris Mason
Box 340, The Valley, Anguilla, British West Indies
Tel: 264 497 5670 Fax: 264 497 8463
USA Fax (561) 382-7771
Take a virtual tour of the island
http://net.ai/ The Anguilla Guide
Find out more about NetConcepts
www.netconcepts.ai
Talk to me in real time with Instant Messenger: [EMAIL PROTECTED]
Signature
F331 8AD1 36FB B3B0 DF9F  D95B 8024 D1EA 7450 D50C



-- 
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]




[PHP] PHP hosting - the final frontier.

2001-02-03 Thread Chris Mason

I see a lot of traffic regarding php hosting. From experience I know that
the general hosting companies provide a minimal PHP environment which is
often insufficient for PHP developers.
With this in mind, I'm considering offering specialized hosting for PHP
projects.

The server will be tuned to the needs of PHP projects, and will have the
latest PHP4 and mySQL versions, up to date XML libraries, IMAP and POP, and
will run php as a apache module for performance. The server will have a low
user count and I will offer migration alternatives as user's needs grow. The
machines will be hosted at a major data center with multiple large internet
feeds, and all the other essential requirements.

I plan to be available to users to assist in configuration problems and will
stay abreast of developments in PHP to make our projects run faster and
better.

I'd like to hear from people interested in participating or with
configuration suggestions. I'm not looking to start a large hosting company
but to be a specialized service provider on a small scale.

Let me know what you think, guys.


Chris Mason
Box 340, The Valley, Anguilla, British West Indies
Tel: 264 497 5670 Fax: 264 497 8463
USA Fax (561) 382-7771
Take a virtual tour of the island
http://net.ai/ The Anguilla Guide
Find out more about NetConcepts
www.netconcepts.ai
Talk to me in real time with Instant Messenger: [EMAIL PROTECTED]





-- 
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] PHP hosting - the final frontier.

2001-02-03 Thread Chris Mason

Yes, I'm very aware of this, but I'm not the only one here, there are three of
us.


Ben Peter wrote:

 Chris,

 This all sounds good but for one thing: I firmly believe that one man
 with a root password is not enogh to look after even one client. I have
 hosted with 3 one-man-companies, and it always came to the point where I
 couldn't reach someone for a week, or I waited for 3 months, only to be
 granted connect privileges to the mysql database - no offense meant! I
 think it's just too much for one man, you cannot be available 24/7, and
 you will want holidays.

 Still, a PHP-specialized hosting environment would be worth much.

 Cheers,
 Ben

 Chris Mason wrote:
 
  I see a lot of traffic regarding php hosting. From experience I know that
  the general hosting companies provide a minimal PHP environment which is
  often insufficient for PHP developers.
  With this in mind, I'm considering offering specialized hosting for PHP
  projects.
 
  The server will be tuned to the needs of PHP projects, and will have the
  latest PHP4 and mySQL versions, up to date XML libraries, IMAP and POP, and
  will run php as a apache module for performance. The server will have a low
  user count and I will offer migration alternatives as user's needs grow. The
  machines will be hosted at a major data center with multiple large internet
  feeds, and all the other essential requirements.
 
  I plan to be available to users to assist in configuration problems and will
  stay abreast of developments in PHP to make our projects run faster and
  better.
 
  I'd like to hear from people interested in participating or with
  configuration suggestions. I'm not looking to start a large hosting company
  but to be a specialized service provider on a small scale.
 
  Let me know what you think, guys.
 
  Chris Mason
  Box 340, The Valley, Anguilla, British West Indies
  Tel: 264 497 5670 Fax: 264 497 8463
  USA Fax (561) 382-7771
  Take a virtual tour of the island
  http://net.ai/ The Anguilla Guide
  Find out more about NetConcepts
  www.netconcepts.ai
  Talk to me in real time with Instant Messenger: [EMAIL PROTECTED]
 
  --
  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]


-- 
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]