Re: [PHP] sending 5000+ emails - use PHP?

2001-07-03 Thread Kman

Yes, if you can stop mail server. Then kill the related process.  No,
otherwise.

-Kittiwat


- Original Message -
From: Matthew Delmarter [EMAIL PROTECTED]
To: Michael Stearne [EMAIL PROTECTED]
Cc: PHP Mailing List [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 9:38 AM
Subject: RE: [PHP] sending 5000+ emails - use PHP?


 Is it possible to stop the mail delivery once the process has
started - even
 in the middle of a run?



-- 
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] New on PHP, need help with sessions

2001-07-03 Thread mike cullerton


on 7/3/01 12:19 AM, Victor Spång Arthursson at [EMAIL PROTECTED]
wrote:

 Hi!
 
 I'm converting from ASP/VBScript, and need to know how to declare a
 session variable.

i feel your pain. i just finished moving a site from ASP/VBScript to
PHP/Javascript, learning  ASP/VBScript and Javascript along the way :)

 
 In VBScript I just type in:
 
 %
 session(any) = victor
 %
 
 Then I can print that variable on any page on the same webpage using:
 
 %
 response.write session(any)
 %
 
 as long as I don't close the browser or the variable times out.
 
 Question: How do I achieve the same thing in PHP..?

you'll want to take a look at http://www.php.net/manual/en/ref.session.php

you can start a session by starting it or by registering a variable.

session_start() 
session_register(variablename)

once set, the variables are available as $HTTP_SESSION_VARS[variablename]
or (depending on how php is configured) $variablename.

on my macos x box, $variablename does work.

 
 Thanks in advance,
 
 Sincerely Victor
 
 PS Using PHP 4 on Mac OS X DS


 -- mike cullerton



--
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] sending 5000+ emails - use PHP?

2001-07-03 Thread Kman


From: infoz [EMAIL PROTECTED]

 If all the messages were identical, we might be able to get some
efficiency
 by sorting the list by domain name and batching them up with SMTP

That's a very BAD idea. If you sort the mail by domain, you will flood
the mail queue because normally, mail sent to hotmail or yahoo will need
a repeated attempts before getting through. Better leave the email
address randomized as they are.

-Kittiwat



-- 
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] Can any one spot the Parse error Here

2001-07-03 Thread Warren Vail

I use indentation to check out the form; missing brace at end?  Check it
out.

?php
$usersfile = users.php;
session_start();
session_register(user,pass);
if(isset($user)) $username = $user;
if(isset($pass)) $password = $pass;
if(!$username) {
?
 form
  User : input type=text name=usernamebr
  Password : input type=password name=passwordbr
  input type=submit value=Login
 /form
?php
} else {
$user = $username;
$pass = $password;
$userslist = file($usersfile);
for($i = 1; $i  sizeof($userslist); $i++) {
$userline = explode(||, $userslist[$i]);
if($usersline[0] == $username) {
if($password != rtrim($usersline[1])) {
die(Incorrect Username);
} else {
$i = sizeof($userslist) + 1;
}
}
}
if(!$action) $action = main;
switch($action) {
case main:
?
 a href=?action=postPost News/abr
 a href=?action=editEdit News/abr
 a href=?action=deleteDelete News/abr
 a href=?action=adduserAdd User Account/abr
 a href=?action=deluserDelete User/a
?php
break;
case adduser:
?
   form
   input type=hidden name=action value=process
   input type=hidden name=process value=adduser
   Username : input type=text name=unamebr
   Password : input type=password name=pwordbr
   input type=submit value=Add User
/form
?php
break;
case deleteuser:
$userslist = file($usersfile);
for($i = 0; $i  sizeof($userslist); $i++) {
$userline = explode(||, $userslist[$i]);
echo a href=\?action=processprocess=deluseruname=;
echo $userline[0]..$userline[0]./abr;
}
break;
case post:
?
   form
   input type=hidden name=action value=process
   input type=hidden name=process value=post
   Title : input type=text name=titlebr
   textarea name=text/textareabr
   input type=submit value=Post
   /form
?php
break;
case edit:
$dir = dir(./news);
while($file=$dir-read()) {
if(is_file(./news/.$file)) {
$name = str_replace(.txt, , $file);
echo a href=\?action=processprocess=viewnews=;
echo $file.\.$name./a;
}
}
$dir-close();
break;
case delete:
$dir = dir(./news);
while($file=$dir-read()) {
if(is_file(./news/.$file)) {
$name = str_replace(.txt, , $file);
echo a href=\?action=processprocess=confimnews=;
echo $file.\.$name./a;
}
}
$dir-close();
break;
case process:
switch($process) {
case adduser:
$fp = fopen($usersfile, w);
for($i = 0; $i  sizeof($userslist); $i++)
fwrite($fp, $userslist[$i]);
fwrite($fp, \r\n.$uname.||.$pword);
fclose($fp);
echo bUser Added!/b;
break;
case deluser:
$fp = fopen($usersfile, w);
for($i = 0; $i  sizeof($userslist); $i++) {
$userdetails = explode(||, $userslist[$i]);
if($userdetails[0] != $uname)
fwrite($fp, $userslist[$i]);
}
fclose($fp);
echo bUser Deleted!/b;
break;
case post:
$fp = fopen(./news.$title..txt, w);
fwrite($fp, $title.\r\n);
fwrite($fp, $text);
echo bNews Posted!/b;
break;
case view:
$newsdata = file(./news/.$news);
$title = rtrim($newsdata[0]);
echo Title: b.$title./b
?
   br
   form
input type=hidden name=process value=post
input type=hidden name=action value=process
input type=hidden name=tittle value=?php echo $tittle; ?
   textarea name=text
?php
for($i = 1; $i  sizeof($newsdata); $i++) {
echo $newsdata[$i];
}
?
/textarea
input type=submit value=Edit
   /form
?php
break;
case 

[PHP] configuring with gd for TTF

2001-07-03 Thread Ray Hilton

I'm having all sorts of headaches trying to get TTF support in gd to
work.  I have compiled from scratch gd 1.8 with ttf support by way of
freetype 2, this compiles fine.  Then I compile php using the configure
statement below and all I get when I try and call a TTF function is:

Warning: libgd was not built with TrueType font support in
/home/ray/webroot/rayh/htdocs/gfx/image.php on line 48

Etc etc...  Can anyone point me in the right direction?  Am I right in
thinking that you can either use gd's native ttf support or compile
freetype into php seperatley?

./configure  --with-xml --with-dom --with-mysql=/usr/local/mysql
--with-apxs=/usr/local/apache/bin/apxs --with-sablot
--with-openssl=/usr/local/ssl --with-zlib --with-ttf=no --with-gd
--enable-shared-pdflib --with-imap --with-t1lib=/usr/local/lib/
--with-jpeg-dir=/usr/lib/ --with-freetype-dir=/usr/local/lib/
--enable-gd-native-tt


Cheers,
Ray Hilton
-
[EMAIL PROTECTED]
http://rayh.co.uk



-- 
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] Function Reqest/Question

2001-07-03 Thread Brian White


Personally, I kind of like:

switch(1){ default: // BREAK BLOCK START

blah blah blah...

// Want to get out of here...
break;

} // BREAK BLOCK END

It's a little more cumbersome than the while construct, but it is absolutely
guaranteed to only go through once, whilst the while version you HAVE to
rememeber to put in the closing break, otherwise you risk an infinite
loop.

At 16:25 2/07/2001 -0400, Matthew Loff wrote:

The best way I've seen this done is:

?php
while(0)

( ... and it should be while(1)  )

{
 blah blah blah...

 // Want to get out of here...
 break;
}
?

But putting it within while(0), you can simply break; from it...

There may be better ways... Any other suggestions?

-
Brian White
Step Two Designs Pty Ltd - SGML, XML  HTML Consultancy
Phone: +612-93197901
Web:   http://www.steptwo.com.au/
Email: [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] configuring with gd for TTF

2001-07-03 Thread Brian White

I completely gave up trying to compile freetype 2.x into GD. However
I was able to successfully compile freetype 1.3 directly into PHP
which seems to work fine.

IE:
forget trying to use:
  --enable-gd-native-ttf

instead:
  --with-ttf=/usr/local/freetype/

which assumes you have freetype 1.3 installed to  /usr/local/freetype


BTW  - I have my own question. To restart apache at the moment I have to set
and export:

 LD_LIBRARY_PATH=/usr/local/freetype/lib/

Anyone know what I need to do to get this recognised by Apache internally.
( I am running Debian Linux Potato )

Regs

Brian White


At 08:50 3/07/2001 +0200, Ray Hilton wrote:
I'm having all sorts of headaches trying to get TTF support in gd to
work.  I have compiled from scratch gd 1.8 with ttf support by way of
freetype 2, this compiles fine.  Then I compile php using the configure
statement below and all I get when I try and call a TTF function is:

Warning: libgd was not built with TrueType font support in
/home/ray/webroot/rayh/htdocs/gfx/image.php on line 48

Etc etc...  Can anyone point me in the right direction?  Am I right in
thinking that you can either use gd's native ttf support or compile
freetype into php seperatley?

./configure  --with-xml --with-dom --with-mysql=/usr/local/mysql
--with-apxs=/usr/local/apache/bin/apxs --with-sablot
--with-openssl=/usr/local/ssl --with-zlib --with-ttf=no --with-gd
--enable-shared-pdflib --with-imap --with-t1lib=/usr/local/lib/
--with-jpeg-dir=/usr/lib/ --with-freetype-dir=/usr/local/lib/
--enable-gd-native-tt


Cheers,
Ray Hilton
-
[EMAIL PROTECTED]
http://rayh.co.uk



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

-
Brian White
Step Two Designs Pty Ltd - SGML, XML  HTML Consultancy
Phone: +612-93197901
Web:   http://www.steptwo.com.au/
Email: [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] qmail-inject: fatal: read error

2001-07-03 Thread Warren Brundage

When I try to use PHP to send mail through qmail I get a qmail-inject: fatal: read 
error.  I have read through the list and I have seen (and tried) the following 
solutions:

1. Put /var/qmail/bin/qmail-inject into php.ini
2. Ensured that all appropriate sendmail links exist
2. Also tried the permutations of sendmail, and sendmail default etc in php.ini.
3. Tried (temporarily!) adding apache (web-server is run under user apache, group 
apache) to root group (only for testing - not advisable permanent solution).
4. I don't have anything calling QMAILMFTFILE  but I am not sure where this is called 
from.  It doesn't show in printenv.  Maybe someone could clarify this?  But I tried 
adding QMAILMFTFILE=/tmp/.lists to my apache start-up file just in case. 
5. Added user apache   group apache in httpd.conf before modules are called.

qmail functions well on my computer but it's not the problem in any case because the 
e-mail never enters the mail system.  The error mentioned above shows up in the Apache 
error-log.  PHP is also performing very well in every other capacity.

I know that there are many people experiencing this problem and some have given up on 
using PHP because they have to use the qmail system and some have had to go back to 
Sendmail.

There have been a number of solutions given in this list and I have tried them all but 
none have worked.  Does someone have the definitive answer on this?

I am running Mandrake Linux 8.0 with PHP 4.0.4pl1 and Apache 1.3.19.




[PHP] Fatal Error: Call to undefined function: sybase_connect() in

2001-07-03 Thread nelo manuel

Dear all,

am quite new on php and Linux, after installing php-4.0.6 and
run the test.php it worked OK but when i try to write the function to
initially display records from sybase pubs2 i get the following msg
Fatal Error:Call to undefined function: sybase_connect() in
/home/httpd/html/index.php3

i am using Linux Redhat 7 kernel 2.4.3

can any one help me please :(

Kind regards,
Nelson


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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

2001-07-03 Thread Roman

How to run mysql batch program im mysql terminal.
for example in folder I have program dumb.sql and I want to run this program
in mysql.

Thanks

roman


-- 
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] Shell scripting and PHP.

2001-07-03 Thread Ray Hilton

I think it's the same as perl, using the backtick operator, ie:

$result = `uptime`;

That's ` NOT '



-Original Message-
From: Johan Vikerskog (ECS) [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 09:41
To: [EMAIL PROTECTED]
Subject: [PHP] Shell scripting and PHP.


Hi all!

If i want to use some shell commands and use the result it displays to
set a variable. How is this done?

Is there a way of doing it like you can do with Perl?
Anyone knows?

Thanks for all the tips you can give me, or better yet, if you know of a
tutorial somewere that covers this.

//Johan

--
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] configuring with gd for TTF

2001-07-03 Thread Brian White

Ok.  Well, given mine works, I thought I would tell you what I have!

My phpinfo says exactly the same:

GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with TTF library
JPG Support enabled
PNG Support enabled
WBMP Support enabled

My configure options were:

./configure --with-gd=/usr/local/src/gd-1.8.4/
   --enable-gd-imgstrttf
   --with-ttf=/usr/local/freetype/
   --enable-calendar
   --disable-short-tags
   --with-mysql=/usr/local/mysql/
   --with-jpeg-dir=/usr/local/src/jpeg-6b/
   --with-apxs=/usr/local/apache/bin/apxs

gd-1.8.4 is actually compiled ( theoretically ) with freetype2.x support, 
though that
shouldn't be making any difference, I would have thought. Freetype is 1.3.

Also, whenever I configured and then compiled I always deleted config.cache 
and ran
make clean first.

Hope this helps.

Brian


At 09:36 3/07/2001 +0200, Ray Hilton wrote:
Nope, not a sausage, I tried it with and without gd's ttf, specifiying
to compile in freetype 1.x, or freetype 2, and numerous other
combinations... Its doing my nut in!!

I think the lib thing your talking about is just a matter of sticking
the path in /etc/ld.so.conf and then running ldconfig...

I just recompiled php, and according to php info:

GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
JPG Support enabled
WBMP Support enabled

Which is exactly the same as it was 10 compiles ago... And yet I still
get:

Warning: libgd was not built with TrueType font support in
/home/ray/webroot/rayh/htdocs/gfx/image.php on line 48

Every single time...

Ray Hilton
-
[EMAIL PROTECTED]
http://rayh.co.uk

-Original Message-
From: Brian White [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 09:08
To: Ray Hilton; 'PHP Mailing List'
Subject: Re: [PHP] configuring with gd for TTF


I completely gave up trying to compile freetype 2.x into GD. However I
was able to successfully compile freetype 1.3 directly into PHP which
seems to work fine.

IE:
 forget trying to use:
   --enable-gd-native-ttf

 instead:
   --with-ttf=/usr/local/freetype/

 which assumes you have freetype 1.3 installed to
/usr/local/freetype


BTW  - I have my own question. To restart apache at the moment I have to
set and export:

  LD_LIBRARY_PATH=/usr/local/freetype/lib/

Anyone know what I need to do to get this recognised by Apache
internally. ( I am running Debian Linux Potato )

Regs

Brian White


At 08:50 3/07/2001 +0200, Ray Hilton wrote:
 I'm having all sorts of headaches trying to get TTF support in gd to
 work.  I have compiled from scratch gd 1.8 with ttf support by way of
 freetype 2, this compiles fine.  Then I compile php using the configure

 statement below and all I get when I try and call a TTF function is:
 
 Warning: libgd was not built with TrueType font support in
 /home/ray/webroot/rayh/htdocs/gfx/image.php on line 48
 
 Etc etc...  Can anyone point me in the right direction?  Am I right in
 thinking that you can either use gd's native ttf support or compile
 freetype into php seperatley?
 
 ./configure  --with-xml --with-dom --with-mysql=/usr/local/mysql
 --with-apxs=/usr/local/apache/bin/apxs --with-sablot
 --with-openssl=/usr/local/ssl --with-zlib --with-ttf=no --with-gd
 --enable-shared-pdflib --with-imap --with-t1lib=/usr/local/lib/
 --with-jpeg-dir=/usr/lib/ --with-freetype-dir=/usr/local/lib/
 --enable-gd-native-tt
 
 
 Cheers,
 Ray Hilton
 -
 [EMAIL PROTECTED]
 http://rayh.co.uk
 
 
 
 --
 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]

-
Brian White
Step Two Designs Pty Ltd - SGML, XML  HTML Consultancy
Phone: +612-93197901
Web:   http://www.steptwo.com.au/
Email: [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]

-
Brian White
Step Two Designs Pty Ltd - SGML, XML  HTML Consultancy
Phone: +612-93197901
Web:   http://www.steptwo.com.au/
Email: [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] configuring with gd for TTF

2001-07-03 Thread Ray Hilton

Ok, well here goes...

I have removed the --enable-gd-native-ttf and --with-freetype-dir (or
whatever it was) copied your settings, more or less...  Phpinfo() can be
found at http://www.rayh.co.uk/downloads/info.php

Wish me luck :)

-Original Message-
From: Brian White [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 09:40
To: Ray Hilton; 'PHP Mailing List'
Subject: RE: [PHP] configuring with gd for TTF


Ok.  Well, given mine works, I thought I would tell you what I have!

My phpinfo says exactly the same:

GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with TTF library
JPG Support enabled
PNG Support enabled
WBMP Support enabled

My configure options were:

./configure --with-gd=/usr/local/src/gd-1.8.4/
   --enable-gd-imgstrttf
   --with-ttf=/usr/local/freetype/
   --enable-calendar
   --disable-short-tags
   --with-mysql=/usr/local/mysql/
   --with-jpeg-dir=/usr/local/src/jpeg-6b/
   --with-apxs=/usr/local/apache/bin/apxs

gd-1.8.4 is actually compiled ( theoretically ) with freetype2.x
support,
though that
shouldn't be making any difference, I would have thought. Freetype is
1.3.

Also, whenever I configured and then compiled I always deleted
config.cache
and ran
make clean first.

Hope this helps.

Brian


At 09:36 3/07/2001 +0200, Ray Hilton wrote:
Nope, not a sausage, I tried it with and without gd's ttf, specifiying
to compile in freetype 1.x, or freetype 2, and numerous other
combinations... Its doing my nut in!!

I think the lib thing your talking about is just a matter of sticking
the path in /etc/ld.so.conf and then running ldconfig...

I just recompiled php, and according to php info:

GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
JPG Support enabled
WBMP Support enabled

Which is exactly the same as it was 10 compiles ago... And yet I still
get:

Warning: libgd was not built with TrueType font support in
/home/ray/webroot/rayh/htdocs/gfx/image.php on line 48

Every single time...

Ray Hilton
-
[EMAIL PROTECTED]
http://rayh.co.uk

-Original Message-
From: Brian White [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 09:08
To: Ray Hilton; 'PHP Mailing List'
Subject: Re: [PHP] configuring with gd for TTF


I completely gave up trying to compile freetype 2.x into GD. However I
was able to successfully compile freetype 1.3 directly into PHP which
seems to work fine.

IE:
 forget trying to use:
   --enable-gd-native-ttf

 instead:
   --with-ttf=/usr/local/freetype/

 which assumes you have freetype 1.3 installed to
/usr/local/freetype


BTW  - I have my own question. To restart apache at the moment I have
to set and export:

  LD_LIBRARY_PATH=/usr/local/freetype/lib/

Anyone know what I need to do to get this recognised by Apache
internally. ( I am running Debian Linux Potato )

Regs

Brian White


At 08:50 3/07/2001 +0200, Ray Hilton wrote:
 I'm having all sorts of headaches trying to get TTF support in gd to
 work.  I have compiled from scratch gd 1.8 with ttf support by way of

 freetype 2, this compiles fine.  Then I compile php using the
 configure

 statement below and all I get when I try and call a TTF function is:
 
 Warning: libgd was not built with TrueType font support in
 /home/ray/webroot/rayh/htdocs/gfx/image.php on line 48
 
 Etc etc...  Can anyone point me in the right direction?  Am I right
 in thinking that you can either use gd's native ttf support or
 compile freetype into php seperatley?
 
 ./configure  --with-xml --with-dom --with-mysql=/usr/local/mysql
 --with-apxs=/usr/local/apache/bin/apxs --with-sablot
 --with-openssl=/usr/local/ssl --with-zlib --with-ttf=no --with-gd
 --enable-shared-pdflib --with-imap --with-t1lib=/usr/local/lib/
 --with-jpeg-dir=/usr/lib/ --with-freetype-dir=/usr/local/lib/
 --enable-gd-native-tt
 
 
 Cheers,
 Ray Hilton
 -
 [EMAIL PROTECTED]
 http://rayh.co.uk
 
 
 
 --
 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]

-
Brian White
Step Two Designs Pty Ltd - SGML, XML  HTML Consultancy
Phone: +612-93197901
Web:   http://www.steptwo.com.au/
Email: [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]

-
Brian White
Step Two Designs Pty Ltd - SGML, XML  HTML Consultancy
Phone: +612-93197901
Web:   http://www.steptwo.com.au/
Email: [EMAIL PROTECTED]


--
PHP General Mailing List 

RE: [PHP] configuring with gd for TTF

2001-07-03 Thread Ray Hilton

Nope, not a sausage, I tried it with and without gd's ttf, specifiying
to compile in freetype 1.x, or freetype 2, and numerous other
combinations... Its doing my nut in!!

I think the lib thing your talking about is just a matter of sticking
the path in /etc/ld.so.conf and then running ldconfig...

I just recompiled php, and according to php info:

GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
JPG Support enabled
WBMP Support enabled

Which is exactly the same as it was 10 compiles ago... And yet I still
get:

Warning: libgd was not built with TrueType font support in
/home/ray/webroot/rayh/htdocs/gfx/image.php on line 48

Every single time...

Ray Hilton
-
[EMAIL PROTECTED]
http://rayh.co.uk

-Original Message-
From: Brian White [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 09:08
To: Ray Hilton; 'PHP Mailing List'
Subject: Re: [PHP] configuring with gd for TTF


I completely gave up trying to compile freetype 2.x into GD. However I
was able to successfully compile freetype 1.3 directly into PHP which
seems to work fine.

IE:
forget trying to use:
  --enable-gd-native-ttf

instead:
  --with-ttf=/usr/local/freetype/

which assumes you have freetype 1.3 installed to
/usr/local/freetype


BTW  - I have my own question. To restart apache at the moment I have to
set and export:

 LD_LIBRARY_PATH=/usr/local/freetype/lib/

Anyone know what I need to do to get this recognised by Apache
internally. ( I am running Debian Linux Potato )

Regs

Brian White


At 08:50 3/07/2001 +0200, Ray Hilton wrote:
I'm having all sorts of headaches trying to get TTF support in gd to
work.  I have compiled from scratch gd 1.8 with ttf support by way of
freetype 2, this compiles fine.  Then I compile php using the configure

statement below and all I get when I try and call a TTF function is:

Warning: libgd was not built with TrueType font support in
/home/ray/webroot/rayh/htdocs/gfx/image.php on line 48

Etc etc...  Can anyone point me in the right direction?  Am I right in
thinking that you can either use gd's native ttf support or compile
freetype into php seperatley?

./configure  --with-xml --with-dom --with-mysql=/usr/local/mysql
--with-apxs=/usr/local/apache/bin/apxs --with-sablot
--with-openssl=/usr/local/ssl --with-zlib --with-ttf=no --with-gd
--enable-shared-pdflib --with-imap --with-t1lib=/usr/local/lib/
--with-jpeg-dir=/usr/lib/ --with-freetype-dir=/usr/local/lib/
--enable-gd-native-tt


Cheers,
Ray Hilton
-
[EMAIL PROTECTED]
http://rayh.co.uk



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

-
Brian White
Step Two Designs Pty Ltd - SGML, XML  HTML Consultancy
Phone: +612-93197901
Web:   http://www.steptwo.com.au/
Email: [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]




RE: [PHP] Fatal Error: Call to undefined function: sybase_connect() in

2001-07-03 Thread Ray Hilton

Have you sompiled in sybase support?  By defauly php doesn't compile
with sybase functions, you must specifcally tell it too...

-Original Message-
From: nelo manuel [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 09:27
To: [EMAIL PROTECTED]
Subject: [PHP] Fatal Error: Call to undefined function: sybase_connect()
in


Dear all,

am quite new on php and Linux, after installing php-4.0.6 and run the
test.php it worked OK but when i try to write the function to initially
display records from sybase pubs2 i get the following msg Fatal
Error:Call to undefined function: sybase_connect() in
/home/httpd/html/index.php3

i am using Linux Redhat 7 kernel 2.4.3

can any one help me please :(

Kind regards,
Nelson



_
Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.


--
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] Shell scripting and PHP.

2001-07-03 Thread Johan Vikerskog (ECS)

Hi all!

If i want to use some shell commands and use the result it displays to set a variable. 
How is this done?

Is there a way of doing it like you can do with Perl?
Anyone knows?

Thanks for all the tips you can give me, or better yet, if you know of a tutorial 
somewere that covers this.

//Johan

-- 
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] configuring with gd for TTF

2001-07-03 Thread Matthew Loff


If you still can't get it working, post the contents of your config.log
file, that can help diagnose it.

I figured out a problem with gd 2.0.x not linking properly with PHP
4.0.6 by analyzing the config.log file...  


-Original Message-
From: Ray Hilton [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 03, 2001 3:56 AM
To: 'Brian White'; 'Ray Hilton'; 'PHP Mailing List'
Subject: RE: [PHP] configuring with gd for TTF


Ok, well here goes...

I have removed the --enable-gd-native-ttf and --with-freetype-dir (or
whatever it was) copied your settings, more or less...  Phpinfo() can be
found at http://www.rayh.co.uk/downloads/info.php

Wish me luck :)

-Original Message-
From: Brian White [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 09:40
To: Ray Hilton; 'PHP Mailing List'
Subject: RE: [PHP] configuring with gd for TTF


Ok.  Well, given mine works, I thought I would tell you what I have!

My phpinfo says exactly the same:

GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with TTF library
JPG Support enabled
PNG Support enabled
WBMP Support enabled

My configure options were:

./configure --with-gd=/usr/local/src/gd-1.8.4/
   --enable-gd-imgstrttf
   --with-ttf=/usr/local/freetype/
   --enable-calendar
   --disable-short-tags
   --with-mysql=/usr/local/mysql/
   --with-jpeg-dir=/usr/local/src/jpeg-6b/
   --with-apxs=/usr/local/apache/bin/apxs

gd-1.8.4 is actually compiled ( theoretically ) with freetype2.x
support, though that shouldn't be making any difference, I would have
thought. Freetype is 1.3.

Also, whenever I configured and then compiled I always deleted
config.cache and ran make clean first.

Hope this helps.

Brian


At 09:36 3/07/2001 +0200, Ray Hilton wrote:
Nope, not a sausage, I tried it with and without gd's ttf, specifiying 
to compile in freetype 1.x, or freetype 2, and numerous other 
combinations... Its doing my nut in!!

I think the lib thing your talking about is just a matter of sticking 
the path in /etc/ld.so.conf and then running ldconfig...

I just recompiled php, and according to php info:

GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
JPG Support enabled
WBMP Support enabled

Which is exactly the same as it was 10 compiles ago... And yet I still
get:

Warning: libgd was not built with TrueType font support in 
/home/ray/webroot/rayh/htdocs/gfx/image.php on line 48

Every single time...

Ray Hilton
-
[EMAIL PROTECTED]
http://rayh.co.uk

-Original Message-
From: Brian White [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 09:08
To: Ray Hilton; 'PHP Mailing List'
Subject: Re: [PHP] configuring with gd for TTF


I completely gave up trying to compile freetype 2.x into GD. However I 
was able to successfully compile freetype 1.3 directly into PHP which 
seems to work fine.

IE:
 forget trying to use:
   --enable-gd-native-ttf

 instead:
   --with-ttf=/usr/local/freetype/

 which assumes you have freetype 1.3 installed to 
/usr/local/freetype


BTW  - I have my own question. To restart apache at the moment I have 
to set and export:

  LD_LIBRARY_PATH=/usr/local/freetype/lib/

Anyone know what I need to do to get this recognised by Apache 
internally. ( I am running Debian Linux Potato )

Regs

Brian White


At 08:50 3/07/2001 +0200, Ray Hilton wrote:
 I'm having all sorts of headaches trying to get TTF support in gd to 
 work.  I have compiled from scratch gd 1.8 with ttf support by way of

 freetype 2, this compiles fine.  Then I compile php using the 
 configure

 statement below and all I get when I try and call a TTF function is:
 
 Warning: libgd was not built with TrueType font support in 
 /home/ray/webroot/rayh/htdocs/gfx/image.php on line 48
 
 Etc etc...  Can anyone point me in the right direction?  Am I right 
 in thinking that you can either use gd's native ttf support or 
 compile freetype into php seperatley?
 
 ./configure  --with-xml --with-dom --with-mysql=/usr/local/mysql 
 --with-apxs=/usr/local/apache/bin/apxs --with-sablot 
 --with-openssl=/usr/local/ssl --with-zlib --with-ttf=no --with-gd 
 --enable-shared-pdflib --with-imap --with-t1lib=/usr/local/lib/ 
 --with-jpeg-dir=/usr/lib/ --with-freetype-dir=/usr/local/lib/
 --enable-gd-native-tt
 
 
 Cheers,
 Ray Hilton
 -
 [EMAIL PROTECTED]
 http://rayh.co.uk
 
 
 
 --
 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]

-
Brian White
Step Two Designs Pty Ltd - SGML, XML  HTML Consultancy
Phone: +612-93197901
Web:   http://www.steptwo.com.au/
Email: [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 

[PHP] any reasons to compile apache instead of using distributionbinaries ?

2001-07-03 Thread Marius Andreiana

Hi

I'm curios how others are handling packages on production servers.
Curently our sysadmins compile openssl,apache,php and other libraries
from sources.

Do you think it would be better (easier to maintain) to install
apache and other libraries from rpm, and from sources only
php?

Remember in some companies even the kernel is upgraded from rpm
b/c of easier maintenance and less chances to screw something up.

Thanks,
-- 
Marius Andreiana



-- 
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] Fatal Error: Call to undefined function: sybase_connect() in

2001-07-03 Thread nelo manuel

Hi Ray,

Yes i have compiled it with sybase under ./configure - sybase


From: Ray Hilton [EMAIL PROTECTED]
To: 'nelo manuel' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined function: 
sybase_connect() in
Date: Tue, 3 Jul 2001 09:37:56 +0200

Have you sompiled in sybase support?  By defauly php doesn't compile
with sybase functions, you must specifcally tell it too...

-Original Message-
From: nelo manuel [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 09:27
To: [EMAIL PROTECTED]
Subject: [PHP] Fatal Error: Call to undefined function: sybase_connect()
in


Dear all,

am quite new on php and Linux, after installing php-4.0.6 and run the
test.php it worked OK but when i try to write the function to initially
display records from sybase pubs2 i get the following msg Fatal
Error:Call to undefined function: sybase_connect() in
/home/httpd/html/index.php3

i am using Linux Redhat 7 kernel 2.4.3

can any one help me please :(

Kind regards,
Nelson



_
Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.


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


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
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] Getting Information from a CGI POST

2001-07-03 Thread Brad Hubbard

On Tue,  3 Jul 2001 02:51, Don Read wrote:

 $pstr='FltNum=2972page=fiselectDay=July+02';
 $fp=openpost('dps2.usairways.com', '/cgi-bin/fi', $pstr);

 // i'm not so sure about that selectDay, javascript ain't my thing.

This is implementation dependant (it's using an array they've created 
(monthNames should be defined futher up the page within a script tag) so it 
could be anything) there doesn't appear to be a + in there though so it's 
more likely selectDay=July02 or selectDay=0702 or selectDay=702.


Cheers,
Brad

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] IMP with PHP as CGI

2001-07-03 Thread Blaz Zupan

Until a couple of days ago, we were running IMP on our server with PHP
compiled as an Apache module. Because we wanted to use the apache SuEXEC
wrapper, I compiled PHP as a CGI, which works mostly fine. Every user on our
web needs to put the following wrapper in their cgi-bin directory to be able
to use PHP:

#!/bin/sh
export SCRIPT_NAME=$REDIRECT_URL
export SCRIPT_FILENAME=$PATH_TRANSLATED
exec /usr/local/bin/php

But now we have a problem with IMP and mail attachments. When you view a mail
message with attachments in IMP, it gives you an icon with a link to the
attachment, which you should be able to click on to get the contents of the
attachment. The URL pointed to is something like:

http://server/horde/imp/view.php3/attached-file.bin?mailbox=INBOXindex=171bodypart=2actionID=13

This works fine when PHP is compiled as a module (view.php3 is read by the PHP
module and attached-file.bin is sent to your browser), but when running as a
CGI, PHP tries to open the file view.php3/attached-file.bin, which of course
does not exist and it fails with error code 255 and not displaying anything
(which I think is a bug in itself, it took me a couple of hours to figure out
at all what is going on).

Any idea how I could fix that?


-- 
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] Objects and sessions

2001-07-03 Thread Brad Hubbard

On Tue,  3 Jul 2001 11:47, Ethan Schroeder wrote:
 If what you mean is if PHP sessions can register objects, that is true and
 quite effective.

Can you elaborate on this Ethan so I'm sure I understand what you're saying.

Cheers,
Brad

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Deleting a string from a text file

2001-07-03 Thread Stevenson, Christopher

Hello, folks. I'm relatively new to this.

Would anyone be willing to give me some code that will delete the first
occurrence of a string from a text file?

Thanks,
Chris.

-- 
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] Shell scripting and PHP.

2001-07-03 Thread Brad Hubbard

On Tue,  3 Jul 2001 17:46, Ray Hilton wrote:
 I think it's the same as perl, using the backtick operator, ie:

 $result = `uptime`;

 That's ` NOT '


Look at passthru() exec() and system() as well.

Cheers,
Brad
-- 
Brad Hubbard
Congo Systems
12 Northgate Drive,
Thomastown, Victoria, Australia 3074
Email: [EMAIL PROTECTED]
Ph: +61-3-94645981
Fax: +61-3-94645982
Mob: +61-419107559

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




AW: [PHP] caching

2001-07-03 Thread Sebastian Stadtlich

you could attach a random number as a get parameter

img src=test.php?nothing=2637846294626378264

that image would hardly ever be cached...

sebastian

 -Ursprüngliche Nachricht-
 Von: Jon Yaggie [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 31. Mai 2001 00:36
 An: [EMAIL PROTECTED]
 Betreff: [PHP] caching
 
 
 Ok I am dynamically creating images.  my problem is my 
 browser is caching the images (or at least half ot them - i 
 see no particular system to which)  i have no idea how to 
 stop this.  i have tried using the header Cache-Control: 
 no-cahe  However it seems to have no helped.  maybe i am 
 using it wrongly?  is there another method i can clear the 
 browser cache?
 
 
 
 
 Thank You,
  
 Jon Yaggie
 www.design-monster.com
  
 And they were singing . . . 
  
 '100 little bugs in the code
 100 bugs in the code
 fix one bug, compile it again
 101 little bugs in the code
  
 101 little bugs in the code . . .'
  
 And it continued until they reached 0
 
 
 

--
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] Fw: Processing checkboxes in Dynamic tables

2001-07-03 Thread Michael Benbow

My apologies,

I was playing with the code and changed something before sending...

Where it reads INPUT TYPE=\CHECKBOX\ SELECT NAME=\$p[$trade]\ the array should 
actually read p$trade

Peace,
Michael


- Original Message - 
From: Michael Benbow 
To: [EMAIL PROTECTED] 
Sent: Tuesday, July 03, 2001 7:02 PM
Subject: Processing checkboxes in Dynamic tables


I have a solution to my problem already, but I am looking for a far more economical 
way of doing this.

Currently my first page is four seperate tables with about 25 or so entries in each.  
I have gone through and automatically allocated the name p101 through p125 to the 
checkboxes for the first table, p201 through p225 to the checkboxes for the second 
table, etc.

The user makes selections from each table, but seldomly selects the majority.  They 
choose which lines they want processed then continue.

My problem is that with the above solution there are automatically 200 variables being 
passed from page to page, regardless of how many boxes are checked.  The average 
amount of boxes may be 10-15, and rarely is it more than 20.

Currently my code looks like the following...

$trade=101;
  $result = mysql_query(SELECT * FROM $table_name WHERE ..);
 
  if ($row = mysql_fetch_array($result)) {

   do {
   
echo tr bgcolor=\#CBCFFF\\n;

echo td valign=\top\ nowrapfont size=\-2\;
 echo INPUT TYPE=\CHECKBOX\ SELECT NAME=\$p[$trade]\ OPTION 
VALUE=\$row[playerid]\;
 echo $trade;
echo /td\n;

. 
$trade=$trade+1;
. 

} while.
  
etc.

Could someone please help me so only the variables which are checked before the submit 
button is pressed are parsed, eg p102, p107, p117, rather than every input variable 
which is initialised on the site?

Thank you heaps in advace,
Michael.



[PHP] Compiling on Windows

2001-07-03 Thread Daniel Reichenbach

Hy,

is there any guide available, how to compile the Windows version of PHP4.0.6
with all available modules like GD/Freetype, IMAP, curl, etc.


Daniel


-- 
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] Fatal Error: Call to undefined function: sybase_connect() in

2001-07-03 Thread Ray Hilton

Not sure other than that... If it compiles it means it can find the
headers it needs from the sybase package...  Is this sybase 11.9.2?  I
managed to build php with that some time ago, but I cant for the life of
me remember any more details...

Do any sybase functions work?  And do you get any errors during
configure/install?

-Original Message-
From: nelo manuel [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 11:28
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined function:
sybase_connect() in


i have compile it with sybase on ./configure (according to mastering
linux
book, install and configuring php to access data from sybase)

can some else pls help me :(


From: Ray Hilton [EMAIL PROTECTED]
To: 'nelo manuel' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined function:
sybase_connect() in
Date: Tue, 3 Jul 2001 09:37:56 +0200

Have you sompiled in sybase support?  By defauly php doesn't compile
with sybase functions, you must specifcally tell it too...

-Original Message-
From: nelo manuel [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 09:27
To: [EMAIL PROTECTED]
Subject: [PHP] Fatal Error: Call to undefined function:
sybase_connect() in


Dear all,

am quite new on php and Linux, after installing php-4.0.6 and run the
test.php it worked OK but when i try to write the function to initially

display records from sybase pubs2 i get the following msg Fatal
Error:Call to undefined function: sybase_connect() in
/home/httpd/html/index.php3

i am using Linux Redhat 7 kernel 2.4.3

can any one help me please :(

Kind regards,
Nelson


___
_
_
Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.


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





_
Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.


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

2001-07-03 Thread AJDIN BRANDIC

Hi all

I've got search facility (php-mysql) which is very simple. If i search 
for 'dog' it will find any records containing words 'dog' or 'dogs' or 
'dogowner' etc.  But if I search for 'dogs', words 'dog' and 'dogowner' 
will not be found.  This is a classic case so there must be a solution to 
it but I cannot find one.  I tried to do something like
if word is 'dogs' then I do the search,
then break word 'dogs' into an array and check if the last element is an
's'. If it is remove it, reconstrust the string,which will give 'dog', 
and do search for that too.
Then display results.  Well I connot find a way of breaking a string into 
an array. How do I break 'mynameis' into an array of 8 elements?
This has got loopholes but still it is better than what I have now.

Thanks 

Ajdin

-- 
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] Querying a given dns and list the A records

2001-07-03 Thread Mohamedou

Hello all,

Can somebody help me
I need to query a given DNS Server identified by IP and the domain
I want query and then it gives me the whole machines it has registered

Regards

Moh




[PHP] Quering given dns and list A records with PHP

2001-07-03 Thread Mohamedou

Hello all,

Can somebody help me
I need to query a given DNS Server identified by IP and the domain
I want query and then it gives me the whole machines it has registered

Regards

Moh




Re: [PHP] search

2001-07-03 Thread Tom Carter

Rather than trying to break it into an array, you can examine the rightmost
character as follows

$search=dogs;
if(substr($search,-1)=='s') $search=substr($search,0,-1);

This checks if the last character is an s and if it is then set search to
the same string but without the s.. note, does not handle multiple word
queries.. for this you would need to break the string into words (something
you would probably have to do anyway) and do this for each of those...

For more info on substr seet http://php.net/substr
- Original Message -
From: AJDIN BRANDIC [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 11:10 AM
Subject: [PHP] search


 Hi all

 I've got search facility (php-mysql) which is very simple. If i search
 for 'dog' it will find any records containing words 'dog' or 'dogs' or
 'dogowner' etc.  But if I search for 'dogs', words 'dog' and 'dogowner'
 will not be found.  This is a classic case so there must be a solution to
 it but I cannot find one.  I tried to do something like
 if word is 'dogs' then I do the search,
 then break word 'dogs' into an array and check if the last element is an
 's'. If it is remove it, reconstrust the string,which will give 'dog',
 and do search for that too.
 Then display results.  Well I connot find a way of breaking a string into
 an array. How do I break 'mynameis' into an array of 8 elements?
 This has got loopholes but still it is better than what I have now.

 Thanks

 Ajdin

 --
 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] reset mysql root password

2001-07-03 Thread Daniel Guerrier

How do I reset the root mysql password if I don't know
what it is in the first place.  I don't care if I lose data.

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-- 
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] reset mysql root password

2001-07-03 Thread Duncan Hill

On Tue, 3 Jul 2001, Daniel Guerrier wrote:

 How do I reset the root mysql password if I don't know
 what it is in the first place.  I don't care if I lose data.

Go read the manual, specifically section 21.10:
http://www.mysql.com/doc/R/e/Resetting_permissions.html

-- 

Sapere aude
My mind not only wanders, it sometimes leaves completely.


-- 
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] Using PHP to test if server is online

2001-07-03 Thread Gunther E. Biernat

I am writing a PHP script to test if the server on which it is running is
currently connected to the Internet. If so, the main page will display a
notice saying We are now online, else it will say Not connected

Any ideas on how to do this with PHP? I'm guessing it would involve some
kind of socket connection...

Yep. Simply open a socket connection as described in:
http://www.php.net/manual/en/function.fsockopen.php

I once wrote an RTSP (Real Time Streaming Protocol) link checker using that, works 
flawlessly.

$sockethandle = fsockopen($host, $port);

if ($sockethandle) {
# Lets query document root
$query = GET / HTTP/1.0\n\n;
# Send the query
fputs($sockethandle, $query);
# Receive first line of response
$response = trim(fgets($sockethandle, 1024));
}

Remember, using fsockopen is more or less like telnet-ing to the server, standard HTTP 
port is 80. But querying a web server can easier be done by doing a 
file($url_of_server).

If it's just to tell if a server is online, nearly any method will do, including DNS 
lookups or a simple system call with ping... :-)


mit freundlichen Gruessen / yours sincerely


Gunther E. Biernat
Web Application Engineer
__

RealNetworks GmbH   Tel.: +49-40-415204-24
Weidestraße 128 Fax.: +49-40-415204-11
22083 Hamburg   Mail: [EMAIL PROTECTED]
Germany URL : http://de.real.com
__



--
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] Fatal Error: Call to undefined function: sybase_connect() in

2001-07-03 Thread nelo manuel

yes it is,
when compilinf php-4.0.6
after ./configure then make it gives me some error
portion of installation:

microtime.c: In function `php_if_getrusage':
microtime.c:94: storage size of `usg' isn't known
microtime.c:97: `RUSAGE_SELF' undeclared (first use in this function)
microtime.c:97: (Each undeclared identifier is reported only once
microtime.c:97: for each function it appears in.)
microtime.c:103: `RUSAGE_CHILDREN' undeclared (first use in this 
function)
make[3]: *** [microtime.lo] Error 1
make[3]: Leaving directory `/home/master/php-4.0.1/ext/standard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/master/php-4.0.1/ext/standard'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/master/php-4.0.1/ext'
make: *** [all-recursive] Error 1


any help?
no the only thing that works is ? phpinfo() ?

thanks

From: Ray Hilton [EMAIL PROTECTED]
To: 'nelo manuel' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined function: 
sybase_connect() in
Date: Tue, 3 Jul 2001 11:37:37 +0200

Not sure other than that... If it compiles it means it can find the
headers it needs from the sybase package...  Is this sybase 11.9.2?  I
managed to build php with that some time ago, but I cant for the life of
me remember any more details...

Do any sybase functions work?  And do you get any errors during
configure/install?

-Original Message-
From: nelo manuel [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 11:28
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined function:
sybase_connect() in


i have compile it with sybase on ./configure (according to mastering
linux
book, install and configuring php to access data from sybase)

can some else pls help me :(


 From: Ray Hilton [EMAIL PROTECTED]
 To: 'nelo manuel' [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject: RE: [PHP] Fatal Error: Call to undefined function:
 sybase_connect() in
 Date: Tue, 3 Jul 2001 09:37:56 +0200
 
 Have you sompiled in sybase support?  By defauly php doesn't compile
 with sybase functions, you must specifcally tell it too...
 
 -Original Message-
 From: nelo manuel [mailto:[EMAIL PROTECTED]]
 Sent: 03 July 2001 09:27
 To: [EMAIL PROTECTED]
 Subject: [PHP] Fatal Error: Call to undefined function:
 sybase_connect() in
 
 
 Dear all,
 
 am quite new on php and Linux, after installing php-4.0.6 and run the
 test.php it worked OK but when i try to write the function to initially

 display records from sybase pubs2 i get the following msg Fatal
 Error:Call to undefined function: sybase_connect() in
 /home/httpd/html/index.php3
 
 i am using Linux Redhat 7 kernel 2.4.3
 
 can any one help me please :(
 
 Kind regards,
 Nelson
 
 
 ___
 _
 _
 Get Your Private, Free E-mail from MSN Hotmail at
 http://www.hotmail.com.
 
 
 --
 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]
 
 
 


_
Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.


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




_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
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] Fatal Error: Call to undefined function: sybase_connect() in

2001-07-03 Thread nelo manuel

i've tested my glibc
with the following code
$ cat test.c X
#include sys/resource.h
X

$ gcc -E test.c /dev/null

but did not give me an error, now i don't know if the problem is my glibc
or sybase? am lost  :( or missing to include the correct path!!?


From: Ray Hilton [EMAIL PROTECTED]
To: 'nelo manuel' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined function: 
sybase_connect() in
Date: Tue, 3 Jul 2001 11:37:37 +0200

Not sure other than that... If it compiles it means it can find the
headers it needs from the sybase package...  Is this sybase 11.9.2?  I
managed to build php with that some time ago, but I cant for the life of
me remember any more details...

Do any sybase functions work?  And do you get any errors during
configure/install?

-Original Message-
From: nelo manuel [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 11:28
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined function:
sybase_connect() in


i have compile it with sybase on ./configure (according to mastering
linux
book, install and configuring php to access data from sybase)

can some else pls help me :(


 From: Ray Hilton [EMAIL PROTECTED]
 To: 'nelo manuel' [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject: RE: [PHP] Fatal Error: Call to undefined function:
 sybase_connect() in
 Date: Tue, 3 Jul 2001 09:37:56 +0200
 
 Have you sompiled in sybase support?  By defauly php doesn't compile
 with sybase functions, you must specifcally tell it too...
 
 -Original Message-
 From: nelo manuel [mailto:[EMAIL PROTECTED]]
 Sent: 03 July 2001 09:27
 To: [EMAIL PROTECTED]
 Subject: [PHP] Fatal Error: Call to undefined function:
 sybase_connect() in
 
 
 Dear all,
 
 am quite new on php and Linux, after installing php-4.0.6 and run the
 test.php it worked OK but when i try to write the function to initially

 display records from sybase pubs2 i get the following msg Fatal
 Error:Call to undefined function: sybase_connect() in
 /home/httpd/html/index.php3
 
 i am using Linux Redhat 7 kernel 2.4.3
 
 can any one help me please :(
 
 Kind regards,
 Nelson
 
 
 ___
 _
 _
 Get Your Private, Free E-mail from MSN Hotmail at
 http://www.hotmail.com.
 
 
 --
 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]
 
 
 


_
Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.


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




_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
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 for NetWare?

2001-07-03 Thread Tony Gettig

Hi there,

Is PHP available for NetWare? I've looked high and low and find no reference to such a 
beast. I prefer PHP on my Linux box, but I need to explore being able to put it on a 
NetWare server running Netscape Enterprise. TIA for any pointers in the right 
direction.


Tony Gettig
Network Administrator
Kalamazoo Public Schools




--
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] Basic multi-dimensional array help

2001-07-03 Thread Jeff Gannaway

I've got input fields in a form that look like:
INPUT TYPE=HIDDEN NAME=Person[0] VALUE=Jeff
INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Apples
INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Oranges
INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Peaches
INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Pears

INPUT TYPE=HIDDEN NAME=Person[1] VALUE=Carolyn
INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Apples
INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Oranges
INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Peaches
INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Pears

The next script processes all this into a database. Here are the results I
get from various commands:

sizeof($Info): 2
sizeof($Info[0]): 4
print $Info[0][0]: Array[0]

Any help?
Jeff Gannaway

___

SUMMER ART PRINT SALE at www.PopStreet.com
Save an additional 10% off art print orders of $50 or more.
Type in coupon code jemc when checking out.
___

Find the right art print for your home.
* Search by artist, color, art style and subject.
* Preview the art prints against your wall color.
* Specializing in contemporary, abstract and African
  American art.
* Every day discounts on thousands of fine art prints.

PopStreet.com is your avenue to art. 


http://www.popstreet.com 
___ 
Coupon may be redeemed from June 27 through July 31, 2001.

--
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] Fatal Error: Call to undefined function: sybase_connect() in

2001-07-03 Thread rm

before running ./configure go to the directory and
delete the old configure.cache file then run
./configure again.

kb


--- nelo manuel [EMAIL PROTECTED] wrote:
 yes it is,
 when compilinf php-4.0.6
 after ./configure then make it gives me some error
 portion of installation:
 
 microtime.c: In function `php_if_getrusage':
 microtime.c:94: storage size of `usg' isn't
 known
 microtime.c:97: `RUSAGE_SELF' undeclared (first
 use in this function)
 microtime.c:97: (Each undeclared identifier is
 reported only once
 microtime.c:97: for each function it appears
 in.)
 microtime.c:103: `RUSAGE_CHILDREN' undeclared
 (first use in this 
 function)
 make[3]: *** [microtime.lo] Error 1
 make[3]: Leaving directory
 `/home/master/php-4.0.1/ext/standard'
 make[2]: *** [all-recursive] Error 1
 make[2]: Leaving directory
 `/home/master/php-4.0.1/ext/standard'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory
 `/home/master/php-4.0.1/ext'
 make: *** [all-recursive] Error 1
 
 
 any help?
 no the only thing that works is ? phpinfo() ?
 
 thanks
 
 From: Ray Hilton [EMAIL PROTECTED]
 To: 'nelo manuel' [EMAIL PROTECTED],
 [EMAIL PROTECTED]
 Subject: RE: [PHP] Fatal Error: Call to undefined
 function: 
 sybase_connect() in
 Date: Tue, 3 Jul 2001 11:37:37 +0200
 
 Not sure other than that... If it compiles it means
 it can find the
 headers it needs from the sybase package...  Is
 this sybase 11.9.2?  I
 managed to build php with that some time ago, but I
 cant for the life of
 me remember any more details...
 
 Do any sybase functions work?  And do you get any
 errors during
 configure/install?
 
 -Original Message-
 From: nelo manuel [mailto:[EMAIL PROTECTED]]
 Sent: 03 July 2001 11:28
 To: [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Subject: RE: [PHP] Fatal Error: Call to undefined
 function:
 sybase_connect() in
 
 
 i have compile it with sybase on ./configure
 (according to mastering
 linux
 book, install and configuring php to access data
 from sybase)
 
 can some else pls help me :(
 
 
  From: Ray Hilton [EMAIL PROTECTED]
  To: 'nelo manuel' [EMAIL PROTECTED],
 [EMAIL PROTECTED]
  Subject: RE: [PHP] Fatal Error: Call to undefined
 function:
  sybase_connect() in
  Date: Tue, 3 Jul 2001 09:37:56 +0200
  
  Have you sompiled in sybase support?  By defauly
 php doesn't compile
  with sybase functions, you must specifcally tell
 it too...
  
  -Original Message-
  From: nelo manuel [mailto:[EMAIL PROTECTED]]
  Sent: 03 July 2001 09:27
  To: [EMAIL PROTECTED]
  Subject: [PHP] Fatal Error: Call to undefined
 function:
  sybase_connect() in
  
  
  Dear all,
  
  am quite new on php and Linux, after installing
 php-4.0.6 and run the
  test.php it worked OK but when i try to write the
 function to initially
 
  display records from sybase pubs2 i get the
 following msg Fatal
  Error:Call to undefined function:
 sybase_connect() in
  /home/httpd/html/index.php3
  
  i am using Linux Redhat 7 kernel 2.4.3
  
  can any one help me please :(
  
  Kind regards,
  Nelson
  
  
 

___
  _
  _
  Get Your Private, Free E-mail from MSN Hotmail at
  http://www.hotmail.com.
  
  
  --
  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]
  
  
  
 


 _
 Get Your Private, Free E-mail from MSN Hotmail at
 http://www.hotmail.com.
 
 
 --
 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]
 
 
 
 

_
 Get Your Private, Free E-mail from MSN Hotmail at
 http://www.hotmail.com.
 
 
 -- 
 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]
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-- 
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] Fatal Error: Call to undefined function: sybase_connect() in

2001-07-03 Thread nelo manuel

thanks you,
but will it solve the Fatal error am getting when trying to
retrieve records from sybase?

Nelson
London


From: rm [EMAIL PROTECTED]
To: nelo manuel [EMAIL PROTECTED], [EMAIL PROTECTED],  
[EMAIL PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined function: 
sybase_connect() in
Date: Tue, 3 Jul 2001 05:13:05 -0700 (PDT)

before running ./configure go to the directory and
delete the old configure.cache file then run
./configure again.

kb


--- nelo manuel [EMAIL PROTECTED] wrote:
  yes it is,
  when compilinf php-4.0.6
  after ./configure then make it gives me some error
  portion of installation:
 
  microtime.c: In function `php_if_getrusage':
  microtime.c:94: storage size of `usg' isn't
  known
  microtime.c:97: `RUSAGE_SELF' undeclared (first
  use in this function)
  microtime.c:97: (Each undeclared identifier is
  reported only once
  microtime.c:97: for each function it appears
  in.)
  microtime.c:103: `RUSAGE_CHILDREN' undeclared
  (first use in this
  function)
  make[3]: *** [microtime.lo] Error 1
  make[3]: Leaving directory
  `/home/master/php-4.0.1/ext/standard'
  make[2]: *** [all-recursive] Error 1
  make[2]: Leaving directory
  `/home/master/php-4.0.1/ext/standard'
  make[1]: *** [all-recursive] Error 1
  make[1]: Leaving directory
  `/home/master/php-4.0.1/ext'
  make: *** [all-recursive] Error 1
 
 
  any help?
  no the only thing that works is ? phpinfo() ?
 
  thanks
 
  From: Ray Hilton [EMAIL PROTECTED]
  To: 'nelo manuel' [EMAIL PROTECTED],
  [EMAIL PROTECTED]
  Subject: RE: [PHP] Fatal Error: Call to undefined
  function:
  sybase_connect() in
  Date: Tue, 3 Jul 2001 11:37:37 +0200
  
  Not sure other than that... If it compiles it means
  it can find the
  headers it needs from the sybase package...  Is
  this sybase 11.9.2?  I
  managed to build php with that some time ago, but I
  cant for the life of
  me remember any more details...
  
  Do any sybase functions work?  And do you get any
  errors during
  configure/install?
  
  -Original Message-
  From: nelo manuel [mailto:[EMAIL PROTECTED]]
  Sent: 03 July 2001 11:28
  To: [EMAIL PROTECTED];
  [EMAIL PROTECTED]
  Subject: RE: [PHP] Fatal Error: Call to undefined
  function:
  sybase_connect() in
  
  
  i have compile it with sybase on ./configure
  (according to mastering
  linux
  book, install and configuring php to access data
  from sybase)
  
  can some else pls help me :(
  
  
   From: Ray Hilton [EMAIL PROTECTED]
   To: 'nelo manuel' [EMAIL PROTECTED],
  [EMAIL PROTECTED]
   Subject: RE: [PHP] Fatal Error: Call to undefined
  function:
   sybase_connect() in
   Date: Tue, 3 Jul 2001 09:37:56 +0200
   
   Have you sompiled in sybase support?  By defauly
  php doesn't compile
   with sybase functions, you must specifcally tell
  it too...
   
   -Original Message-
   From: nelo manuel [mailto:[EMAIL PROTECTED]]
   Sent: 03 July 2001 09:27
   To: [EMAIL PROTECTED]
   Subject: [PHP] Fatal Error: Call to undefined
  function:
   sybase_connect() in
   
   
   Dear all,
   
   am quite new on php and Linux, after installing
  php-4.0.6 and run the
   test.php it worked OK but when i try to write the
  function to initially
  
   display records from sybase pubs2 i get the
  following msg Fatal
   Error:Call to undefined function:
  sybase_connect() in
   /home/httpd/html/index.php3
   
   i am using Linux Redhat 7 kernel 2.4.3
   
   can any one help me please :(
   
   Kind regards,
   Nelson
   
   
  
 
 ___
   _
   _
   Get Your Private, Free E-mail from MSN Hotmail at
   http://www.hotmail.com.
   
   
   --
   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]
   
   
   
  
 
 
  _
  Get Your Private, Free E-mail from MSN Hotmail at
  http://www.hotmail.com.
  
  
  --
  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]
  
  
  
 
 
_
  Get Your Private, Free E-mail from MSN Hotmail at
  http://www.hotmail.com.
 
 
  --
  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]
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

_
Get Your Private, Free E-mail from MSN 

Re: [PHP] shtml includes

2001-07-03 Thread Christian Reiniger

On Sunday 01 July 2001 13:57, Justin French wrote:

 If you grab a decent text editor, and do a search and replace accross
 the whole site (decent text editors can do search and replace on a
 whole directory or disk), you'll have a once-off chore, rather than
 giving the server a constant chore.

[...]

 so !-- include file=stuff.txt --
 becomes ?php include('stuff.php'); ?

 easy.  the bad bit is that you've got to then go and rename each
 extension .php instead of .txt, but you are going to have this problem

No need to rename them. They're only accessed via include(), so PHP 
parses them regardless of the filename.

-- 
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)

...1000100011010101101010110100111010113...

--
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] Basic multi-dimensional array help

2001-07-03 Thread Wieger Uffink

Hi Jeff,

There probably are several ways of doing this.

One is you copy $info[0] ( an array itself ) into a dummy variable, and
get the values with $dummy[0] etc.
Or use brackets in your variable syntax, which youll have to experiment
with cause, I can never seem to remeber the right syntax :)

something like ${$info[0]}[0] I think... correct me if Im wrong.

Hope this helps,
Wieger

Jeff Gannaway wrote:
 
 I've got input fields in a form that look like:
 INPUT TYPE=HIDDEN NAME=Person[0] VALUE=Jeff
 INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Apples
 INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Oranges
 INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Peaches
 INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Pears
 
 INPUT TYPE=HIDDEN NAME=Person[1] VALUE=Carolyn
 INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Apples
 INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Oranges
 INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Peaches
 INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Pears
 
 The next script processes all this into a database. Here are the results I
 get from various commands:
 
 sizeof($Info): 2
 sizeof($Info[0]): 4
 print $Info[0][0]: Array[0]
 
 Any help?
 Jeff Gannaway
 
 ___
 
 SUMMER ART PRINT SALE at www.PopStreet.com
 Save an additional 10% off art print orders of $50 or more.
 Type in coupon code jemc when checking out.
 ___
 
 Find the right art print for your home.
 * Search by artist, color, art style and subject.
 * Preview the art prints against your wall color.
 * Specializing in contemporary, abstract and African
   American art.
 * Every day discounts on thousands of fine art prints.
 
 PopStreet.com is your avenue to art.
 
 http://www.popstreet.com
 ___
 Coupon may be redeemed from June 27 through July 31, 2001.
 
 --
 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]

-- 
Wieger Uffink
tel: +31 20 428 6868
fax: +31 20 470 6905
web: http://www.usmedia.nl

-- 
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] about php and Interbase

2001-07-03 Thread Yamilé

Hi:

I have PHP4 and Interbase 6.0 Super Server but ...

Fatal Error: Call to undefined function
ibase_connect() ...

any idea?

Is there something like php-interbase...rpm?

Thanks

fausto.


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-- 
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] Re: [PHP-DB] PhpMyAdmin phpPgAdmin Security Issues

2001-07-03 Thread andreas \(@work\)

Dear Paul,

ive got 3 servers (dedicated) with mysql 3.22.32 and above and phpMyAdmin
2.1.0
but i cant reproduce the vulnerability

http://ip/phpMyAdmin/sql.php?server=000cfgServers[000][host]=hellobtnDrop=N
ogoto=/etc/passwd

is not working


Warning: MySQL Connection Failed: Access denied for user: 'httpd@localhost'
(Using password: NO) in /home/sites/siteX/web/phpMyAdmin/sql.php3 on line 56

Warning: MySQL: A link to the server could not be established in
/home/sites/siteX/web/phpMyAdmin/sql.php3 on line 56
Error


i use advanced uthentication



thank you

andreas







- Original Message -
From: Paul Burney [EMAIL PROTECTED]
To: php mailing list [EMAIL PROTECTED]
Sent: Monday, July 02, 2001 9:42 PM
Subject: [PHP-DB] PhpMyAdmin phpPgAdmin Security Issues


I don't know how many of you on this list are also on Bugtraq, but there
were some *very* interesting posts there this morning by Shaun Clowes.  You
can see them at:

http://www.securereality.com.au/archives.html

The relevant links to look at are A Study in Scarlet:
http://www.securereality.com.au/studyinscarlet.txt

And:

(SRPRE1) phpMyAdmin 2.1.0 and phpPgAdmin 2.2.1
http://www.securereality.com.au/srpre1.html

I imagine that many on this list do use phpMyAdmin or phpPgAdmin so this
post is very important.

Basically, depending on configuration, any user on the web can use
phpMyAdmin to view sensitive files (/etc/passwd), etc.  There is a patch
available.

The Study in Scarlet goes into details about other common PHP security
breaches, and a little about how to avoid them.  The problems aren't *so*
bad if you're running your own server and access is only given to a few
trusted developers.  You could probably retrain everyone to use
$HTTP_GET_VARS, etc.

However, there could be a multitude of problems on hosts with multiple
virtual users.  For example, the above exploit could be used to get a list
of the users and home directories in /etc/passwd and then a malicious user
could view directory listings and file contents from another user's
directory.  That could lead to database passwords escaping and other local
users modifying your data.  And that's only the tip of the iceberg.

I look forward to seeing Rasmus, Andi, Zeev, Stig etc. respond to this.

Sincerely,

Paul Burney

+-+-+
| Paul Burney | P: 310.825.8365 |
| Webmaster  Programmer | E: [EMAIL PROTECTED]   |
| UCLA - GSEIS - ETU   | W: http://www.gseis.ucla.edu/ |
+-+-+


--
PHP Database 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] search

2001-07-03 Thread AJDIN BRANDIC

On Tue, 3 Jul 2001, Tom Carter wrote:

 Rather than trying to break it into an array, you can examine the rightmost
 character as follows
 
 $search=dogs;
 if(substr($search,-1)=='s') $search=substr($search,0,-1);
OK, thanks. I am already breaking input search string into an array using 
a ',' as the seperator.  Then I loop while there are elements in this new 
array and build the search query.

Thanks again!

Ajdin

 
 This checks if the last character is an s and if it is then set search to
 the same string but without the s.. note, does not handle multiple word
 queries.. for this you would need to break the string into words (something
 you would probably have to do anyway) and do this for each of those...
 
 For more info on substr seet http://php.net/substr
 - Original Message -
 From: AJDIN BRANDIC [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, July 03, 2001 11:10 AM
 Subject: [PHP] search
 
 
  Hi all
 
  I've got search facility (php-mysql) which is very simple. If i search
  for 'dog' it will find any records containing words 'dog' or 'dogs' or
  'dogowner' etc.  But if I search for 'dogs', words 'dog' and 'dogowner'
  will not be found.  This is a classic case so there must be a solution to
  it but I cannot find one.  I tried to do something like
  if word is 'dogs' then I do the search,
  then break word 'dogs' into an array and check if the last element is an
  's'. If it is remove it, reconstrust the string,which will give 'dog',
  and do search for that too.
  Then display results.  Well I connot find a way of breaking a string into
  an array. How do I break 'mynameis' into an array of 8 elements?
  This has got loopholes but still it is better than what I have now.
 
  Thanks
 
  Ajdin
 
  --
  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]




Re: [PHP] Mysql

2001-07-03 Thread Muhv

Simplest and quickes way
prompt: mysql -u root -p  dumb.sql

after -u put your mysql username, after that it will ask password and little pause and 
all is done!

This works both, on Linux and Windows versions.

Muhv

 How to run mysql batch program im mysql terminal.
 for example in folder I have program dumb.sql and I want to run this program
 in mysql.
 
 Thanks
 
   roman
 
 
 -- 
 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]
 
 

-
Meeldetuletused kalendrist sms-lühisõnumina. Uuri järgi!
http://www.hot.ee



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

2001-07-03 Thread Christian Reiniger

On Monday 02 July 2001 21:32, scott [gts] wrote:

 probably becuase time() is seconds since 1970, and as
 far as i understand, once it gets over 999,999,999
 it will not work correctly becuase it will roll over
 (similar to the Y2k bug) and become 000,000,000

Typically the limit is 2^31 seconds (a 32Bit signed number) on 32Bit 
machines (which I assume is used here). So the Y2k equivalent for Unix 
time() is around mid-2038.

-- 
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)

...1000100011010101101010110100111010113...

--
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] Using PHP to test if server is online

2001-07-03 Thread Christian Reiniger

On Tuesday 03 July 2001 07:47, Vikram Vaswani wrote:

 I am writing a PHP script to test if the server on which it is running
 is currently connected to the Internet. If so, the main page will
 display a notice saying We are now online, else it will say Not
 connected

 Any ideas on how to do this with PHP? I'm guessing it would involve
 some kind of socket connection...

if ($Handle = fopen (http://slashdot.org/;, r)) {
  echo We're NOT online;
  fclose ($Handle);
} else {
  echo We're online;
}

-- 
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)

...1000100011010101101010110100111010113...

--
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] recommend a good PHP site specific search engine

2001-07-03 Thread Tom Beidler

Can anyone suggest a good PHP/MySQL search engine to be used to search a
site (not the entire Internet). I have a site with an extensive amount of
manual pages that we would like to provide a search engine for.

Thanks,
Tom

.
Tom Beidler
Orbit Tech Services
805.682.8972 (phone)
805.682.5833 (fax)
[EMAIL PROTECTED]
http://www.orbittechservices.com/
.



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

2001-07-03 Thread Steve Werby

AJDIN BRANDIC [EMAIL PROTECTED] wrote:
 I've got search facility (php-mysql) which is very simple. If i search
 for 'dog' it will find any records containing words 'dog' or 'dogs' or
 'dogowner' etc.  But if I search for 'dogs', words 'dog' and 'dogowner'
 will not be found.  This is a classic case so there must be a solution to
 it but I cannot find one.  I tried to do something like
 if word is 'dogs' then I do the search,
 then break word 'dogs' into an array and check if the last element is an
 's'. If it is remove it, reconstrust the string,which will give 'dog',
 and do search for that too.
 Then display results.  Well I connot find a way of breaking a string into
 an array. How do I break 'mynameis' into an array of 8 elements?
 This has got loopholes but still it is better than what I have now.

Ajdin, you may want to take a look at mnoGoSearch, which is search engine
software with a C indexer, PHP front-end and ability to work with numerous
databases, including MySQL.  It's a great program, but even if it's not
suitable for what you're doing I suggest looking at the PHP code and
database structure.  mnoGoSearch has incorporated the ability to search for
related words by incorporating a dictionary file and a database table of
grammar rules so a search for one word can be made to find other forms of
that word.

FYI, to break a string into an array like you describe use strlen() to get
the length of the string, substr() to pull out the first N characters from
the string, then loop through and add each element to an array by adding as
follows (pseudocode):

for ( $i = strlen( $string ); $i = 0; $i-- )
$array[] = substr( $string, 0, $i );

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/


-- 
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] recommend a good PHP site specific search engine

2001-07-03 Thread Steve Werby

Tom Beidler [EMAIL PROTECTED] wrote:
 Can anyone suggest a good PHP/MySQL search engine to be used to search a
 site (not the entire Internet). I have a site with an extensive amount of
 manual pages that we would like to provide a search engine for.

mnoGoSearch http://www.mnogosearch.org/

-- 
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/


-- 
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] help in getting results from mysql

2001-07-03 Thread Christian Dechery

well... I tought of that.
It doesn't work for many reasons:
1 - '*' always has to be the first on the select list
2 - you can't have expressions (max, min, avg) without a group by clause
if you are handling multiple rows
3 - etc. etc.. etc...

that's why I included the code in between the queries...

Try

$rs1=mysql_query(select max(date) AS latest, * from tablename where
item_id=34 and item_type_id=3);

but consider that you may possibly have multiple entries for the latest

date?




. [ Christian Dechery  ]
. Webdeveloper @ Tá Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.br



--
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, Templates, XSLT

2001-07-03 Thread Leonardo Dias

Hi there,

I was wondering if anyone ever tested XSLT. I know it's much more than a
template system, but we are willing to use it as a transformation of XML
purely as a template.

Anyways, has anyone experienced it with Sablotron? How did you like it?
Was it any good? Is it fast enough for big websites?

We're trying to decide what is best: smarty template or a XML-based
solution. Do you guys think that PHP is prepared for XML/XSLT or you
don't like XML at all?



-- 
Leonardo Dias
Catho Online
WebDeveloper
http://www.catho.com.br/

-- 
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] session handler class

2001-07-03 Thread scott [gts]

ok, grab all the files in this directory:
http://furt.com/php/session/

** read the readme.txt file

 -Original Message-
 From: Joe Rice [mailto:[EMAIL PROTECTED]]
 Subject: Re: [PHP] session handler class
 
 i would love to see this too, i think it was stripped.
 
 thanks,
 joe

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

2001-07-03 Thread scott [gts]

you could either:

1) re-install apache with PHP as a module
2) install PHP as CGI and leave apache alone

if you're new to linux, and the box is not a production
machine, i highly reccomend option #2... 
if apache ain't broke, dont fix it ;)

 -Original Message-
 From: Juan Pablo Rivera [mailto:[EMAIL PROTECTED]]
 Subject: [PHP] php intall
 
 
 hi 
 how do i install php in my redhat 7.1 server when alredy have intaled 
 apache with .RPM???
 
 

-- 
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] Quering given dns and list A records with PHP

2001-07-03 Thread Kurt Lieber

By design, most DNS servers won't let you do this because it's something of
a security risk.

However, for DNS servers that *will* let you do it, there isn't a built-in
function in PHP that will do what you want, but I imagine you can accomplish
it by interacting with a unix shell and using the nslookup command.  I don't
know the code to do this, but am sure there are tons of examples around.
Once you get access to the shell, the commands you want are as follows:

shellprompt nslookup
shellprompt ls -t any domainname.com

where domainname.com is the domain you're looking for.

Again, note that 9 times out of 10, you're going to get a Query Refused
result since most DNS servers won't give you this information.  You can get
an idea of your success rate by simply trying the above commands in your own
*nix shell for various domain names.  Most/all of the big guys (yahoo, sun,
etc.) are blocked.

hth

--kurt



- Original Message -
From: Mohamedou [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 3:41 AM
Subject: [PHP] Quering given dns and list A records with PHP


Hello all,

Can somebody help me
I need to query a given DNS Server identified by IP and the domain
I want query and then it gives me the whole machines it has registered

Regards

Moh




-- 
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, Templates, XSLT

2001-07-03 Thread Mark Charette

From: Leonardo Dias [EMAIL PROTECTED]
 Anyways, has anyone experienced it with Sablotron?

Yes.

 How did you like it?

Worked as advertised. Which is a bear sometimes - but that's due to XML
limitations, not Sablotron's fault.

 Was it any good?

Yup.

 Is it fast enough for big websites?

Well, big websites don't necessarily have to be fast (I've got over 100,000
pages on one of my websites - but since I'm getting about 2 hits/second it
doesn't have to be fast) - but in general, XSLT translation takes a
noticeable hit. If your expaectations are in the hundreds of hits/second
then you would want to cache the resulting page anyway.

Mark [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] Attn: HP Pavilion 9680C (US) owners

2001-07-03 Thread Martin F. Krafft

hi all,
please forgive this post, i am at the end of my wisdom, and HP prove
to be dorks on all counts again. This has nothing to do with this
list, but i spent a solid week now on the net and in touch with other
people, trying to get help at no success. i figure that there's got to
be some people even on this list that can help me...

I am in desperate need for some drivers off the HP Pavilion 9680C (US)
recovery CD, which, of course, you can't download at hp.com. They
shipped their systems with that Conexant SoftK56 piece of junk modem.
I had to reinstall Win98 (please feel free to express your sympathy
via email!), and all the drivers and all the help i could get (mainly
driverguide.com) are useless - according to HP I need the original
drivers off the recovery CD if I want my modem to work.

Moreover, they are throughly rude on the phone, you can clearly see
how the most important thing at HP too is the money... (they wanted to
charge me $25 per 15 minutes because i called from germany, even
though the US system i had purchased was still within warranty). ack!

Does anyone have that CD?

Please CC me since the address I am subscribed as is currently
inaccessible.

martin;  (greetings from the heart of the sun.)
  \ echo mailto: !#^.*|tr * mailto:; net@madduck
-- 
due to lack of interest tomorrow has been cancelled.

-- 
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] IRC Gateway Functions

2001-07-03 Thread Brian C. Doyle

Hello all,

I am trying to use the IRC Gateway Functions and am concerned that I may 
not have PHP configured correctly.  The problem with that is that i can not 
find anything to add to the configure line to add the functions.  Currently 
all I have in my code is
?
error_reporting (E_ALL);
$irc_open=ircg_pconnect('boots','127.0.0.1','6667');
?
and i get
Fatal error: Call to undefined function: ircg_pconnect() in 
/home/httpd/jbbent/ircopen.php on line 3

as my out put.

What am I missing

Thanks for your help.





[PHP] Re: [PHP-DB] PhpMyAdmin phpPgAdmin Security Issues

2001-07-03 Thread Paul Burney

on 7/3/01 5:47 AM, andreas (@work) ([EMAIL PROTECTED]) wrote:

 ive got 3 servers (dedicated) with mysql 3.22.32 and above and phpMyAdmin
 2.1.0 but i cant reproduce the vulnerability

 i use advanced uthentication

 http://ip/phpMyAdmin/sql.php?server=000cfgServers[000][host]=hellobtnDrop=N
 ogoto=/etc/passwd

If that URL is copied correctly, it might be because there's no  between
the server=000 and the cfgServers[000][host].

If not, maybe your particular configuration isn't vulnerable.

If you use a Apache Auth for access to the folder and normal auth in
phpmyadmin, you are not vulnerable to outsiders but *you* can still view a
server's sensitive files which can be really dangerous in a shared server
environment.

Sincerely,

Paul Burney

+-+-+
| Paul Burney | P: 310.825.8365 |
| Webmaster  Programmer | E: [EMAIL PROTECTED]   |
| UCLA - GSEIS - ETU   | W: http://www.gseis.ucla.edu/ |
+-+-+


-- 
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] second try - Mysql php install

2001-07-03 Thread scott [gts]

try using safe_mysqld 

if 'mysqld' is not in your 'ps' list, then the
daemon is not running, and you cannot connect to it.
(check the mysql error logs for possible reasons)

 -Original Message-
 From: Daniel Guerrier [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 02, 2001 10:38 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] second try - Mysql php install
 
 
 
 I'm trying to make php work with mysql but I can't
 even create a table.  I'm receiving this error.
 
 [root@menace mysql]# mysqladmin create testdb
 mysqladmin: connect to server at 'localhost' failed 
 error: 'Can't connect to local MySQL server though
 socket '/var/lib/mysql/mysq.sock' (2)'
 
 Check that mysqld is running and that the socket
 :'/var/lib/mysql/mysq.sock' exists
 
 I started mysqld - ps -ef shows that the process is
 not running
 The only thing I see that is wrong is that mysql.sock
 is missing, but I assumed the install or starting the
 process would create it.  It didn't.
 
 Shouldn't this file be created by the install
 And when I use prefix=/software/mysql a mysqld file is
 placed under /usr/local/bin as well.  Am I doing
 something wrong??? 
 
 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail
 http://personal.mail.yahoo.com/
 
 -- 
 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] Using PHP to test if server is online

2001-07-03 Thread scott [gts]

try: fopen('http://server.com/index.php');

or you could probably grab the output of 
'ping server.com' (assuming server.com accepts pings)

 -Original Message-
 From: Vikram Vaswani [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 03, 2001 1:48 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Using PHP to test if server is online
 
 
 Hi again,
 
 I am writing a PHP script to test if the server on which it is running is
 currently connected to the Internet. If so, the main page will display a
 notice saying We are now online, else it will say Not connected
 
 Any ideas on how to do this with PHP? I'm guessing it would involve some
 kind of socket connection...
 
 TIA,
 
 Vikram
 --
 I took an IQ test, and the results were negative.
 
 -- 
 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] Fatal Error: Call to undefined function: sybase_connect() in

2001-07-03 Thread scott [gts]

it might help.

it also helps to scour the configure output, looking
for all the lines that contain sybase, becuase sometimes
even if you ask configure to use something, it might
not be properly found... and configure might spew out
a sybase support ... no in the configure output.

i ran into this problem with GD 1.8.4 and PHP 4.0.4-5,
no matter how i used --with-gd, configure would always
decide that GD was not present, and go on without it.

 -Original Message-
 From: nelo manuel [mailto:[EMAIL PROTECTED]]
 Subject: RE: [PHP] Fatal Error: Call to undefined function:
 sybase_connect() in

 thanks you,
 but will it solve the Fatal error am getting when trying to
 retrieve records from sybase?
 
 Nelson
 London
 
 
 From: rm [EMAIL PROTECTED]
 To: nelo manuel [EMAIL PROTECTED], [EMAIL PROTECTED],  
 [EMAIL PROTECTED]
 Subject: RE: [PHP] Fatal Error: Call to undefined function: 
 sybase_connect() in
 Date: Tue, 3 Jul 2001 05:13:05 -0700 (PDT)
 
 before running ./configure go to the directory and
 delete the old configure.cache file then run
 ./configure again.
 
 kb
 
 
 --- nelo manuel [EMAIL PROTECTED] wrote:
   yes it is,
   when compilinf php-4.0.6
   after ./configure then make it gives me some error
   portion of installation:
  
   microtime.c: In function `php_if_getrusage':
   microtime.c:94: storage size of `usg' isn't
   known
   microtime.c:97: `RUSAGE_SELF' undeclared (first
   use in this function)
   microtime.c:97: (Each undeclared identifier is
   reported only once
   microtime.c:97: for each function it appears
   in.)
   microtime.c:103: `RUSAGE_CHILDREN' undeclared
   (first use in this
   function)
   make[3]: *** [microtime.lo] Error 1
   make[3]: Leaving directory
   `/home/master/php-4.0.1/ext/standard'
   make[2]: *** [all-recursive] Error 1
   make[2]: Leaving directory
   `/home/master/php-4.0.1/ext/standard'
   make[1]: *** [all-recursive] Error 1
   make[1]: Leaving directory
   `/home/master/php-4.0.1/ext'
   make: *** [all-recursive] Error 1
  
  
   any help?
   no the only thing that works is ? phpinfo() ?
  
   thanks
  
   From: Ray Hilton [EMAIL PROTECTED]
   To: 'nelo manuel' [EMAIL PROTECTED],
   [EMAIL PROTECTED]
   Subject: RE: [PHP] Fatal Error: Call to undefined
   function:
   sybase_connect() in
   Date: Tue, 3 Jul 2001 11:37:37 +0200
   
   Not sure other than that... If it compiles it means
   it can find the
   headers it needs from the sybase package...  Is
   this sybase 11.9.2?  I
   managed to build php with that some time ago, but I
   cant for the life of
   me remember any more details...
   
   Do any sybase functions work?  And do you get any
   errors during
   configure/install?
   
   -Original Message-
   From: nelo manuel [mailto:[EMAIL PROTECTED]]
   Sent: 03 July 2001 11:28
   To: [EMAIL PROTECTED];
   [EMAIL PROTECTED]
   Subject: RE: [PHP] Fatal Error: Call to undefined
   function:
   sybase_connect() in
   
   
   i have compile it with sybase on ./configure
   (according to mastering
   linux
   book, install and configuring php to access data
   from sybase)
   
   can some else pls help me :(
   
   
From: Ray Hilton [EMAIL PROTECTED]
To: 'nelo manuel' [EMAIL PROTECTED],
   [EMAIL PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined
   function:
sybase_connect() in
Date: Tue, 3 Jul 2001 09:37:56 +0200

Have you sompiled in sybase support?  By defauly
   php doesn't compile
with sybase functions, you must specifcally tell
   it too...

-Original Message-
From: nelo manuel [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 09:27
To: [EMAIL PROTECTED]
Subject: [PHP] Fatal Error: Call to undefined
   function:
sybase_connect() in


Dear all,

am quite new on php and Linux, after installing
   php-4.0.6 and run the
test.php it worked OK but when i try to write the
   function to initially
   
display records from sybase pubs2 i get the
   following msg Fatal
Error:Call to undefined function:
   sybase_connect() in
/home/httpd/html/index.php3

i am using Linux Redhat 7 kernel 2.4.3

can any one help me please :(

Kind regards,
Nelson


   
  
  ___
_
_
Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.


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



   
  
  
   _
   Get Your Private, Free E-mail from MSN Hotmail at
   http://www.hotmail.com.
   
   
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail:
   [EMAIL 

RE: [PHP] Mysql

2001-07-03 Thread scott [gts]

from the shell:
mysql -u[username] -p[password] [database]  dumb.sql

 -Original Message-
 From: Roman [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 03, 2001 3:43 AM
 To: Php-General
 Subject: [PHP] Mysql
 
 
 How to run mysql batch program im mysql terminal.
 for example in folder I have program dumb.sql and I want to run this program
 in mysql.
 
 Thanks
 
   roman
 
 
 -- 
 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] any reasons to compile apache instead of using distributionbinaries ?

2001-07-03 Thread scott [gts]

for a production machine, i'd say that compiling from
sources should always be the first option.

rpm's are great for ease of maintenence and simplicity
of intallation, but are not flexible at all.

sources are usually a tiny bit more complicated, 
becuase you've got to figure out what to tell 'configure'
or what to edit in the makefile, but they give you so
much more control over what functionality/options you
get in the program.

 -Original Message-
 From: Marius Andreiana [mailto:[EMAIL PROTECTED]]
 Subject: [PHP] any reasons to compile apache instead of using
 distributionbinaries ?
 
 Hi
 Do you think it would be better (easier to maintain) to install
 apache and other libraries from rpm, and from sources only
 php?
 
 Thanks,
 Marius Andreiana


-- 
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] sending 5000+ emails - use PHP?

2001-07-03 Thread Michael Kimsal

Kman wrote:

From: infoz [EMAIL PROTECTED]

If all the messages were identical, we might be able to get some

efficiency

by sorting the list by domain name and batching them up with SMTP


That's a very BAD idea. If you sort the mail by domain, you will flood
the mail queue because normally, mail sent to hotmail or yahoo will need
a repeated attempts before getting through. Better leave the email
address randomized as they are.

-Kittiwat


If it's such a a bad idea, sendmail should take it out of there system 
then.  This is how they have
achieved speedups in later versions - when processing a queue, it sorts 
by domain first, so that it
 can open a connection and send repeated emails, rather than open a 
separate connection for each
mail to that domain.


Michael Kimsal
PHP Training Courses
http://www.tapinternet.com/php/
734-480-9961



-- 
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] Processing checkboxes in Dynamic tables

2001-07-03 Thread scott [gts]

instead of giving them unique names, put them all into
a single array:

INPUT ... NAME=p[1]
INPUT ... NAME=p[2]

or, to automatically number them:
INPUT ... NAME=p[]
INPUT ... NAME=p[]

this way, you can deal only with $p[...]
instead of $p101, $p202, $p203


 -Original Message-
 From: Michael Benbow [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 03, 2001 5:02 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Processing checkboxes in Dynamic tables
 
 
 I have a solution to my problem already, but I am looking for a far more 
 economical way of doing this.
 
 Currently my first page is four seperate tables with about 25 or so 
 entries in each.  I have gone through and automatically allocated the name 
 p101 through p125 to the checkboxes for the first table, p201 through p225 
 to the checkboxes for the second table, etc.
 
 The user makes selections from each table, but seldomly selects the 
 majority.  They choose which lines they want processed then continue.
 
 My problem is that with the above solution there are automatically 200 
 variables being passed from page to page, regardless of how many boxes are 
 checked.  The average amount of boxes may be 10-15, and rarely is it more than 20.
 
 Currently my code looks like the following...
 
 $trade=101;
   $result = mysql_query(SELECT * FROM $table_name WHERE ..);
  
   if ($row = mysql_fetch_array($result)) {
 
do {

 echo tr bgcolor=\#CBCFFF\\n;
 
 echo td valign=\top\ nowrapfont size=\-2\;
  echo INPUT TYPE=\CHECKBOX\ SELECT NAME=\$p[$trade]\ OPTION 
 VALUE=\$row[playerid]\;
  echo $trade;
 echo /td\n;
 
 . 
 $trade=$trade+1;
 . 
 
 } while.
   
 etc.
 
 Could someone please help me so only the variables which are checked 
 before the submit button is pressed are parsed, eg p102, p107, p117, 
 rather than every input variable which is initialised on the site?
 
 Thank you heaps in advace,
 Michael.
 

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

2001-07-03 Thread scott [gts]

use split();

 -Original Message-
 From: AJDIN BRANDIC [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 03, 2001 6:10 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] search
 
 
 Hi all
 
 I've got search facility (php-mysql) which is very simple. If i search 
 for 'dog' it will find any records containing words 'dog' or 'dogs' or 
 'dogowner' etc.  But if I search for 'dogs', words 'dog' and 'dogowner' 
 will not be found.  This is a classic case so there must be a solution to 
 it but I cannot find one.  I tried to do something like
 if word is 'dogs' then I do the search,
 then break word 'dogs' into an array and check if the last element is an
 's'. If it is remove it, reconstrust the string,which will give 'dog', 
 and do search for that too.
 Then display results.  Well I connot find a way of breaking a string into 
 an array. How do I break 'mynameis' into an array of 8 elements?
 This has got loopholes but still it is better than what I have now.
 
 Thanks 
 
 Ajdin
 
 -- 
 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] any reasons to compile apache instead of usingdistribution binaries ?

2001-07-03 Thread mike cullerton

on 7/3/01 2:18 AM, Marius Andreiana at [EMAIL PROTECTED] wrote:

[this is wordy :)]

 Hi
 
 I'm curios how others are handling packages on production servers.
 Curently our sysadmins compile openssl,apache,php and other libraries
 from sources.
 
 Do you think it would be better (easier to maintain) to install
 apache and other libraries from rpm, and from sources only
 php?

this really is one of those holy war things. i prefer to compile everything
by hand, for two reasons really. one is that when i started doing this,
there weren't any package managers, and when they did arrive, the package
managers weren't really up to it. installing one package often broke
something else. i _had_ to roll my own (including the kernel).

my servers don't have users, and i don't have anything on my box i don't
need, so keeping it all straight in my head is relatively easy. which brings
me to the second reason.

for me, compiling myself is just easier. i create a file for every package
(as in tarball) i compile. it contains the configure command with all the
pertinent switches. i leave the file in the source directory. the next time
i need to compile, i execute the file and compile. piece of cake. i know
what's up with my box, because i did it.

however, i have some friends who know way more about system administration
than i do, and they swear by rpm. they like it so much they created their
own package based on redhat and rpm, http://www.tummy.com/krud/

i actually used their distro for about a year, but returned to slackware so
i could be in control :)

i think you'll find that this is really a personal choice thing for most
admins, and isn't the kind of thing i'd want management dictating to me.
folks should use whichever method they feel most comfortable with and that
causes _them_ the least headaches.

 
 Remember in some companies even the kernel is upgraded from rpm
 b/c of easier maintenance and less chances to screw something up.

it seems as if you've already decided which side you fall on :) i'll just
say that from where i sit, some of your logic seems flawed. sure, the first
time you compile a package from source, it takes a little while. but once
you get it right, then the next time is a piece of cake. it's learning which
switches to turn on or off that takes the time. but, that's why you have
good sysadmins, right? :)

i think the easier maintenance arguement is still open for discussion. as i
said, i don't buy it. as for less chances for screwing things up, i really
disagree. as i said, once you figure out how to compile a package, each of
the next times are a piece of cake. when you use rpm's, you are stuck with
the way they compiled it and you have to wait for a package to come out when
a bug fix is released.

curious, why do you think it's ok for your sysadmins to compile php but not
the other stuff?

-- mike cullerton   [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] Basic multi-dimensional array help

2001-07-03 Thread scott [gts]

that's stanard array behaviour...
$Info contains two elements,
$Info[0] and $Info[1]

$Info[0] contains four elements,
$Info[0][0], $Info[0][1], $Info[0][2], $Info[0][3]

try this function on your $Info variable to
see what it contains:  array_traverse($Info);

function array_traverse ($ary, $b=array()) {
  while ( list($k,$v) = each($ary) ) {
print (join(, $b)) . $k = $v\n;
array_push($b, \t);
if ( is_array($ary[$k]) ) {
array_traverse($ary[$k], $b);
}
array_pop($b);
  }
  return 1;
}




 -Original Message-
 From: Jeff Gannaway [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 03, 2001 8:05 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Basic multi-dimensional array help


 I've got input fields in a form that look like:
 INPUT TYPE=HIDDEN NAME=Person[0] VALUE=Jeff
 INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Apples
 INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Oranges
 INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Peaches
 INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Pears

 INPUT TYPE=HIDDEN NAME=Person[1] VALUE=Carolyn
 INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Apples
 INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Oranges
 INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Peaches
 INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Pears

 The next script processes all this into a database. Here are the results I
 get from various commands:

 sizeof($Info): 2
 sizeof($Info[0]): 4
 print $Info[0][0]: Array[0]

 Any help?
 Jeff Gannaway

 ___

 SUMMER ART PRINT SALE at www.PopStreet.com
 Save an additional 10% off art print orders of $50 or more.
 Type in coupon code jemc when checking out.
 ___

 Find the right art print for your home.
 * Search by artist, color, art style and subject.
 * Preview the art prints against your wall color.
 * Specializing in contemporary, abstract and African
   American art.
 * Every day discounts on thousands of fine art prints.

 PopStreet.com is your avenue to art.


 http://www.popstreet.com
 ___
 Coupon may be redeemed from June 27 through July 31, 2001.

 --
 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] password sanity checker

2001-07-03 Thread Chris Anderson

Getting the size is easy, and if you had a small dictionary you could see if
the password existed in that by looping through it. Not sure about checking
if it is LIKE the username
- Original Message -
From: Charles Sprickman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 12:18 PM
Subject: [PHP] password sanity checker


 Hi,

 I've been digging around for a function to do a sanity check on
 user-supplied passwords when creating a new account.  Haven't found
 anything yet...  Any pointers appreciated.

 Ideally it should:

 -check for a min number of numerals
 -check for similarity against username (?)
 -check at least a small dictionary

 Although anything that could provide a starting point would be great.

 Thanks,

 Charles

 | Charles Sprickman  | Internet Channel
 | INCH System Administration Team| (212)243-5200
 | [EMAIL PROTECTED] | [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]




Re: [PHP] Re: [PHP-DB] PhpMyAdmin phpPgAdmin Security Issues

2001-07-03 Thread Chris Anderson

btw, that error looks more like a mysql setup / runtime problem. IE..is the
server running?
- Original Message -
From: Paul Burney [EMAIL PROTECTED]
To: andreas (@work) [EMAIL PROTECTED]
Cc: php mailing list 2 [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 11:51 AM
Subject: [PHP] Re: [PHP-DB] PhpMyAdmin phpPgAdmin Security Issues


 on 7/3/01 5:47 AM, andreas (@work) ([EMAIL PROTECTED]) wrote:

  ive got 3 servers (dedicated) with mysql 3.22.32 and above and
phpMyAdmin
  2.1.0 but i cant reproduce the vulnerability

  i use advanced uthentication

 
http://ip/phpMyAdmin/sql.php?server=000cfgServers[000][host]=hellobtnDrop=N
  ogoto=/etc/passwd

 If that URL is copied correctly, it might be because there's no 
between
 the server=000 and the cfgServers[000][host].

 If not, maybe your particular configuration isn't vulnerable.

 If you use a Apache Auth for access to the folder and normal auth in
 phpmyadmin, you are not vulnerable to outsiders but *you* can still view a
 server's sensitive files which can be really dangerous in a shared server
 environment.

 Sincerely,

 Paul Burney

 +-+-+
 | Paul Burney | P: 310.825.8365 |
 | Webmaster  Programmer | E: [EMAIL PROTECTED]   |
 | UCLA - GSEIS - ETU   | W: http://www.gseis.ucla.edu/ |
 +-+-+


 --
 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] session variables and page interrupt via a refresh

2001-07-03 Thread Johnson, Kirk

Hope someone can help on this one.

Say you have a FORM processing page that does lots of stuff, so it takes
many seconds to execute. Say the user gets impatient and hits the Refresh
button while the processing page is only half completed. Here's the
question: do any changes to session variables that happened during the first
half of the page get saved to the session file? Does a page have to
terminate normally (end of code, or call to exit() or die()) for the session
save to work, or does it work even when the page terminates abnormally?

Kirk

-- 
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] NEWBIE - How do you strip spaces?

2001-07-03 Thread Craig Simon

I am trying to figure out how to take a phone number as an array element,
and strip out the spaces and parenthesis and just return the numerals.  IE
(555) 555-1212 to 551212.
 
I would appreciate any assistance.
 
Thanks
Craig
 
 
Craig Simon   Senior Systems Engineer
Mobileum Inc.
4234 Hacienda Drive, Pleasanton Ca 94588
(O) 925-251-7269   (C) 925-487-6005
 



Re: [PHP] Basic multi-dimensional array help

2001-07-03 Thread Chris Anderson

When I wanted multi-dimensional with forms, I think I had to do this:
INPUT NAME=var[0][]
- Original Message -
From: Wieger Uffink [EMAIL PROTECTED]
To: Jeff Gannaway [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 8:32 AM
Subject: Re: [PHP] Basic multi-dimensional array help


 Hi Jeff,

 There probably are several ways of doing this.

 One is you copy $info[0] ( an array itself ) into a dummy variable, and
 get the values with $dummy[0] etc.
 Or use brackets in your variable syntax, which youll have to experiment
 with cause, I can never seem to remeber the right syntax :)

 something like ${$info[0]}[0] I think... correct me if Im wrong.

 Hope this helps,
 Wieger

 Jeff Gannaway wrote:
 
  I've got input fields in a form that look like:
  INPUT TYPE=HIDDEN NAME=Person[0] VALUE=Jeff
  INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Apples
  INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Oranges
  INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Peaches
  INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Pears
 
  INPUT TYPE=HIDDEN NAME=Person[1] VALUE=Carolyn
  INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Apples
  INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Oranges
  INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Peaches
  INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Pears
 
  The next script processes all this into a database. Here are the results
I
  get from various commands:
 
  sizeof($Info): 2
  sizeof($Info[0]): 4
  print $Info[0][0]: Array[0]
 
  Any help?
  Jeff Gannaway
 
  ___
 
  SUMMER ART PRINT SALE at www.PopStreet.com
  Save an additional 10% off art print orders of $50 or more.
  Type in coupon code jemc when checking out.
  ___
 
  Find the right art print for your home.
  * Search by artist, color, art style and subject.
  * Preview the art prints against your wall color.
  * Specializing in contemporary, abstract and African
American art.
  * Every day discounts on thousands of fine art prints.
 
  PopStreet.com is your avenue to art.
 
  http://www.popstreet.com
  ___
  Coupon may be redeemed from June 27 through July 31, 2001.
 
  --
  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]

 --
 Wieger Uffink
 tel: +31 20 428 6868
 fax: +31 20 470 6905
 web: http://www.usmedia.nl

 --
 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 for NetWare?

2001-07-03 Thread Chris Anderson

Ugh Netware. I believe that is Windows oriented/based so try the windows
distrobutions
- Original Message -
From: Tony Gettig [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 7:49 AM
Subject: [PHP] PHP for NetWare?


Hi there,

Is PHP available for NetWare? I've looked high and low and find no reference
to such a beast. I prefer PHP on my Linux box, but I need to explore being
able to put it on a NetWare server running Netscape Enterprise. TIA for any
pointers in the right direction.


Tony Gettig
Network Administrator
Kalamazoo Public Schools




--
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] Compiling on Windows

2001-07-03 Thread Chris Anderson

Manual helps
- Original Message -
From: Daniel Reichenbach [EMAIL PROTECTED]
To: Php-General [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 5:02 AM
Subject: [PHP] Compiling on Windows


 Hy,

 is there any guide available, how to compile the Windows version of
PHP4.0.6
 with all available modules like GD/Freetype, IMAP, curl, etc.


 Daniel


 --
 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] NEWBIE - How do you strip spaces?

2001-07-03 Thread Johnson, Kirk

ereg_replace([^0-9], , $var)

Kirk


 -Original Message-
 From: Craig Simon [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 03, 2001 10:44 AM
 To: '[EMAIL PROTECTED]'
 Subject: [PHP] NEWBIE - How do you strip spaces?
 
 
 I am trying to figure out how to take a phone number as an 
 array element,
 and strip out the spaces and parenthesis and just return the 
 numerals.  IE
 (555) 555-1212 to 551212.
  
 I would appreciate any assistance.
  
 Thanks
 Craig
  
  
 Craig Simon   Senior Systems Engineer
 Mobileum Inc.
 4234 Hacienda Drive, Pleasanton Ca 94588
 (O) 925-251-7269   (C) 925-487-6005
  
 

-- 
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] sending 5000+ emails - use PHP?

2001-07-03 Thread infoz

Can't say that I agree.  Once you get through to the SMTP port you can tell
it that the following message is supposed to go to a list of people and you
only connect once, vs. connecting once for each recipient.   More efficient
all the way around, I would think.

Mind you, I haven't tried this on a large scale yet, so YMMV.

- Tim

  If all the messages were identical, we might be able to get some
efficiency
  by sorting the list by domain name and batching them up with SMTP

 That's a very BAD idea. If you sort the mail by domain, you will flood
 the mail queue because normally, mail sent to hotmail or yahoo will need
 a repeated attempts before getting through. Better leave the email
 address randomized as they are.



-- 
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] Compiling PHP with pgsql

2001-07-03 Thread N. Pari Purna Chand

Hi
I am able to Successfully compile PHP 4.0.6 with imap and pgsql
as an Apache DSO.
But after make and make install Apache is not restarting saying
that it cannot find libpq.so.2 

So I copied the libpq.so.2 from /usr/local/pgre/lib/ to 
/var/lib/apache/libexec but still apache wont restart.
I'm using Postgre latest 7.1.2

Has there been any recent major changes in the dir structure
of PostGre Or Do I need to include any thing like mod_pgre.so in httpd.conf.

regards
/Chandu



Re: [PHP] New on PHP, need help with sessions

2001-07-03 Thread mike cullerton

i believe this is track_vars, but as of php 4.0.3, this is always on.

on 7/3/01 9:21 AM, Kurt Lieber at [EMAIL PROTECTED] wrote:

 Hi Mike --
 
 a related question to your post below.  Specifically
 
 $HTTP_SESSION_VARS[variablename]
 or (depending on how php is configured) $variablename.
 
 I've run into this problem myself and it's very annoying -- any idea the
 setting in php.ini that controls this?
 
 Thanks.
 
 --kurt


-- mike cullerton   [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] [PHP-DB] passing db persistent connections through different pages

2001-07-03 Thread Hervé Piedvache

Hi,

Big trouble ... with PostgreSQL 7.1.2 and PHP 4.0.6 on linux

I'm using exactly the same configuration (and same application, same
connection system) using PostgreSQL 7.1 and PHP 4.0.4pl1 same postgreSQL
config file, same php.ini same kind of servers, same Apache version
1.3.19 and it's running perfectly then ...

If I made a phpinfo on the webserver in the good case I have :
pgsql
PostgreSQL Support : enabled
Active Persistent Links : 2
Active Links : 2

Directive: Local Value/Master Value
pgsql.allow_persistent:   On/On
pgsql.max_links : 14/14
pgsql.max_persistent : 14/14

* But with the lastests versions (with PostgreSQL 7.1.2 and PHP
4.0.6) I have : **
pgsql
PostgreSQL Support : enabled
Active Persistent Links : 0
Active Links : 0

Directive: Local Value/Master Value
pgsql.allow_persistent:   On/On
pgsql.max_links : 14/14
pgsql.max_persistent : 14/14

Impossible to get active links or active persistent link in the
php_info() in this case ?? 
But the service is running ! :-/ ??

BUT in the postgres.log I get this all at many times (not each request
but a lot of times) !!
2001-07-03 16:45:27 DEBUG:  ProcessQuery
2001-07-03 16:45:27 DEBUG:  CommitTransactionCommand
pq_recvbuf: unexpected EOF on client connection
2001-07-03 16:45:26 DEBUG:  proc_exit(0)
2001-07-03 16:45:26 DEBUG:  shmem_exit(0)
2001-07-03 16:45:26 DEBUG:  exit(0)
/usr/local/pgsql/bin/postmaster: reaping dead processes...
/usr/local/pgsql/bin/postmaster: CleanupProc: pid 29076 exited with
status 0
/usr/local/pgsql/bin/postmaster: ServerLoop:handling reading
5
/usr/local/pgsql/bin/postmaster: ServerLoop:handling reading
5
/usr/local/pgsql/bin/postmaster: ServerLoop:handling writing
5
/usr/local/pgsql/bin/postmaster: BackendStartup: pid 29077 user toto db
mydb socket 5
/usr/local/pgsql/bin/postmaster child[29077]: starting with (postgres
-d2 -v1310 72 -p mydb)
FindExec: found /usr/local/pgsql/bin/postgres using argv[0]

If I look to the backends of the postgreSQL they are like classical
connections ... so they seems to close all the time (I do not use
pg_close function) !! In the normal case I have all the time a minimum
of 98 backends running (persistant connexions) !!
And if I look to the backends of apache they seems to move a lot ...
moving for 10 to 80 to 40 to 64 etc in the space of 1 second ! In normal
case the number of apache backends grow slowly and down also slowly ...

I really do not understand what happend ... and do not find the mistake
... does anybody have any idea ???

Thanks per advance for your answers !!
-- 
Hervé

-- 
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, Templates, XSLT

2001-07-03 Thread Marius Andreiana

 Anyways, has anyone experienced it with Sablotron? How did you like it?
nice

You can also try to check browser : if mozilla 0.9.1 or later
(you choose) it can be parsed on the client; ie 6.0 isn't used yet...

-- 
Marius Andreiana



-- 
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] #exec and php together

2001-07-03 Thread Paolo Ciraci

I'm trying to include the output of a php script into a standard html 
file via SSI #exec.

The following is a sample php file (hello.php):

?php
echo Hello World!\n;
?

and the following is the sample html file (hello.htm):

HTML
BODY
!--#exec cgi=hello.php --
/BODY
/HTML

both files are in the same directory.

If I issue http://www.mysite.com/hello.php 
the script works well and I obtain the page showing the message 
Hello World!

but if I try http://www.mysite.com/hello.htm
I obtain an empty page.

My system is BSDI 4.1 + Apache 1.3.11 + PHP 4.0.3pl1 (both module and 
cgi version) but I've tested the same example on a Window NT 4 + 
Apache 1.3.12 + PHP 4.0.3pl1 (cgi version) without success.

Any idea, suggestion ?

Thanks.


Dr. Paolo Ciraci
~
Responsabile Sistemi Informativi [EMAIL PROTECTED]
Nautica Editrice S.r.l. http://www.nautica.it
Via Tevere 44, Roma - tel 06 8413060

-- 
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 for NetWare?

2001-07-03 Thread Tony Gettig

Actually, NetWare is a very different operating system than Windows. It's a direct 
competitor to M$. Way more stable than windows. If PHP is available for NetWare, 
someone must have ported to the platform to run either as an NLM or with the JVM. 

There's a queston: is there perhaps a java executable version of PHP? If so, it could 
feasibly run on NetWare.

The Netscape Enterprise server for NetWare supports ASP, which is not preferable to 
PHP. I'd really like to stick with PHP.


Tony Gettig
Network Administrator
Kalamazoo Public Schools



 Chris Anderson [EMAIL PROTECTED] 07/03/01 12:44PM 
Ugh Netware. I believe that is Windows oriented/based so try the windows
distrobutions
- Original Message -
From: Tony Gettig [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 7:49 AM
Subject: [PHP] PHP for NetWare?


Hi there,

Is PHP available for NetWare? I've looked high and low and find no reference
to such a beast. I prefer PHP on my Linux box, but I need to explore being
able to put it on a NetWare server running Netscape Enterprise. TIA for any
pointers in the right direction.


Tony Gettig
Network Administrator
Kalamazoo Public Schools




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

2001-07-03 Thread scott [gts]

does anyone know any good places to look for detailed
information about PHP's serialize(), unserialize()
(besides the PHP sources, becuase i'm already going
thru them)

i want to write serialize() and unserialize() in perl
so that arrays (no objects or references yet) can be
read/written by both PHP and Perl to help with my
cross-language session implementation.

i really would like to have some more integration between
PHP and Perl... especially the sharing of data structures.

since PHP's serialize()/unserialize() produces a simple
text string, i thought i'd use that model 

-- 
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] Re: [PHP-DB] PhpMyAdmin phpPgAdmin Security Issues

2001-07-03 Thread andreas \(@work\)

hi chris,

server is running
mysql and php are working perfekt on all the servers


the correct url is

http://www.mydomain.com/phpMyAdmin/sql.php?server=000cfgServers[000][host]=
hellobtnDrop=Nogoto=/etc/passwd


and we tried that exploid now on  10 different dedicated servers
all with default phpMyAdmin istallation [ advanced authentication ]
[ freebsd // linux ]


but all of them still ask for authentication

so we are just worried that we do something wrong
or the url specifeid is wrong


thank yuo

andreas





- Original Message -
From: Chris Anderson [EMAIL PROTECTED]
To: Paul Burney [EMAIL PROTECTED]; andreas (@work)
[EMAIL PROTECTED]
Cc: php mailing list 2 [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 6:40 PM
Subject: Re: [PHP] Re: [PHP-DB] PhpMyAdmin phpPgAdmin Security Issues


btw, that error looks more like a mysql setup / runtime problem. IE..is the
server running?
- Original Message -
From: Paul Burney [EMAIL PROTECTED]
To: andreas (@work) [EMAIL PROTECTED]
Cc: php mailing list 2 [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 11:51 AM
Subject: [PHP] Re: [PHP-DB] PhpMyAdmin phpPgAdmin Security Issues


 on 7/3/01 5:47 AM, andreas (@work) ([EMAIL PROTECTED]) wrote:

  ive got 3 servers (dedicated) with mysql 3.22.32 and above and
phpMyAdmin
  2.1.0 but i cant reproduce the vulnerability

  i use advanced uthentication

 
http://ip/phpMyAdmin/sql.php?server=000cfgServers[000][host]=hellobtnDrop=N
  ogoto=/etc/passwd

 If that URL is copied correctly, it might be because there's no 
between
 the server=000 and the cfgServers[000][host].

 If not, maybe your particular configuration isn't vulnerable.

 If you use a Apache Auth for access to the folder and normal auth in
 phpmyadmin, you are not vulnerable to outsiders but *you* can still view a
 server's sensitive files which can be really dangerous in a shared server
 environment.

 Sincerely,

 Paul Burney

 +-+-+
 | Paul Burney | P: 310.825.8365 |
 | Webmaster  Programmer | E: [EMAIL PROTECTED]   |
 | UCLA - GSEIS - ETU   | W: http://www.gseis.ucla.edu/ |
 +-+-+


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




Re: [PHP] #exec and php together

2001-07-03 Thread Paolo Ciraci

 The problem with this is that, by default, Apache will ONLY parse 
 PHP code if the extension matches the PHP extension in 
 httpd.conf.  You could add .htm and .html to that extension match 
 if you'd like, and that could possibly do it.

No, that is not the problem.

I don't want the .htm file parsed by Apache server.
I want to include the output of php into an html file.

I've also tried to specify the full path of php executable into 
hello.htm with the following:

!--#exec cgi=/usr/local/bin/php -q /v/www/hello.php --

without success.



Dr. Paolo Ciraci
~
Responsabile Sistemi Informativi [EMAIL PROTECTED]
Nautica Editrice S.r.l. http://www.nautica.it
Via Tevere 44, Roma - tel 06 8413060

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

2001-07-03 Thread Jay Paulson

This is what I use for the header information.. I don't know if it will work
for an image or not but it works nicely for text fields that are dynamically
populated.. anyway if you aren't adding this extra little bit at the end of
the header function you might want to give it a shot...

header (Cache-Control: no-cache, must-revalidate);

Jay Paulson
Internet Program Director
LBJS
[EMAIL PROTECTED]

- Original Message -
From: Jon Yaggie [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 30, 2001 5:36 PM
Subject: [PHP] caching


Ok I am dynamically creating images.  my problem is my browser is caching
the images (or at least half ot them - i see no particular system to which)
i have no idea how to stop this.  i have tried using the header
Cache-Control: no-cahe  However it seems to have no helped.  maybe i am
using it wrongly?  is there another method i can clear the browser cache?




Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code

101 little bugs in the code . . .'

And it continued until they reached 0





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

2001-07-03 Thread Alexander Wagner

scott [gts] wrote:
 i want to write serialize() and unserialize() in perl
 so that arrays (no objects or references yet) can be
 read/written by both PHP and Perl to help with my
 cross-language session implementation.

Why don't you use WDDX?

regards
Wagner

-- 
Madness takes its toll. Please have exact change.

-- 
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] HTTP authentication logout

2001-07-03 Thread David A Dickson

I am using HTTP authentication to restrict access to certain pages and I want to add a 
logout option so that users must reauthenticate before being able to veiw the pages 
again.
Here is the code I'm using to authenticate: 
?
  /* Test for username/password */
  if(($PHP_AUTH_USER == $username)  ($PHP_AUTH_PW == $password)){
startAdminPage();
endPage();
  }
  else{
/* Send headers to cause a browser to request username and password */
header(WWW-Authenticate: Basic realm=\Administrative Area\);
header(HTTP/1.0 401 Unauthorized);

/* Show failure text */
startPage();
print(PThis page requires a user name and password to view.P);
endPage();
  }
?

For the logout option I tried just setting $PHP_AUTH_USER= and $PHP_AUTH_PW= but 
that didn't work. Any ideas on how I can do this?

---
: David A. Dickson
: [EMAIL PROTECTED]




Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/

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

2001-07-03 Thread scott [gts]

wow... that looks like it might just do the job :)

although it'd still be fun to hack up a simple
serialize/deserialize in perl, i didnt know 
that WDDX modules existed for perl... 

i'll go and get it all and start playing around
with it now :)

 -Original Message-
 From: Alexander Wagner [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 03, 2001 1:46 PM
 To: scott [gts]; php
 Subject: Re: [PHP] php serialize
 
 
 scott [gts] wrote:
  i want to write serialize() and unserialize() in perl
  so that arrays (no objects or references yet) can be
  read/written by both PHP and Perl to help with my
  cross-language session implementation.
 
 Why don't you use WDDX?
 
 regards
 Wagner
 
 -- 
 Madness takes its toll. Please have exact change.
 

-- 
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] #exec and php together

2001-07-03 Thread Kurt Lieber

First question is why not just use PHP for both parts?  i.e.

?php
include(hello.php)
?

I'd guess the reason your second example doesn't work is because PHP isn't
being called to parse the page.  even though you're calling a php page with
your SSI, the destination page is named *.htm meaning that PHP won't be
involved.

So, I'd say you're going to need to rename the file to *.php in order to get
it to work.  (or change your file associations so .htm is associated with
the PHP cgi.

--kurt
- Original Message -
From: Paolo Ciraci [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 10:16 AM
Subject: [PHP] #exec and php together


 I'm trying to include the output of a php script into a standard html
 file via SSI #exec.

 The following is a sample php file (hello.php):

 ?php
 echo Hello World!\n;
 ?

 and the following is the sample html file (hello.htm):

 HTML
 BODY
 !--#exec cgi=hello.php --
 /BODY
 /HTML

 both files are in the same directory.

 If I issue http://www.mysite.com/hello.php
 the script works well and I obtain the page showing the message
 Hello World!

 but if I try http://www.mysite.com/hello.htm
 I obtain an empty page.

 My system is BSDI 4.1 + Apache 1.3.11 + PHP 4.0.3pl1 (both module and
 cgi version) but I've tested the same example on a Window NT 4 +
 Apache 1.3.12 + PHP 4.0.3pl1 (cgi version) without success.

 Any idea, suggestion ?

 Thanks.


 Dr. Paolo Ciraci
 ~
 Responsabile Sistemi Informativi [EMAIL PROTECTED]
 Nautica Editrice S.r.l. http://www.nautica.it
 Via Tevere 44, Roma - tel 06 8413060

 --
 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] Re: recommend a good PHP site specific search engine

2001-07-03 Thread Tom Beidler

I should have mentioned that it will run on a Windows box.

on 7/3/01 7:00 AM, Tom Beidler at [EMAIL PROTECTED] wrote:

 Can anyone suggest a good PHP/MySQL search engine to be used to search a
 site (not the entire Internet). I have a site with an extensive amount of
 manual pages that we would like to provide a search engine for.
 
 Thanks,
 Tom
 
 .
 Tom Beidler
 Orbit Tech Services
 805.682.8972 (phone)
 805.682.5833 (fax)
 [EMAIL PROTECTED]
 http://www.orbittechservices.com/
 .
 




-- 
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] qmail-inject: fatal: read error

2001-07-03 Thread teo

Hi Warren!
On Tue, 03 Jul 2001, Warren Brundage wrote:

 When I try to use PHP to send mail through qmail I get a qmail-inject:
 fatal: read error.  I have read through the list and I have seen (and
 tried) the following solutions:
 
 1. Put /var/qmail/bin/qmail-inject into php.ini
instead of qmail-inject u can use the wrapper /var/qmail/bin/sendmail
and don't forget to specify '-t' too.

 2. Ensured that all appropriate sendmail links exist
 2. Also tried the permutations of sendmail, and sendmail default etc in
 php.ini.
 3. Tried (temporarily!) adding apache (web-server is run under user
 apache, group apache) to root group (only for testing - not advisable
 permanent solution).
 4. I don't have anything calling QMAILMFTFILE  but I am not sure where
 this is called from.  It doesn't show in printenv.  Maybe someone could
 clarify this?  But I tried adding QMAILMFTFILE=/tmp/.lists to my apache
 start-up file just in case. 
 5. Added user apache   group apache in httpd.conf before modules are
 called.
 
 qmail functions well on my computer but it's not the problem in any case
 because the e-mail never enters the mail system.  The error mentioned
 above shows up in the Apache error-log.  PHP is also performing very
 well in every other capacity.
to test it try to popen()  and talk nice to it.

-- teodor

-- 
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] Fatal Error: Call to undefined function: sybase_connect() in

2001-07-03 Thread nelo manuel

hi Scott,

i've tried below by deleting the old config.cache then run
./configure -with-apxs=/usr/sbin/apxs -with-sybase=/opt/sybase
i am still getting the micro time error on make and make install
and when i run my php-4.0.6 script to get data from sybase the error

Fatal error: Call to unsupported or undefined function sybase_connect() in 
/home/httpd/html/index1.php3 on line 2

appears again!! :/

help!


From: scott [gts] [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined function: 
sybase_connect() in
Date: Tue, 3 Jul 2001 12:05:10 -0400

it might help.

it also helps to scour the configure output, looking
for all the lines that contain sybase, becuase sometimes
even if you ask configure to use something, it might
not be properly found... and configure might spew out
a sybase support ... no in the configure output.

i ran into this problem with GD 1.8.4 and PHP 4.0.4-5,
no matter how i used --with-gd, configure would always
decide that GD was not present, and go on without it.

  -Original Message-
  From: nelo manuel [mailto:[EMAIL PROTECTED]]
  Subject: RE: [PHP] Fatal Error: Call to undefined function:
  sybase_connect() in
 
  thanks you,
  but will it solve the Fatal error am getting when trying to
  retrieve records from sybase?
 
  Nelson
  London
 
 
  From: rm [EMAIL PROTECTED]
  To: nelo manuel [EMAIL PROTECTED], [EMAIL PROTECTED],
  [EMAIL PROTECTED]
  Subject: RE: [PHP] Fatal Error: Call to undefined function:
  sybase_connect() in
  Date: Tue, 3 Jul 2001 05:13:05 -0700 (PDT)
  
  before running ./configure go to the directory and
  delete the old configure.cache file then run
  ./configure again.
  
  kb
  
  
  --- nelo manuel [EMAIL PROTECTED] wrote:
yes it is,
when compilinf php-4.0.6
after ./configure then make it gives me some error
portion of installation:
   
microtime.c: In function `php_if_getrusage':
microtime.c:94: storage size of `usg' isn't
known
microtime.c:97: `RUSAGE_SELF' undeclared (first
use in this function)
microtime.c:97: (Each undeclared identifier is
reported only once
microtime.c:97: for each function it appears
in.)
microtime.c:103: `RUSAGE_CHILDREN' undeclared
(first use in this
function)
make[3]: *** [microtime.lo] Error 1
make[3]: Leaving directory
`/home/master/php-4.0.1/ext/standard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/master/php-4.0.1/ext/standard'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/master/php-4.0.1/ext'
make: *** [all-recursive] Error 1
   
   
any help?
no the only thing that works is ? phpinfo() ?
   
thanks
   
From: Ray Hilton [EMAIL PROTECTED]
To: 'nelo manuel' [EMAIL PROTECTED],
[EMAIL PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined
function:
sybase_connect() in
Date: Tue, 3 Jul 2001 11:37:37 +0200

Not sure other than that... If it compiles it means
it can find the
headers it needs from the sybase package...  Is
this sybase 11.9.2?  I
managed to build php with that some time ago, but I
cant for the life of
me remember any more details...

Do any sybase functions work?  And do you get any
errors during
configure/install?

-Original Message-
From: nelo manuel [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 11:28
To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined
function:
sybase_connect() in


i have compile it with sybase on ./configure
(according to mastering
linux
book, install and configuring php to access data
from sybase)

can some else pls help me :(


 From: Ray Hilton [EMAIL PROTECTED]
 To: 'nelo manuel' [EMAIL PROTECTED],
[EMAIL PROTECTED]
 Subject: RE: [PHP] Fatal Error: Call to undefined
function:
 sybase_connect() in
 Date: Tue, 3 Jul 2001 09:37:56 +0200
 
 Have you sompiled in sybase support?  By defauly
php doesn't compile
 with sybase functions, you must specifcally tell
it too...
 
 -Original Message-
 From: nelo manuel [mailto:[EMAIL PROTECTED]]
 Sent: 03 July 2001 09:27
 To: [EMAIL PROTECTED]
 Subject: [PHP] Fatal Error: Call to undefined
function:
 sybase_connect() in
 
 
 Dear all,
 
 am quite new on php and Linux, after installing
php-4.0.6 and run the
 test.php it worked OK but when i try to write the
function to initially

 display records from sybase pubs2 i get the
following msg Fatal
 Error:Call to undefined function:
sybase_connect() in
 /home/httpd/html/index.php3
 
 i am using Linux Redhat 7 kernel 2.4.3
 
 can any one help me please :(
 
 Kind 

[PHP] pspell dictionary

2001-07-03 Thread Aaron McBride

I've just installed php with support for pspell. Pspell and aspell 
installed fine, and I even have a bunch of .pwli files.

Problem is that when I do:
$pspell_link = pspell_new (en);

I get this error:
Warning: PSPELL couldn't open the dictionary. reason: I'm sorry I can't 
find any suitable word lists for the language-tag en.

Somebody please help me!

-Aaron


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

2001-07-03 Thread scott [gts]

i've been working on porting the functionality of 
PHP's serialize() and unserialize() functions that
will turn an array/hash into a simple string.

so far, i've got serialize() working in perl... 

i attached the files, but you can also get them at:
http://furt.com/code/serialize/

if anyone feels like helping me out, throw some
data at it, serialize some stuff with perl, then try
to unserialize it in PHP... see if you get the same
values... i've been testing for a little while
now, and it seems to be working fine.

i plan to use this to store data in a mysql database
so that both perl and PHP can understand the same
serialized structures. 

it'll only serialize data... not references or
objects or anything of that sort, so dont even try,
or it'll give you funky results. :)

PS: also, the code is a rough outline, so be kind :)

README

rename serialize.pl.txt to serialize.pl
rename serialize.php.txt to serialize.php

to serialize data: run 'serialize.pl'
to unserizlize: copy the output of 'serialize.pl' into 'serialize.php' and run 
'serialize.php'


code is free to use as long as you give me credit.
[EMAIL PROTECTED]
[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] Fatal Error: Call to undefined function: sybase_connect() in

2001-07-03 Thread scott [gts]

well, on second look at the microtime error messages, 
it looks like you might need to patch 'microtime.c'.

i dont have any experience with sybase, so i'm the
wrong person to ask for sybase-specific information,
but try the sybase/php website and see if there's
any mention of patches ... 

or perhaps try downgrading to a previous version of
PHP if you absolutely need-it-now and cannot get it
to work for PHP4.

 -Original Message-
 From: nelo manuel [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 03, 2001 2:48 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: [PHP] Fatal Error: Call to undefined function:
 sybase_connect() in
 
 
 hi Scott,
 
 i've tried below by deleting the old config.cache then run
 ./configure -with-apxs=/usr/sbin/apxs -with-sybase=/opt/sybase
 i am still getting the micro time error on make and make install
 and when i run my php-4.0.6 script to get data from sybase the error
 
 Fatal error: Call to unsupported or undefined function sybase_connect() in 
 /home/httpd/html/index1.php3 on line 2
 
 appears again!! :/
 
 help!
 
 
 From: scott [gts] [EMAIL PROTECTED]
 To: php [EMAIL PROTECTED]
 Subject: RE: [PHP] Fatal Error: Call to undefined function: 
 sybase_connect() in
 Date: Tue, 3 Jul 2001 12:05:10 -0400
 
 it might help.
 
 it also helps to scour the configure output, looking
 for all the lines that contain sybase, becuase sometimes
 even if you ask configure to use something, it might
 not be properly found... and configure might spew out
 a sybase support ... no in the configure output.
 
 i ran into this problem with GD 1.8.4 and PHP 4.0.4-5,
 no matter how i used --with-gd, configure would always
 decide that GD was not present, and go on without it.
 
   -Original Message-
   From: nelo manuel [mailto:[EMAIL PROTECTED]]
   Subject: RE: [PHP] Fatal Error: Call to undefined function:
   sybase_connect() in
  
   thanks you,
   but will it solve the Fatal error am getting when trying to
   retrieve records from sybase?
  
   Nelson
   London
  
  
   From: rm [EMAIL PROTECTED]
   To: nelo manuel [EMAIL PROTECTED], [EMAIL PROTECTED],
   [EMAIL PROTECTED]
   Subject: RE: [PHP] Fatal Error: Call to undefined function:
   sybase_connect() in
   Date: Tue, 3 Jul 2001 05:13:05 -0700 (PDT)
   
   before running ./configure go to the directory and
   delete the old configure.cache file then run
   ./configure again.
   
   kb
   
   
   --- nelo manuel [EMAIL PROTECTED] wrote:
 yes it is,
 when compilinf php-4.0.6
 after ./configure then make it gives me some error
 portion of installation:

 microtime.c: In function `php_if_getrusage':
 microtime.c:94: storage size of `usg' isn't
 known
 microtime.c:97: `RUSAGE_SELF' undeclared (first
 use in this function)
 microtime.c:97: (Each undeclared identifier is
 reported only once
 microtime.c:97: for each function it appears
 in.)
 microtime.c:103: `RUSAGE_CHILDREN' undeclared
 (first use in this
 function)
 make[3]: *** [microtime.lo] Error 1
 make[3]: Leaving directory
 `/home/master/php-4.0.1/ext/standard'
 make[2]: *** [all-recursive] Error 1
 make[2]: Leaving directory
 `/home/master/php-4.0.1/ext/standard'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory
 `/home/master/php-4.0.1/ext'
 make: *** [all-recursive] Error 1


 any help?
 no the only thing that works is ? phpinfo() ?

 thanks

 From: Ray Hilton [EMAIL PROTECTED]
 To: 'nelo manuel' [EMAIL PROTECTED],
 [EMAIL PROTECTED]
 Subject: RE: [PHP] Fatal Error: Call to undefined
 function:
 sybase_connect() in
 Date: Tue, 3 Jul 2001 11:37:37 +0200
 
 Not sure other than that... If it compiles it means
 it can find the
 headers it needs from the sybase package...  Is
 this sybase 11.9.2?  I
 managed to build php with that some time ago, but I
 cant for the life of
 me remember any more details...
 
 Do any sybase functions work?  And do you get any
 errors during
 configure/install?
 
 -Original Message-
 From: nelo manuel [mailto:[EMAIL PROTECTED]]
 Sent: 03 July 2001 11:28
 To: [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Subject: RE: [PHP] Fatal Error: Call to undefined
 function:
 sybase_connect() in
 
 
 i have compile it with sybase on ./configure
 (according to mastering
 linux
 book, install and configuring php to access data
 from sybase)
 
 can some else pls help me :(
 
 
  From: Ray Hilton [EMAIL PROTECTED]
  To: 'nelo manuel' [EMAIL PROTECTED],
 [EMAIL PROTECTED]
  Subject: RE: [PHP] Fatal Error: Call to undefined
 function:
  sybase_connect() in
  Date: Tue, 3 Jul 2001 09:37:56 +0200
  
  Have you sompiled in sybase support?  By defauly
 php 

  1   2   >