[PHP] Re: Safe mode and safe_mode_exec_dir

2002-12-05 Thread James Hatridge

Hi Rodrigo et al...
On Thursday 05 December 2002 16:09, Rodrigo Borges Pereira wrote:
> Hello all,
>
> directly in /etc/php.ini doesn't work either. I noticed PHP was compiled
> with --with-exec-dir=/usr/bin, but i suppose that what we define in
> php.ini (at least) overrides that.

I had hell with safe_mode too. What I found out is that anything that is 
"hardwired" in by being compiled can NOT be overrode by php.ini. I would 
suggest for you to recompile PHP with everything turned off then use php.ini 
to set what you want. 

I did it this and now I'm able to run exec without problems. 

Hope this helps,

JIM 

-- 
Jim Hatridge
Linux User #88484
--
 BayerWulf
   Linux System # 129656
 The Recycled Beowulf Project
  Looking for throw-away or obsolete computers and parts
   to recycle into a Linux super computer


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




[PHP] PHP Compile question ....

2003-02-17 Thread James Hatridge

Hi all...

I just compiled PHP from source for the first time. It "works", but not like I 
want it to. I need it to work with Mysql, do graphs, and let me run programs 
(ie safe-mode is off). Also the odd thing is that before I compiled my own 
PHP I could access all my mysql databases. Now I can only access in a read 
only mode. When I try to do any type of update I get either a blank screen or 
PHP says that the DB is not there. I am able to access all my DBs at the 
mysql command line without problem. 

I think that my problems are with the options when I compile PHP. Can someone 
give me an example of the options I need to make this work? 

Thanks

JIM
-- 
Jim Hatridge
Linux User #88484
--
 BayerWulf
   Linux System # 129656
 The Recycled Beowulf Project
  Looking for throw-away or obsolete computers and parts
   to recycle into a Linux super computer


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




Re: [PHP] PHP Compile question ....

2003-02-17 Thread James Hatridge
Thanks! I'll give it a shot in the morning!

JIM

On Monday 17 February 2003 18:19, Mat Harris wrote:
> i like to use to following with php 4.3.0. Note the $APACHE_PREFIX should
> be changed:
>
> ./configure --prefix=/usr --with-apxs=$APACHE_PREFIX/bin/apxs
> --enable-debug=no --enable-safe-mode --with-mysql=/usr --with-regex=system
> --with-xml --with-imap --with-snmp --with-kerberos --with-imap-ssl
> --with-openssl --with-bz2 --with-db3 --with-curl --with-png-dir=/usr
> --with-gd --with-gdbm --with-gettext --with-ncurses --with-jpeg-dir=/usr
> --with-mm --with-png --with-pspell --with-zlib --enable-ftp
> --enable-sockets --enable-track-vars --enable-trans-sid --enable-yp
> --enable-memory-limit --enable-calendar --enable-dbx
>
> On Mon, Feb 17, 2003 at 05:02:00 +0100, James Hatridge wrote:
> > Hi all...
> >
> > I just compiled PHP from source for the first time. It "works", but not
> > like I want it to. I need it to work with Mysql, do graphs, and let me
> > run programs (ie safe-mode is off). Also the odd thing is that before I
> > compiled my own PHP I could access all my mysql databases. Now I can only
> > access in a read only mode. When I try to do any type of update I get
> > either a blank screen or PHP says that the DB is not there. I am able to
> > access all my DBs at the mysql command line without problem.
> >
> > I think that my problems are with the options when I compile PHP. Can
> > someone give me an example of the options I need to make this work?
> >
> > Thanks
> >
> > JIM
> > --
> > Jim Hatridge
> > Linux User #88484
> > --
> >  BayerWulf
> >Linux System # 129656
> >  The Recycled Beowulf Project
> >   Looking for throw-away or obsolete computers and parts
> >to recycle into a Linux super computer
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php

-- 
Jim Hatridge
Linux User #88484
--
 BayerWulf
   Linux System # 129656
 The Recycled Beowulf Project
  Looking for throw-away or obsolete computers and parts
   to recycle into a Linux super computer


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




[PHP] php.ini question.....

2003-02-18 Thread James Hatridge
HI all...

At last I got safe-mode turned off (Gott sei dank!). But I'm still having a 
problem.  I can only read Mysql DBs. I can not open a DB to update. 

All I can see is that there must be something wrong with either the way I 
complied PHP or the php.ini file. When I complied PHP I used "--with-mysql". 
Is this enough or do I need a dir name? If a dir name what?

Is there any special thing I need in PHP.ini to update mysql?

Lastly, how can I make PHP read php.ini without rebooting? 

BTW I'm using SuSE 8.1 Pro, netscape, and KDE.

Thanks,

JIM

-- 
Jim Hatridge
Linux User #88484
--
 BayerWulf
   Linux System # 129656
 The Recycled Beowulf Project
  Looking for throw-away or obsolete computers and parts
   to recycle into a Linux super computer


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




[PHP] Re: php.ini question.....

2003-02-18 Thread James Hatridge
HI All

On Tuesday 18 February 2003 18:32, David Otton wrote:
> On Tue, 18 Feb 2003 17:38:28 +0100, you wrote:
> >At last I got safe-mode turned off (Gott sei dank!). But I'm still having
> > a problem.  I can only read Mysql DBs. I can not open a DB to update.
>
> You have to connect to MySQL with a username and password.
>
> First check that the user you're connecting as has permission to do
> UPDATEs as well as SELECTs.

At the command line I have no problem with Mysql...

JIM


-- 
Jim Hatridge
Linux User #88484
--
 BayerWulf
   Linux System # 129656
 The Recycled Beowulf Project
  Looking for throw-away or obsolete computers and parts
   to recycle into a Linux super computer


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




[PHP] Re: Editors

2003-02-25 Thread James Hatridge
HI Pierre et al

On Sunday 23 February 2003 11:14, Pierre Vaudrey wrote:
> Hi,
>
>   The site is http://www.maguma.com
>
> Pierre

This interested me too. So I looked at the site but was only able to find an 
exe file. Do you know where I can get a Linux tar ball or RPM file?

Thanks

JIM




> -Message d'origine-
> De : Karl James [mailto:[EMAIL PROTECTED]
> Envoye : dimanche 23 fevrier 2003 10:19
> A : [EMAIL PROTECTED]
> Objet : [PHP] Editors
>
> Anyone have the link on where I can download maguma php editor? Whatever
> the latest version is.
> I need if for my class.
> I tried to do a search on google and they are were dead links.
>
>
> Karl

-- 
Jim Hatridge
Linux User #88484
--
 BayerWulf
   Linux System # 129656
 The Recycled Beowulf Project
  Looking for throw-away or obsolete computers and parts
   to recycle into a Linux super computer


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



[PHP] Re: Re: Editors

2003-02-26 Thread James Hatridge
HI Pierre et al... 

On Tuesday 25 February 2003 18:54, Pierre Vaudrey wrote:
> The download address is :
>
> http://www.maguma.com/products/download.php
>
> Pierre

Thanks for the address. I looked into it closer and I find that it is only for 
Windows. Pity.

Does anyone know of a PHP editor for Linux? Right now I use either Gvim or 
Quanta. Neither is perfect.

Thanks

JIM



>
> -Message d'origine-
> De : James Hatridge [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 25 février 2003 15:40
> À : Pierre Vaudrey; Karl James; [EMAIL PROTECTED]
> Objet : [PHP] Re: Editors
>
> HI Pierre et al
>
> On Sunday 23 February 2003 11:14, Pierre Vaudrey wrote:
> > Hi,
> >
> >   The site is http://www.maguma.com
> >
> > Pierre
>
> This interested me too. So I looked at the site but was only able to find
> an exe file. Do you know where I can get a Linux tar ball or RPM file?
>
> Thanks
>
> JIM
>
> > -Message d'origine-
> > De : Karl James [mailto:[EMAIL PROTECTED]
> > Envoye : dimanche 23 fevrier 2003 10:19
> > A : [EMAIL PROTECTED]
> > Objet : [PHP] Editors
> >
> > Anyone have the link on where I can download maguma php editor? Whatever
> > the latest version is.
> > I need if for my class.
> > I tried to do a search on google and they are were dead links.
> >
> >
> > Karl

-- 
Jim Hatridge
Linux User #88484
--
 BayerWulf
   Linux System # 129656
 The Recycled Beowulf Project
  Looking for throw-away or obsolete computers and parts
   to recycle into a Linux super computer


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



[PHP] Re: Re: Re: Editors

2003-02-27 Thread James Hatridge
HI Paul,,,

On Wednesday 26 February 2003 22:10, Paul Nicholson wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Wednesday 26 February 2003 02:19 pm, James Hatridge wrote:
> [snip]
>
> > Thanks for the address. I looked into it closer and I find that it is
> > only for Windows. Pity.
>
> It will run on linux using wine. Yes, I've tried it...it works!
> ~Paul

I stopped using Windows at 3.1 . If I understand correctly you have to have 
a copy of W$ 9X (or whatever). If this is true then I can't use wine because 
I don't have a usable copy of W$. Has this changed in the past few years? 

Thanks

JIM

PS Been useing SuSE since version 4.4.1 :)


-- 
Jim Hatridge
Linux User #88484
--
 BayerWulf
   Linux System # 129656
 The Recycled Beowulf Project
  Looking for throw-away or obsolete computers and parts
   to recycle into a Linux super computer


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



[PHP] Search question ..

2003-07-23 Thread James Hatridge
Hi all..

I've got a search page written for my web site. I can find the html page I 
want by keyword. Now I need to get the title of that page in to a variable. 
In other words I have a file name, for example Summerbulletin.html. I now 
need to get the line " Summer 2003 " in to a variable. How do 
I tell html or PHP what I want? (I hope that I am understandable, I'm still 
new at this. )

Right now I output the search results in to a chart that shows 
"Summerbulletin.html". What I would like to show is "Summer 2003". 

TIA!

JIM

Jim Hatridge
Linux User #88484
-- 
Our country was colonized by the religious, political, economic, and criminal
rejects of every country in the world. We have been carefully breeding insane, 
obsessive, fanatic lunatics with each other for over 400 years, resulting in 
the glorious strain of humanity known as "Americans". You have to expect 
some... peculiarities. 

Read about new German stamps each quarter:
 http:/www.fecundswamp.net/~hatridge/bulletin


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



[PHP] Re: Search question ..

2003-07-25 Thread James Hatridge
Hi all...

On Wednesday 23 July 2003 22:16, CPT John W. Holmes wrote:
> From: "Curt Zirzow" <[EMAIL PROTECTED]>
>
> > preg_match('#\(.*)\#im', $text, $matches):
>
> Also, if there's ever a case where could have
>
> 
> My Title
> 
>
> i.e. things spread over multiple lines, then you'll need:
>
> preg_match('#(.*)#is',$text,$matches);
>
> or, even better (ungreedy)
>
> preg_match('#([^<]+)#i',$text,$matches);

Thanks for you all's help but,

I've tried all three of these lines and get nothing at all, blank. On the 
other hand I tried 

exec( 'grep "\" ' .$tmp, $match);

I was abe to get the titles. The odd thing was that if for example I had a 
list of 8 hits there would be dups in the list. Checking it closer I found 
that grep was stopping at the sub-dir for example two files, same sub-dir:

/~hatridge/bulletin/summer03/file1.php
/~hatridge/bulletin/summer03/file2.php

/~hatridge/bulletin/spring03/file3.php
/~hatridge/bulletin/spring03/file4.php


The returns would be 

title1
title1

title3
title3

Any ideas?

TIA!

JIM


Jim Hatridge
Linux User #88484
-- 
Our country was colonized by the religious, political, economic, and criminal
rejects of every country in the world. We have been carefully breeding insane, 
obsessive, fanatic lunatics with each other for over 400 years, resulting in 
the glorious strain of humanity known as "Americans". You have to expect 
some... peculiarities. 

Read about new German stamps each quarter:
 http:/www.fecundswamp.net/~hatridge/bulletin



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



[PHP] Re: php editor?

2003-06-16 Thread James Hatridge
Hi John et al,,
On Sunday 15 June 2003 02:09, John Nichel wrote:

>Linux I  use Quanta.

Do you know how (or if) to get Quanta to color code PHP like it does html? If 
I could get that then Quanta would be almost perfit.

Thanks

JIM

-- 
Jim Hatridge
Linux User #88484
--
 BayerWulf
   Linux System # 129656
 The Recycled Beowulf Project
  Looking for throw-away or obsolete computers and parts
   to recycle into a Linux super computer


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



[PHP] Graph Question..

2002-11-20 Thread James Hatridge

Hi all,,

I d/l'ed a class for graphs last night. When I got the class working instead 
of a line graph I got the netscape symbol for no picture, ie a broken box. I 
must have missed something. Could someone give me a clue what I'm doing 
wrong?

Thanks

JIM
-- 
Jim Hatridge
Linux User #88484
--
 BayerWulf
   Linux System # 129656
 The Recycled Beowulf Project
  Looking for throw-away or obsolete computers and parts
   to recycle into a Linux super computer


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