[PHP] PHP and Perl

2001-09-04 Thread Jarosław Jankowski

Hi,
I have something like this in the script :

 Perl script is generating Excel file.
My question is :
How to do it in PHP (maybe javascript) that after sending data to
this script first I will have window with something like " Wait,
generating file"
and when perl script is done another window with link to
generated file?
Any suggestions ?
Thx in advance.
jarek



-- 
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] refer to the same page AGAIN! Please...

2001-09-04 Thread Ardani Sarjito

Hi!
I still have the same problem.

How Do I write a string on the a page using input from the same page without
deleting the previous written string. I'd like to use PHP_SELF. Is it
possible?


Thank you!

Ardani


-- 
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] refer to the same page AGAIN! Please...

2001-09-04 Thread Lawrence . Sheed

Create a file with the following.

test.php



open a browser and point at  test.php
Look at the http variables section.

Now try adding some variables to it eg :

open the browser, and open a url like the following:
http://localhost/test.php?x=y&foo=bar

Now look at the PHP Variables section.

you should see that php_self == test.php, have a look and see what variable
holds ?x=y&foo=bar
yup, its query_string

Got it?

Now use something like 

print "url link";

okayla!


A better way might be to use sessions.  Have a look at php.net or
phpbuilder.com for details.

Lawrence.

-Original Message-
From: Ardani Sarjito [mailto:[EMAIL PROTECTED]]
Sent: September 4, 2001 9:04 AM
To: php_list
Subject: [PHP] refer to the same page AGAIN! Please...


Hi!
I still have the same problem.

How Do I write a string on the a page using input from the same page without
deleting the previous written string. I'd like to use PHP_SELF. Is it
possible?


Thank you!

Ardani


-- 
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] refer to the same page AGAIN! Please...

2001-09-04 Thread David Robley

On Tue,  4 Sep 2001 10:33, Ardani Sarjito wrote:
> Hi!
> I still have the same problem.
>
> How Do I write a string on the a page using input from the same page
> without deleting the previous written string. I'd like to use PHP_SELF.
> Is it possible?
>
>
> Thank you!
>
> Ardani

I think you have the wrong end of the stick here. PHP_SELF has precious 
little to do with sending values from one form to another, except that it 
can cause a script to point ot itself.

Any values you send between the scripts will be contained in whatever 
variables you send via the script. These might be INPUT, SELECT or 
whatever and will have the sme name as the form element from which they 
come.

If this is greek to you, perhaps you should be reading the part of the 
manual on Variables, particularly the section on Variables from Outside 
PHP.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   Why doesn't the Bat Computer ever crash?

-- 
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: password why?

2001-09-04 Thread _lallous

I didn't look very well at your script,
but it seems that you're calling mysql_numrows() instead of mysql_num_rows()

"Gary" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello Everybody,
> I have a script that checks if the password and password confirm are the
> same on a sign up page. It seems that if the password is already in the
> db it prints out passwords do not match like the password and confirm do
> not match. Why?
>
>
> //check if passwords match
>
>   if ($password != $pass_check) {
> echo "Password's don't match!Please use your back
> button and fix the error";
>
>   } else {
>
> // Connect To The Database
>
> $db  = mysql_connect("localhost","user","password") or die ("couldn't
> connect to server");
>
> mysql_select_db("dbname",$db) or die ("couldn't select database");
>
> //Find Out If They Are Already In The System
>
>$sql = "SELECT name,email FROM tablename WHERE
>   name='$name' OR email='$email'";
>  $result=mysql_query($sql);
>  $num=mysql_numrows($result);
>  if ($num > 0)
>  echo "Your Username is already taken.Please
> use your back button and choose another";
> else {
>
> more code
>
> TIA
> Gary
>



-- 
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] newby: forms problem

2001-09-04 Thread Nikola Veber

hi

In order to process a form, do I need a cgi script and if not, how am I suposed to do 
that (how to pass a field value into a 
$variable, or there is another method)? 



-- 
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: refer to the same page AGAIN! Please...

2001-09-04 Thread _lallous

use hidden fields,

//


New Document 







{$messages[$i]}";



your text? 







// elias

"Ardani Sarjito" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi!
> I still have the same problem.
>
> How Do I write a string on the a page using input from the same page
without
> deleting the previous written string. I'd like to use PHP_SELF. Is it
> possible?
>
>
> Thank you!
>
> Ardani
>



-- 
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: ob_start()

2001-09-04 Thread _lallous

Not really!

There was a column on PHPBuilder.com,  check it out.

"Jeroen Olthof" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Can I increase speed by using this to buffer output ?
>
> kind regards
> Jeroen Olthof
>
>



-- 
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: hot Image on Image action

2001-09-04 Thread _lallous

you have to use image manipulation functions,

first you have to create your final image with
ImageCreate(,..,...finalwidth, finalheight)
then open each small image independently  and then use the ImageCopy() to
copy and place from the small image to the bigger image...

hope this helps,

"Mike Heald" <[EMAIL PROTECTED]> wrote in message
01090315264701.01009@local">news:01090315264701.01009@local...
> Hi,
>
> I am creating an image made up of other images.
> How can i read in a gif and put it onto the image I
> am creating through php?
>
> Thanks,
>
> Mike



-- 
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] tinyweb and PHP4

2001-09-04 Thread hue micheal

Has anyone tried this combination ?  Does it work ?

REgards
Huem


-- 
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] tinyweb and PHP4

2001-09-04 Thread Rasmus Lerdorf

Since TinyWeb support CGI execution and provides a semi-standard set of
cgi environment variables the CGI version of PHP should work just fine
with it.  You probably just need to associate .php with the php.exe
executable and stick your PHP scripts in the /cgi-bin directory.  It also
supports ISAPI, but the chances of the PHP ISAPI module working with it
are probably slim.

Why you would want to run a web server written in Delphi is beyond me
though...

-Rasmus

On Tue, 4 Sep 2001, hue micheal wrote:

> Has anyone tried this combination ?  Does it work ?
>
> REgards
> Huem
>
>
>


-- 
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: newby: forms problem

2001-09-04 Thread Daniel Masur

just post your form to a ph site, and the name describt in your  tag
will be the variable.


is
$wtf
on the php page

"Nikola Veber" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi
>
> In order to process a form, do I need a cgi script and if not, how am I
suposed to do that (how to pass a field value into a
> $variable, or there is another method)?
>
>



-- 
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 through search engines

2001-09-04 Thread David Portass

I have a website mainpage in HTML, the rest of it is sort of dynamic from
Actinic Catalog.

I want to convert the main page to a PHP page for some functions but I am
concerned that it might affect the way search engine spiders will see it.

What I want to know is if i do change my page to a php page, will it become
completely different to how search engines see it when it was a HTML page.

Any help would be greatly appreciated.

David Portass
Velo Systems Limited
[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] Wierd for thingy, help!

2001-09-04 Thread Kyle Smith

Ok sorry for not looking into this one but is it possible for 1 page to have a 
variable (not input) and then post it to another page and in an input variable (text 
box) it will have the variable from the first page as its value. not im confused!


-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666





[PHP] Re: Wierd for thingy, help!

2001-09-04 Thread _lallous

page1.htm









page2.php


"Kyle Smith" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Ok sorry for not looking into this one but is it possible for 1 page to have
a variable (not input) and then post it to another page and in an input
variable (text box) it will have the variable from the first page as its
value. not im confused!


-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666






-- 
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] tinyweb and PHP4

2001-09-04 Thread _lallous

Hmmisn't tinyweb the program that is written by same makers of The Bat
(email client) ?

Rasmus, I assume that Hue is trying to find the smallest web server that
doesn't need installation process and stuff so maybe he can distribute his
scripts on a CD!

And that is just a nice idea that he gave me now :)

"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Since TinyWeb support CGI execution and provides a semi-standard set of
> cgi environment variables the CGI version of PHP should work just fine
> with it.  You probably just need to associate .php with the php.exe
> executable and stick your PHP scripts in the /cgi-bin directory.  It also
> supports ISAPI, but the chances of the PHP ISAPI module working with it
> are probably slim.
>
> Why you would want to run a web server written in Delphi is beyond me
> though...
>
> -Rasmus
>
> On Tue, 4 Sep 2001, hue micheal wrote:
>
> > Has anyone tried this combination ?  Does it work ?
> >
> > REgards
> > Huem
> >
> >
> >
>



-- 
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: Wierd for thingy, help!

2001-09-04 Thread Kyle Smith

would that work without a submit button?


-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666


- Original Message -
From: "_lallous" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 04, 2001 4:43 AM
Subject: [PHP] Re: Wierd for thingy, help!


> page1.htm
>
> 
> 
> 
> 
> 
> 
> 
>
> page2.php
>echo "Hello $who!\n";
> ?>
>
> "Kyle Smith" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Ok sorry for not looking into this one but is it possible for 1 page to
have
> a variable (not input) and then post it to another page and in an input
> variable (text box) it will have the variable from the first page as its
> value. not im confused!
>
>
> -lk6-
> http://www.StupeedStudios.f2s.com
> Home of the burning lego man!
>
> ICQ: 115852509
> MSN: [EMAIL PROTECTED]
> AIM: legokiller666
>
>
>
>
>
>
> --
> 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: MDB

2001-09-04 Thread _lallous

Sure you can!

throught ODBC,

check PHP Builder or try posting in php.windows

"Rogerio Coelho - Equipeweb - Compuland Isp" <[EMAIL PROTECTED]>
wrote in message 3B9365E0.14551.4D1141@localhost">news:3B9365E0.14551.4D1141@localhost...

 Hi, Folks!

   Can I read from an mdb database direct from PHP like DBF,
for example?



[]´s
Rogerio Coelho.
Equipeweb - CompuLand Design
http://www.equipeweb.com.br
Tel/Fax:(xx) 24 237-2088



-- 
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: Wierd for thingy, help!

2001-09-04 Thread _lallous

Yes, actually the example I posted doesn't have a submit button,

"Kyle Smith" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> would that work without a submit button?
>
>
> -lk6-
> http://www.StupeedStudios.f2s.com
> Home of the burning lego man!
>
> ICQ: 115852509
> MSN: [EMAIL PROTECTED]
> AIM: legokiller666
>
>
> - Original Message -
> From: "_lallous" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, September 04, 2001 4:43 AM
> Subject: [PHP] Re: Wierd for thingy, help!
>
>
> > page1.htm
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > page2.php
> >  >   echo "Hello $who!\n";
> > ?>
> >
> > "Kyle Smith" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Ok sorry for not looking into this one but is it possible for 1 page to
> have
> > a variable (not input) and then post it to another page and in an input
> > variable (text box) it will have the variable from the first page as its
> > value. not im confused!
> >
> >
> > -lk6-
> > http://www.StupeedStudios.f2s.com
> > Home of the burning lego man!
> >
> > ICQ: 115852509
> > MSN: [EMAIL PROTECTED]
> > AIM: legokiller666
> >
> >
> >
> >
> >
> >
> > --
> > 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] Text area's width in NS

2001-09-04 Thread Niklas Lampén

This helped me out (at least made my site look nicer :), but is there a way
set text area's width like this? Doesn't seem to work with same code. IE
however works great.

Why the hell there can not be just ONE standard?!?

Niklas


-Original Message-
From: * R&zE: [mailto:[EMAIL PROTECTED]]
Sent: 3. syyskuuta 2001 10:42
To: Balaji Ankem
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] hi




Hey there,

This is the solution for setting the width of your select-box (which
I think you want to do):


 ---options here---


The width-attribute sets the width in NS, while the style-attribute
sets the width in IE. Don't you just love this kind of
compatibility?!?! Anyway... using both attributes makes sure the
select-box is shown with the same width in both browsers.



--

* R&zE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.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_SELF NEW.....?????Continue2

2001-09-04 Thread David Otton

On Mon, 3 Sep 2001 17:15:25 -0700, you wrote:

>So, with the PHP_self (in my hangman game) I probably can send the value of
>my variable to the same page. now my next question is:
>
>How do i maintain the content of the page which is build based on the value
>passed from the previous submision? Do I confuse you know?

I think this is what you are asking for :

The string entered was : $input";
} else {
/* page does not exist, so we should display the form */
?>


  
  Input : 
  




(Caution - I haven't tested this... could be typos)

If you want multiple pages, you can do this:

if (!isset($page)) {
/* do page 1 */
} else {
switch($page) {
case '1' :
/* do page 2 */
break;
case '2' :
/* do page 3 */
break;
default :
/* someone's messing with the URL string */
break;
}
}


-- 
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] Text area's width in NS

2001-09-04 Thread


From: Niklas Lampén <[EMAIL PROTECTED]>
Date: Tue, Sep 04, 2001 at 02:39:03PM +0300
Message-ID: <[EMAIL PROTECTED]>
Subject: [PHP] Text area's width in NS

> This helped me out (at least made my site look nicer :), but is there a way
> set text area's width like this? Doesn't seem to work with same code. IE
> however works great.
> 
> Why the hell there can not be just ONE standard?!?
> 
> Niklas





Sorry. Can't do. Netscape doesn't seem to support this feature. It
does work in IE, though. Just add a style="" to it. There you can
set the width and height. Eg:



And for Netscape... well... you'll have to live with only using
cols="" and rows="".



-- 

* R&zE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.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] iODBC support (--with-iodbc[=DIR])

2001-09-04 Thread Kraa de Simon

Hi,

I'd like to configure the iODBC support (--with-iodbc[=DIR])

On http://www.iodbc.org I can choose between 'iODBC Driver Manager' and
'OpenLink iODBC SDK binaries'.

When I choose 'iODBC Driver Manager' I see the following options:

- iODBC Driver Manager & Administrator SOURCE Release V3.0.5
- iODBC RPM Packaging Source Files
- iODBC Driver Manager Runtime Package (For Linux glibc21)
- iODBC RPM Developers Kit (Linux glibc21)
- iODBC Administrator (Linux glibc21)

And when I choose 'OpenLink iODBC SDK binaries':

- Linux libc5 (Intel)
- Linux glibc2 (Intel)
- Linux glibc2.1.1 (Intel) 

Can anyone please give me a hint what I need to download?

I'm running on Red Hat Linux 7.1 / PHP 4.0.5.

[/root] uname -a
Linux nt-cpu04 2.4.2-2 #1 Sun Apr 8 19:37:14 EDT 2001 i586 unknown
[/root] rpm -q --all | grep glib
glibc-common-2.2.2-10
glibc-2.2.2-10
glib-1.2.9-1
glib-devel-1.2.9-1
glibc-devel-2.2.2-10

Thanks!!!

Simon.

-- 
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] calculating the average of arrays

2001-09-04 Thread Bart Verbeek

Hello,

I want to calculate an average from the following variables/arrays

a - $f[$index][f_d1_perc] with $f[$index][f_d1_weight]
b - $f[$index][f_d2_perc] with $f[$index][f_d2_weight]
c - $f[$index][f_d3_perc] with $f[$index][f_d3_weight]
d - $f[$index][f_d4_perc] with $f[$index][f_d4_weight]
e - $f[$index][f_d5_perc] with $f[$index][f_d5_weight]

All varables are integers:
- $f[$index][f_d _perc] = 0 - 100
- $f[$index][f_d1_weight] = 0 - 10

I want the folowing:

total score = (a *  weight) + (b *  weight) + (c *  weight) + (d *  weight)
+ (e *  weight).
total vars = weight a + weight b + weight c + weight d + weight e.
Average = total score / total average.
The calulated average has to be stored in "$f[$index][f_perc]".

The problem is that not always all the variables are set. How do I check
these arrays and leave them out of the calculation when they don't contain a
value.

Hope anyone can help me...





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




Fwd: [PHP] Text area's width in NS

2001-09-04 Thread Michael Cronström


>
>From: Niklas Lampén <[EMAIL PROTECTED]>
>
>Doesn't seem to work with same code. IE
>however works great.
>
>Why the hell there can not be just ONE standard?!?

There is at: www.w3c.org but everyone (read big enterprises) is not 
following the recommendations |:-(

If everyone tried to remember the following, things would have been easier:

"The power of the Web is in its universality. Access by everyone regardless 
of disability is an essential aspect."
-- Tim Berners-Lee, W3C Director and inventor of the World Wide Web

Michael Cronström
[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: calculating the average of arrays

2001-09-04 Thread _lallous

you can use this:

if (isset($f[$index][f_d1_weight]) && !empty($f[$index][f_d1_weight]))
{
  // process item here
}

"Bart Verbeek" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> I want to calculate an average from the following variables/arrays
>
> a - $f[$index][f_d1_perc] with $f[$index][f_d1_weight]
> b - $f[$index][f_d2_perc] with $f[$index][f_d2_weight]
> c - $f[$index][f_d3_perc] with $f[$index][f_d3_weight]
> d - $f[$index][f_d4_perc] with $f[$index][f_d4_weight]
> e - $f[$index][f_d5_perc] with $f[$index][f_d5_weight]
>
> All varables are integers:
> - $f[$index][f_d _perc] = 0 - 100
> - $f[$index][f_d1_weight] = 0 - 10
>
> I want the folowing:
>
> total score = (a *  weight) + (b *  weight) + (c *  weight) + (d *
weight)
> + (e *  weight).
> total vars = weight a + weight b + weight c + weight d + weight e.
> Average = total score / total average.
> The calulated average has to be stored in "$f[$index][f_perc]".
>
> The problem is that not always all the variables are set. How do I check
> these arrays and leave them out of the calculation when they don't contain
a
> value.
>
> Hope anyone can help me...
>
>
>
>



-- 
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: Fwd: [PHP] Text area's width in NS

2001-09-04 Thread

> There is at: www.w3c.org but everyone (read big enterprises) is not 
> following the recommendations |:-(





Yep... so actually your answer is: "No you can't."
The fact that there is a standard telling that something could be
done really doesn't mean very much when, what you call 'big
enterprises', don't stick to that standard. And yes... indeed...
they don't stick to it.



-- 

* R&zE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.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] Another script doesnt work!

2001-09-04 Thread Kyle Smith

And this time its not because of a dot, someone please help!

Parse error: parse error in 
/web/sites/197/lk6/www.stupeedstudios.f2s.com/dannys/sendform.php on line 22

line 22 is $message = blah!!




-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666





Re: [PHP] Another script doesnt work!

2001-09-04 Thread


From: Kyle Smith <[EMAIL PROTECTED]>
Date: Tue, Sep 04, 2001 at 01:18:42PM -0700
Message-ID: <[EMAIL PROTECTED]>
Subject: [PHP] Another script doesnt work!

> And this time its not because of a dot, someone please help!
> 
> Parse error: parse error in 
>/web/sites/197/lk6/www.stupeedstudios.f2s.com/dannys/sendform.php on line 22
> 
> line 22 is $message = blah!!
> 
>  $addresses = "[EMAIL PROTECTED]";
> $subject = "Cam Application";
> $line = "\r\n"
> $message = $name. $line. $email. $line. $bestbritish. $line. $bestcharacterinbrit. 
>$line. $bestyank. $line. $bestcharacterinyank. $line. $bestsketch. $line. 
>$bestanimation. $line. $bestcomedyfilm. $line. $bestfilmchar. $line. $bestquiz. 
>$line. $worstsitcom. $line. $comments;
> ?>





Look at line 21, then.
You forgot the semicolon:

$line = "\r\n";
  ^



-- 

* R&zE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.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]




Re: [PHP] If PHP4 existed in 1995 we would of taken over the worldby now

2001-09-04 Thread Michael Kimsal

I don't think "we" need "spies" - the ASP stuff is pretty out in the 
open as
to where they're going.  Visit www.ibuyspy.com to get some tutorials on how
to use ASP+ in a commerce environment.  There's some neat things, but most
of it seems overkill, and some of the neat things still seem to lock you 
into a
"web page" mentality (what if I want to output WML instead of HTML? - the
"template system" idea seems suited ONLY to HTML imo).

http://www.aspng.com/ is another site with a lot of info on the new ASP 
stuff.



Bob wrote:

>Do we have spies on the ASP list?  What are they doing on their end?  Now don't get me
>wrong, I've been coding with PHP and have read every tutorial and article I can get my
>hands on in regards to PHP so I don't want to see my time invested go to waste.  Maybe
>I should be asking on the developers list but I just want to hear some strategic
>direction or preview for PHP5.
>



-- 
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] Another script doesnt work!

2001-09-04 Thread Niklas Lampén

If line 22 is '$message = blah!!' it should be '$message = "blah!!";' or
then you're missing a ';' from the end of previous line.


Niklas



-Original Message-
From: Kyle Smith [mailto:[EMAIL PROTECTED]]
Sent: 4. syyskuuta 2001 23:19
To: [EMAIL PROTECTED]
Subject: [PHP] Another script doesnt work!


And this time its not because of a dot, someone please help!

Parse error: parse error in
/web/sites/197/lk6/www.stupeedstudios.f2s.com/dannys/sendform.php on line 22

line 22 is $message = blah!!




-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666




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




[PHP] Using php Dreamweaver and CVS

2001-09-04 Thread Robert V. Zwink

While developing PHP applications at my company our designers use
Macromedia's Dreamweaver for html design, once they have a site designed
they insert tags recognized by php's FastTemplate.  Then I can create php
pages utililizing php and FastTemplate to process the page.

As our projects have grown in size we now have need to use some kind of
versioning control.  I can use CVS for my php applications, but the HTML
designers need some kind of integration with their existing development
process.  I'm hoping that someone on this list uses a similar design process
that has some experience with Sitespring, or another content versioning
system integrating php and Dreamweaver.  I believe an IDE for CVS integrated
into Dreamweaver is the only way I can effectively control the html
versioning side of my php programs.  Has anyone heard of a plugin for
Dreamweaver that incorporates CVS into Dreamweaver?  Has anyone used
Macromedia's Sitespring for webdesign/content management that has time to
comment on its effectiveness?

Thanks for your time.

Robert V. Zwink
http://www.zwink.net/daid.php

MEI - Micro Center
http://www.microelectronics.com
http://www.microcenter.com
http://www.winbook.com
http://www.powerspec.com
http://www.mei-microcenter.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] iODBC support (--with-iodbc[=DIR])

2001-09-04 Thread Andrew Hill

Simon,

The HOWTO on www.iodbc.org walks through the steps with links to specific
file downloads.
As far as what libc version you need, do the following on your RedHat box:

rpm -qa |grep libc

the latest version number that shows up is what you need compatibility for.

Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software  http://www.openlinksw.com
Universal Data Access & Data Integration Technology Providers

> -Original Message-
> From: Kraa de Simon [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 04, 2001 7:52 AM
> To: Php-General (E-mail)
> Subject: [PHP] iODBC support (--with-iodbc[=DIR])
>
>
> Hi,
>
> I'd like to configure the iODBC support (--with-iodbc[=DIR])
>
> On http://www.iodbc.org I can choose between 'iODBC Driver Manager' and
> 'OpenLink iODBC SDK binaries'.
>
> When I choose 'iODBC Driver Manager' I see the following options:
>
> - iODBC Driver Manager & Administrator SOURCE Release V3.0.5
> - iODBC RPM Packaging Source Files
> - iODBC Driver Manager Runtime Package (For Linux glibc21)
> - iODBC RPM Developers Kit (Linux glibc21)
> - iODBC Administrator (Linux glibc21)
>
> And when I choose 'OpenLink iODBC SDK binaries':
>
> - Linux libc5 (Intel)
> - Linux glibc2 (Intel)
> - Linux glibc2.1.1 (Intel)
>
> Can anyone please give me a hint what I need to download?
>
> I'm running on Red Hat Linux 7.1 / PHP 4.0.5.
>
> [/root] uname -a
> Linux nt-cpu04 2.4.2-2 #1 Sun Apr 8 19:37:14 EDT 2001 i586 unknown
> [/root] rpm -q --all | grep glib
> glibc-common-2.2.2-10
> glibc-2.2.2-10
> glib-1.2.9-1
> glib-devel-1.2.9-1
> glibc-devel-2.2.2-10
>
> Thanks!!!
>
> Simon.
>
> --
> 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 with Access?

2001-09-04 Thread Andrew Hill

Jeff,

No, Access will not run on Linux.  Either export the mdb to MySQL format
(there is a utility to do this on the MySQL site) or connect from Linux to
Windows using ODBC - check the iODBC HowTO at www.iodbc.org for steps to
compile PHP --with-iodbc.

The reason that ODBC isn't working on Windows is you have not configured
your PHP installation to support ODBC :)
Either view the install docs to enable the extension:
http://www.php.net/manual/en/install-windows.php or upgrade to 4.0.6 or
later, which will support ODBC on Windows by default.

Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software  http://www.openlinksw.com
Universal Data Access & Data Integration Technology Providers

> -Original Message-
> From: Jeff Lewis [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 30, 2001 10:02 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP with Access?
>
>
> I am using mySQL with all of my stuff but a friend who started
> writing some files for our online baseball league was using
> Access as his database.  We tried running it on my server but it
> returns an error that says undefined function odbc_connect.
>
> Now my questions, can I get this to work on a Linux box?  If not,
> is there a nice way to convert the MDB to mySQL? :)
>
> Jeff
>


-- 
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] Disbale function in certain virtual host

2001-09-04 Thread Nicolas Ross

And you can see at :

http://etudiant.multim.org/test/test.php

that I disabled phpinfo() in the virtual host, but I can still execute the
function

>
> 
> php_admin_value disable_functions strlen
> 
>



-- 
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 query . need help!!!!!

2001-09-04 Thread lizlynch

i have two tables here, i want to insert the customername from the Username table and 
insert it into the Classification table.
 is the below query correct cause i can't seem to get it to work.

 $query = "INSERT INTO Classification (Customername)
 (SELECT Customername)
  FROM Username
  WHERE Username = '$Username')";

i also want to insert a form value into the classification table at the same time is 
that possible.

cheers liz lynch






[PHP] again system, exec and passthru.

2001-09-04 Thread Thorsten Wandersmann

I read a lot of it in this group, but not a real solution. I think, that 
most of the problems is the same that I have.

I'm using SuSE7.2, apache 1.3.19, php 4.0.4pl1.

Webserver is up and runnig and normally all works fine, without $SUBJECT.

OK, tried the three functions using " and ' as well, I always used the full 
path to the command I wanted to execute ("/usr/bin/isdnrep" in this case).

So I can read in the errorlog of apache (/var/log/httpd/error_log):

sh: /isdnrep: No such file or directory

Note, that in the errorlog it is "/isdnrep" and in the phpcode it is 
"/usr/bin/isdnrep".

So I think it is relative easy, httpd.conf? php.ini? some other things? I 
just do not find it.


thanks folks
thorsten

-- 
Thorsten Wandersmann Phone:  +49-911-8172249
Bonhoefferstr. 79Mobile: +49-179-6670562
90473 Nuremberg  e-Mail: [EMAIL PROTECTED]
Germany  http://www.caipy.de

-- 
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 Stress Testing.

2001-09-04 Thread Andy Woolley

Guys,

Has anyone ever tested PHP, MySQL on Apache to see just how well it will
work when put under serious pressure.

Seems that people all over the world are saying how PHP doesnt cut it when
pushed to the limit, question is what is the limit?

Anyone interested in setting up a stress test, to try and prove how good PHP
really is.

Andy.


-- 
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] Another script doesnt work!

2001-09-04 Thread Tim

You're missing a ";" on the line above the error.

- Tim

On Tue, 2001-09-04 at 16:18, Kyle Smith wrote:
> And this time its not because of a dot, someone please help!
> 
> Parse error: parse error in 
>/web/sites/197/lk6/www.stupeedstudios.f2s.com/dannys/sendform.php on line 22
> 
> line 22 is $message = blah!!
> 
>  $addresses = "[EMAIL PROTECTED]";
> $subject = "Cam Application";
> $line = "\r\n"
> $message = $name. $line. $email. $line. $bestbritish. $line. $bestcharacterinbrit. 
>$line. $bestyank. $line. $bestcharacterinyank. $line. $bestsketch. $line. 
>$bestanimation. $line. $bestcomedyfilm. $line. $bestfilmchar. $line. $bestquiz. 
>$line. $worstsitcom. $line. $comments;
> ?>
> 
> 
> -lk6-
> http://www.StupeedStudios.f2s.com
> Home of the burning lego man!
> 
> ICQ: 115852509
> MSN: [EMAIL PROTECTED]
> AIM: legokiller666
> 
> 



-- 
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: mysql query . need help!!!!!

2001-09-04 Thread _lallous

Nope,
MySql doesn't allow select within select...
try making two seperate queries...

"Lizlynch" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
i have two tables here, i want to insert the customername from the Username
table and insert it into the Classification table.
 is the below query correct cause i can't seem to get it to work.

 $query = "INSERT INTO Classification (Customername)
 (SELECT Customername)
  FROM Username
  WHERE Username = '$Username')";

i also want to insert a form value into the classification table at the same
time is that possible.

cheers liz lynch







-- 
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 on Solaris / Linux with MSSQL Server 7.0 or 2000 on Win2K

2001-09-04 Thread Boaz Yahav

Hi

I'm currently using PHP 4 on Solaris on a front end server with MySQL on
Solaris as a db server.
Since I'm having weird problems with MySQL (3.23.41) on very active
tables (a 700,000 records table with lots
or reads and writes) .

I want to work with MSSQL Server 2000 instead of MySQL, does anyone have
experience with working with such
a combination? PHP4 on Solaris as front and Win2K with MSSQL Server 2000
as db?

Sincerely

  berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.


--
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 on Solaris / Linux with MSSQL Server 7.0 or 2000 on Win2K

2001-09-04 Thread Michael Kimsal



Boaz Yahav wrote:

>Hi
>
>I'm currently using PHP 4 on Solaris on a front end server with MySQL on
>Solaris as a db server.
>Since I'm having weird problems with MySQL (3.23.41) on very active
>tables (a 700,000 records table with lots
>or reads and writes) .
>
>I want to work with MSSQL Server 2000 instead of MySQL, does anyone have
>experience with working with such
>a combination? PHP4 on Solaris as front and Win2K with MSSQL Server 2000
>as db?
>
>Sincerely
>
>  berber
>

We use freetds under linux to connect to NT4/SQL7 on the backend.  My 
understanding is that
the freetds project *will* work on Sun, and that if you are using basic 
column type, it'll work with SQL2000.
freetds.org - their FAQ may have some questions on SQL2000, but I 
haven't checked it in awhile.  
There weren't too many protocol changes between 7 and 2000 (from what I 
hear) so the basic
stuff should work the same.

What types of 'weird problems' are you having?  

-
michael kimsal
http://www.tapinternet.com/php/
php training courses
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]




[PHP] Load testing

2001-09-04 Thread Andrew Brampton

Hi,
I'm looking for a app that I can run across my network that will load test my 
webserver & pages...

Something like a program that will open 100 pages at once and tell me the response 
times or error occuring etc...

Does anyone know of such a app?

Thanks
Andrew



Re: [PHP] PHP on Solaris / Linux with MSSQL Server 7.0 or 2000 onWin2K

2001-09-04 Thread Christopher William Wesley

On Tue, 4 Sep 2001, Boaz Yahav wrote:
> I'm currently using PHP 4 on Solaris on a front end server with MySQL on
> Solaris as a db server.
...
> I want to work with MSSQL Server 2000 instead of MySQL, does anyone have
> experience with working with such
> a combination? PHP4 on Solaris as front and Win2K with MSSQL Server 2000

If you'd like to stick with a well supported DBMS (from a PHP
interactivity point of view) on Solaris, take a look at using PostgreSQL
(postgresql.org, pgsql.com, postgresql.com).

If you have your heart set on using MSSQL Server, you can use FreeTDS
(freetds.org) w/ PHP to talk to MSSQL Server directly.

I've used ODBCSocketServer (odbc.sourceforge.net ... very cool project) to
talk to MSSQL Server via ODBC (with the DSN residing on the DB Server),
and it worked nicely.

~Chris   /"\
 \ / Pine Ribbon Campaign
Microsoft Security Specialist X  Against Outlook
The moron in Oxymoron.   / \ http://www.thebackrow.net


-- 
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: mysql query . need help!!!!!

2001-09-04 Thread sagar

You cant use a select statement withoug using a table name.
check out this
$query = "insert into classification(customername) (select customername from username 
where username='$username')";

i cant answer ur second question, since i dont the
structure of your table

/sagar

original message 


Nope,
MySql doesn't allow select within select...
try making two seperate queries...

"Lizlynch" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
i have two tables here, i want to insert the customername from the Username
table and insert it into the Classification table.
 is the below query correct cause i can't seem to get it to work.

 $query = "INSERT INTO Classification (Customername)
 (SELECT Customername)
  FROM Username
  WHERE Username = '$Username')";

i also want to insert a form value into the classification table at the same
time is that possible.

cheers liz lynch





Re: [PHP] How to replicate a table in Mysql?

2001-09-04 Thread sagar

Do u want to get the table data for backup ?
then try mysqldump -u  -p -d  -t>
somefile.txt;

check out once the manual for mysqldump syntax

/sagar

- Original Message -
From: Balaji Ankem <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 04, 2001 12:13 AM
Subject: [PHP] How to replicate a table in Mysql?


> Hi friend,
>I want to replicate the table which is existed in database of Mysql.
>
> Thanks in advance.
>
> Regards
> -Balaji
>
>






> --
> 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 your free @yahoo.com address at http://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] Load testing

2001-09-04 Thread Jon Haworth

If you run Apache you might want to look into the ab program, it's in the
apache/bin directory IIRC. 

HTH
Jon


-Original Message-
From: Andrew Brampton [mailto:[EMAIL PROTECTED]]
Sent: 04 September 2001 16:48
To: [EMAIL PROTECTED]
Subject: [PHP] Load testing


Hi,
I'm looking for a app that I can run across my network that will load test
my webserver & pages...

Something like a program that will open 100 pages at once and tell me the
response times or error occuring etc...

Does anyone know of such a app?

Thanks
Andrew


**
'The information included in this Email is of a confidential nature and is 
intended only for the addressee. If you are not the intended addressee, 
any disclosure, copying or distribution by you is prohibited and may be 
unlawful. Disclosure to any party other than the addressee, whether 
inadvertent or otherwise is not intended to waive privilege or confidentiality'

**

-- 
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: mysql query . need help!!!!!

2001-09-04 Thread Jon Farmer

>You cant use a select statement withoug using a table name.
>check out this
>$query = "insert into classification(customername) (select customername
from username >where username='$username')";

Incorrect in mySQL you can do

mysql> select 3+5;

returns 8

plus a whole lot of other functions that can be selected without a table
name.


Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07968 524175
PGP Key available, send blank email to [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] 'Undefined Variable' help...

2001-09-04 Thread Uchendu Nwachukwu

OK, I have a problem calling a function using default variables.

In 'gallery.inc':
-
function gallery ($filename, $first = 1, $tablewidth = 4, $total = 20) {
echo "Filename: $filename, First image: $first, Table Width:
$tablewidth, Total: $total";
}
-

In 'gallery.php':
-
include('/path/to/gallery.inc');
...
gallery('test.txt',$first,$width,$images);
-

$first, $width and $images are variables that are defined by the URL, as if
they were submitted through a form using HTTP GET, and they are designed to
be used like that.

My problem is, if I don't define those variables in the URL when I run
gallery.php, PHP will come back with 'Undefined Variable' errors. Is there
any way I can prevent that from happening?

TIA!

--
Uchendu Nwachukwu
unndunn AT yahoo DOT com - www.unndunn.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] Bug or My Error

2001-09-04 Thread Malcolm Clark

Although I have a solution to my script, I would rest at ease if someone
could confirm that I have erred and perhaps if I had read some particular
part of the manual I'd never have had the problem.

http://www.php.net/bugs.php?id=13055&edit=2

rgds

Mal


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

2001-09-04 Thread Jeremy Morano

Hi ,

Is there anyway of hiding the name of the website in the isset "Enter
Network Password" window?



if (isset( $PHP_AUTH_USER ) && isset($PHP_AUTH_PW))


-- 
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] Question about mail()

2001-09-04 Thread Alex Shi

Hi, 

I have a question regarding to mail() function:
Does mail() function use sendmail, or just use a mail program of php?
If it uses a mail program other than sendmail, how can configure it to
work correctly?

Alex


-- 
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] Directory Listing and File Reading errors

2001-09-04 Thread skater

I'm recursivley reading and editing every .htm and .html file in a 500 page
website and upgrading it to contain linked CSS, Javascript includes and PHP
includes. i can't use a pre_pend file as there's more than one website on
the server, and the changes are embedded in the document rather than just
the header/footer. the script works fine and all, trouble is that PHP
doesn't.

Sometimes the script will run fine, other times PHP will decide to read the
same file 10-20 times and then do the same for everyfile in certain
directories. it's really annoying as some changes will be made over and over
and over, also with 500 files being read 5-10 times each, the page times out
after about 5000 reads...

is this a PHP bug? or an Microsoft bug? or something else...

i'm running PHP verson 4.0.4pl1 off a 2000 server and IIS



-- 
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] http get vars missing?? track vars enabled - HELP

2001-09-04 Thread Johnson, Kirk

> I'm about ready to go insane over this one. I have the following link.
> 
> http://www.wayneswoodworks.net/test/samples.php3?&key=1
> 
> When I get into samples.php3 I do:
> 
> $record = $HTTP_GET_VARS["key"];
> 
> echo "record=$record";
> 
> And the record variable is blank/missing.

Did you get this figured out? There may be a typo in the link, there
shouldn't be both a '?' and an '&' before 'key', altho I don't know if this
would cause a problem.

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] urgent. need posix-style regexp expert

2001-09-04 Thread alvarez


what is the correct POSIX-regexp to match a range of characters
between two parantheses, while ensuring that it is the largest
match possible? need fast reply. thanks.

Running against

   (foo (bar (baaz) quux( fred woody) wang))

it should return

   foo (bar (baaz) quux( fred woody) wang)



 D. Alvarez Arribas <[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] Newbie Question: mysqldump via PHP

2001-09-04 Thread Tony Frasketi

Hello listers

I'm trying to implement a mySQL database dump via PHP4 on a unix system
as follows...

   --
   $result = exec("mysqldump -umyname --password=mypassword 
  tablename >db.dump",$xarray,$status);
   echo "status[$status]";
   --

I get the following error PHP error message...

   status[127]

and the file 'db.dump' has been created but it has 0 bytes.

   -rw-r--r-- 1 nobody nobody 0 Sep 4 13:27 db.dump

Although I can execute the mysqldump program from the unix shell and I
get...

   -rw-r--r-- 1 myname myname 23704 Sep 4 13:18 db.dump

My questions are... 

 1. Can the mysqldump program be executed via PHP or not and if not
can you please explain why?

 2. Is there another way of doing this via PHP?

Thanks in advance
Tony Frasketi
P.S. Please answer direct, since I'm only subscribed to the digest.

-- 
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 Stress Testing.

2001-09-04 Thread Michael Kimsal

Goalposts change.

The zdnet eweek article from last november showed PHP being *THE* fastest
between JSP, ASP, CF and PHP.  PHP was 47 pages/second.  ASP was 43, CF
was 25 or 26, and JSP was 13.  The benchmark was a ecommerce store  -
each system had functionally equivalent code, and ran on the same hardware.

CF got 'top honors' because of its 'ease of use'.  PHP was hands down 
faster
than everything else.  ASP was close, and became way faster when MS rewrote
the code, but I suspect someone rewriting the PHP could have optimized 
it to see
a 100% improvement as well.

Part of the point here is that people will knock it for any reason they 
can,
even if they don't know any better.  We have a client (running PHP) who 
was in
a meeting with one of their clients.  Trying to demo a new service, they 
went to
his site, which was responding very slowly (turns out there was some 
routing
problems along the way  - I *think* in the client's own office).  Their 
"IT" guy
(to use the term loosely) noticed the ".php" and said "Oh well, there's 
your problem -
PHP isn't multithreaded - of course it's going to run really slow.  You 
should use our
__ system" (I forget if it was Java or MS).  The guy was full of it, 
but
everyone in the meeting got the impression that PHP sucked and was slow
because it's not "multithreaded" (as if ANYONE in that room, including that
dweeb, even understood the term, much less it's impact on performance).

So what do you want to benchmark?  Whatever it is, you really should get 
others from
other camps to develop similar code - get an ASP person (who is good) to 
write a similar
app, do the same with Java, etc.  If you want to contact me privately, I 
would
be interested in discussing this further (organizing, etc)



Andy Woolley wrote:

>Guys,
>
>Has anyone ever tested PHP, MySQL on Apache to see just how well it will
>work when put under serious pressure.
>
>Seems that people all over the world are saying how PHP doesnt cut it when
>pushed to the limit, question is what is the limit?
>
>Anyone interested in setting up a stress test, to try and prove how good PHP
>really is.
>
>Andy.
>
>



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

2001-09-04 Thread Jeremy Morano

Hi,

Is there anyway that I can hide my website name in the authenticate window?

if ( ! $auth ) { 

header( 'WWW-Authenticate: Basic realm="Private"); 
header( 'HTTP/1.0 401 Unauthorized' ); 
echo 'Authorization Required.'; 
exit; 

}

-- 
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 Question: mysqldump via PHP

2001-09-04 Thread Sam Masiello


I would say that you have a permission problem with where PHP is trying
to write the file to.  Try outputting the file to /tmp/db.dump and see
if you have the same problem.

HTH

Sam Masiello
Software Quality Assurance Engineer
Synacor 
(716) 853-1362 X289
[EMAIL PROTECTED]


-Original Message-
From: Tony Frasketi [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, September 04, 2001 1:56 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Newbie Question: mysqldump via PHP

Hello listers

I'm trying to implement a mySQL database dump via PHP4 on a unix system
as follows...

   --
   $result = exec("mysqldump -umyname --password=mypassword 
  tablename >db.dump",$xarray,$status);
   echo "status[$status]";
   --

I get the following error PHP error message...

   status[127]

and the file 'db.dump' has been created but it has 0 bytes.

   -rw-r--r-- 1 nobody nobody 0 Sep 4 13:27 db.dump

Although I can execute the mysqldump program from the unix shell and I
get...

   -rw-r--r-- 1 myname myname 23704 Sep 4 13:18 db.dump

My questions are... 

 1. Can the mysqldump program be executed via PHP or not and if not
can you please explain why?

 2. Is there another way of doing this via PHP?

Thanks in advance
Tony Frasketi
P.S. Please answer direct, since I'm only subscribed to the digest.

-- 
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 Question: mysqldump via PHP

2001-09-04 Thread sagar

Did u mention the database name from where the table has to be
picked up.

check out the manual for correct syntax.

/sagar
- Original Message - 
From: Tony Frasketi <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 04, 2001 11:25 PM
Subject: [PHP] Newbie Question: mysqldump via PHP


> Hello listers
> 
> I'm trying to implement a mySQL database dump via PHP4 on a unix system
> as follows...
> 
>--
>$result = exec("mysqldump -umyname --password=mypassword 
>   tablename >db.dump",$xarray,$status);
>echo "status[$status]";
>--
> 
> I get the following error PHP error message...
> 
>status[127]
> 
> and the file 'db.dump' has been created but it has 0 bytes.
> 
>-rw-r--r-- 1 nobody nobody 0 Sep 4 13:27 db.dump
> 
> Although I can execute the mysqldump program from the unix shell and I
> get...
> 
>-rw-r--r-- 1 myname myname 23704 Sep 4 13:18 db.dump
> 
> My questions are... 
> 
>  1. Can the mysqldump program be executed via PHP or not and if not
> can you please explain why?
> 
>  2. Is there another way of doing this via PHP?
> 
> Thanks in advance
> Tony Frasketi
> P.S. Please answer direct, since I'm only subscribed to the digest.
> 
> -- 
> 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 your free @yahoo.com address at http://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] Newbie Question: mysqldump via PHP

2001-09-04 Thread Tony Frasketi

Hi Sagar
My goof in the email composition! 'tablename' should have been 'dbname'.
So yes, the database name is specified and I am attempting to dump the
entire database with all tables.

Thanks for point out my error.

sagar wrote:
> 
> Did u mention the database name from where the table has to be
> picked up.
> 
> check out the manual for correct syntax.
> 
> /sagar
> - Original Message -
> From: Tony Frasketi <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, September 04, 2001 11:25 PM
> Subject: [PHP] Newbie Question: mysqldump via PHP
> 
> > Hello listers
> >
> > I'm trying to implement a mySQL database dump via PHP4 on a unix system
> > as follows...
> >
> >--
> >$result = exec("mysqldump -umyname --password=mypassword
> >   tablename >db.dump",$xarray,$status);
> >echo "status[$status]";
> >--
> >
> > I get the following error PHP error message...
> >
> >status[127]
> >
> > and the file 'db.dump' has been created but it has 0 bytes.
> >
> >-rw-r--r-- 1 nobody nobody 0 Sep 4 13:27 db.dump
> >
> > Although I can execute the mysqldump program from the unix shell and I
> > get...
> >
> >-rw-r--r-- 1 myname myname 23704 Sep 4 13:18 db.dump
> >
> > My questions are...
> >
> >  1. Can the mysqldump program be executed via PHP or not and if not
> > can you please explain why?
> >
> >  2. Is there another way of doing this via PHP?
> >
> > Thanks in advance
> > Tony Frasketi
> > P.S. Please answer direct, since I'm only subscribed to the digest.
> >
> > --
> > 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 your free @yahoo.com address at http://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] Newbie Question: mysqldump via PHP

2001-09-04 Thread Tony Frasketi

Hi Sam
Thanks for the reply. I had the permission set for 777 so that should
allow access to the directory for writing from PHP, should it not?

Also I tried specifying >/tmp/db.dump in the command and had the tmp
directory permission also set for 777 but still get same results. The
file get written but it's still set to zero bytes.

Any other suggestions would be greatly appreciated.

Sam Masiello wrote:
> 
> I would say that you have a permission problem with where PHP is trying
> to write the file to.  Try outputting the file to /tmp/db.dump and see
> if you have the same problem.
> 
> HTH
> 
> Sam Masiello
> Software Quality Assurance Engineer
> Synacor
> (716) 853-1362 X289
> [EMAIL PROTECTED]
> 
> -Original Message-
> From: Tony Frasketi [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 04, 2001 1:56 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Newbie Question: mysqldump via PHP
> 
> Hello listers
> 
> I'm trying to implement a mySQL database dump via PHP4 on a unix system
> as follows...
> 
>--
>$result = exec("mysqldump -umyname --password=mypassword
>   tablename >db.dump",$xarray,$status);
>echo "status[$status]";
>--
> 
> I get the following error PHP error message...
> 
>status[127]
> 
> and the file 'db.dump' has been created but it has 0 bytes.
> 
>-rw-r--r-- 1 nobody nobody 0 Sep 4 13:27 db.dump
> 
> Although I can execute the mysqldump program from the unix shell and I
> get...
> 
>-rw-r--r-- 1 myname myname 23704 Sep 4 13:18 db.dump
> 
> My questions are...
> 
>  1. Can the mysqldump program be executed via PHP or not and if not
> can you please explain why?
> 
>  2. Is there another way of doing this via PHP?
> 
> Thanks in advance
> Tony Frasketi
> P.S. Please answer direct, since I'm only subscribed to the digest.
> 
> --
> 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: The future of PHP -- accessory libraries

2001-09-04 Thread Geoff Caplan

Hi folks

Here is my ISPs comments on the advice from Rasmus:

Rasmus wrote:
>>
>> Well, I tend to prefer compile from source as well.  I guess they simply
>> don't realize that you can compile most of the extensions as shared
>> libraries and configure what should be loaded at runtime in the php.ini
>> file.
>>

They replied:

>Very interesting. I have to be honest, I never realised this. I've tended
>to want to leave php.ini well alone - I guess I'm allergic to the .ini
>suffix ;-)

So it looks that Rasmus was right when he said:

>> So it looks like this is mostly a documentation issue.  We have not done
a
>> good job educating the ISPs out there.

My ISPs are pretty serious guys, and they do RTFM. So if they don't
understand this, I suspect the problem is pretty widespread.

Perhaps the documentation group could take a look at this? Nice to know it's
a documentation issue and not a basic problem with the architecture - much
easier to put right!

Geoff Caplan


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

2001-09-04 Thread PHP List

Hi,
I am trying to update my server to php4. Everything seemd to compile fine.
httpd -l shows mod_php4.c in the list.

I used to use these entries in my httpd.conf to specifically turn php on in certain 
dirs instead of default on for everyting.

   
php3_engine on


But I cannot find a combo that works now, I allways get an error.  How do I do this 
with php4?



RE: [PHP] Newbie Question: mysqldump via PHP

2001-09-04 Thread Sam Masiello


Have you tried putting in the fully qualified pathname to the mysqldump
executable?

/usr/somepath/mysqldump  

HTH

Sam Masiello
Software Quality Assurance Engineer
Synacor 
(716) 853-1362 X289
[EMAIL PROTECTED]


-Original Message-
From: Tony Frasketi [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, September 04, 2001 2:28 PM
To: Sam Masiello
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Newbie Question: mysqldump via PHP

Hi Sam
Thanks for the reply. I had the permission set for 777 so that should
allow access to the directory for writing from PHP, should it not?

Also I tried specifying >/tmp/db.dump in the command and had the tmp
directory permission also set for 777 but still get same results. The
file get written but it's still set to zero bytes.

Any other suggestions would be greatly appreciated.

Sam Masiello wrote:
> 
> I would say that you have a permission problem with where PHP is
trying
> to write the file to.  Try outputting the file to /tmp/db.dump and see
> if you have the same problem.
> 
> HTH
> 
> Sam Masiello
> Software Quality Assurance Engineer
> Synacor
> (716) 853-1362 X289
> [EMAIL PROTECTED]
> 
> -Original Message-
> From: Tony Frasketi [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 04, 2001 1:56 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Newbie Question: mysqldump via PHP
> 
> Hello listers
> 
> I'm trying to implement a mySQL database dump via PHP4 on a unix
system
> as follows...
> 
>--
>$result = exec("mysqldump -umyname --password=mypassword
>   tablename >db.dump",$xarray,$status);
>echo "status[$status]";
>--
> 
> I get the following error PHP error message...
> 
>status[127]
> 
> and the file 'db.dump' has been created but it has 0 bytes.
> 
>-rw-r--r-- 1 nobody nobody 0 Sep 4 13:27 db.dump
> 
> Although I can execute the mysqldump program from the unix shell and I
> get...
> 
>-rw-r--r-- 1 myname myname 23704 Sep 4 13:18 db.dump
> 
> My questions are...
> 
>  1. Can the mysqldump program be executed via PHP or not and if not
> can you please explain why?
> 
>  2. Is there another way of doing this via PHP?
> 
> Thanks in advance
> Tony Frasketi
> P.S. Please answer direct, since I'm only subscribed to the digest.
> 
> --
> 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] Newbie Question: mysqldump via PHP

2001-09-04 Thread Tony Frasketi

Hi sagar

The $xarray,$status parameters are part of the PHP exec command not the
embedded mysqldump command.

   $result = exec("mysqldump -umyname --password=mypassword
 databsename >db.dump",$xarray,$status);

Thanks, Tony


sagar wrote:
> 
> did u got it or not ?
> recently i used the mysqldump.
> 
> the syntax is as used by me is
> 
> mysqldump [OPTIONS] database [tables] > (destination file);
> 
> i dont know why used $xarray,$status.
> 
> hope u'll clear out
> 
> /sagar
> 
> - Original Message -
> From: Tony Frasketi <[EMAIL PROTECTED]>
> To: sagar <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, September 04, 2001 11:53 PM
> Subject: Re: [PHP] Newbie Question: mysqldump via PHP
> 
> > Hi Sagar
> > My goof in the email composition! 'tablename' should have been 'dbname'.
> > So yes, the database name is specified and I am attempting to dump the
> > entire database with all tables.
> >
> > Thanks for point out my error.
> >
> > sagar wrote:
> > >
> > > Did u mention the database name from where the table has to be
> > > picked up.
> > >
> > > check out the manual for correct syntax.
> > >
> > > /sagar
> > > - Original Message -
> > > From: Tony Frasketi <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, September 04, 2001 11:25 PM
> > > Subject: [PHP] Newbie Question: mysqldump via PHP
> > >
> > > > Hello listers
> > > >
> > > > I'm trying to implement a mySQL database dump via PHP4 on a unix
> system
> > > > as follows...
> > > >
> > > >--
> > > >$result = exec("mysqldump -umyname --password=mypassword
> > > >   tablename >db.dump",$xarray,$status);
> > > >echo "status[$status]";
> > > >--
> > > >
> > > > I get the following error PHP error message...
> > > >
> > > >status[127]
> > > >
> > > > and the file 'db.dump' has been created but it has 0 bytes.
> > > >
> > > >-rw-r--r-- 1 nobody nobody 0 Sep 4 13:27 db.dump
> > > >
> > > > Although I can execute the mysqldump program from the unix shell and I
> > > > get...
> > > >
> > > >-rw-r--r-- 1 myname myname 23704 Sep 4 13:18 db.dump
> > > >
> > > > My questions are...
> > > >
> > > >  1. Can the mysqldump program be executed via PHP or not and if not
> > > > can you please explain why?
> > > >
> > > >  2. Is there another way of doing this via PHP?
> > > >
> > > > Thanks in advance
> > > > Tony Frasketi
> > > > P.S. Please answer direct, since I'm only subscribed to the digest.
> > > >
> > > > --
> > > > 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 your free @yahoo.com address at http://mail.yahoo.com
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://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] 'Undefined Variable' help...

2001-09-04 Thread Philip Olson

Hi Uchendu!

Yes, this is very possible!  Here are a few things that come to mind.
There are of course many ways to do this :

To check the existance of a variable, consider isset() as it checks for
the existance of a variable :

if (isset($HTTP_GET_VARS['images']))

Maybe set some default values for unset variables :

   if (!isset($width)) $width = 300;
   if (!isset($breads)) {
  $breads = array('rye','wheat','raison');
   }

A little debugging :

  

  

A "Undefined Variable" Error is level E_NOTICE.  More error handling
information can be found here :

  http://www.php.net/manual/en/features.error-handling.php

Doing the following will create a "Undefined Variable" Warning such as :

  if ($submit) // if (isset($submit))
  echo $iamnotset; // if (isset($iamnotset)) echo $iamnotset;

  Warning: Undefined variable: submit in /home/http/file.php on line 24
  Warning: Undefined variable: iamnotset in /home/http/file.php on line 25

Related places :

  Using Register Globals  :
  http://www.php.net/manual/en/security.registerglobals.php

  Variables from outside PHP  :
  http://www.php.net/manual/en/language.variables.external.php

  Configuration : error_reporting :
  http://www.php.net/manual/en/configuration.php#ini.error-reporting

Hope that helps, good luck :)

Regards,
Philip Olson



On Tue, 4 Sep 2001, Uchendu Nwachukwu wrote:

> OK, I have a problem calling a function using default variables.
> 
> In 'gallery.inc':
> -
> function gallery ($filename, $first = 1, $tablewidth = 4, $total = 20) {
> echo "Filename: $filename, First image: $first, Table Width:
> $tablewidth, Total: $total";
> }
> -
> 
> In 'gallery.php':
> -
> include('/path/to/gallery.inc');
> ...
> gallery('test.txt',$first,$width,$images);
> -
> 
> $first, $width and $images are variables that are defined by the URL, as if
> they were submitted through a form using HTTP GET, and they are designed to
> be used like that.
> 
> My problem is, if I don't define those variables in the URL when I run
> gallery.php, PHP will come back with 'Undefined Variable' errors. Is there
> any way I can prevent that from happening?
> 
> TIA!
> 
> --
> Uchendu Nwachukwu
> unndunn AT yahoo DOT com - www.unndunn.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] Newbie Question: mysqldump via PHP

2001-09-04 Thread Tony Frasketi

Hi Sam
No I haven't tried this since I'm on a virtual server and don't know
where mysqldump is located. I tried doing a phpinfo() to see if I could
get the mysqldump location from there but I didn't see it in the mysql
section of the phpinfo listing. Do you know of a unix shell command I
could use to get the location of mysqldump?

Tony

Sam Masiello wrote:
> 
> Have you tried putting in the fully qualified pathname to the mysqldump
> executable?
> 
> /usr/somepath/mysqldump  
> 
> HTH
> 
> Sam Masiello
> Software Quality Assurance Engineer
> Synacor
> (716) 853-1362 X289
> [EMAIL PROTECTED]
> 
> -Original Message-
> From: Tony Frasketi [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 04, 2001 2:28 PM
> To: Sam Masiello
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Newbie Question: mysqldump via PHP
> 
> Hi Sam
> Thanks for the reply. I had the permission set for 777 so that should
> allow access to the directory for writing from PHP, should it not?
> 
> Also I tried specifying >/tmp/db.dump in the command and had the tmp
> directory permission also set for 777 but still get same results. The
> file get written but it's still set to zero bytes.
> 
> Any other suggestions would be greatly appreciated.
> 
> Sam Masiello wrote:
> >
> > I would say that you have a permission problem with where PHP is
> trying
> > to write the file to.  Try outputting the file to /tmp/db.dump and see
> > if you have the same problem.
> >
> > HTH
> >
> > Sam Masiello
> > Software Quality Assurance Engineer
> > Synacor
> > (716) 853-1362 X289
> > [EMAIL PROTECTED]
> >
> > -Original Message-
> > From: Tony Frasketi [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 04, 2001 1:56 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Newbie Question: mysqldump via PHP
> >
> > Hello listers
> >
> > I'm trying to implement a mySQL database dump via PHP4 on a unix
> system
> > as follows...
> >
> >--
> >$result = exec("mysqldump -umyname --password=mypassword
> >   tablename >db.dump",$xarray,$status);
> >echo "status[$status]";
> >--
> >
> > I get the following error PHP error message...
> >
> >status[127]
> >
> > and the file 'db.dump' has been created but it has 0 bytes.
> >
> >-rw-r--r-- 1 nobody nobody 0 Sep 4 13:27 db.dump
> >
> > Although I can execute the mysqldump program from the unix shell and I
> > get...
> >
> >-rw-r--r-- 1 myname myname 23704 Sep 4 13:18 db.dump
> >
> > My questions are...
> >
> >  1. Can the mysqldump program be executed via PHP or not and if not
> > can you please explain why?
> >
> >  2. Is there another way of doing this via PHP?
> >
> > Thanks in advance
> > Tony Frasketi
> > P.S. Please answer direct, since I'm only subscribed to the digest.
> >
> > --
> > 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] Engine Question

2001-09-04 Thread Steve Edberg

PHP4's configuration syntax has changed; see

http://www.php.net/manual/en/configuration.php

Try using the line

php_flag engine on


-steve


At 11:35 AM -0700 9/4/01, PHP List wrote:
>Hi,
>I am trying to update my server to php4. Everything seemd to compile fine.
>httpd -l shows mod_php4.c in the list.
>
>I used to use these entries in my httpd.conf to specifically turn 
>php on in certain dirs instead of default on for everyting.
>
>  
>php3_engine on
>
>
>But I cannot find a combo that works now, I allways get an error. 
>How do I do this with php4?

-- 
+ Open source questions? +
| Steve Edberg   University of California, Davis |
| [EMAIL PROTECTED]   Computer Consultant |
| http://aesric.ucdavis.edu/  http://pgfsun.ucdavis.edu/ |
+--- http://pgfsun.ucdavis.edu/open-source-tools.html ---+

-- 
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] Making gd Extensions

2001-09-04 Thread Dennis Moore

The problem I had was with the compilation of the gd program.  I installed
an RPM version of gd from Redhat and recompiled.  It worked like a charm on
RedHat v7.0.

I am still working on the tarball version of gd.  The documentation says to
play around the order of some of the settings in the makefile.
Unfortunately, I have to work with a older version of RedHat on this
machine. RedHat v6.2.

Have you had any luck yet?

/dkm
- Original Message -
From: "Chris Mulcahy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 30, 2001 11:10 AM
Subject: RE: [PHP] Making gd Extensions


> So far, there have been no answers, so I'm guessing that either we're
> the only two receiving this or everyone who has received it has been
> unable to resolve the problem.
>
> My searches on Google have been unsuccessful so far.  There are quite a
> few reports of the problem, but no responses.
>
> If I learn anything, I'll be sure to let you know.
>
> Thanks
> Chris
>
> > -Original Message-
> > From: Dennis Moore [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 29, 2001 8:59 PM
> > To: Chris Mulcahy; [EMAIL PROTECTED]
> > Subject: Re: [PHP] Making gd Extensions
> >
> >
> > I am having a similar problem using gd-2.0.1 where the
> > compilation complains
> > about "conflicting type gdIOCtx".  I am getting a knot on my
> > forehead from
> > the wall in front of me.  Any ideas?
> >
> > /dkm
> >
> >
> >
> > - Original Message -
> > From: "Chris Mulcahy" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, August 29, 2001 9:31 AM
> > Subject: [PHP] Making gd Extensions
> >
> > >
> > > The current item I'm wrestling with is the gd extensions.
> > I've rebuilt
> > > PHP and Apache so many times to enable one feature only to
> > learn that I
> > > forgot to recompile one that I'd relied on previously.  It's a never
> > > ending battle to get all of the features required.
> > >
> > > The .so extensions option is a great feature that I'd like
> > to make use
> > > of.
> > >
> > > In trying to compile the gd .so extension (gd-1.8.4), I'm
> > receiving the
> > > following errors.  Any ideas?
> > >
> > > Thanks
> > > Chris Mulcahy
> > > ---
> > >
> > > Making all in ext
> > > make[1]: Entering directory
> > > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext'
> > > Making all in gd
> > > make[2]: Entering directory
> > > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
> > > make[3]: Entering directory
> > > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
> > > gcc  -I.
> > -I/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd -I/home/cm
> > > ulcahy/transfer/webserver/php-4.0.6/main
> > -I/home/cmulcahy/transfer/webse
> > > rver/php-4.0.6
> > -I/home/cmulcahy/transfer/webserver/php-4.0.6/Zend -I/hom
> > > e/cmulcahy/transfer/webserver/php-4.0.6/ext/mysql/libmysql
> > -I/home/cmulc
> > > ahy/transfer/webserver/php-4.0.6/ext/xml/expat/xmltok
> > -I/home/cmulcahy/t
> > > ransfer/webserver/php-4.0.6/ext/xml/expat/xmlparse
> > -I/home/cmulcahy/tran
> > > sfer/webserver/php-4.0.6/TSRM  -DSUPPORT_UTF8
> > -DXML_BYTE_ORDER=12 -g -O2
> > >   -c gd.c && touch gd.lo
> > > gd.c:95: conflicting types for `gdIOCtx'
> > > /usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'
> > > gd.c: In function `php_if_imagecreatefromgif':
> > > gd.c:1209: `gdImageCreateFromGif' undeclared (first use in this
> > > function)
> > > gd.c:1209: (Each undeclared identifier is reported only once
> > > gd.c:1209: for each function it appears in.)
> > > gd.c: In function `php_if_imagegif':
> > > gd.c:1404: `gdImageGif' undeclared (first use in this function)
> > > make[3]: *** [gd.lo] Error 1
> > > make[3]: Leaving directory
> > > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
> > > make[2]: *** [all-recursive] Error 1
> > > make[2]: Leaving directory
> > > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
> > > make[1]: *** [all-recursive] Error 1
> > > make[1]: Leaving directory
> > > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext'
> > > make: *** [all-recursive] Error 1
> > >
>
>
>
> --
> 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 Question: mysqldump via PHP

2001-09-04 Thread Sam Masiello


You could do:

"which mysqldump" (without the quotes, of course :) ).

This is provided that mysqldump is in your path (if you can enter just
"mysqldump" from the command line, then it is).

HTH

Sam Masiello
Software Quality Assurance Engineer
Synacor 
(716) 853-1362 X289
[EMAIL PROTECTED]


-Original Message-
From: Tony Frasketi [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, September 04, 2001 2:53 PM
To: Sam Masiello
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Newbie Question: mysqldump via PHP

Hi Sam
No I haven't tried this since I'm on a virtual server and don't know
where mysqldump is located. I tried doing a phpinfo() to see if I could
get the mysqldump location from there but I didn't see it in the mysql
section of the phpinfo listing. Do you know of a unix shell command I
could use to get the location of mysqldump?

Tony

Sam Masiello wrote:
> 
> Have you tried putting in the fully qualified pathname to the
mysqldump
> executable?
> 
> /usr/somepath/mysqldump  
> 
> HTH
> 
> Sam Masiello
> Software Quality Assurance Engineer
> Synacor
> (716) 853-1362 X289
> [EMAIL PROTECTED]
> 
> -Original Message-
> From: Tony Frasketi [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 04, 2001 2:28 PM
> To: Sam Masiello
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Newbie Question: mysqldump via PHP
> 
> Hi Sam
> Thanks for the reply. I had the permission set for 777 so that should
> allow access to the directory for writing from PHP, should it not?
> 
> Also I tried specifying >/tmp/db.dump in the command and had the tmp
> directory permission also set for 777 but still get same results. The
> file get written but it's still set to zero bytes.
> 
> Any other suggestions would be greatly appreciated.
> 
> Sam Masiello wrote:
> >
> > I would say that you have a permission problem with where PHP is
> trying
> > to write the file to.  Try outputting the file to /tmp/db.dump and
see
> > if you have the same problem.
> >
> > HTH
> >
> > Sam Masiello
> > Software Quality Assurance Engineer
> > Synacor
> > (716) 853-1362 X289
> > [EMAIL PROTECTED]
> >
> > -Original Message-
> > From: Tony Frasketi [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 04, 2001 1:56 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Newbie Question: mysqldump via PHP
> >
> > Hello listers
> >
> > I'm trying to implement a mySQL database dump via PHP4 on a unix
> system
> > as follows...
> >
> >--
> >$result = exec("mysqldump -umyname --password=mypassword
> >   tablename >db.dump",$xarray,$status);
> >echo "status[$status]";
> >--
> >
> > I get the following error PHP error message...
> >
> >status[127]
> >
> > and the file 'db.dump' has been created but it has 0 bytes.
> >
> >-rw-r--r-- 1 nobody nobody 0 Sep 4 13:27 db.dump
> >
> > Although I can execute the mysqldump program from the unix shell and
I
> > get...
> >
> >-rw-r--r-- 1 myname myname 23704 Sep 4 13:18 db.dump
> >
> > My questions are...
> >
> >  1. Can the mysqldump program be executed via PHP or not and if not
> > can you please explain why?
> >
> >  2. Is there another way of doing this via PHP?
> >
> > Thanks in advance
> > Tony Frasketi
> > P.S. Please answer direct, since I'm only subscribed to the digest.
> >
> > --
> > 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] Newbie Question: mysqldump via PHP

2001-09-04 Thread Jason Bell

the unix command to see where an executable is, is which. Example: "which
mysqldump"

- Original Message -
From: "Tony Frasketi" <[EMAIL PROTECTED]>
To: "Sam Masiello" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, September 04, 2001 11:53 AM
Subject: Re: [PHP] Newbie Question: mysqldump via PHP


> Hi Sam
> No I haven't tried this since I'm on a virtual server and don't know
> where mysqldump is located. I tried doing a phpinfo() to see if I could
> get the mysqldump location from there but I didn't see it in the mysql
> section of the phpinfo listing. Do you know of a unix shell command I
> could use to get the location of mysqldump?
>
> Tony
>
> Sam Masiello wrote:
> >
> > Have you tried putting in the fully qualified pathname to the mysqldump
> > executable?
> >
> > /usr/somepath/mysqldump  
> >
> > HTH
> >
> > Sam Masiello
> > Software Quality Assurance Engineer
> > Synacor
> > (716) 853-1362 X289
> > [EMAIL PROTECTED]
> >
> > -Original Message-
> > From: Tony Frasketi [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 04, 2001 2:28 PM
> > To: Sam Masiello
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Newbie Question: mysqldump via PHP
> >
> > Hi Sam
> > Thanks for the reply. I had the permission set for 777 so that should
> > allow access to the directory for writing from PHP, should it not?
> >
> > Also I tried specifying >/tmp/db.dump in the command and had the tmp
> > directory permission also set for 777 but still get same results. The
> > file get written but it's still set to zero bytes.
> >
> > Any other suggestions would be greatly appreciated.
> >
> > Sam Masiello wrote:
> > >
> > > I would say that you have a permission problem with where PHP is
> > trying
> > > to write the file to.  Try outputting the file to /tmp/db.dump and see
> > > if you have the same problem.
> > >
> > > HTH
> > >
> > > Sam Masiello
> > > Software Quality Assurance Engineer
> > > Synacor
> > > (716) 853-1362 X289
> > > [EMAIL PROTECTED]
> > >
> > > -Original Message-
> > > From: Tony Frasketi [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, September 04, 2001 1:56 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP] Newbie Question: mysqldump via PHP
> > >
> > > Hello listers
> > >
> > > I'm trying to implement a mySQL database dump via PHP4 on a unix
> > system
> > > as follows...
> > >
> > >--
> > >$result = exec("mysqldump -umyname --password=mypassword
> > >   tablename >db.dump",$xarray,$status);
> > >echo "status[$status]";
> > >--
> > >
> > > I get the following error PHP error message...
> > >
> > >status[127]
> > >
> > > and the file 'db.dump' has been created but it has 0 bytes.
> > >
> > >-rw-r--r-- 1 nobody nobody 0 Sep 4 13:27 db.dump
> > >
> > > Although I can execute the mysqldump program from the unix shell and I
> > > get...
> > >
> > >-rw-r--r-- 1 myname myname 23704 Sep 4 13:18 db.dump
> > >
> > > My questions are...
> > >
> > >  1. Can the mysqldump program be executed via PHP or not and if not
> > > can you please explain why?
> > >
> > >  2. Is there another way of doing this via PHP?
> > >
> > > Thanks in advance
> > > Tony Frasketi
> > > P.S. Please answer direct, since I'm only subscribed to the digest.
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] Newbie Question: mysqldump via PHP

2001-09-04 Thread Alexander Skwar

So sprach »Tony Frasketi« am 2001-09-04 um 13:53:10 -0500 :
> section of the phpinfo listing. Do you know of a unix shell command I
> could use to get the location of mysqldump?

which mysqldump

this should tell you.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 1 day 12 hours 0 minutes

--
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 and Perl

2001-09-04 Thread Valter Santos


try use redirections.

e.g, call your php script that redirects to your pl script with all required
parameters that redirects for a resulting php script... arrrgg

but i think the better way is to convert everthing to PHP or Perl

Cheers


Valter Santos
WEB/WAP Consultant



> -Original Message-
> From: Jarosław Jankowski [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 04, 2001 8:35 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP and Perl
>
>
> Hi,
> I have something like this in the script :
>  header("Content-Type: application/force-download");
> header("Content-Disposition:filename=$clientname.xls");
> set_time_limit(180);
> passthru("d:\\perl\\bin\\perl.exe test2.pl $var  \"$query\"
> \"$query1\"");
> exit;
> ?>
>  Perl script is generating Excel file.
> My question is :
> How to do it in PHP (maybe javascript) that after sending data to
> this script first I will have window with something like " Wait,
> generating file"
> and when perl script is done another window with link to
> generated file?
> Any suggestions ?
> Thx in advance.
> jarek
>
>
>
> --
> 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 Stress Testing.

2001-09-04 Thread Andy Woolley

Thanks Michael,

What I'm after is how well PHP can handle load, I know it's quick, I've
tested it and I have to say that the results are somewhat interesting.

But, what I can't test properly is how it handles hundreds, even thousands
of simultaneous connections.

I know that the above is probably more to do with the web server but I want
to prove a point that PHP is not the "fly by night" software that some
people are saying it is.

I know it's good, but, I need to show just how good it can be.

I then want to publish the results for all to see.

Still interested?

Andy.

- Original Message -
From: "Michael Kimsal" <[EMAIL PROTECTED]>
To: "Andy Woolley" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, September 04, 2001 6:56 PM
Subject: Re: [PHP] PHP Stress Testing.


> Goalposts change.
>
> The zdnet eweek article from last november showed PHP being *THE* fastest
> between JSP, ASP, CF and PHP.  PHP was 47 pages/second.  ASP was 43, CF
> was 25 or 26, and JSP was 13.  The benchmark was a ecommerce store  -
> each system had functionally equivalent code, and ran on the same
hardware.
>
> CF got 'top honors' because of its 'ease of use'.  PHP was hands down
> faster
> than everything else.  ASP was close, and became way faster when MS
rewrote
> the code, but I suspect someone rewriting the PHP could have optimized
> it to see
> a 100% improvement as well.
>
> Part of the point here is that people will knock it for any reason they
> can,
> even if they don't know any better.  We have a client (running PHP) who
> was in
> a meeting with one of their clients.  Trying to demo a new service, they
> went to
> his site, which was responding very slowly (turns out there was some
> routing
> problems along the way  - I *think* in the client's own office).  Their
> "IT" guy
> (to use the term loosely) noticed the ".php" and said "Oh well, there's
> your problem -
> PHP isn't multithreaded - of course it's going to run really slow.  You
> should use our
> __ system" (I forget if it was Java or MS).  The guy was full of it,
> but
> everyone in the meeting got the impression that PHP sucked and was slow
> because it's not "multithreaded" (as if ANYONE in that room, including
that
> dweeb, even understood the term, much less it's impact on performance).
>
> So what do you want to benchmark?  Whatever it is, you really should get
> others from
> other camps to develop similar code - get an ASP person (who is good) to
> write a similar
> app, do the same with Java, etc.  If you want to contact me privately, I
> would
> be interested in discussing this further (organizing, etc)
>
>
>
> Andy Woolley wrote:
>
> >Guys,
> >
> >Has anyone ever tested PHP, MySQL on Apache to see just how well it will
> >work when put under serious pressure.
> >
> >Seems that people all over the world are saying how PHP doesnt cut it
when
> >pushed to the limit, question is what is the limit?
> >
> >Anyone interested in setting up a stress test, to try and prove how good
PHP
> >really is.
> >
> >Andy.
> >
> >
>
>



-- 
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] In Need of...

2001-09-04 Thread chicago23f

Hello,

This message is being sent to you because you either sent / or requested
this information from me.  We are offering a full or part-time position using our
program.  You can work at home.  I do require that you have a computer and 
are familar with internet/email functions.  As to the salary, that is totally up to
you, as you will be running your own business.  The sky is the limit!  What you
will see represents a totally legal money making business that anyone can do.
You will receive full instructions, and we will always be available to help you 
and answer your questions.  This is a genuine home business.  This is not a 
chain letter, money game, telecom scheme, or any of the multitudes of dubious
"business" offers that come through your emailbox.  This business will generate
an income of $2,000 to $6,000 every month with a part-time commitment.  We do
not make promises that we cannot keep so that is why we GUARANTEE that 
you will make money with our program.  If the above opportunity interestes you 
in the least, and you would like more information about our business, please
contact our customer service department at [EMAIL PROTECTED]
and type "Send Info" in the subject line.  Insert your name with your correct 
email address.  We are successful ONLY if YOU are successful, and therefore
we will do everything in our power to ensure that your relationship with us is a
profitable and successful one.  We look forward to your response.

Best Reguards,
Customer Service
J&H Marketing

[EMAIL PROTECTED]


This message is being sent in compliance with the new e-mail bill: Section 301.
Per section 301, paragraph (a)(2)(c) of S. 1618, http://www.senate.gov/
~murkowski/commercialemail/S771index.html  Further transmissions to you by
the sender of this email may be stopped at no cost to you by sending a reply to
this email address with the word "remove" in the subject line.

-- 
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] FULLTEXT search sorting results

2001-09-04 Thread BRACK

Actually it doesn't matter '&&' or 'and' they are equal but I found a 
solution - I just took away conditions and put this instead

$relev = "$title_search+$descr_search+$act_search";
 $result =  mysql_query("SELECT skits.*,category.*,match 
(skits.title,skits.descr,skits.skits) against ('$relev') as relevance 
from skits,category where (skits.title like '%$title_search%' and 
skits.descr like '%$descr_search%' and skits.skits like 
'%$act_search%' and skits.lang like '%$lang_search%' and 
category.kat_name like '%$category_search%') and 
(skits.category like category.cat_id) ORDER by relevance desc 
limit $limit,10");

Works fine, (I actually changed '&&' with 'and' as you see)

Youri

> On Mon, 3 Sep 2001 19:33:38 +0200, BRACK ([EMAIL PROTECTED]) wrote:
> >$result =  mysql_query("SELECT skits.*,category.*,match
> >(skits.title,skits.descr,skits.skits) against ('$relev') as  from 
> 
> oops, should be 'against ('$relev') as relevance from' 
> 
> >skits,category where (skits.title like '%$title_search%' && 
> 
> use 'and' instead of &&
> 
> >skits.descr like '%$descr_search%' && skits.skits like 
> >'%$act_search%' && skits.lang like '%$lang_search%' && 
> >category.kat_name like '%$category_search%') and 
> >(skits.category like category.cat_id) ORDER by relevance desc 
> >limit $limit,10"); 
> 
> 


<>< <>< <>< <>< God is our provider ><> ><> ><> ><> 
http://www.body-builders.org

-- 
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 Question: mysqldump via PHP

2001-09-04 Thread Tony Frasketi

Hi Sam
Thanks to suggestions from jason, Alexander, and yourself I tried the
unix which command and found that mysqldump was located at...

   /usr/bin/ directory

And I changed my exec command to include this directory but alas, the
results were the same.

Is it possible that the mysqldump command cannot be run from PHP under
user nobody?

Still appreciative of any other ideas I can try!
Tony F.

Sam Masiello wrote:
> 
> Have you tried putting in the fully qualified pathname to the mysqldump
> executable?
> 
> /usr/somepath/mysqldump  
> 
> HTH
> 
> Sam Masiello
> Software Quality Assurance Engineer
> Synacor
> (716) 853-1362 X289
> [EMAIL PROTECTED]
> 
> -Original Message-
> From: Tony Frasketi [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 04, 2001 2:28 PM
> To: Sam Masiello
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Newbie Question: mysqldump via PHP
> 
> Hi Sam
> Thanks for the reply. I had the permission set for 777 so that should
> allow access to the directory for writing from PHP, should it not?
> 
> Also I tried specifying >/tmp/db.dump in the command and had the tmp
> directory permission also set for 777 but still get same results. The
> file get written but it's still set to zero bytes.
> 
> Any other suggestions would be greatly appreciated.
> 
> Sam Masiello wrote:
> >
> > I would say that you have a permission problem with where PHP is
> trying
> > to write the file to.  Try outputting the file to /tmp/db.dump and see
> > if you have the same problem.
> >
> > HTH
> >
> > Sam Masiello
> > Software Quality Assurance Engineer
> > Synacor
> > (716) 853-1362 X289
> > [EMAIL PROTECTED]
> >
> > -Original Message-
> > From: Tony Frasketi [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 04, 2001 1:56 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Newbie Question: mysqldump via PHP
> >
> > Hello listers
> >
> > I'm trying to implement a mySQL database dump via PHP4 on a unix
> system
> > as follows...
> >
> >--
> >$result = exec("mysqldump -umyname --password=mypassword
> >   tablename >db.dump",$xarray,$status);
> >echo "status[$status]";
> >--
> >
> > I get the following error PHP error message...
> >
> >status[127]
> >
> > and the file 'db.dump' has been created but it has 0 bytes.
> >
> >-rw-r--r-- 1 nobody nobody 0 Sep 4 13:27 db.dump
> >
> > Although I can execute the mysqldump program from the unix shell and I
> > get...
> >
> >-rw-r--r-- 1 myname myname 23704 Sep 4 13:18 db.dump
> >
> > My questions are...
> >
> >  1. Can the mysqldump program be executed via PHP or not and if not
> > can you please explain why?
> >
> >  2. Is there another way of doing this via PHP?
> >
> > Thanks in advance
> > Tony Frasketi
> > P.S. Please answer direct, since I'm only subscribed to the digest.
> >
> > --
> > 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] adding functions to a class

2001-09-04 Thread Jeroen Olthof

hi,

picture I have a class with some variable holding the information of this
class. Now there are some functions to manipulate the vars. well, you nou
what classes are about. but now I want to add functions that are located in
a different php file. but this functions need to use the the var of the
class.

bassicly what a want is extends the original class with more functionalities
like. you could see it as adding plug-ins in a program. So I don't want to
just copy past the functions in the original class file.

class a {

var VAR1
var VAR2
var VAR3

require(morefunctions.php);

function a($param) {
..
}

function test2($param) {
..
}
}

the require(morefunctions.php); will ofcource not work but bassicly this is
what I want. en all the functions added should be able to use VAR1 VAR2 VAR3
(and the other functions that are allready in the class)

is there a why to do this ??

kind regards
Jeroen Olthof



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

2001-09-04 Thread Jeremy Morano

Hello everyone, I'm having a problem with my option block... I'm trying to
pass the value of uid to the next page. I always get the last uid value in
table user. How can I change this so I get to pass the value of the user's
choice?




$sql = "SELECT user.uid, user.first_name, user.last_name
FROM user, company
Where company.uid = user.companyUid and company.company = '$PHP_AUTH_USER'
ORDER BY last_name
";



$result = @mysql_query($sql,$connection) or die("Couldn't execute query.");


while ($row = mysql_fetch_array($result)) {
$uid = $row['uid'];
$first_name = $row['first_name'];
$last_name = $row['last_name'];

$option_block .= "$last_name, $first_name";
}

$display_block = "



User:

$option_block





";


-- 
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 Question: mysqldump via PHP

2001-09-04 Thread Jason Bell

Have you tried storing the mysqldump output to a string and then using PHP
to open a file, dump the string into the file, and then close the file?

Might work that way...

- Original Message -
From: "Tony Frasketi" <[EMAIL PROTECTED]>
To: "Sam Masiello" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, September 04, 2001 12:39 PM
Subject: Re: [PHP] Newbie Question: mysqldump via PHP


> Hi Sam
> Thanks to suggestions from jason, Alexander, and yourself I tried the
> unix which command and found that mysqldump was located at...
>
>/usr/bin/ directory
>
> And I changed my exec command to include this directory but alas, the
> results were the same.
>
> Is it possible that the mysqldump command cannot be run from PHP under
> user nobody?
>
> Still appreciative of any other ideas I can try!
> Tony F.
>
> Sam Masiello wrote:
> >
> > Have you tried putting in the fully qualified pathname to the mysqldump
> > executable?
> >
> > /usr/somepath/mysqldump  
> >
> > HTH
> >
> > Sam Masiello
> > Software Quality Assurance Engineer
> > Synacor
> > (716) 853-1362 X289
> > [EMAIL PROTECTED]
> >
> > -Original Message-
> > From: Tony Frasketi [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 04, 2001 2:28 PM
> > To: Sam Masiello
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Newbie Question: mysqldump via PHP
> >
> > Hi Sam
> > Thanks for the reply. I had the permission set for 777 so that should
> > allow access to the directory for writing from PHP, should it not?
> >
> > Also I tried specifying >/tmp/db.dump in the command and had the tmp
> > directory permission also set for 777 but still get same results. The
> > file get written but it's still set to zero bytes.
> >
> > Any other suggestions would be greatly appreciated.
> >
> > Sam Masiello wrote:
> > >
> > > I would say that you have a permission problem with where PHP is
> > trying
> > > to write the file to.  Try outputting the file to /tmp/db.dump and see
> > > if you have the same problem.
> > >
> > > HTH
> > >
> > > Sam Masiello
> > > Software Quality Assurance Engineer
> > > Synacor
> > > (716) 853-1362 X289
> > > [EMAIL PROTECTED]
> > >
> > > -Original Message-
> > > From: Tony Frasketi [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, September 04, 2001 1:56 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP] Newbie Question: mysqldump via PHP
> > >
> > > Hello listers
> > >
> > > I'm trying to implement a mySQL database dump via PHP4 on a unix
> > system
> > > as follows...
> > >
> > >--
> > >$result = exec("mysqldump -umyname --password=mypassword
> > >   tablename >db.dump",$xarray,$status);
> > >echo "status[$status]";
> > >--
> > >
> > > I get the following error PHP error message...
> > >
> > >status[127]
> > >
> > > and the file 'db.dump' has been created but it has 0 bytes.
> > >
> > >-rw-r--r-- 1 nobody nobody 0 Sep 4 13:27 db.dump
> > >
> > > Although I can execute the mysqldump program from the unix shell and I
> > > get...
> > >
> > >-rw-r--r-- 1 myname myname 23704 Sep 4 13:18 db.dump
> > >
> > > My questions are...
> > >
> > >  1. Can the mysqldump program be executed via PHP or not and if not
> > > can you please explain why?
> > >
> > >  2. Is there another way of doing this via PHP?
> > >
> > > Thanks in advance
> > > Tony Frasketi
> > > P.S. Please answer direct, since I'm only subscribed to the digest.
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




[PHP] system() vs exec()

2001-09-04 Thread Zhu George-CZZ010

The system() call will flush the headers to the client while exec() won't, but exec() 
won't wait until the system call is over.

Is there a way to make a system call, and wait until it ends, but don't send the 
headers to the client?

Thanks.

-- 
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 ?: form mailer not working

2001-09-04 Thread Michelle Marcicki

Hi all...

Having problems with some php3 to php4 stuff..  the site has a form that has 
been setup to ask questions outside our discussion forums.  

The form.html contains 

The questionmailer code is as below.  I have only changed the email addy and the 
file extension from .php3 to .php on the questionmailer file and the .php 
(above) in the form.html page.  I have checked the php on-line manual, but can 
find nothing that fits my problems or errors.

I am getting: 
1) Warning: Unexpected character in input: '\' (ASCII=92) state=1 in 
/usr/home/blah/html/util/questionmailer.php on line 24
2) Parse error: parse error in /usr/home/erc/html/util/questionmailer.php on 
line 24

Line 24 in my code is:  mailto:[EMAIL PROTECTED]\%22";>


//questionmailer.php code


mailto:[EMAIL PROTECTED]\%22";>
the forum administrator"); 
} 
?> 



Is there something I'm missing here?  
(I am coming from an ASP background, with VB and some C++ knowledge, so it all 
looks familiar, I am just trying to sort out syntax and think it must be that 
type of error.  I didn't write the original code, just trying to fix it all :)

TIA.
Michelle


-- 
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 Question: mysqldump via PHP

2001-09-04 Thread Tony Frasketi

Hi Jason
No, but I have taken the output from $xarray ...

--
$result = exec("mysqldump -umyname --password=mypassword
   tablename >db.dump",$xarray,$status);
echo "status[$status]";

$count = count($xarray);
echo "result of dump[$result] status[$status]";
for($j=0; $j<$count;$j++) 
echo "$j: $xarray[$j]";
--

which, according to the PHP exec command, is supposed to return all the
output from the mysqldump command. 

The resulting output is not what I expected. Instead of the database
dump, all I get is what appears to be the mysqldump help information.
I'm confused!

Output of dump follows SORRY FOR the length of this

result of dump[net_buffer_length current value: 1047551] status[127]
0: /usr/bin/mysqldump Ver 8.14 Distrib 3.23.40, for pc-linux-gnu (i686)

1: By Igor Romanenko, Monty, Jani & Sinisa

2: This software comes with ABSOLUTELY NO WARRANTY. This is free
software,

3: and you are welcome to modify and redistribute it under the GPL
license

4: 

5: Dumping definition and data mysql database or table

6: Usage: /usr/bin/mysqldump [OPTIONS] database [tables]

7: OR /usr/bin/mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2
DB3...]

8: OR /usr/bin/mysqldump [OPTIONS] --all-databases [OPTIONS]

9: 

10: -A, --all-databases Dump all the databases. This will be same as

11: --databases with all databases selected.

12: -a, --all Include all MySQL specific create options.

13: -#, --debug=... Output debug log. Often this is 'd:t:o,filename`.

14: --character-sets-dir=...

15: Directory where character sets are

16: -?, --help Display this help message and exit.

17: -B, --databases To dump several databases. Note the difference in

18: usage; In this case no tables are given. All name

19: arguments are regarded as databasenames.

20: 'USE db_name;' will be included in the output

21: -c, --complete-insert Use complete insert statements.

22: -C, --compress Use compression in server/client protocol.

23: --default-character-set=...

24: Set the default character set

25: -e, --extended-insert Allows utilization of the new, much faster

26: INSERT syntax.

27: --add-drop-table Add a 'drop table' before each create.

28: --add-locks Add locks around insert statements.

29: --allow-keywords Allow creation of column names that are keywords.

30: --delayed-insert Insert rows with INSERT DELAYED.

31: -F, --flush-logs Flush logs file in server before starting dump.

32: -f, --force Continue even if we get an sql-error.

33: -h, --host=... Connect to host.

34: -l, --lock-tables Lock all tables for read.

35: -n, --no-create-db 'CREATE DATABASE /*!32312 IF NOT EXISTS*/
db_name;'

36: will not be put in the output. The above line will

37: be added otherwise, if --databases or

38: --all-databases option was given.

39: -t, --no-create-info Don't write table creation info.

40: -d, --no-data No row information.

41: -O, --set-variable var=option

42: give a variable a value. --help lists variables

43: --opt Same as --add-drop-table --add-locks --all

44: --extended-insert --quick --lock-tables

45: -p, --password[=...] Password to use when connecting to server.

46: If password is not given it's solicited on the tty.

47: 

48: -P, --port=... Port number to use for connection.

49: -q, --quick Don't buffer query, dump directly to stdout.

50: -Q, --quote-names Quote table and column names with `

51: -r, --result-file=... Direct output to a given file. This option
should be

52: used in MSDOS, because it prevents new line '\n'

53: from being converted to '\n\r' (newline + carriage

54: return).

55: -S, --socket=... Socket file to use for connection.

56: --tables Overrides option --databases (-B).

57: -T, --tab=... Creates tab separated textfile for each table to

58: given path. (creates .sql and .txt files).

59: NOTE: This only works if mysqldump is run on

60: the same machine as the mysqld daemon.

61: -u, --user=# User for login if not current user.

62: -v, --verbose Print info about the various stages.

63: -V, --version Output version information and exit.

64: -w, --where= dump only selected records; QUOTES mandatory!

65: EXAMPLES: "--where=user='jimf'" "-wuserid>1" "-wuserid<1"

66: Use -T (--tab=...) with --fields-...

67: --fields-terminated-by=...

68: Fields in the textfile are terminated by ...

69: --fields-enclosed-by=...

70: Fields in the importfile are enclosed by ...

71: --fields-optionally-enclosed-by=...

72: Fields in the i.file are opt. enclosed by ...

73: --fields-escaped-by=...

74: Fields in the i.file are escaped by ...

75: --lines-terminated-by=...

76: Lines in the i.file are terminated by ...

77: 

78: Default options are read from the following files in the given
order:

79: /etc/my.cnf /var/lib/mysql/my.cnf ~/.my.cnf

80: The following groups are r

RE: [PHP] adding functions to a class

2001-09-04 Thread Boget, Chris

> the require(morefunctions.php); will ofcource not work but 
> bassicly this is what I want. en all the functions added should 
> be able to use VAR1 VAR2 VAR3 (and the other functions that 
> are allready in the class)
> is there a why to do this ??

Yes, there is.  
Go here:

http://www.php.net/manual/en/language.oop.php

Chris



RE: [PHP] Making gd Extensions

2001-09-04 Thread Chris Mulcahy

Dennis:

Unfortunately, no, I have not had any luck or even any responses to my
email.

I have officially given up on PHP and have banned it from any system I
administer due to problems such as this.  Once you get past the mod_perl
compiling with Apache, all is well with Perl and extending it is easier.

Too bad, really, because PHP is an elegant language that is easy to
develop in.  Compiling extensions, however, is an entirely different
matter.

I wish you luck, if/when you resolve the problem, please be sure to post
the solution, there are still several unanswered requests for assistance
in the Google/Dejanews archives for this exact problem.

Good luck and happy programming!
Chris Mulcahy

> -Original Message-
> From: Dennis Moore [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 04, 2001 2:00 PM
> To: Chris Mulcahy; [EMAIL PROTECTED]
> Subject: Re: [PHP] Making gd Extensions
>
>
> The problem I had was with the compilation of the gd program.
>  I installed
> an RPM version of gd from Redhat and recompiled.  It worked
> like a charm on
> RedHat v7.0.
>
> I am still working on the tarball version of gd.  The
> documentation says to
> play around the order of some of the settings in the makefile.
> Unfortunately, I have to work with a older version of RedHat on this
> machine. RedHat v6.2.
>
> Have you had any luck yet?
>
> /dkm
> - Original Message -
> From: "Chris Mulcahy" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, August 30, 2001 11:10 AM
> Subject: RE: [PHP] Making gd Extensions
>
>
> > So far, there have been no answers, so I'm guessing that
> either we're
> > the only two receiving this or everyone who has received it has been
> > unable to resolve the problem.
> >
> > My searches on Google have been unsuccessful so far.  There
> are quite a
> > few reports of the problem, but no responses.
> >
> > If I learn anything, I'll be sure to let you know.
> >
> > Thanks
> > Chris
> >
> > > -Original Message-
> > > From: Dennis Moore [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, August 29, 2001 8:59 PM
> > > To: Chris Mulcahy; [EMAIL PROTECTED]
> > > Subject: Re: [PHP] Making gd Extensions
> > >
> > >
> > > I am having a similar problem using gd-2.0.1 where the
> > > compilation complains
> > > about "conflicting type gdIOCtx".  I am getting a knot on my
> > > forehead from
> > > the wall in front of me.  Any ideas?
> > >
> > > /dkm
> > >
> > >
> > >
> > > - Original Message -
> > > From: "Chris Mulcahy" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, August 29, 2001 9:31 AM
> > > Subject: [PHP] Making gd Extensions
> > >
> > > >
> > > > The current item I'm wrestling with is the gd extensions.
> > > I've rebuilt
> > > > PHP and Apache so many times to enable one feature only to
> > > learn that I
> > > > forgot to recompile one that I'd relied on previously.
> It's a never
> > > > ending battle to get all of the features required.
> > > >
> > > > The .so extensions option is a great feature that I'd like
> > > to make use
> > > > of.
> > > >
> > > > In trying to compile the gd .so extension (gd-1.8.4), I'm
> > > receiving the
> > > > following errors.  Any ideas?
> > > >
> > > > Thanks
> > > > Chris Mulcahy
> > > > ---
> > > >
> > > > Making all in ext
> > > > make[1]: Entering directory
> > > > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext'
> > > > Making all in gd
> > > > make[2]: Entering directory
> > > > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
> > > > make[3]: Entering directory
> > > > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
> > > > gcc  -I.
> > > -I/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd -I/home/cm
> > > > ulcahy/transfer/webserver/php-4.0.6/main
> > > -I/home/cmulcahy/transfer/webse
> > > > rver/php-4.0.6
> > > -I/home/cmulcahy/transfer/webserver/php-4.0.6/Zend -I/hom
> > > > e/cmulcahy/transfer/webserver/php-4.0.6/ext/mysql/libmysql
> > > -I/home/cmulc
> > > > ahy/transfer/webserver/php-4.0.6/ext/xml/expat/xmltok
> > > -I/home/cmulcahy/t
> > > > ransfer/webserver/php-4.0.6/ext/xml/expat/xmlparse
> > > -I/home/cmulcahy/tran
> > > > sfer/webserver/php-4.0.6/TSRM  -DSUPPORT_UTF8
> > > -DXML_BYTE_ORDER=12 -g -O2
> > > >   -c gd.c && touch gd.lo
> > > > gd.c:95: conflicting types for `gdIOCtx'
> > > > /usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'
> > > > gd.c: In function `php_if_imagecreatefromgif':
> > > > gd.c:1209: `gdImageCreateFromGif' undeclared (first use in this
> > > > function)
> > > > gd.c:1209: (Each undeclared identifier is reported only once
> > > > gd.c:1209: for each function it appears in.)
> > > > gd.c: In function `php_if_imagegif':
> > > > gd.c:1404: `gdImageGif' undeclared (first use in this function)
> > > > make[3]: *** [gd.lo] Error 1
> > > > make[3]: Leaving directory
> > > > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
> > > > make[2]: *** [all-recursive] Error 1
> > > > make[2]: Leaving directory
> > > > `/home/cmulcahy/tr

[PHP] Re: Another script doesnt work!

2001-09-04 Thread J Smith

Just out of curiosity, are you going to be posting every time you have a 
syntax error?

As for this error, it's likely a combination of:

1. not having either single or double quotation marks around the string 
literal; or

2. If that line isn't the last line in a php block, it needs a semi-colon 
at the end.

So, try...

$message = "blah!!";

J


Kyle Smith wrote:

> And this time its not because of a dot, someone please help!
> 
> Parse error: parse error in
> /web/sites/197/lk6/www.stupeedstudios.f2s.com/dannys/sendform.php on line
> 22
> 
> line 22 is $message = blah!!
> 
>  $addresses = "[EMAIL PROTECTED]";
> $subject = "Cam Application";
> $line = "\r\n"
> $message = $name. $line. $email. $line. $bestbritish. $line.
> $bestcharacterinbrit. $line. $bestyank. $line. $bestcharacterinyank.
> $line. $bestsketch. $line. $bestanimation. $line. $bestcomedyfilm. $line.
> $bestfilmchar. $line. $bestquiz. $line. $worstsitcom. $line. $comments; ?>
> 
> 
> -lk6-
> http://www.StupeedStudios.f2s.com
> Home of the burning lego man!
> 
> ICQ: 115852509
> MSN: [EMAIL PROTECTED]
> AIM: legokiller666


-- 
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] Making gd Extensions

2001-09-04 Thread Matthew Loff


Banning PHP from your system just because GD won't compile with it seems
a bit drastic...

You have to realize that the PHP developers don't really have anything
to do with GD, pdflib, etc... they have added support for them into the
PHP language, but an issue with one of these external libraries isn't
the fault of the PHP group.

I have encountered LOTS of problems getting GD to compile into PHP, and
every single time, it turned out to be a problem with how GD was
installed.

If you find Perl more useful, then more power to you, each language has
its strong points and issues... But your slandering of PHP is really
unnecessary.


-Original Message-
From: Chris Mulcahy [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, September 04, 2001 4:34 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Making gd Extensions


Dennis:

Unfortunately, no, I have not had any luck or even any responses to my
email.

I have officially given up on PHP and have banned it from any system I
administer due to problems such as this.  Once you get past the mod_perl
compiling with Apache, all is well with Perl and extending it is easier.

Too bad, really, because PHP is an elegant language that is easy to
develop in.  Compiling extensions, however, is an entirely different
matter.

I wish you luck, if/when you resolve the problem, please be sure to post
the solution, there are still several unanswered requests for assistance
in the Google/Dejanews archives for this exact problem.

Good luck and happy programming!
Chris Mulcahy

> -Original Message-
> From: Dennis Moore [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 04, 2001 2:00 PM
> To: Chris Mulcahy; [EMAIL PROTECTED]
> Subject: Re: [PHP] Making gd Extensions
>
>
> The problem I had was with the compilation of the gd program.
>  I installed
> an RPM version of gd from Redhat and recompiled.  It worked
> like a charm on
> RedHat v7.0.
>
> I am still working on the tarball version of gd.  The
> documentation says to
> play around the order of some of the settings in the makefile.
> Unfortunately, I have to work with a older version of RedHat on this
> machine. RedHat v6.2.
>
> Have you had any luck yet?
>
> /dkm
> - Original Message -
> From: "Chris Mulcahy" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, August 30, 2001 11:10 AM
> Subject: RE: [PHP] Making gd Extensions
>
>
> > So far, there have been no answers, so I'm guessing that
> either we're
> > the only two receiving this or everyone who has received it has been
> > unable to resolve the problem.
> >
> > My searches on Google have been unsuccessful so far.  There
> are quite a
> > few reports of the problem, but no responses.
> >
> > If I learn anything, I'll be sure to let you know.
> >
> > Thanks
> > Chris
> >
> > > -Original Message-
> > > From: Dennis Moore [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, August 29, 2001 8:59 PM
> > > To: Chris Mulcahy; [EMAIL PROTECTED]
> > > Subject: Re: [PHP] Making gd Extensions
> > >
> > >
> > > I am having a similar problem using gd-2.0.1 where the
> > > compilation complains
> > > about "conflicting type gdIOCtx".  I am getting a knot on my
> > > forehead from
> > > the wall in front of me.  Any ideas?
> > >
> > > /dkm
> > >
> > >
> > >
> > > - Original Message -
> > > From: "Chris Mulcahy" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, August 29, 2001 9:31 AM
> > > Subject: [PHP] Making gd Extensions
> > >
> > > >
> > > > The current item I'm wrestling with is the gd extensions.
> > > I've rebuilt
> > > > PHP and Apache so many times to enable one feature only to
> > > learn that I
> > > > forgot to recompile one that I'd relied on previously.
> It's a never
> > > > ending battle to get all of the features required.
> > > >
> > > > The .so extensions option is a great feature that I'd like
> > > to make use
> > > > of.
> > > >
> > > > In trying to compile the gd .so extension (gd-1.8.4), I'm
> > > receiving the
> > > > following errors.  Any ideas?
> > > >
> > > > Thanks
> > > > Chris Mulcahy
> > > > ---
> > > >
> > > > Making all in ext
> > > > make[1]: Entering directory
> > > > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext'
> > > > Making all in gd
> > > > make[2]: Entering directory
> > > > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
> > > > make[3]: Entering directory
> > > > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
> > > > gcc  -I.
> > > -I/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd -I/home/cm
> > > > ulcahy/transfer/webserver/php-4.0.6/main
> > > -I/home/cmulcahy/transfer/webse
> > > > rver/php-4.0.6
> > > -I/home/cmulcahy/transfer/webserver/php-4.0.6/Zend -I/hom
> > > > e/cmulcahy/transfer/webserver/php-4.0.6/ext/mysql/libmysql
> > > -I/home/cmulc
> > > > ahy/transfer/webserver/php-4.0.6/ext/xml/expat/xmltok
> > > -I/home/cmulcahy/t
> > > > ransfer/webserver/php-4.0.6/ext/xml/expat/xmlparse
> > > -I/home/cmulcahy/tran
> > > > sfer/webserver/php-4.0.6/TSRM  -DSUPP

Re: [PHP] adding functions to a class

2001-09-04 Thread Sean C. McCarthy

Hi,

What you are looking for is the OOP class extension. Look for "extends".

Sean C. McCarthy
SCI, S.L. (www.sci-spain.com)


Jeroen Olthof wrote:
> 
> hi,
> 
> picture I have a class with some variable holding the information of this
> class. Now there are some functions to manipulate the vars. well, you nou
> what classes are about. but now I want to add functions that are located in
> a different php file. but this functions need to use the the var of the
> class.
> 
> bassicly what a want is extends the original class with more functionalities
> like. you could see it as adding plug-ins in a program. So I don't want to
> just copy past the functions in the original class file.
> 
> class a {
> 
> var VAR1
> var VAR2
> var VAR3
> 
> require(morefunctions.php);
> 
> function a($param) {
> ..
> }
> 
> function test2($param) {
> ..
> }
> }
> 
> the require(morefunctions.php); will ofcource not work but bassicly this is
> what I want. en all the functions added should be able to use VAR1 VAR2 VAR3
> (and the other functions that are allready in the class)
> 
> is there a why to do this ??
> 
> kind regards
> Jeroen Olthof
> 
> --
> 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: problem with ereg() and ereg_replace()

2001-09-04 Thread Alex Shi

Yes, you are right, when add backslashes it works. But I really
don't understand why ereg()/ereg_replace behaves differently on
different servers...

Alex


- Original Message -
From: "CC Zona" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 01, 2001 11:59 PM
Subject: [PHP] Re: problem with ereg() and ereg_replace()


> In article <01b201c13354$0ca601c0$0105050a@pony>,
>  [EMAIL PROTECTED] (Stonix) wrote:
>
> > ereg_replace( "{key}", "word", $a_string);
> >
> > The web server will return following warnning msg:
> >
> > Warning: Invalid content of \{\} in /var/www/html/scrip.php on line #
>
> In regex, the curly braces are special characters used to define the
number
> of repetitions to be matched, either as an exact number or as a range.
>
> "a{2}" #"aa"
> "abc(2,3}" #"abcabc" or "abcabcabc"
> "abc{,2}" #"","abc", or "abcabc"
>
> Are you trying to match the literal string "{key}"?  'Cuz if so, you might
> as well just use str_replace since you're not really in need of ereg_*'s
> special pattern matching.  If you're trying to match a special character
> with a regex, don't forget to either escape it or put it in a character
> class:
>
> ereg_replace( "\{key\}", "word", $a_string);
> ereg_replace( "[{]key[}]", "word", $a_string);
>
> --
> CC
>
> --
> 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] Engine Question

2001-09-04 Thread PHP List

Thanks,
The manual doesn't really make it clear though, all it says is:
This sets the value of the specified variable.

php_flag name on|off

And then it later it says:

engine boolean

This directive is really only useful in the Apache module version of PHP. It
is used by sites that would like to turn PHP parsing on and off on a
per-directory or per-virtual server basis. By putting engine off in the
appropriate places in the httpd.conf file, PHP can be enabled or disabled.



Kind of misleading that last part.

- Original Message -
From: "Steve Edberg" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>; "php" <[EMAIL PROTECTED]>
Sent: Tuesday, September 04, 2001 11:52 AM
Subject: Re: [PHP] Engine Question


> PHP4's configuration syntax has changed; see
>
> http://www.php.net/manual/en/configuration.php
>
> Try using the line
>
> php_flag engine on
>
>
> -steve
>
>
> At 11:35 AM -0700 9/4/01, PHP List wrote:
> >Hi,
> >I am trying to update my server to php4. Everything seemd to compile
fine.
> >httpd -l shows mod_php4.c in the list.
> >
> >I used to use these entries in my httpd.conf to specifically turn
> >php on in certain dirs instead of default on for everyting.
> >
> >
> >php3_engine on
> >
> >
> >But I cannot find a combo that works now, I allways get an error.
> >How do I do this with php4?
>
> --
> + Open source questions? +
> | Steve Edberg   University of California, Davis |
> | [EMAIL PROTECTED]   Computer Consultant |
> | http://aesric.ucdavis.edu/  http://pgfsun.ucdavis.edu/ |
> +--- http://pgfsun.ucdavis.edu/open-source-tools.html ---+
>
> --
> 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] Making gd Extensions

2001-09-04 Thread Rasmus Lerdorf

That's quite a rational response...

The most common problem people have when building GD support is that they
download their own version of GD, but leave the system version of GD and
PHP picks up the system header files instead of the desired ones and
things get confused.

Building PHP with GD on RH-6.2 should be quite trivial once you sit down
and have a look at the error messages and the config.log file and work out
why you are getting the clashes.

-Rasmus


On Tue, 4 Sep 2001, Chris Mulcahy wrote:

> Dennis:
>
> Unfortunately, no, I have not had any luck or even any responses to my
> email.
>
> I have officially given up on PHP and have banned it from any system I
> administer due to problems such as this.  Once you get past the mod_perl
> compiling with Apache, all is well with Perl and extending it is easier.
>
> Too bad, really, because PHP is an elegant language that is easy to
> develop in.  Compiling extensions, however, is an entirely different
> matter.
>
> I wish you luck, if/when you resolve the problem, please be sure to post
> the solution, there are still several unanswered requests for assistance
> in the Google/Dejanews archives for this exact problem.
>
> Good luck and happy programming!
> Chris Mulcahy
>
> > -Original Message-
> > From: Dennis Moore [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 04, 2001 2:00 PM
> > To: Chris Mulcahy; [EMAIL PROTECTED]
> > Subject: Re: [PHP] Making gd Extensions
> >
> >
> > The problem I had was with the compilation of the gd program.
> >  I installed
> > an RPM version of gd from Redhat and recompiled.  It worked
> > like a charm on
> > RedHat v7.0.
> >
> > I am still working on the tarball version of gd.  The
> > documentation says to
> > play around the order of some of the settings in the makefile.
> > Unfortunately, I have to work with a older version of RedHat on this
> > machine. RedHat v6.2.
> >
> > Have you had any luck yet?
> >
> > /dkm
> > - Original Message -
> > From: "Chris Mulcahy" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, August 30, 2001 11:10 AM
> > Subject: RE: [PHP] Making gd Extensions
> >
> >
> > > So far, there have been no answers, so I'm guessing that
> > either we're
> > > the only two receiving this or everyone who has received it has been
> > > unable to resolve the problem.
> > >
> > > My searches on Google have been unsuccessful so far.  There
> > are quite a
> > > few reports of the problem, but no responses.
> > >
> > > If I learn anything, I'll be sure to let you know.
> > >
> > > Thanks
> > > Chris
> > >
> > > > -Original Message-
> > > > From: Dennis Moore [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, August 29, 2001 8:59 PM
> > > > To: Chris Mulcahy; [EMAIL PROTECTED]
> > > > Subject: Re: [PHP] Making gd Extensions
> > > >
> > > >
> > > > I am having a similar problem using gd-2.0.1 where the
> > > > compilation complains
> > > > about "conflicting type gdIOCtx".  I am getting a knot on my
> > > > forehead from
> > > > the wall in front of me.  Any ideas?
> > > >
> > > > /dkm
> > > >
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Chris Mulcahy" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, August 29, 2001 9:31 AM
> > > > Subject: [PHP] Making gd Extensions
> > > >
> > > > >
> > > > > The current item I'm wrestling with is the gd extensions.
> > > > I've rebuilt
> > > > > PHP and Apache so many times to enable one feature only to
> > > > learn that I
> > > > > forgot to recompile one that I'd relied on previously.
> > It's a never
> > > > > ending battle to get all of the features required.
> > > > >
> > > > > The .so extensions option is a great feature that I'd like
> > > > to make use
> > > > > of.
> > > > >
> > > > > In trying to compile the gd .so extension (gd-1.8.4), I'm
> > > > receiving the
> > > > > following errors.  Any ideas?
> > > > >
> > > > > Thanks
> > > > > Chris Mulcahy
> > > > > ---
> > > > >
> > > > > Making all in ext
> > > > > make[1]: Entering directory
> > > > > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext'
> > > > > Making all in gd
> > > > > make[2]: Entering directory
> > > > > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
> > > > > make[3]: Entering directory
> > > > > `/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
> > > > > gcc  -I.
> > > > -I/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd -I/home/cm
> > > > > ulcahy/transfer/webserver/php-4.0.6/main
> > > > -I/home/cmulcahy/transfer/webse
> > > > > rver/php-4.0.6
> > > > -I/home/cmulcahy/transfer/webserver/php-4.0.6/Zend -I/hom
> > > > > e/cmulcahy/transfer/webserver/php-4.0.6/ext/mysql/libmysql
> > > > -I/home/cmulc
> > > > > ahy/transfer/webserver/php-4.0.6/ext/xml/expat/xmltok
> > > > -I/home/cmulcahy/t
> > > > > ransfer/webserver/php-4.0.6/ext/xml/expat/xmlparse
> > > > -I/home/cmulcahy/tran
> > > > > sfer/webserver/php-4.0.6/TSRM  -DSUPPORT_UTF8
> > > > -DXML_BYTE_ORDER=12 -g -O2
> > > > >   -c gd

RE: [PHP] Making gd Extensions

2001-09-04 Thread Chris Mulcahy

I'm sorry, I didn't intend to sound like I was slamming PHP.  I'm just
unable to use it in good conscience on the systems I'm administering due
to the issues such as getting the graphics library (gd) and other
libraries to work with it.

I know that the PHP developers have no control over this, Zeev and
Rasmus are doing an EXCELLENT job and I absolutely love the language.
It's quick and easy to get a stable application up and running.  It's
easy to maintain applications because the language is easy to follow and
fairly self-documenting.

Having to spend approximately 25 hours compiling/testing/recompiling to
get the gd or other libraries to function is not an option.  It
completely negates the time savings in development.  Multiply this my
the number of servers involved and you sink quickly.

Perl as a language has it's devoted followers.  I'm not one of them.
Developing in Perl is nowhere as elegant as developing in PHP and
maintaining Perl code later is nowhere the dream that PHP code is.

I have used PHP since the early releases of 3.x (I wish I could have
seen it progress from the PHP/FI incarnations) and have several projects
out that use PHP.  They are just less intensive applications that did
not (yet) require some advanced features such as graphs, pdf output or
similar features.  I will continue to maintain and enjoy those
applications, but I have to concentrate my efforts towards one tool as a
primary tool to maintain efficiency.

I am not dumping PHP entirely, I am still going to remain on the PHP
lists and will enjoy watching the discussions about PHP and watching the
progression of PHP towards what I believe will be an extremely large
market penetration.

Chris Mulcahy

> -Original Message-
> From: Matthew Loff [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 04, 2001 3:44 PM
> To: 'Chris Mulcahy'; [EMAIL PROTECTED]
> Subject: RE: [PHP] Making gd Extensions
>
>
>
> Banning PHP from your system just because GD won't compile
> with it seems
> a bit drastic...
>
> You have to realize that the PHP developers don't really have anything
> to do with GD, pdflib, etc... they have added support for
> them into the
> PHP language, but an issue with one of these external libraries isn't
> the fault of the PHP group.
>
> I have encountered LOTS of problems getting GD to compile
> into PHP, and
> every single time, it turned out to be a problem with how GD was
> installed.
>
> If you find Perl more useful, then more power to you, each
> language has
> its strong points and issues... But your slandering of PHP is really
> unnecessary.
>
>



-- 
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] adding functions to a class

2001-09-04 Thread Jeroen Olthof

how stupid of me, ofcourse extends does the trick, thanks !

but one little question, somehow classname::function() works
but parent::function() doesn't seem to work ???


"Sean C. McCarthy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> What you are looking for is the OOP class extension. Look for "extends".
>
> Sean C. McCarthy
> SCI, S.L. (www.sci-spain.com)
>
>
> Jeroen Olthof wrote:
> >
> > hi,
> >
> > picture I have a class with some variable holding the information of
this
> > class. Now there are some functions to manipulate the vars. well, you
nou
> > what classes are about. but now I want to add functions that are located
in
> > a different php file. but this functions need to use the the var of the
> > class.
> >
> > bassicly what a want is extends the original class with more
functionalities
> > like. you could see it as adding plug-ins in a program. So I don't want
to
> > just copy past the functions in the original class file.
> >
> > class a {
> >
> > var VAR1
> > var VAR2
> > var VAR3
> >
> > require(morefunctions.php);
> >
> > function a($param) {
> > ..
> > }
> >
> > function test2($param) {
> > ..
> > }
> > }
> >
> > the require(morefunctions.php); will ofcource not work but bassicly this
is
> > what I want. en all the functions added should be able to use VAR1 VAR2
VAR3
> > (and the other functions that are allready in the class)
> >
> > is there a why to do this ??
> >
> > kind regards
> > Jeroen Olthof
> >
> > --
> > 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] Assign multiple variables from mysql_fetch_row() call

2001-09-04 Thread Egan

In perl I can say something like:

   ($var1, $var2) = $sqh->fetchrow_array()


to assign column values to more than one variable at a time.  So I
tried similar syntax with PHP:


($var1, $var2) = mysql_fetch_row($sqh);


but could not seem to work it out.

I know you can do this with a temporary array, and then take values
out of the array.  But it would be nice to omit the temporary array.

Is it possible?


Egan




-- 
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 ?: form mailer not working

2001-09-04 Thread Chris Mulcahy

Michelle:

This line seems to be a problem.

print("If the problem persists you can mail your question directly to
mailto:[EMAIL PROTECTED]\%22";>the forum
administrator");

Try escaping your quotes surrounding your mailto href.

hth

Happy programming!
Chris Mulcahy


> -Original Message-
> From: Michelle Marcicki [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 04, 2001 3:26 PM
> To: PHP List
> Subject: [PHP] Newbie ?: form mailer not working
>
>
> Hi all...
>
> Having problems with some php3 to php4 stuff..  the site has
> a form that has
> been setup to ask questions outside our discussion forums.
>
> The form.html contains  method="post">
>
> The questionmailer code is as below.  I have only changed the
> email addy and the
> file extension from .php3 to .php on the questionmailer file
> and the .php
> (above) in the form.html page.  I have checked the php
> on-line manual, but can
> find nothing that fits my problems or errors.
>
> I am getting:
> 1) Warning: Unexpected character in input: '\' (ASCII=92) state=1 in
> /usr/home/blah/html/util/questionmailer.php on line 24
> 2) Parse error: parse error in
> /usr/home/erc/html/util/questionmailer.php on
> line 24
>
> Line 24 in my code is:  mailto:[EMAIL PROTECTED]\%22";>
>
>
> //questionmailer.php code
> 
>
>$mailSubject="Question" ;
>   $mailBody="Name: $name \r\n" ;
>   $mailBody .="Email: $email \r\n" ;
>   $mailBody .="Question: $question \r\n" ;
>
>   if(mail($mailTo, $mailSubject, $mailBody))
>   {
>   print("Thank-You, your request has been sent.");
>   }
>   else
>   {
>   print("There was a problem transporting your
> request, please try
>  again.\n");
>   print("If the problem persists you can mail your
> question directly
>to mailto:[EMAIL PROTECTED]\%22";>
>   the forum administrator");
>   }
> ?>
> 
> 
>
> Is there something I'm missing here?
> (I am coming from an ASP background, with VB and some C++
> knowledge, so it all
> looks familiar, I am just trying to sort out syntax and think
> it must be that
> type of error.  I didn't write the original code, just trying
> to fix it all :)
>
> TIA.
> Michelle
>



-- 
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] Assign multiple variables from mysql_fetch_row() call

2001-09-04 Thread Rasmus Lerdorf

> In perl I can say something like:
>
>($var1, $var2) = $sqh->fetchrow_array()
>
>
> to assign column values to more than one variable at a time.  So I
> tried similar syntax with PHP:
>
>
> ($var1, $var2) = mysql_fetch_row($sqh);
>
>
> but could not seem to work it out.
>
> I know you can do this with a temporary array, and then take values
> out of the array.  But it would be nice to omit the temporary array.
>
> Is it possible?

($var1, $var2) is magic.  I hate magic.  What do you look up in the Perl
manual when you hit syntax like that?  In PHP the equivalent syntax is:

list($var1, $var2) = ...

It does exactly the same thing, and it is legible.  Anybody can pop over
to http://php.net/list and get an explanation of what the code does if
they run across it.

-Rasmus


-- 
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] Assign multiple variables from mysql_fetch_row() call

2001-09-04 Thread Alfredeen, Johan

You can use a while loop. Ie: (where $row is the result of a sql query)

if ($row = mysql_fetch_array($result)) {
do  {
$var1 = $row["column1"];
$var2 = $row["column2"];
$var2 = $row["column3"];
} while ($row = mysql_fetch_array($result));
}

Johan
Which World? PongWorld
www.pongworld.com


-Original Message-
From: Egan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 04, 2001 3:30 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Assign multiple variables from mysql_fetch_row() call


In perl I can say something like:

   ($var1, $var2) = $sqh->fetchrow_array()


to assign column values to more than one variable at a time.  So I
tried similar syntax with PHP:


($var1, $var2) = mysql_fetch_row($sqh);


but could not seem to work it out.

I know you can do this with a temporary array, and then take values
out of the array.  But it would be nice to omit the temporary array.

Is it possible?


Egan




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

2001-09-04 Thread Chris Mulcahy

Jeremy:

Have you tried echoing your $sql variable to ensure it has in it what
you expect?  In other words, does $PHP_AUTH_USER have the value you need
it to have?

hth
Happy programming!
Chris Mulcahy

> -Original Message-
> From: Jeremy Morano [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 04, 2001 2:57 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] option block
>
>
> Hello everyone, I'm having a problem with my option block...
> I'm trying to
> pass the value of uid to the next page. I always get the last
> uid value in
> table user. How can I change this so I get to pass the value
> of the user's
> choice?
>
>
>
>
> $sql = "SELECT user.uid, user.first_name, user.last_name
>   FROM user, company
>   Where company.uid = user.companyUid and company.company
> = '$PHP_AUTH_USER'
>   ORDER BY last_name
>   ";
>
>
>
> $result = @mysql_query($sql,$connection) or die("Couldn't
> execute query.");
>
>
> while ($row = mysql_fetch_array($result)) {
>   $uid = $row['uid'];
>   $first_name = $row['first_name'];
>   $last_name = $row['last_name'];
>
>   $option_block .= "$last_name,
> $first_name";
> }
>
> $display_block = "
>
> 
>
> User:
> 
> $option_block
> 
>
> 
> 
>
> ";
>
>
> --
> 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] remote scripting objects

2001-09-04 Thread MailingLists

I don't know if it's IIS or ASP that handles this, but there's a beast 
called a remote scripting object.  It combines JavaScript and ASP to call a 
remote script on your server without having to submit your browser or load 
a new page.  SO I can add a value to a form field and in the onchange event 
for that form call a function which resides in a script on the server, it 
hits a database or whatever and then returns a value that I can display on 
the same page.

Is there any way to do this within a PHP script on Linux?  


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




  1   2   >