[PHP] httpd will not start error with libphp4.so

2002-12-10 Thread rdkurth
What does this mean and how can I fix it
/lib/libc.so.6 is on the server  and so is /usr//lib/libmysqlclient.so.10

Syntax error in /etc/http/conf/httpd.conf:
Cannot load /usr/lib/apache/libphp4.so into server: /lib/libc.so.6: version `GLIBC_2.2'
not found (required by /usr//lib/libmysqlclient.so.10)
/etc/rc.d/init.d/httpd start: httpd could not be started

  

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




[PHP] How to strip extra characters off of a string

2003-01-08 Thread rdkurth

I need to be able to just extract the number that is right Under
blocks in this example it is the number 57070. This was generated by
the quota -g groupname command.

Disk quotas for group site53 (gid 165):
 Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
  /dev/hda4   57070  307201  3072001146   0   0 

I have tried using some of the string
functions like I used
$test=strstr ($test, "hda");
$test= substr("$test",7);
This well get me up to the start of the number but now I need to get
read of every thing after the number.
Is there a better way of getting this info or for striping all the
other stuff away.




-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




[PHP] Generating a range of IP address

2003-01-22 Thread rdkurth

I need a way to add a range of IPaddress to a databases the
example below work as long as the last numbers in the IPaddress
are equal length like three numbers or two or one. If the first
IPaddress has 1 number and the second has two or three numbers the
script will not work.

$ip1=230.234.234.4This will work
$ip2=230.234.234.9

$ip1=230.234.234.4 This will not work
$ip2=230.234.234.25

$ip1=230.234.234.25This will not work
$ip2=230.234.234.126



 $ip1=trim($ip1);
 $ip2=trim($ip2);
$ip = $ip1;
while ($ip <= $ip2){ 
$query = "insert into ipaddress(ip)values ('$ip')";
$Result = safe_query($query);
$ip++;
}

  

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




[PHP] compiling php 4.3.0 with gd

2003-02-06 Thread rdkurth


I am trying to compile PHP 4.3.0 with GD and also with-png,with-jpg
and with-freetype. I have installed both png and jpg from a tar file
but know mater what I do PHP configure stops with and error. here is
the error I keep getting.
checking for GD support... yes
checking for the location of libjpeg... yes
checking for the location of libpng... yes
checking for the location of libXpm... yes
checking for FreeType 1.x support... yes
checking for FreeType 2... yes
checking for T1lib support... yes
checking whether to enable truetype string function in GD... yes
checking for fabsf... yes
checking for floorf... yes
configure: error: libjpeg.(a|so) not found.

Can somebody give me the step to get this to work below is my compleat
configuration.
./configure --prefix=/usr --with-apxs=/usr/sbin/apxs --with-gettext=/usr
--enable-safe-mode --with-config-file-path=/etc/httpd --with-exec-dir=/usr/bin
--with-zlib --enable-magic-quotes --with-regex=system --with-ttf --with-gdbm
--enable-mbstring --enable-mbstr-enc-trans --enable-track-vars --enable-wddx=shared
--enable-mm=shared --enable-xml --enable-ftp --disable-debug --with-libdir=/usr/lib
--with-dba --with-interbase=shared --with-ldap --with-pdflib=shared --with-xml
--with-readline --with-mysql=/usr/ --with-curl=/usr/bin/ --enable-sockets --enable-ftp
--with-gdbm --with-pgsql=/usr/ --with-mhash --with-zip=/usr/local/lib/ --with-gd
--with-freetype-dir=/usr --enable-gd-native-ttf --enable-gd-imgstrttf
--with-jpeg-dir=/usr/local/bin --with-png-dir=/usr/local/bin
  

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




Re[2]: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread rdkurth
Hello Jason,
I know that is what it means and I do know where libjpeg.so and
libjpeg.a are on the server. I also have pointed the configuration to
where they are with this --with-jpeg-dir=/usr/local/bin
but no mater what I do it still can not find them.and keeps giving me
the error  configure: error: libjpeg.(a|so) not found


Thursday, February 6, 2003, 1:52:44 AM, you wrote:


JW> On Thursday 06 February 2003 17:47, [EMAIL PROTECTED] wrote:
>> I am trying to compile PHP 4.3.0 with GD and also with-png,with-jpg
>> and with-freetype. I have installed both png and jpg from a tar file
>> but know mater what I do PHP configure stops with and error. here is
>> the error I keep getting.

>> configure: error: libjpeg.(a|so) not found.

JW> It's telling you that it cannot find libjpeg.a or libjpeg.so.

JW> Use "find / -name libjpeg.a" and "find / -name libjpeg.so" to find out where 
JW> they are hiding.

JW> -- 
Jason Wong ->> Gremlins Associates -> www.gremlins.biz
JW> Open Source Software Systems Integrators
JW> * Web Design & Hosting * Internet & Intranet Applications Development *
JW> --
JW> Search the list archives before you post
JW> http://marc.theaimsgroup.com/?l=php-general
JW> --
JW> /*
JW> It may be that your whole purpose in life is simply to serve as a
JW> warning to others.
JW> */





-- 
Best regards,
 rdkurthmailto:[EMAIL PROTECTED]


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




Re[2]: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread rdkurth
Hello Kevin,

It is installed from a tar file


Thursday, February 6, 2003, 2:12:15 AM, you wrote:


KW> This one time, at band camp,
KW> [EMAIL PROTECTED] wrote:

>> configure: error: libjpeg.(a|so) not found.

KW> Install libjpeg

KW> Kevin


KW> -- 
KW>  __  
KW> (_ \ 
KW>  _) )            
KW> |  /  / _  ) / _  | / ___) / _  )
KW> | |  ( (/ / ( ( | |( (___ ( (/ / 
KW> |_|   \) \_||_| \) \)
KW> Kevin Waterson
KW> Port Macquarie, Australia




-- 
Best regards,
 rdkurthmailto:[EMAIL PROTECTED]


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




Re[4]: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread rdkurth
Hello Jason,

/usr/lib/libjpeg.so


Thursday, February 6, 2003, 2:19:36 AM, you wrote:


JW> On Thursday 06 February 2003 18:15, [EMAIL PROTECTED] wrote:

>> I know that is what it means and I do know where libjpeg.so and
>> libjpeg.a are on the server. I also have pointed the configuration to
>> where they are with this --with-jpeg-dir=/usr/local/bin
>> but no mater what I do it still can not find them.and keeps giving me
>> the error  configure: error: libjpeg.(a|so) not found

JW> OK, so what is the full path to your libjpeg.* ?

JW> -- 
Jason Wong ->> Gremlins Associates -> www.gremlins.biz
JW> Open Source Software Systems Integrators
JW> * Web Design & Hosting * Internet & Intranet Applications Development *
JW> --
JW> Search the list archives before you post
JW> http://marc.theaimsgroup.com/?l=php-general
JW> --
JW> /*
JW> How can you have any pudding if you don't eat your meat?
JW> -- Pink Floyd
JW> */





-- 
Best regards,
 rdkurthmailto:[EMAIL PROTECTED]


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




Re[6]: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread rdkurth
Hello Jason,
That worked an got me through the configuration but now after doing a
make I get this error. What do I do to fix this.

/gd_jpeg.c -o ext/gd/libgd/gd_jpeg.lo
/home/tmp/php-4.3.0/ext/gd/libgd/gd_jpeg.c:34: jpeglib.h: No such file or directory
/home/tmp/php-4.3.0/ext/gd/libgd/gd_jpeg.c:35: jerror.h: No such file or directory
/home/tmp/php-4.3.0/ext/gd/libgd/gd_jpeg.c:240: #error IJG JPEG library 
BITS_IN_JSAMPLE value must be 8 or 12
make: *** [ext/gd/libgd/gd_jpeg.lo] Error 1

Thursday, February 6, 2003, 2:35:11 AM, you wrote:


JW> On Thursday 06 February 2003 18:37, [EMAIL PROTECTED] wrote:

>> /usr/lib/libjpeg.so

JW> Then use:

JW>   --with-jpeg-dir=/usr

JW> -- 
Jason Wong ->> Gremlins Associates -> www.gremlins.biz
JW> Open Source Software Systems Integrators
JW> * Web Design & Hosting * Internet & Intranet Applications Development *
JW> --
JW> Search the list archives before you post
JW> http://marc.theaimsgroup.com/?l=php-general
JW> --
JW> /*
JW> "The chain which can be yanked is not the eternal chain."
JW> -- G. Fitch
JW> */





-- 
Best regards,
 rdkurthmailto:[EMAIL PROTECTED]


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




[PHP] compiling php 4.3.0 with gd

2003-02-06 Thread rdkurth
I am trying to compile PHP 4.3.0 with GD and also with-png,with-jpg
and with-freetype. I have installed both png,jpg and freetype2 from a
tar file.
I was finally able to get it through the configure stage with no
errors but now when I run make I am getting the following error.
I have know idea what to do now. It looks like there are a bunch of
parser errors in the freetype2 files I installed. Do I need to install
then a second time


In file included from /home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:50:
/usr/local/include/freetype2/freetype/ftglyph.h:104: parse error before `FT_Library'
/usr/local/include/freetype2/freetype/ftglyph.h:104: warning: no semicolon at end of 
struct or union
/usr/local/include/freetype2/freetype/ftglyph.h:106: parse error before `format'
/usr/local/include/freetype2/freetype/ftglyph.h:106: warning: data definition has no 
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:107: parse error before `advance'
/usr/local/include/freetype2/freetype/ftglyph.h:107: warning: data definition has no 
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:109: warning: data definition has no 
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:156: parse error before `FT_GlyphRec'
/usr/local/include/freetype2/freetype/ftglyph.h:156: warning: no semicolon at end of 
struct or union
/usr/local/include/freetype2/freetype/ftglyph.h:157: warning: data definition has no 
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:158: parse error before `top'
/usr/local/include/freetype2/freetype/ftglyph.h:158: warning: data definition has no 
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:159: parse error before `bitmap'
/usr/local/include/freetype2/freetype/ftglyph.h:159: warning: data definition has no 
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:161: warning: data definition has no 
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:204: parse error before `FT_GlyphRec'
/usr/local/include/freetype2/freetype/ftglyph.h:204: warning: no semicolon at end of 
struct or union
/usr/local/include/freetype2/freetype/ftglyph.h:205: warning: data definition has no 
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:207: warning: data definition has no 
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:228: parse error before `FT_Get_Glyph'
/usr/local/include/freetype2/freetype/ftglyph.h:228: parse error before `slot'
/usr/local/include/freetype2/freetype/ftglyph.h:229: warning: data definition has no 
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:251: parse error before `FT_Glyph_Copy'
/usr/local/include/freetype2/freetype/ftglyph.h:252: warning: data definition has no 
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:281: parse error before 
`FT_Glyph_Transform'
/usr/local/include/freetype2/freetype/ftglyph.h:282: parse error before `FT_Matrix'
/usr/local/include/freetype2/freetype/ftglyph.h:283: warning: data definition has no 
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:360: parse error before 
`FT_Glyph_Get_CBox'
/usr/local/include/freetype2/freetype/ftglyph.h:361: parse error before `FT_UInt'
/usr/local/include/freetype2/freetype/ftglyph.h:362: warning: data definition has no 
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:437: parse error before 
`FT_Glyph_To_Bitmap'
/usr/local/include/freetype2/freetype/ftglyph.h:438: parse error before 
`FT_Render_Mode'
/usr/local/include/freetype2/freetype/ftglyph.h:440: warning: data definition has no 
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:455: parse error before `FT_Done_Glyph'
/usr/local/include/freetype2/freetype/ftglyph.h:455: warning: data definition has no 
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:486: parse error before 
`FT_Matrix_Multiply'
/usr/local/include/freetype2/freetype/ftglyph.h:486: parse error before `*'
/usr/local/include/freetype2/freetype/ftglyph.h:487: warning: data definition has no 
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:506: parse error before 
`FT_Matrix_Invert'
/usr/local/include/freetype2/freetype/ftglyph.h:506: parse error before `*'
/usr/local/include/freetype2/freetype/ftglyph.h:506: warning: data definition has no 
type or storage class
/home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:95: parse error before `FT_Library'
/home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:95: warning: no semicolon at end of struct or 
union
/home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:96: warning: data definition has no type or 
storage class
/home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:97: parse error before `have_char_map_unicode'
/home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:98: warning: data definition has no type or 
storage class
/home/tmp/php-4.3.0/ext/gd/libgd/gdft.c:100: parse error before `}'
/home/tmp/php-4.3.0/ext/gd/libgd/gd

[PHP] Testing if any of the items are false

2003-02-10 Thread rdkurth


How can I do this to determine if one of the items is false if none are
then I what it to print the first echo of there is one that is false
then print the second echo
$test1= "YES";
$test2= "YES";
$test3= "YES";
$test4= "YES";
$ftest1= "YES";
$ftest2= "NO";
$ftest3= "YES";
$ftest4= "YES";

if ($test1==$ftest1)or($test2==$ftest2)or($test3==$ftest3)
or($test4==$ftest4){
echo "all of the items are true";
 }else{
  echo "one of the items is false";
 }

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




[PHP] adding to an array

2003-02-23 Thread rdkurth
Hello ,

I need a way to read the following text file and add to or delete from
or change the data.
I have been able to move it all into an array using this code
$groups= file("group");
for ($i=0; $i<$number_in_group; $i++){
}
But I can not figure out how to search the array and delete from or add
to the array at a given point. I would like to say add another user to
the end of site6 or delete a user from site3.
Could sombody give me a hand here. I have read the manual for arrays
and still can't figure it out.

site1:x:503:tester1
site2:x:504:tester2,tester2a
site3:x:505:tester3,tester3a,tester3b
site4:x:506:tester4
site5:x:507:tester5,tester5a,tester5b
site6:x:508:tester6
site7:x:509:tester7,tester7a,tester7b
-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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



[PHP] Help with multiple select

2002-08-08 Thread rdkurth

I need to get the data from the table and add it to the multiple
select statement below. What I am trying to do is give the user a form
to change his pervious selections. Now doing this if there is only one thing
selected is easy. but I need a way to select multiple fields. The data
in $mins would look like this 8,13,15,20. I tried this little script
below but it does not work because of the , and I would also have to do
it for ever option value. There must be a shorter way of doing this.


$mins="2,3,5,6,7";



0

1

1


2

2


3

3

4
5
6
7
8
9
10
11

12
13
14
15
16
17
18
19
20
21
22
23


-- 
Best regards,
Richard Kurth mailto:[EMAIL PROTECTED]


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




Re[2]: [PHP] Help with multiple select

2002-08-08 Thread rdkurth

Hello Maxim,
Is this what you are saying to do. I don't understand way this would
work and what I have hear does not work

mins="1,4,6,";
$ret   = array_reverse(explode(',', $mins));


0

0

1

1

2

2

3

3

4

4

5

5

6

6


Thursday, August 08, 2002, 3:51:46 PM, you wrote:



MM> Try:

MM> $mins  = "2,3,5,6,7";
MM> $ret   = array_reverse(explode(',', $mins));

MM> // now you have something like:
MM> // $ret[2] = 0;
MM> // $ret[3] = 1;
MM> //
MM> // etc, basically string became and array in reversed way...

MM> then in script...


MM> if(isset($mins[2]))
MM> ...
MM> if(isset($mins[3]))


MM> and so on .


MM> but, I would really recommend you to experiment some alternative ways
MM> with use of a loop. That would be way cleaner.


MM> Sincerely,

MM> Maxim Maletsky
MM> [EMAIL PROTECTED]

MM> PHP Beginner
MM> www.phpbeginner.com


>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, August 09, 2002 12:38 AM
>> To: php-general
>> Subject: [PHP] Help with multiple select
>> 
>> I need to get the data from the table and add it to the multiple
>> select statement below. What I am trying to do is give the user a form
>> to change his pervious selections. Now doing this if there is only one
>> thing
>> selected is easy. but I need a way to select multiple fields. The data
>> in $mins would look like this 8,13,15,20. I tried this little script
>> below but it does not work because of the , and I would also have to
MM> do
>> it for ever option value. There must be a shorter way of doing this.
>> 
>> 
>> $mins="2,3,5,6,7";
>> 
>> 
>> 
>> 0
>> 
>> 1
>> 
>> 1
>> 
>> 
>> 2
>> 
>> 2
>> 
>> 
>> 3
>> 
>> 3
>> 
>> 4
>> 5
>> 6
>> 7
>> 8
>> 9
>> 10
>> 11
>> 
>> 12
>> 13
>> 14
>> 15
>> 16
>> 17
>> 18
>> 19
>> 20
>> 21
>> 22
>> 23
>> 
>> 
>> --
>> Best regards,
>> Richard Kurth mailto:[EMAIL PROTECTED]
>> 
>> 
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php






-- 
Best regards,
 rdkurthmailto:[EMAIL PROTECTED]


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




Re[4]: [PHP] Help with multiple select

2002-08-08 Thread rdkurth

Hello Maxim,
I had done that but when I run it using the numbers 1,3,4 in the $mins
variables the fields that where selected where 0 1 and 2. If I change
it to $mins=3,5  it select 0 1 . if I use $mins="3,4,6,8,10,22"; it
select 0 through 5

Thursday, August 08, 2002, 4:46:49 PM, you wrote:



MM> Change $mins to $ret in the HTML code.


MM> Sincerely,

MM> Maxim Maletsky

MM> PHP Beginner
MM> www.phpbeginner.com


>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, August 09, 2002 1:34 AM
>> To: Maxim Maletsky; php-general
>> Subject: Re[2]: [PHP] Help with multiple select
>> 
>> Hello Maxim,
>> Is this what you are saying to do. I don't understand way this would
>> work and what I have hear does not work
>> 
>> mins="1,4,6,";
>> $ret   = array_reverse(explode(',', $mins));
>> 
>> > if(isset($mins[0])){?>
>> 0
>> 
>> 0
>> > if(isset($mins[1])){?>
>> 1
>> 
>> 1
>> > if(isset($mins[2])){?>
>> 2
>> 
>> 2
>> > if(isset($mins[3])){?>
>> 3
>> 
>> 3
>> > if(isset($mins[4])){?>
>> 4
>> 
>> 4
>> > if(isset($mins[5])){?>
>> 5
>> 
>> 5
>> > if(isset($mins[6])){?>
>> 6
>> 
>> 6
>> 
>> 
>> Thursday, August 08, 2002, 3:51:46 PM, you wrote:
>> 
>> 
>> 
>> MM> Try:
>> 
>> MM> $mins  = "2,3,5,6,7";
>> MM> $ret   = array_reverse(explode(',', $mins));
>> 
>> MM> // now you have something like:
>> MM> // $ret[2] = 0;
>> MM> // $ret[3] = 1;
>> MM> //
>> MM> // etc, basically string became and array in reversed way...
>> 
>> MM> then in script...
>> 
>> 
>> MM> if(isset($mins[2]))
>> MM> ...
>> MM> if(isset($mins[3]))
>> 
>> 
>> MM> and so on .
>> 
>> 
>> MM> but, I would really recommend you to experiment some alternative
MM> ways
>> MM> with use of a loop. That would be way cleaner.
>> 
>> 
>> MM> Sincerely,
>> 
>> MM> Maxim Maletsky
>> MM> [EMAIL PROTECTED]
>> 
>> MM> PHP Beginner
>> MM> www.phpbeginner.com
>> 
>> 
>> >> -Original Message-
>> >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>> >> Sent: Friday, August 09, 2002 12:38 AM
>> >> To: php-general
>> >> Subject: [PHP] Help with multiple select
>> >>
>> >> I need to get the data from the table and add it to the multiple
>> >> select statement below. What I am trying to do is give the user a
MM> form
>> >> to change his pervious selections. Now doing this if there is only
MM> one
>> >> thing
>> >> selected is easy. but I need a way to select multiple fields. The
MM> data
>> >> in $mins would look like this 8,13,15,20. I tried this little
MM> script
>> >> below but it does not work because of the , and I would also have
MM> to
>> MM> do
>> >> it for ever option value. There must be a shorter way of doing
MM> this.
>> >>
>> >>
>> >> $mins="2,3,5,6,7";
>> >>
>> >> 
>> >> 
>> >> 0
>> >> 
>> >> 1
>> >> 
>> >> 1
>> >> 
>> >> 
>> >> 2
>> >> 
>> >> 2
>> >> 
>> >> 
>> >> 3
>> >> 
>> >> 3
>> >> 
>> >> 4
>> >> 5
>> >> 6
>> >> 7
>> >> 8
>> >> 9
>> >> 10
>> >> 11
>> >> 
>> >> 12
>> >> 13
>> >> 14
>> >> 15
>> >> 16
>> >> 17
>> >> 18
>> >> 19
>> >> 20
>> >> 21
>> >> 22
>> >> 23
>> >> 
>> >>
>> >> --
>> >> Best regards,
>> >> Richard Kurth mailto:[EMAIL PROTECTED]
>> >>
>> >>
>> >> --
>> >> PHP General Mailing List (http://www.php.net/)
>> >> To unsubscribe, visit: http://www.php.net/unsub.php
>> 
>> 
>> 
>> 
>> 
>> 
>> --
>> Best regards,
>>  rdkurthmailto:[EMAIL PROTECTED]






-- 
Best regards,
 rdkurthmailto:[EMAIL PROTECTED]


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




[PHP] Problem with selection

2002-08-08 Thread rdkurth

Could somebody look at this and tell me way it is not selecting the
option fields in the $mins variable. I have looking at this all day
and can not figure out what is wrong with it.

";
echo "";
echo $td;
for($i=0; $i<60; $i++) {
if($i<=6) {
echo "$i";
}else{
echo "$i";
if(($i%11)==0)
echo " \n\n $td";
}}
echo "";
?>


-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




[PHP] storing errors from shell_exec command

2002-08-09 Thread rdkurth


I need to redirect the output from the shell_exec return variable to a
file. What I have below is not working. What I need to get from the
shell_exec is ant errors that happen and then I what to store those
errors in a error file

$output=shell_exec($cmd);
$cmd ="`$output > /usr/autoserv/errlog`";
exec($cmd);

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




[PHP] problem with PostgreSQL

2002-08-21 Thread rdkurth

 Can somebody tell me what this mines in my error log
 I have PostgreSQL compiled in to php so that should not be the problem
PHP Warning:  Function registration failed - duplicate name - pg_connect in Unknown on 
line 0
PHP Warning:  Function registration failed - duplicate name - pg_pconnect in Unknown 
on line 0
PHP Warning:  Function registration failed - duplicate name - pg_close in Unknown on 
line 0
PHP Warning:  Function registration failed - duplicate name - pg_connection_status in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - pg_connection_busy in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - pg_connection_reset in 
Unknown on line 
I am also getting this error
[Wed Aug 21 11:06:56 2002] [error] PHP Warning:  pg_pconnect() unable to connect to 
PostgreSQL server: PQconnec
tPoll() -- connect() failed: Connection refused
Is the postmaster running (with -i) at '127.0.0.1'
and accepting connections on TCP/IP port '5901'?
 in /home/sites/site61/web/util/session_management.phps on line 69
  

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




[PHP] Help with matchng strings

2002-08-25 Thread rdkurth


I have two list one is listA and the other is listB I would
like to take the values in listB and compare them with listA if any of
them match then I what to create a new list listC and put the values
that match in it. If they do not match I want the values to go into listD.
I have been messing with this for three days and have not been able to get
it to work. I have used foreach statements and array_search but what ever
I try I just can't seam to get it. What I need is something like below.
Could somebody please help.


 If LISTB MATCHES LISTA If NO Match
LISTA LISTB  Make LISTC  Make LISTD


test1 test4 test4   test1
test2 test6 test6   test2
test3 test8 test8   test3
test4   test5
test5   test7
test6   test9
test7
test8
test9
  

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




Re[2]: [PHP] Help with matchng strings

2002-08-25 Thread rdkurth

Hello Rasmus,

Ok I understand the array_intersect and have gotten that to work.
I just don't understand the second part using the foreach and unset().

this is what I have it gives me three separate list

$listA="tester1 tester2 tester3 tester4 tester5 tester6 tester7 tester8 tester9";
$listB="tester4 tester6 tester8";

$arraylistA=explode(" ",$listA);
$arraylistB=explode(" ",$listB);

$result = array_intersect ($arraylistA, $arraylistB);

foreach($arraylistA as $valueA){
echo "ValueA: $valueA\n";
}
echo "";
foreach($arraylistB as $valueB){
echo "ValueB: $valueB\n";
}
echo "";
foreach($result as $valueC){
echo "ValueC: $valueC\n";
}

Sunday, August 25, 2002, 4:48:36 PM, you wrote:


RL> array_intersect() will give you listC directly.  Just feed it list A and
RL> B.  Then you can take a copy of listA and do a foreach on the array_keys()
RL> of listC and unset() them.  Now this copy with the removed elements
RL> becomes your listD

RL> -Rasmus

RL> On Sun, 25 Aug 2002 [EMAIL PROTECTED] wrote:

>>
>> I have two list one is listA and the other is listB I would
>> like to take the values in listB and compare them with listA if any of
>> them match then I what to create a new list listC and put the values
>> that match in it. If they do not match I want the values to go into listD.
>> I have been messing with this for three days and have not been able to get
>> it to work. I have used foreach statements and array_search but what ever
>> I try I just can't seam to get it. What I need is something like below.
>> Could somebody please help.
>>
>>
>>  If LISTB MATCHES LISTA If NO Match
>> LISTA LISTB  Make LISTC  Make LISTD
>>
>>
>> test1 test4 test4   test1
>> test2 test6 test6   test2
>> test3 test8 test8   test3
>> test4       test5
>> test5   test7
>> test6   test9
>> test7
>> test8
>> test9
>>
>>
>> --
>> Best regards,
>>  rdkurth  mailto:[EMAIL PROTECTED]
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>





-- 
Best regards,
 rdkurthmailto:[EMAIL PROTECTED]


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




[PHP] Only show certain files in directory

2002-08-25 Thread rdkurth

I am showing a directory of files and I don't what all the files to
show on the screen. I was able to get the . and the .. not to show
with what I have below but there are some other files in there that look
like this mylist.confg. I don't want them to show in the directory
list. I tried && $files != "*.config"  but this did not work .
Anybody have an suggestions

if ($handle = opendir('/path/to/list/directory')) {
while (false !== ($files = readdir($handle))) {
 if ($files != "." && $files != "..") {
  echo $files;
 }

  

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




[PHP] filter files in a directory

2002-08-26 Thread rdkurth

I am showing a directory of files and I don't what all the files to
show on the screen. I was able to get the . and the .. not to show
with what I have below but there are some other files in there that look
like this mylist.confg. I don't want them to show in the directory
list. I tried && $files != "*.config"  but this did not work .
Anybody have an suggestions on how to do this . I have look through
the manual and the mailing list but can't figure out how to make the
pattern to keep this from showing

if ($handle = opendir('/path/to/list/directory')) {
while (false !== ($files = readdir($handle))) {
 if ($files != "." && $files != "..") {
  echo $files;
 }


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




[PHP] dumping mysql database with php script

2002-09-01 Thread rdkurth


I am having a problem with a script to dump a mysql database to a text
file. When I run the command below it creates the database.sql file but
it only puts the first three lines in that file they look like this
# MySQL dump 8.13
#
# Host: localhostDatabase: testdata1
#
# Server version3.23.37


If I run the following at the command line it work perfect passing the whole
database to the txt file
/usr/bin/mysqldump -u testdata1 -ptestdata1 testdata1
> /home/sites/www.directphp.net/sitebackup/databases/testdata1.sql

Why is it stopping on the third line when I run it with a PHP script

This is my script


$sql="Select * from datba where domname = '$domname'";
$results=safe_query($sql);
while($row = mysql_fetch_array($result)){
$databasename=$row["databasename"];
$databaseusername=$row["$databaseusername"];
$databasepassword=$row["$databasepassword"];
exec("/usr/bin/mysqldump -u $databaseusername -p$databasepassword $databasename > 
$Databasesdir/$databasename.sql");
}


-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




[PHP] using shell_exec

2002-09-01 Thread rdkurth


Can somebody tell me way this will work at the command line but will
not work using PHP I also tried exec and system. from the command line
it adds all the files and directors. But using the script below from
PHP it creates an empty archive.

shell_exec("cd /home/sites/www.directphp.net/ | tar --create --verbose
--file=/home/sites/www.directphp.net/sitebackup/backup.192002.tar web");

  

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




Re[2]: [PHP] using shell_exec

2002-09-01 Thread rdkurth

Hello Todd,
 verbose was just in there so I could see what was going on at the
 command line it is not in the php script becase there is no need for
 it

Sunday, September 01, 2002, 8:41:42 PM, you wrote:


TP> Only just noticed this when I read my post...

TP> Why do you want to use verbose?

TP> If you want to capture the output for some reason, use this

TP> exec("cd /change/to/dir; tar cvf /place/for/backup.tar files",
TP> $capturedoutput);

TP> otherwise drop the v (or --verbose) which will chew less resources.

TP> Todd.

>> -Original Message-
>> From: Todd Pasley [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, 2 September 2002 1:32 PM
>> To: Richard Kurth; php-general
>> Subject: RE: [PHP] using shell_exec
>>
>>
>> Use ; instead of |
>>
>> e.g.
>>
>> shell_exec("cd /change/to/dir; tar cvf /place/for/backup.tar files");
>>
>> Todd.
>>
>>
>> > -Original Message-
>> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>> > Sent: Monday, 2 September 2002 9:40 AM
>> > To: php-general
>> > Subject: [PHP] using shell_exec
>> >
>> >
>> >
>> > Can somebody tell me way this will work at the command line but will
>> > not work using PHP I also tried exec and system. from the command line
>> > it adds all the files and directors. But using the script below from
>> > PHP it creates an empty archive.
>> >
>> > shell_exec("cd /home/sites/www.directphp.net/ | tar --create --verbose
>> > --file=/home/sites/www.directphp.net/sitebackup/backup.192002.tar web");
>> >
>> >
>> >
>> > --
>> > Best regards,
>> >  rdkurth  mailto:[EMAIL PROTECTED]
>> >
>> >
>> > --
>> > 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
>>





-- 
Best regards,
 rdkurthmailto:[EMAIL PROTECTED]


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




[PHP] dumping mysql database with php script

2002-09-02 Thread rdkurth


I am having a problem with a script to dump a mysql database to a text
file. When I run the command below it creates the database.sql file but
it only puts the first three lines in that file they look like this
# MySQL dump 8.13
#
# Host: localhostDatabase: testdata1
#
# Server version3.23.37


If I run the following at the command line it work perfect passing the whole
database to the txt file
/usr/bin/mysqldump -u testdata1 -ptestdata1 testdata1
> /home/sites/www.directphp.net/sitebackup/databases/testdata1.sql

Why is it stopping on the third line when I run it with a PHP script

This is my script

while($row = mysql_fetch_array($result)){
$databasename=$row["databasename"];
$databaseusername=$row["$databaseusername"];
$databasepassword=$row["$databasepassword"];

exec("/usr/bin/mysqldump -u $databaseusername -p$databasepassword $databasename >
$Databasesdir/$databasename.sql");
}


  

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




Re[2]: [PHP] dumping mysql database with php script

2002-09-02 Thread rdkurth

Hello Petre,
There is more than one database to back up so every time it runs
through the while loop it is suppose to back up the next database and
it changes the name of the text file it is sending it to.

I have already tried just doing one database without the while loop
and I get the same results.
So it is not an over writing  problem
But Thanks anyway

Monday, September 02, 2002, 12:51:12 AM, you wrote:


PA> put the exec(...) line OUTSIDE the while loop.As your codeis now, it's
PA> dumping with each new row , so i'ts overwriting itself.

PA> On Mon, 2002-09-02 at 09:47, [EMAIL PROTECTED] wrote:
>> 
>> I am having a problem with a script to dump a mysql database to a text
>> file. When I run the command below it creates the database.sql file but
>> it only puts the first three lines in that file they look like this
>> # MySQL dump 8.13
>> #
>> # Host: localhostDatabase: testdata1
>> #
>> # Server version3.23.37
>> 
>> 
>> If I run the following at the command line it work perfect passing the whole
>> database to the txt file
>> /usr/bin/mysqldump -u testdata1 -ptestdata1 testdata1
>> > /home/sites/www.directphp.net/sitebackup/databases/testdata1.sql
>> 
>> Why is it stopping on the third line when I run it with a PHP script
>> 
>> This is my script
>> 
>> while($row = mysql_fetch_array($result)){
>> $databasename=$row["databasename"];
>> $databaseusername=$row["$databaseusername"];
>> $databasepassword=$row["$databasepassword"];
>> 
>> exec("/usr/bin/mysqldump -u $databaseusername -p$databasepassword $databasename >
>> $Databasesdir/$databasename.sql");
>> }
>> 
>> 
>>   
>> 
>> -- 
>> Best regards,
>>  rdkurth  mailto:[EMAIL PROTECTED]
>> 
>> 
>> -- 
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>> 




-- 
Best regards,
 rdkurthmailto:[EMAIL PROTECTED]


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




Re[2]: [PHP] dumping mysql database with php script

2002-09-02 Thread rdkurth



I figured it out it was a permission problem with database username and
password

Monday, September 02, 2002, 12:51:12 AM, you wrote:


PA> put the exec(...) line OUTSIDE the while loop.As your codeis now, it's
PA> dumping with each new row , so i'ts overwriting itself.

PA> On Mon, 2002-09-02 at 09:47, [EMAIL PROTECTED] wrote:
>> 
>> I am having a problem with a script to dump a mysql database to a text
>> file. When I run the command below it creates the database.sql file but
>> it only puts the first three lines in that file they look like this
>> # MySQL dump 8.13
>> #
>> # Host: localhostDatabase: testdata1
>> #
>> # Server version3.23.37
>> 
>> 
>> If I run the following at the command line it work perfect passing the whole
>> database to the txt file
>> /usr/bin/mysqldump -u testdata1 -ptestdata1 testdata1
>> > /home/sites/www.directphp.net/sitebackup/databases/testdata1.sql
>> 
>> Why is it stopping on the third line when I run it with a PHP script
>> 
>> This is my script
>> 
>> while($row = mysql_fetch_array($result)){
>> $databasename=$row["databasename"];
>> $databaseusername=$row["$databaseusername"];
>> $databasepassword=$row["$databasepassword"];
>> 
>> exec("/usr/bin/mysqldump -u $databaseusername -p$databasepassword $databasename >
>> $Databasesdir/$databasename.sql");
>> }
>> 
>> 
>>   
>> 
>> -- 
>> Best regards,
>>  rdkurth  mailto:[EMAIL PROTECTED]
>> 
>> 
>> -- 
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>> 




-- 
Best regards,
 rdkurthmailto:[EMAIL PROTECTED]


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




[PHP] using CURL to post data to a search engine

2002-09-27 Thread rdkurth

 I am trying to use curl to post data to a search engine and then
 return the results in a variable so I can manipulate it.
  I have tried this but it does not seam to work properly.
  This is just an example of how I am trying to do this I don't have
  to use google for the search engine just thought if I can get it
  working with this I can get it to work with others
  
$ch = curl_init ("http://www.google.com/";);
curl_setopt ($ch, CURLOPT_POST, 1);
$word="php";
$args="action=/search&hl=en&ie=UTF-8&oe=UTF-8&q=$word&btnG=Google Search";
curl_setopt ($ch, CURLOPT_POSTFIELDS, $args);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec ($ch);
curl_close ($ch);
echo $data;

There does not seam to be much info or examples on using curl with php
is there anyplace that you know of that has more info than the manual
 


  

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




[PHP] counting words in a string

2002-09-27 Thread rdkurth


I need to count how many times the word AVAILABLE appears in a string
like this
$string ="AVAILABLE More Info AVAILABLE More Info";
 some time the string looks like this
$string ="UNAVAILABLE More Info AVAILABLE More Info";
 or
$string ="AVAILABLE More Info UNAVAILABLE More Info";
when I use
$srch="AVAILABLE";
$count=substr_count(strtolower($string), strtolower($srch));
echo $count;
it puts the count a 2 even when one of the words is UNAVAILABLE
how can I make it only count AVAILABLE and not UNAVAILABLE or visa
verse
-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




Re[2]: [PHP] counting words in a string

2002-09-27 Thread rdkurth

Hello Justin,

That worked perfect but I have one more problem I need to know if one
of the word is UNAVAILABLE I need to know if it is the first one or
the second one. I don't know if there is any way to do this.
   1st 2nd
$string ="UNAVAILABLE AVAILABLE More Info";
  1st   2nd
 $string ="AVAILABLE More Info UNAVAILABLE ";
 
Friday, September 27, 2002, 11:22:42 PM, you wrote:


JF> if this is your SPECIFIC problem, putting a space at the beginning of $srch
JF> will help, eliminating XAVAILABLE... but this will cause a problem with the
JF> word AVAILABLE appearing at the start of the string, so temporarily put a
JF> space at the start of the string:

JF>  // UNTESTED
JF> $count = substr_count(' '.strtolower($string), strtolower(' '.$srch));
JF> echo $count;
?>>

JF> this won't help if there are newlines and other white space instead of
JF> spaces, and won't help (so far) for a different set of circumstances...

JF> it would be nice to extend substr_count() could be extended to have an
JF> option.

JF> Justin



JF> on 28/09/02 3:41 PM, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote:

>> 
>> I need to count how many times the word AVAILABLE appears in a string
>> like this
>> $string ="AVAILABLE More Info AVAILABLE More Info";
>> some time the string looks like this
>> $string ="UNAVAILABLE More Info AVAILABLE More Info";
>> or
>> $string ="AVAILABLE More Info UNAVAILABLE More Info";
>> when I use
>> $srch="AVAILABLE";
>> $count=substr_count(strtolower($string), strtolower($srch));
>> echo $count;
>> it puts the count a 2 even when one of the words is UNAVAILABLE
>> how can I make it only count AVAILABLE and not UNAVAILABLE or visa
>> verse





-- 
Best regards,
 rdkurthmailto:[EMAIL PROTECTED]


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




[PHP] converting some perl script to php

2002-06-12 Thread rdkurth


How can I do this in PHP. Could somebody just point me in the write
direction



  open (REQ, "|$Openssl_cmd req -new -config /usr/lib/openssl.cnf "
  . "-key $cert_dir/key -days $days -out $cert_dir/request 1>&2") ||
  return MSG_error("ssl_cant_gen_request");

print REQ 

[PHP] Equivalent of this in php

2002-06-12 Thread rdkurth



What would be the equivalent of this in php. Mostly the open (REQ and
the print REQ <&2") ||
  return MSG_error("ssl_cant_gen_request");

print REQ 

[PHP] Run two separate version of Apache and Php

2002-06-23 Thread rdkurth

Hello php-general,

I need to run a separate version of Apache on the same server I also
what to use a different copy of the php.ini file with that version of
apache. I am aware that I can override most of the php.ini settings in
the httpd.conf file. But this is not what I want to do.
Php will be running as a DSO with apache. So is the only way I can do
this is to install a different copy of php to run with this version of
Apache. Or is there a way I can get the httpd.conf file to read a
different copy of php.ini




-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




[PHP] Run two separate version of Apache and Php

2002-06-24 Thread rdkurth

Hello php-general,

I need to run a separate version of Apache on the same server I also
what to use a different copy of the php.ini file with that version of
apache. I am aware that I can override most of the php.ini settings in
the httpd.conf file. But this is not what I want to do.
Php will be running as a DSO with apache. So is the only way I can do
this is to install a different copy of php to run with this version of
Apache. Or is there a way I can get the httpd.conf file to read a
different copy of php.ini




  

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




[PHP] looping through numbers

2002-06-24 Thread rdkurth

Hello ,

How do I do a loop that will increase a number tell it reaches another
number

I what it to print out every number starting at 200 and ending at 250
so it would print out 200 201 202 203 204



-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




[PHP] extracting data from text file

2002-07-01 Thread rdkurth

Hello ,
I have a text file that looks like this. each entry is on a different
line I need to pull the data out of
it and put each line of data into its own variable

US
State
City
Company Name
Section 2
www.domain.com
[EMAIL PROTECTED]

I have trend this but it does not work properly

$fp = @fopen(file.txt,"r");
  $line = explode("\n",$fp);
  $valueC = "$line[0]";
  $valueST = "$line[1]";
  @fclose($fp);

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




[PHP] if statement

2002-07-08 Thread rdkurth


Is it possible to do something like this all on one line.
What I need is if any one of these are true then run the script

if($type=="test1")or($type=="test2")or($type=="test3"){

  

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




Re[2]: [PHP] if statement

2002-07-08 Thread rdkurth

Hello Martin,
Thanks the array worked just perfect. Where do you find stuff like
this I looked all over the manual and could not find anything that
told me how to do this.

Monday, July 08, 2002, 9:01:44 PM, you wrote:


MT> You can do this:

MT> if ($type == "test1" || $type == "test2" || $type == "test3") {

MT> or, what I prefer in this case

MT> if (in_array($type, array("test1", "test2", "test3"))) {

MT> Martin

MT> -Original Message-
MT> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
MT> Sent: Tuesday, July 09, 2002 2:11 PM
MT> To: php-general
MT> Subject: [PHP] if statement



MT> Is it possible to do something like this all on one line.
MT> What I need is if any one of these are true then run the script

MT> if($type=="test1")or($type=="test2")or($type=="test3"){

  




-- 
Best regards,
 rdkurthmailto:[EMAIL PROTECTED]


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




[PHP] PostgreSQL

2002-07-16 Thread rdkurth

PHP is compiled with PostgreSQL support but I can not connect. I get
this error message What does it mean and what do I need to do to fix
it

Warning: pg_connect() unable to connect to PostgreSQL server: connectDB()
-- connect() failed: Connection refused Is the postmaster running (with -i)
at 'localhost' and accepting connections on TCP/IP port '5583'? in
/home/sites/home/web/test/test.php on line 2


  

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




[PHP] calling a cgi script from php

2002-07-16 Thread rdkurth

Hello ,

I am trying to call a cgi script from a PHP script and get it to return
some data.
I am using the script below but it does not seam to work.
The cgi script (or I should say function) I am trying to call is in a
perl pm file. I have include a copy of the function I am trying to
call. Does anybody know what I am doing wrong.

$username= "sdfsfs";
$cmd="/usr/lib/perl5/site_perl/5.005/Email.pm::mail_virtuser_get_byuser $username";
$returndata=exec($cmd);
echo $returndata;




sub mail_virtuser_get_byuser
# Parses a list of aliases a user owns
# Arguments: username
# Return value: Array of aliases
{
my($username) = @_;
my(%virtuser) = Email::mail_virtuser_list_alias();
my($alias,$user,@alii);
foreach $alias (keys %virtuser) {
push(@alii,$alias) if ($virtuser{$alias} eq $username);
}
return(@alii);
}

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




[PHP] sorting and searching an Array

2002-07-17 Thread rdkurth

 After I read this file into an array (small sample of file below) I need to sorted it 
by the name at
 the end of each line and then echo out only the ones that the name
 equals the name in a search variable.

 Also could somebody recommend a PHP book that covers a lot of info on
 working with text files. It seams to be very little info in any of the
 boos I have now. It is sort of skipped over a lot

[EMAIL PROTECTED]   mrgouldian
[EMAIL PROTECTED]   myname
[EMAIL PROTECTED] mrgouldian
[EMAIL PROTECTED] mrgouldian
[EMAIL PROTECTED]   myname
[EMAIL PROTECTED] mrgouldian
[EMAIL PROTECTED]   myname
[EMAIL PROTECTED]   myname
[EMAIL PROTECTED] mrgouldian
[EMAIL PROTECTED]   myname


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




[PHP] Submitting to cgi script

2002-07-21 Thread rdkurth

How can I do this

I have a form that I want to submit to a second php script that in turn
submits to a cgi script but I can not get it to work. If I submit
from the form to the cgi script it works just fine. But there are
something that I need to do with the data besides submitting to the
cgi script. Could you look at the sample code below and see if I am
doing something wrong. I hope this makes sense I am not quit sure how
to ask what I want to know
If I was submitting directly to the cgi script the form action would
look like this
 


 




>






The siteUserEmail.php file

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




Re[2]: [PHP] Submitting to cgi script

2002-07-21 Thread rdkurth

Hello B,
I just submitted directly to the cgi script and did it with a GET and
it worked so that is not the problem. Any other suggestions

Sunday, July 21, 2002, 4:52:09 PM, you wrote:


BigDog> In your example you are using the method of POST to pass the form data to
BigDog> the cgi script.  However, when you pass the data to the cgi script from the
BigDog> php script you are using the GET method to pass the data.

BigDog> Check and see if the cgi can accept with METHOD="GET"

BigDog> .: B i g D o g :.


BigDog> - Original Message -
BigDog> From: <[EMAIL PROTECTED]>
BigDog> To: "php-general" <[EMAIL PROTECTED]>
BigDog> Sent: Sunday, July 21, 2002 5:46 PM
BigDog> Subject: [PHP] Submitting to cgi script


>> How can I do this
>>
>> I have a form that I want to submit to a second php script that in turn
>> submits to a cgi script but I can not get it to work. If I submit
>> from the form to the cgi script it works just fine. But there are
>> something that I need to do with the data besides submitting to the
>> cgi script. Could you look at the sample code below and see if I am
>> doing something wrong. I hope this makes sense I am not quit sure how
>> to ask what I want to know
>> If I was submitting directly to the cgi script the form action would
>> look like this
>>  
>>
>>
>>
>> 
>> 
>> 
>> 
>> >
>> 
>> 
>> 
>> 
>> 
>>
>> The siteUserEmail.php file
>> > $cmd="/cgi-bin/siteUserEmail/siteUserEmail.cgi?forwardaddr=$forwardaddr
>> &aliases=$aliases&vacationmode=$vacationmode&vacationmsg=$vacationmsg
>> &name=$name&group=$group&page=$page";
>> exec($cmd);
>> ?>
>> --
>> Best regards,
>>  rdkurth  mailto:[EMAIL PROTECTED]
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php




-- 
Best regards,
 rdkurthmailto:[EMAIL PROTECTED]


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




Re[4]: [PHP] Submitting to cgi script

2002-07-21 Thread rdkurth

Hello Ray,

This worked now my question is. Is there a way to force it to submit with
POST rather than GET

Sunday, July 21, 2002, 5:12:30 PM, you wrote:


RH> Instead of doing it as a command, try it through the webserver

RH>  header( "Location:
RH> http://localhost/cgi-bin/siteUserEmail/siteUserEmail.cgi?forwardaddr=$forwar
RH> daddr&aliases=$aliases&vacationmode=$vacationmode&vacationmsg=$vacationmsg&n
RH> ame=$name&group=$group&page=$page" );

?>>


RH> Or you can use something else...but send it to the web server...



RH> .: B i g D o g :.


RH> - Original Message -
RH> From: <[EMAIL PROTECTED]>
RH> To: "B i g D o g" <[EMAIL PROTECTED]>; "php-general"
RH> <[EMAIL PROTECTED]>
RH> Sent: Sunday, July 21, 2002 6:15 PM
RH> Subject: Re[2]: [PHP] Submitting to cgi script


>> Hello B,
>> I just submitted directly to the cgi script and did it with a GET and
>> it worked so that is not the problem. Any other suggestions
>>
>> Sunday, July 21, 2002, 4:52:09 PM, you wrote:
>>
>>
>> BigDog> In your example you are using the method of POST to pass the form
RH> data to
>> BigDog> the cgi script.  However, when you pass the data to the cgi script
RH> from the
>> BigDog> php script you are using the GET method to pass the data.
>>
>> BigDog> Check and see if the cgi can accept with METHOD="GET"
>>
>> BigDog> .: B i g D o g :.
>>
>>
>> BigDog> - Original Message -
>> BigDog> From: <[EMAIL PROTECTED]>
>> BigDog> To: "php-general" <[EMAIL PROTECTED]>
>> BigDog> Sent: Sunday, July 21, 2002 5:46 PM
>> BigDog> Subject: [PHP] Submitting to cgi script
>>
>>
>> >> How can I do this
>> >>
>> >> I have a form that I want to submit to a second php script that in turn
>> >> submits to a cgi script but I can not get it to work. If I submit
>> >> from the form to the cgi script it works just fine. But there are
>> >> something that I need to do with the data besides submitting to the
>> >> cgi script. Could you look at the sample code below and see if I am
>> >> doing something wrong. I hope this makes sense I am not quit sure how
>> >> to ask what I want to know
>> >> If I was submitting directly to the cgi script the form action would
>> >> look like this
>> >>  
>> >>
>> >>
>> >>
>> >> 
>> >> 
>> >> 
>> >> 
>> >> >
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >>
>> >> The siteUserEmail.php file
>> >> > >> $cmd="/cgi-bin/siteUserEmail/siteUserEmail.cgi?forwardaddr=$forwardaddr
>> >> &aliases=$aliases&vacationmode=$vacationmode&vacationmsg=$vacationmsg
>> >> &name=$name&group=$group&page=$page";
>> >> exec($cmd);
>> >> ?>
>> >> --
>> >> Best regards,
>> >>  rdkurth  mailto:[EMAIL PROTECTED]
>> >>
>> >>
>> >> --
>> >> PHP General Mailing List (http://www.php.net/)
>> >> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>>
>> --
>> Best regards,
>>  rdkurthmailto:[EMAIL PROTECTED]
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php





-- 
Best regards,
 rdkurthmailto:[EMAIL PROTECTED]


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




[PHP] separated string by comas

2002-07-21 Thread rdkurth


I have a string that is separated by spaces like this
$string="test test1 test2 test3";
how can I make the string so it is separated by comas like this
$string="test,test1,test2,test3";
I know this is probably simple but I just can't figure it out

  

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




[PHP] error in mysql SQL syntax

2003-12-12 Thread rdkurth
Could somebody tell me way I am getting an error in this SQL syntax.


$query = "insert into majordomoaliases
(domain,address)values(\"$domname\",\"$virtdomain-majordomo:\"|$wrapper
majordomo -C $domaincf\")";


error=You have an error in your SQL syntax. Check the manual that
corresponds to your MySQL server version for the right syntax to use near
'/usr/lib/majordomo/wrapper majordomo -C /var/lib/majordomo/dire
query=insert into majordomoaliases
(domain,address)values("www.domain.net","domain.net-majordomo:
"|/usr/lib/majordomo/wrapper majordomo -C
/var/lib/majordomo/domain.net/majordomo.cf")

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



[PHP] If Statement with more than one conclusion

2002-01-02 Thread rdkurth

How can I do an if statement with more than one conclusions
Something like this I know this is not correct just an example of what
I what to do
If($ext=="com"or"net"or"org"or"info"){
Then do this
}
If($ext=="com.uk"or"me.uk"or"org.uk){
Then do this
}
  

-- 
Best regards,
 rdkurth  mailto:[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[2]: [PHP] If Statement with more than one conclusion

2002-01-02 Thread rdkurth

Hello Martin,
Thanks that work perfect

Wednesday, January 02, 2002, 9:31:36 PM, you wrote:

MT> something like:

MT> If(in_array($ext, array("com", "net", "org", "info")){
MT> //Then do this
MT> }
MT> If(in_array($ext, "com.uk", "me.uk", "org.uk")){
MT> //Then do this
MT> }

MT> maybe??

MT> -Original Message-
MT> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
MT> Sent: Thursday, January 03, 2002 4:22 PM
MT> To: php-general
MT> Subject: [PHP] If Statement with more than one conclusion


MT> How can I do an if statement with more than one conclusions
MT> Something like this I know this is not correct just an example of what
MT> I what to do
MT> If($ext=="com"or"net"or"org"or"info"){
MT> Then do this
MT> }
MT> If($ext=="com.uk"or"me.uk"or"org.uk){
MT> Then do this
MT> }
  




-- 
Best regards,
 rdkurthmailto:[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] using stdin in php

2002-05-29 Thread rdkurth


 Could somebody look at this a tell me way it does not set the
 password correctly. I know it has to run at root this has been
 handled.
 I think my problem is with --stdin. It sets a password but it does not
 set it correctly
 
$cmd = "echo $newpassword  | passwd --stdin $user";
return(exec($cmd));

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




[PHP] Pulling data into an array and sorting

2002-03-30 Thread rdkurth


I need to pull data into and array from a mysql database and then sort
that data according to one of the fields and then print it to the
screen.

Hear is an example of the data in the database

username Pnumber sec2 sec3 sec4 sec5 sec6
 Gary  123.345.122YES  YES   NO  YES  YES
 Fred  123.345.123YES  YES   NO  YES  YES
 Jone  123.345.124YES  YES   YES  NO  YES
 Tom   123.345.124YES  YES   NO  YES  YES
 Frank 123.345.123YES  YES   NO  YES  YES

 If you will notice the Pnumber for some are the same and some are
 different. I what to be able to sort on this number and then when they
 are printed they would be printed according to this number in groups

  

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


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




Re[2]: [PHP] Pulling data into an array and sorting

2002-03-30 Thread rdkurth


Thank you for the response to my question unfortunately your answer just
confused me even more.

Saturday, March 30, 2002, 4:25:40 PM, you wrote:

DSK> Run a while loop on your data and pull it into an array

DSK> Heres an example (though this pulls from a text file the idea is the
DSK> same...) Hope this helps...

DSK>   // READING THE DATA
DSK> function read_data($datafile) {
DSK> $data=file($datafile);
DSK> foreach ( $data as $line ) {
DSK> $temp=explode(':', $line);
DSK> $cp=$temp[4];
DSK> $return[$cp][]=$line;
DSK> }
DSK> if ( is_array($return) ) {
DSK> return($return);
DSK> } else {
DSK> return("NULL");
DSK> }
DSK> }
?>>

DSK>   // USING THE DATA  
DSK> $hosts=read_data('./hosts.dat');
DSK> if ( $hosts != 'NULL' ) {
DSK> $count=0;
DSK> foreach ( $hosts as $host ) {
DSK> $temp=explode(':', $host[0]);
DSK> $hostss.=str_replace("%%COMPANY%%",
DSK> decode($company=$temp[4]),$template_company_begin);
DSK> foreach ( $host as $hst ) {
DSK> $temp=explode(':', $hst);
DSK> $h_names[]=$temp[0];
DSK> $hostss.=str_replace("%%DISPLAY%%",
DSK> display_host($hst, $count),
DSK> $template_company_mid);
DSK> $count++;
DSK> }
DSK> $hostss.=$template_company_end;
DSK> }
DSK> } else { 
DSK> $hosts="No Hosts In Database...";
DSK> }
?>>


DSK> -Original Message-
DSK> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
DSK> Sent: Saturday, March 30, 2002 4:22 PM
DSK> To: php
DSK> Subject: [PHP] Pulling data into an array and sorting


DSK> I need to pull data into and array from a mysql database and then sort
DSK> that data according to one of the fields and then print it to the
DSK> screen.

DSK> Hear is an example of the data in the database

DSK> username Pnumber sec2 sec3 sec4 sec5 sec6
DSK>  Gary  123.345.122YES  YES   NO  YES  YES
DSK>  Fred  123.345.123YES  YES   NO  YES  YES
DSK>  Jone  123.345.124YES  YES   YES  NO  YES
DSK>  Tom   123.345.124YES  YES   NO  YES  YES
DSK>  Frank 123.345.123YES  YES   NO  YES  YES

DSK>  If you will notice the Pnumber for some are the same and some are
DSK>  different. I what to be able to sort on this number and then when they
DSK>  are printed they would be printed according to this number in groups

  




-- 
Best regards,
 rdkurthmailto:[EMAIL PROTECTED]


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




[PHP] Preventing a form from being submitted twice

2001-12-01 Thread rdkurth

How can I prevent somebody from using the back button after they fill
in a form and it takes them to a second page that checks there data
using php code. I don't what them to be able to resubmit the info a
second time with different information to be able to get the data that
they are buying. Hope this makes since to what I am asking



-- 
Best regards,
 rdkurth  mailto:[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[2]: [PHP] Preventing a form from being submitted twice

2001-12-01 Thread rdkurth

could you give me a few more words to point me in the right direction

Saturday, December 01, 2001, 1:41:49 AM, you wrote:

Se> Two Words:  Session Management

>> How can I prevent somebody from using the back button after they fill
>> in a form and it takes them to a second page that checks there data
>> using php code. I don't what them to be able to resubmit the info a
>> second time with different information to be able to get the data that
>> they are buying. Hope this makes since to what I am asking
>> 
>> 
>> 
>> -- 
>> Best regards,
>>  rdkurth  mailto:[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: php-list-
Se> [EMAIL PROTECTED]
>> 
>> 
>> 




-- 
Best regards,
 rdkurthmailto:[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] Pulling data out of a domain name

2001-12-05 Thread rdkurth

  Is there a more efficient way of doing what this script does is check
  a domain name and separate the domain name from the ext.
  The domain names could be in a few different formats. Like the
  samples below. This script works but I was just wondering does it
  have to be so long winded

  www.domain.com  www.domain.com.au domain.com domain.com.au



   $number= substr_count ($domaname,".");
  If ($number=="1"){
  $host1=explode(".",$domaname);
   $dhost=$host1[0] ;
   $chost=$host1[1] ;
  }
 
 If ($number=="2"){
  $host1=explode(".",$domaname);
 if($host1[0]=="www"){
   $dhost=$host1[1] ;
   $chost=$host1[2] ;
 
  }else{
$dhost=$host1[0] ;
$dhost1=$host1[1] ;
$dhost2=$host1[2] ;
$chost=$dhost1 . "." . $dhost2;
   }}
   If ($number=="3"){
  $host1=explode(".",$domaname);
 if($host1[0]=="www"){
 $dhost1=$host1[0] ;
 $dhost2=$host1[1] ;
 $dhost3=$host1[2] ;
 $dhost4=$host1[3] ;
 $dhost=$dhost2;
 $chost=$dhost3 . "." . $dhost4;
  }else{
 $dhost1=$host1[0] ;
 $dhost2=$host1[1] ;
 $dhost3=$host1[2] ;
 $dhost=$dhost1;
 $chost=$dhost2 . "." . $dhost3;
 }
  }

  

-- 
Best regards,
 rdkurth  mailto:[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[2]: [PHP] Pulling data out of a domain name

2001-12-05 Thread rdkurth

Hello Brian,
actually no parse_url() will return various components of the URL
like
$url[scheme] = http
$url[host] = www.php.net 
$url[path] = /download-php.php3 
$url[query] = csel=br
I what to split the host name up not the whole URL.

Wednesday, December 05, 2001, 3:21:38 PM, you wrote:

BC> * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [Dec 05. 2001 18:05]:

>>   Is there a more efficient way of doing what this script does is check
>>   a domain name and separate the domain name from the ext.
>>   The domain names could be in a few different formats. Like the
>>   samples below. This script works but I was just wondering does it
>>   have to be so long winded

BC> I think you want parse_url()

BC> <http://www.php.net/manual/en/function.parse-url.php>




-- 
Best regards,
 rdkurthmailto:[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] using eval

2001-12-13 Thread rdkurth

  I keep getting this error when I use eval what am I missing
  
Parse error: parse error in c:\httpd\doc\install.php(6) : eval()'d code on line 1


$path="/home/sites/home";
$fp3=fopen ("location.inc","w")or die("unable to open file (location.inc)");
$str='include("$path/inc/dataconf.inc");';
eval ("\$str = \"$str\";");
fwrite($fp3,"$str \n"); 

  

-- 
Best regards,
 rdkurth  mailto:[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[2]: [PHP] using eval

2001-12-13 Thread rdkurth

I am trying to get it to fill in the $path variable with what is in
$path. It seams eval does not work for this and it does not work on
it's own. What can I do to make this work

$path="/home/sites/home";
$fp3=fopen ("location.inc","w")or die("unable to open file (location.inc)");
$str=' this is what the eval() command equates to
MT> $str = "include("$path/inc/dataconf.inc");";
MT> that should make it clearer (??)

MT> -Original Message-
MT> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
MT> Sent: Friday, December 14, 2001 4:21 PM
MT> To: php-general
MT> Subject: [PHP] using eval


MT>   I keep getting this error when I use eval what am I missing
  
MT> Parse error: parse error in c:\httpd\doc\install.php(6) : eval()'d code on
MT> line 1


MT> $path="/home/sites/home";
MT> $fp3=fopen ("location.inc","w")or die("unable to open file (location.inc)");
MT> $str='include("$path/inc/dataconf.inc");';
MT> eval ("\$str = \"$str\";");
MT> fwrite($fp3,"$str \n"); 

  




-- 
Best regards,
 rdkurthmailto:[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]