[PHP] SESSIONS: What does this error mean

2001-05-09 Thread Davor Pleskina

Fatal error: The script tried to execute a method or access a property of an
incomplete object. Please ensure that the class definition cl_korisnik_data
of the object you are trying to operate on was loaded _before_ the session
was started in user_info.php on line 72

I declared class like following in the first script file:

   class cl_korisnik_data {
var $kname, $ime, $kid, $prezime, $jmbg, $klevel;
};

session_register("korisnik_data");
$korisnik_data = new cl_korisnik_data;
// Then loaded some data into $korisnik_data, all passed OK

In called script user_info.php i wrote code:

ime);
?>

... and got upper error. Now, what is wrong?

Just to make better question,

do classes also need to be registered within a session?
If so, how?

TIA,
Davor



-- 
PHP General Mailing List (http://www.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] SESSIONS: Why does PHP not erase session files in /TMP

2001-05-09 Thread Davor Pleskina

I have /TMP configured as tmp dir for session files.

However, each time I try my program there is a new file; not one is being
removed, either.

How to tell PHP to remove session files when they are not needed any more?

TIA,
Davor



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




[PHP] Compiling PHP 4.0.5 on Tru64

2001-05-09 Thread Daniel Solin

Hi all!

I'm having problems compiling PHP 4.0.5 on Tru64, and was hoping that
someone could help me. Here's the info:

OS: OSF1 bob V5.0 1094 alpha
COMPILER:   gcc version 2.9-gnupro-99r1
COMPILER:   Compaq C V6.1-020 on Compaq Tru64 UNIX V5.0A (Rev.1094)
MAKE:   GNU Make version 3.79
PHP:php-4.0.5

And here's the compile-error:

Making all in Zend
make[1]: Entering directory `/usr/users/stone/dl/php-4.0.5/Zend'
/bin/sh /home/stone/dl/php-4.0.5/libtool --silent --mode=compile gcc
-DHAVE_CONF
IG_H -I. -I. -I../main   -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT
-DSUPPORT_UTF8 -DXML_B
YTE_ORDER=12  -g -O2 -c zend_operators.c
zend_operators.c: In function `multi_convert_to_long_ex':
zend_operators.c:525: parse error before `zval'
zend_operators.c: In function `multi_convert_to_double_ex':
zend_operators.c:540: parse error before `zval'
zend_operators.c: In function `multi_convert_to_string_ex':
zend_operators.c:555: parse error before `zval'
make[1]: *** [zend_operators.lo] Error 1
make[1]: Leaving directory `/usr/users/stone/dl/php-4.0.5/Zend'
make: *** [all-recursive] Error 1

Would really appreciate any assistance on this matter. Thanks in advance!

//Daniel



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




[PHP] Require SAMPLE Script for Macromedia Generator2 Flash using PHP ?

2001-05-09 Thread Manisha

Hi,

This is a question regarding Macromedia Generator 2 using PHP 4.

I have created a PNG and using a URL method to call .php file.

In documentation they are saying ' You can call any file but content that 
returns must be in a text file and in proper format'

What do you mean by that ?

Is this I create a file through PHP with (number, value) format ?

but what do you mean by ' Return of File'

Can anybody give me SAMPLE SCRIPT in PHP ?


manisha


-- 
PHP General Mailing List (http://www.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] Something like, but not Webexplorer

2001-05-09 Thread Chris Aitken

Hi guys,

Just a quick question.

Has anyone found an alternative to the Webexplorer system that works well ?

Im just looking to have a system which will allow me to control files from 
within a directory, and all subsequent subdirectories. There are issues and 
bugs ive come across with webexplorer that it isnt a viable option.

Any suggestions ?



Chris





--
   Chris Aitken - Webmaster/Database Designer - IDEAL Internet
email: [EMAIL PROTECTED]  phone: +61 2 4628   fax: +61 2 4628 8890
 

   Unix -- because a computer's a terrible thing to waste!


-- 
PHP General Mailing List (http://www.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 + IRIX + Netscape Enterprise

2001-05-09 Thread John Monfort


 I'm looking for a good reference to installing PHP 4 on a IRIX+NS
 Enterprise system.

 Please help.

 Thanks in advance.

 -John


-- 
PHP General Mailing List (http://www.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] OT States and Postcodes

2001-05-09 Thread Joseph Blythe

Hey all,

I have a signup form that a drop down list of country states, what I 
want to be able to do is when a user clicks his/her state the page will 
refresh and fill the below postcodes in with the approprite codes for 
the particular state, once a user has selected a postcode the page will 
refresh again and fill in the appropriate city/town, of course I will 
just default it to the first state in the list. I already have all the 
required data to do this for Australia.

I have the page refresh working with a onChange event on the select tag, 
but I cannot get the list to stay on the value that has been selected 
before the page was refreshed. Also how will I pass this information to 
php so that I can get the selected state without posting the form?

Has anyone done this before or can give me some clues on how to go about 
this, please just don't say 'javascript' as I have already searched alot 
of script archives but could only find jumpto menus etc.

I would really only like to use javascript to refresh the page onChange, 
and do all the selected stuff with php if possible.

Regards,

Joseph



-- 
PHP General Mailing List (http://www.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] PassThru()

2001-05-09 Thread Michael Roark

how does one pass arguements to PassThru()

ie would the following work

PassThru(/home/bleh/bleh.cgi < bleh.txt);

and if that does work PassThru() sends its output back to the page yes?



RE: [PHP] Strange

2001-05-09 Thread Tyler Longren

if ($userid && $password)
{
$res = pg_exec($db, "SELECT userid FROM users WHERE
userid='$userid' AND password='$password'");
$x = pg_numrows($res);
if ($x==1)
{
$verified_user = $userid;
session_register ("$verified_user");
Header ("Location: main.php");
}
}
  else {
Header ("Location: login.php")
  }

need the header() that sends you back to login.php in the else loop?

Tyler

> -Original Message-
> From: paket [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 09, 2001 12:33 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Strange
>
>
> Hello.
>
> This is a script fragment that I am working on. It's purpose is to
> validate a user by checking a database to see if the userid and password
> match what has been supplied. Here it is:
>
> if ($userid && $password)
> {
> $res = pg_exec($db, "SELECT userid FROM users WHERE
> userid='$userid' AND password='$password'");
> $x = pg_numrows($res);
> if ($x==1)
> {
> $verified_user = $userid;
> session_register ("$verified_user");
>   Header ("Location: main.php");
> }
> }
> Header ("Location: login.php")
>
> Here is what is supposed to happen - if both $userid and $password exist,
> we try to pull a record from the database ( database connection is not
> shown). If the number of rows returned in 1, all is good and we register
> the userid and head off the the main page. If not, we go back to the login
> page.
>
> The problem is that the user is ALWAYS re-directed back to the login page
> (login.php) even when the userid and password are correct. BUT if I make
> these changes, it works:
>
> Header ("Location: main.php"); echo $userid;   <--- new line
>
> Now, by my reasoning, the new line should't ever be executed, and if it
> were, it should kick out an error. So, what is going on here?
>
> 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 General Mailing List (http://www.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] PC MAG article - what a crap!

2001-05-09 Thread Frederick L. Steinkopf

What's truly amazing is that they apparently are unaware of the Nusphere
distro.  Even a total dolt can install apache, mysql, perl, and php on a
windows box in minutes.  I've done it on three (98 and NT) so far and it is
as simple as put the CD in the machine, fire it up, click on a couple of
boxes and you're done.  About 15 minutes  total vs 60 minutes for my last
windows upgrade.  We install it the old fashioned way at work and it does
take longer, but you can customize the install.
Fred Steinkopf

- Original Message -
From: "Maxim Maletsky" <[EMAIL PROTECTED]>
To: "'Tyrone Mills'" <[EMAIL PROTECTED]>; "PHP List"
<[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 11:35 PM
Subject: RE: [PHP] PC MAG article - what a crap!


> http://www.zdnet.com/pcmag/stories/reviews/0,6755,2711724,00.html
>
> ...this is a total crap.
>
> I could not stop going from hysteric laughs to schizophrenetic smiles
> reading this...
>
> Really, the technology is not the same and finds it's best users in
> appropriate fields. Apparently these editors love Windowz for wizards and
> are of a conservative idea that 'paid' things are better because who sold
> them is responsible for the support.
>
> bull[\.]*t!
>
> I don't think all these M$ things will survive for longer then 3 more
years.
> Nobody thinks, nor even Billy. I personally met him a month ago on a press
> conference in Tokyo - he was here because of X-Box, but many think his
point
> is the inability of keeping the monopoly any further, so he now expands
> Microsoft's area of expertise. I truly believe Gates would have some long
> thoughts answering why he thinks Microsoft Windows will stay 'hard'
against
> Linux Mandrake (or other well developed Open Source OS) in future.
>
> And then, only then, when Linux and other Open (and some not-open) Sources
> will get into a monopoly balance, the publications will start comparing a
> larger number of Servers, Platforms and programming technologies giving
the
> right credit to PHP rather then say to $COLD FUSION$ because of it got
> 'WYSIWIYG tool for front-end interface'.
>
> They said you have to be an expert to set PHP on Linux, SURE YOU HAVE
TO!!!
> After all, you need a root password!!! Who, in the name of god, will ever
> give you the superuser password for production server if you know a
d[\.]*k
> of Apache/Linux???
>
> On windowz is the same: an MCSE knows how to set server's environment, and
I
> think he'd make the SAPI working!
>
> So only PHP beginners remain in trouble.
> Well, not exactly. As soon as they discover the mailing lists, forums,
> online tutorials and join the community they soon become more sure in
> themselves and go wild with development, becoming something more then
> webmasters in a very few time.
> Is that possible with CF, ASP?
>
> These writers are just too stupid to understand and cover this technology.
> They need an extended and capable to discover the alternatives
understanding
> of the web technologies.
>
> Cheers,
> Maxim Maletsky,
> PHPBeginner.com
>
>
>
> -Original Message-
> From: Tyrone Mills [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 10, 2001 9:53 AM
> To: PHP List
> Subject: RE: [PHP] PC MAG article
>
>
> If you can stand to read the whole article (I barely could), BEA declined
to
> participate. The article is nothing but worthless tripe, BEA is probably
> better off for having been mentioned only in passing.
>
> -Original Message-
> From: Mark Charette [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 09, 2001 5:55 PM
> To: PHP List
> Subject: Re: [PHP] PC MAG article
>
>
> Considering Websphere/EJB was mentioned ...
>
> Where's the BEA Weblogics review 
>
>
> --
> PHP General Mailing List (http://www.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] problem with my sessions

2001-05-09 Thread Tyler Longren

In rightcolumn.inc, I have a form to let users log in to the site.  In
config.inc I have session code, and site wide variables (such as
$mysql_host, and $mysql_user).  Here's the relavent part of rightcolumn.inc:

print "
 
 
Login
Username:

Password:


";
if (($login_error) && ($login == "yes")) {
print "$login_error";
}
print "";
if (!($HTTP_SESSION_VARS["username"])) {
print " ";
}
else {
print "Logout";
}
print "";

This for is submitted to $PHP_SELF.  config.inc is included on EVERY page on
the site.  Here's the relavent part of config.inc:
mysql_connect("$mysql_host","$mysql_user","$mysql_pass");
mysql_select_db("$mysql_db");
$sql = mysql_query("SELECT * FROM $mysql_user_table WHERE username =
'$username' AND password = '$password'");
$num = mysql_num_rows($sql);
if ($num < "1") {
$login_error = "Wrong
username/password";
}
else {
session_start();
session_register('username');
session_register('password');
print "Level 5";
print "$username";
}

Now, when I log in, $HTTP_SESSION_VARS["username"] and
$HTTP_SESSION_VARS["password"] are NOT accessable on $PHP_SELF, but they are
after I refresh $PHP_SELF...But then when I move to another page on the site
(with config.inc included @ the very top, before anything is sent to the
browser), the $HTTP_SESSION_VARS["username"] ($username) and
$HTTP_SESSION_VARS["password"] ($password) are lost.

Can anybody offer me any help?  I've been trying to get this to work for 48
hours now.  I've re written this thing sooo many times.  I almost had it
once, but changed something and it stopped.

Thanks,
Tyler Longren


-- 
PHP General Mailing List (http://www.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] Strange

2001-05-09 Thread paket

Hello.

This is a script fragment that I am working on. It's purpose is to
validate a user by checking a database to see if the userid and password
match what has been supplied. Here it is:

if ($userid && $password)
{
$res = pg_exec($db, "SELECT userid FROM users WHERE
userid='$userid' AND password='$password'");
$x = pg_numrows($res);
if ($x==1)
{
$verified_user = $userid;
session_register ("$verified_user"); 
Header ("Location: main.php");
}
}
Header ("Location: login.php")

Here is what is supposed to happen - if both $userid and $password exist,
we try to pull a record from the database ( database connection is not
shown). If the number of rows returned in 1, all is good and we register
the userid and head off the the main page. If not, we go back to the login
page.

The problem is that the user is ALWAYS re-directed back to the login page
(login.php) even when the userid and password are correct. BUT if I make
these changes, it works:

Header ("Location: main.php"); echo $userid;   <--- new line

Now, by my reasoning, the new line should't ever be executed, and if it
were, it should kick out an error. So, what is going on here?

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]




RE: [PHP] PC MAG article - what a crap!

2001-05-09 Thread Maxim Maletsky

http://www.zdnet.com/pcmag/stories/reviews/0,6755,2711724,00.html

...this is a total crap.

I could not stop going from hysteric laughs to schizophrenetic smiles
reading this...

Really, the technology is not the same and finds it's best users in
appropriate fields. Apparently these editors love Windowz for wizards and
are of a conservative idea that 'paid' things are better because who sold
them is responsible for the support.

bull[\.]*t!

I don't think all these M$ things will survive for longer then 3 more years.
Nobody thinks, nor even Billy. I personally met him a month ago on a press
conference in Tokyo - he was here because of X-Box, but many think his point
is the inability of keeping the monopoly any further, so he now expands
Microsoft's area of expertise. I truly believe Gates would have some long
thoughts answering why he thinks Microsoft Windows will stay 'hard' against
Linux Mandrake (or other well developed Open Source OS) in future.

And then, only then, when Linux and other Open (and some not-open) Sources
will get into a monopoly balance, the publications will start comparing a
larger number of Servers, Platforms and programming technologies giving the
right credit to PHP rather then say to $COLD FUSION$ because of it got
'WYSIWIYG tool for front-end interface'.

They said you have to be an expert to set PHP on Linux, SURE YOU HAVE TO!!!
After all, you need a root password!!! Who, in the name of god, will ever
give you the superuser password for production server if you know a d[\.]*k
of Apache/Linux???

On windowz is the same: an MCSE knows how to set server's environment, and I
think he'd make the SAPI working!

So only PHP beginners remain in trouble.
Well, not exactly. As soon as they discover the mailing lists, forums,
online tutorials and join the community they soon become more sure in
themselves and go wild with development, becoming something more then
webmasters in a very few time.
Is that possible with CF, ASP?

These writers are just too stupid to understand and cover this technology.
They need an extended and capable to discover the alternatives understanding
of the web technologies.

Cheers,
Maxim Maletsky,
PHPBeginner.com



-Original Message-
From: Tyrone Mills [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 9:53 AM
To: PHP List
Subject: RE: [PHP] PC MAG article


If you can stand to read the whole article (I barely could), BEA declined to
participate. The article is nothing but worthless tripe, BEA is probably
better off for having been mentioned only in passing.

-Original Message-
From: Mark Charette [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 5:55 PM
To: PHP List
Subject: Re: [PHP] PC MAG article


Considering Websphere/EJB was mentioned ...

Where's the BEA Weblogics review 


--
PHP General Mailing List (http://www.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] Old PHP.net website..

2001-05-09 Thread Nathan Handler

What is the file name that contains the pop-up info boxes?

Best Regards,

Nathan Handler
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Nathan Handler" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 6:07 PM
Subject: Re: [PHP] Old PHP.net website..


> On Wed, May 09, 2001 at 05:19:36PM -0500, Nathan Handler wrote:
> > Still lost.. where in here would it be...this looks more like the new
> > website stuff...where would I find how to put on that pop-up thing for
menus
> > like in the old website?
>
> Scroll down the versions and you will find it. If you are using
> cvs.php.net the first time, you need some time to find the information.
> But believe me, it is there. Look at the older versions, not the newer
> ones.
>
> -Egon
>
> > - Original Message -
> > From: <[EMAIL PROTECTED]>
> > To: "Ender" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Wednesday, May 09, 2001 5:06 PM
> > Subject: Re: [PHP] Old PHP.net website..
> >
> >
> > > On Wed, May 09, 2001 at 04:59:41PM -0500, Ender wrote:
> > > > Does anyone remember the previous php.net website where you would
hold
> > > > your cursor over a menu bar and it would pop up info?  Does anyone
know
> > > > how to do that or where the script for it is?
> > >
> > > cvs.php.net -> phpweb
> > >
> > > -Egon
> > >
> > > --
> > > LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/
> > > All known books about PHP and related books: http://php.net/books.php
> > > Concert Band of the University of Hohenheim:
http://www.concert-band.de/
> > > First and second bestselling book in German: http://www.php-buch.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 General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
> --
> --
> LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/
> All known books about PHP and related books: http://php.net/books.php
> Concert Band of the University of Hohenheim: http://www.concert-band.de/
> First and second bestselling book in German: http://www.php-buch.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]




Re: [PHP] if $index=1 how can I create a variable named $column_1 by appending $index behind $columnname

2001-05-09 Thread Paul Kozlenko

Strike that...I didn't read the question properly
Paul Kozlenko

"Paul Kozlenko" <[EMAIL PROTECTED]> wrote in message
9dd14a$gka$[EMAIL PROTECTED]">news:9dd14a$gka$[EMAIL PROTECTED]...
> How about;
>
> list($column1, $column2, $column3) = array("wheat2", "rye2",
> "pumpernickel2");
>
> Not totaly flexible as below.  But it satisfies the question. Needs php4.
>
> Paul Kozlenko
>
> "Jay Lepore" <[EMAIL PROTECTED]> wrote in message
> 9dcp7h$tjr$[EMAIL PROTECTED]">news:9dcp7h$tjr$[EMAIL PROTECTED]...
> > I would like to loop through an array and create variable names such as
> > column1, column2, column3 etc. where the number at the end comes from
the
> > value of index.
> >
> > For instance:
> >
> > 1) $toast=array("wheat", "rye", "pumpernickel");
> > 2) $numbreads=count($toast);
> > 3) for($index=0;$index<$numbreads;$index++){
> > 4) $column$index=$toasts[$index];
> > 5) }
> >
> > At the end I would in theory have three fields called column1, column2,
> > column3.
> >
> > How can I append $index to another to make a new variable name as shown
in
> > line 4 ?
> >
> > Thanks in advance
> >
> > Jay
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.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] if $index=1 how can I create a variable named $column_1 by appending $index behind $columnname

2001-05-09 Thread Paul Kozlenko

How about;

list($column1, $column2, $column3) = array("wheat2", "rye2",
"pumpernickel2");

Not totaly flexible as below.  But it satisfies the question. Needs php4.

Paul Kozlenko

"Jay Lepore" <[EMAIL PROTECTED]> wrote in message
9dcp7h$tjr$[EMAIL PROTECTED]">news:9dcp7h$tjr$[EMAIL PROTECTED]...
> I would like to loop through an array and create variable names such as
> column1, column2, column3 etc. where the number at the end comes from the
> value of index.
>
> For instance:
>
> 1) $toast=array("wheat", "rye", "pumpernickel");
> 2) $numbreads=count($toast);
> 3) for($index=0;$index<$numbreads;$index++){
> 4) $column$index=$toasts[$index];
> 5) }
>
> At the end I would in theory have three fields called column1, column2,
> column3.
>
> How can I append $index to another to make a new variable name as shown in
> line 4 ?
>
> Thanks in advance
>
> Jay
>
>
>
> --
> PHP General Mailing List (http://www.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] PC MAG article

2001-05-09 Thread S.J. Black

Hallo, Philip & All -

> for informational purposes, it can be seen here :
> 
>   http://www.zdnet.com/pcmag/stories/reviews/0,6755,2713481,00.html

How terribly sad. They could've made better use of that tripe by
stuffing it with oats and serving it next Robbie Burns' Day.
 
Alpha

-- 
PHP General Mailing List (http://www.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 Mysql query data conversion newbie

2001-05-09 Thread bill

On Sat, 28 Apr 2001, Andras Kende wrote:

> Hello,
>
> I pull some data from mysql with the php code below.
> On the date field if there is no date on mysql it displays : -00-00
> 00:00:00
>
> I would like to change this -00-00 00:00:00 to "no date" for example..

hmm... mysql can do this, works like this:
IF(EXPR,TRUE,FALSE):

mysql> select IF(UNIX_TIMESTAMP(lastmod)<=0,"NoDate",lastmod) as date from
links;

+-+
| date|
+-+
| 2001-04-22 08:04:07 |
| 2001-04-22 08:04:10 |
| 2001-04-22 08:03:45 |
| 2001-04-22 08:03:42 |
| 2001-04-22 08:03:41 |

...

| 2001-04-22 08:03:45 |
| 2001-04-22 08:04:05 |
| 2001-04-22 08:03:43 |
| NoDate  | (normally -00-00 00:00:00)
| 2001-04-22 08:04:06 |
| 2001-04-22 08:03:56 |
| 2001-04-22 08:04:08 |
| 2001-04-22 12:57:27 |
| 2001-04-27 21:26:36 |
| 2001-05-07 22:35:45 |
+-+
28 rows in set (0.00 sec)


> Or if the cel is empty to " " (because otherwise the tableborders are messed
> up)

If by empty you mean NULL, you could probably do similar as above:

mysql> select IF(lastchk IS NULL," ",lastchk) from links;
+--+
| IF(lastchk IS NULL," ",lastchk) |
+--+
| 24   |
| 9|
|     |
| 8|

...

|     |
| 6|
| 1|
|     |
|     |
|     |
|     |
+--+
28 rows in set (0.01 sec)

... the   will hold the table cell in html.

>
> I tried to put an if statement inside the while {} but i cannot figured
> out...

yep you could do this too. I don't know which is faster as i have not been
able to test either under high enough load to make a difference :( i
prefer to let mysql do all the work it can because i figure the web server
is busy enough will all kind of regular html requests.

good luck... hope this helped.

Bill



-- 
PHP General Mailing List (http://www.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] ASP 2 PHP

2001-05-09 Thread Maxim Maletsky

I wouldn't really rely on ASP2PHP for any serious things,
but if you care only that the script works and have some extra time fixing
the bugs then go ahead.

When I was in a similar from you situation (rewriting an entire 1.5MB
ASP/MSSQL website into PHP/PostgreSQL) I looked into ASP2PHP, asked here and
though it was easier for me rewrite the entire site from scratch copying
(basing on) the site's functionality, having a more advanced PHP code (I
believe ASP2PHP creates a PHP3 compatible code which leaks many features of
PHP4). 

It all depends on your needs.
Thanks god things like ASP2PHP exists, and god forbid Billy making any kind
of PHP2damnASP warez:-)

Sincerely, 

 Maxim Maletsky
 Founder, Chief Developer
 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com



-Original Message-
From: Max Pyziur [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 9:13 AM
To: Brandon Orther
Cc: PHP User Group
Subject: Re: [PHP] ASP 2 PHP




On Wed, 9 May 2001, Brandon Orther wrote:

> Hello,
>
> I am looking at a complete database with it interface written in ASP.  All
> of our company programs are written in PHP and that is what I want to use.
>
> I believe I remember seeing ASP 2 PHP converts before.  Does anyone know
of
> any.  They don't have to work perfect just convert it with some bugs and I
> will fixes those.

I've never tried it (though I have the rpms installed in the event one of
my sites needs to use it), but I just saw on freshmeat.net that a new
release of asp2php  was released - http://asp2php.naken.cc/ is the link.

> Also it is using a MSSQL database if that helps at all.
>
> Thanks
> Brandon
>


Max Pyziur BRAMA - Gateway Ukraine
[EMAIL PROTECTED]  http://www.brama.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] cobalt raq4

2001-05-09 Thread Steve Werby

"Herman Tolentino" <[EMAIL PROTECTED]> wrote:
> anybody out there who has successfully compiled php (apache module) with
> PDFLib 4? Much help would be appreciated. Been trying for 1 week.

I haven't tried PDF 4, but I installed PDF 3.03 and compiled PHP with PDF
support on a RaQ2 recently.  I noticed you're installing on a RaQ4 and since
I did so on a RaQ2 with PHP4.0.5 compiled into Apache 1.3.19 binary that
version of PDF should work on the RaQ4 (x86 is much easier to install on
than mips platform).  I believe the configuration command I used for pdflib
was ./configure  --enable-shared --enable-shared-pdflib
and --with-pdflib=/usr/local in PHP.  I couldn't tell you whether a newer
version of PDF will work.  Perhaps if you post your installation steps and
what errors were encountered someone can help.  BTW, there's a test
directory in the PDF source and a test script ./pdftest that creates a test
PDF file.  Can you get the test file to work?

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


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




Re: [PHP] PC MAG article

2001-05-09 Thread Matthew Schroebel

I think MS is worried.  They send me the mag ever month for free, and I
throw it away. I never understood how sending the mag for free to people
that didn't want it made anyone a living. Now that I know MS owns them, I
see that making money isn't the issue, they just want the spin.


-- 
PHP General Mailing List (http://www.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 $index=1 how can I create a variable named $column_1 by appending $index behind $columnname

2001-05-09 Thread Sean R. Bright

Woops, you can even do this:

$toast = array("wheat", "rye", "pumpernickel");
$numbreads = count($toast);
for ($index = 0; $index < $numbreads; $index++) {
${"column" . $index} = $toasts[$index];
}

(A little less code and one less variable required.)

Sean

> -Original Message-
> From: Sean R. Bright [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 09, 2001 9:49 PM
> To: 'Jay Lepore'; [EMAIL PROTECTED]
> Subject: RE: [PHP] if $index=1 how can I create a variable named
> $column_1 by appending $index behind $columnname
> 
> 
> 
> $toast = array("wheat", "rye", "pumpernickel");
> $numbreads = count($toast);
> for ($index = 0; $index < $numbreads; $index++) {
>   $temp = "column$index";
>   $$temp = $toasts[$index]
> }
> 
> You will now have variables called column1, column2, and column3.
> 
> Sean
> 
> > -Original Message-
> > From: Jay Lepore [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, May 09, 2001 9:09 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] if $index=1 how can I create a variable 
> named $column_1
> > by appending $index behind $columnname
> > 
> > 
> > I would like to loop through an array and create variable 
> > names such as
> > column1, column2, column3 etc. where the number at the end 
> > comes from the
> > value of index.
> > 
> > For instance:
> > 
> > 1) $toast=array("wheat", "rye", "pumpernickel");
> > 2) $numbreads=count($toast);
> > 3) for($index=0;$index<$numbreads;$index++){
> > 4) $column$index=$toasts[$index];
> > 5) }
> > 
> > At the end I would in theory have three fields called 
> > column1, column2,
> > column3.
> > 
> > How can I append $index to another to make a new variable 
> > name as shown in
> > line 4 ?
> > 
> > Thanks in advance
> > 
> > Jay
> > 
> > 
> > 
> > -- 
> > PHP General Mailing List (http://www.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] if $index=1 how can I create a variable named $column_1 by appending $index behind $columnname

2001-05-09 Thread Sean R. Bright


$toast = array("wheat", "rye", "pumpernickel");
$numbreads = count($toast);
for ($index = 0; $index < $numbreads; $index++) {
$temp = "column$index";
$$temp = $toasts[$index]
}

You will now have variables called column1, column2, and column3.

Sean

> -Original Message-
> From: Jay Lepore [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 09, 2001 9:09 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] if $index=1 how can I create a variable named $column_1
> by appending $index behind $columnname
> 
> 
> I would like to loop through an array and create variable 
> names such as
> column1, column2, column3 etc. where the number at the end 
> comes from the
> value of index.
> 
> For instance:
> 
> 1) $toast=array("wheat", "rye", "pumpernickel");
> 2) $numbreads=count($toast);
> 3) for($index=0;$index<$numbreads;$index++){
> 4) $column$index=$toasts[$index];
> 5) }
> 
> At the end I would in theory have three fields called 
> column1, column2,
> column3.
> 
> How can I append $index to another to make a new variable 
> name as shown in
> line 4 ?
> 
> Thanks in advance
> 
> Jay
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.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] OT question..

2001-05-09 Thread MaD dUCK

also sprach Christian Reiniger (on Wed, 09 May 2001 06:44:17AM +0200):
> Again sorry to the people offended, but I still have the opinion that the 
> quote has by and large positive effects. I've now included a note into 
> the sig to clear out the misunderstandings that could easily happen.
> 
> EOT, ok?

except now you are opening up yourself for attack from all the
traditionalists, who believe that signatures are supposed to be *no
longer* than 4 lines...

i still suggest refraining from use of the quote for mailing lists...

martin;  (greetings from the heart of the sun.)
  \ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
-- 
"a rock pile ceases to be a rock pile
 the moment a single man contemplates it,
 bearing within him the image of a cathedral."
   -- antoine de saint-exupery

-- 
PHP General Mailing List (http://www.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] PC MAG article

2001-05-09 Thread Mark Maggelet

On Wed, 9 May 2001 20:19:34 -0400, Mike ([EMAIL PROTECTED]) wrote:
>As a devoted php programmer I was surprised how bad PC MAG blasted
>php this
>month.It sound as if it doesnt scale very well(Ive never had more
>than a few
>people on my site at once).Any comments???

seeing as how zdnet is owned by microsoft, you can decide how much
credibility you can give their articles.


--
PHP General Mailing List (http://www.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] OT--Adding Commands to SGI IRIX 6.5

2001-05-09 Thread John Monfort


 Hello everyone,

 This is is a little off topic.

 I was configuring MySQL on IRIX, when I realize that the system does not
 have the commands to add users.

GROUPADD  and  USERADD

 So, I was wondering if someone could help me with the following:

  The installation guides ask me to run

 shell> groupadd mysql
 shell> useradd -g mysql mysql

 1)
  Now, if this command is to be called from '/usr/local/mysql' then, what
  is the '/etc/passwd' entry?

  I have (in the passwd file)

  mysql: * : 6 : 6 : MySQL Group: /dev/null : /dev/null

  # To create the MySQL group...equivalent to 'shell> groupadd mysql'

  mysql: * : 1061 : 6 : MySQL Default User: /dev/null : /dev/null

  # To add the regular(MySQL) user account.

  Is this correct?


 2) Also, Where can I find the 'groupadd' and 'useradd' command? I would
like to add it to the system, for future uses. I've check the sgi
support pages (support.sgi.com) but didn't find much help.
Is this considered a PATCH, or what?


 Please help.

  -John


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-



-- 
PHP General Mailing List (http://www.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] if $index=1 how can I create a variable named $column_1 by appending $index behind $columnname

2001-05-09 Thread Jay Lepore

I would like to loop through an array and create variable names such as
column1, column2, column3 etc. where the number at the end comes from the
value of index.

For instance:

1) $toast=array("wheat", "rye", "pumpernickel");
2) $numbreads=count($toast);
3) for($index=0;$index<$numbreads;$index++){
4) $column$index=$toasts[$index];
5) }

At the end I would in theory have three fields called column1, column2,
column3.

How can I append $index to another to make a new variable name as shown in
line 4 ?

Thanks in advance

Jay



-- 
PHP General Mailing List (http://www.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] PC MAG article

2001-05-09 Thread Tyrone Mills

If you can stand to read the whole article (I barely could), BEA declined to
participate. The article is nothing but worthless tripe, BEA is probably
better off for having been mentioned only in passing.

-Original Message-
From: Mark Charette [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 5:55 PM
To: PHP List
Subject: Re: [PHP] PC MAG article


Considering Websphere/EJB was mentioned ...

Where's the BEA Weblogics review 


--
PHP General Mailing List (http://www.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] PC MAG article

2001-05-09 Thread Mark Charette

Considering Websphere/EJB was mentioned ...

Where's the BEA Weblogics review 


-- 
PHP General Mailing List (http://www.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] PC MAG article

2001-05-09 Thread Opec Kemp \( Ozemail \)

Lol :)

Obviously they didn't even look at the ODBC functions part of PHP :)
Besides I don't know what they're bitching about DB abstraction layer
anyway. I mean Oracle SQL and MS SQL and MYSQL and Interbase SQL is
not exatcly compatible :) So even if you use the DB Abstraction layer
to connect to the DB you still screwed when it comes to SQL syntax :)
At least with PHP you can use tool like Metabase libs which will
perform abstraction for stuff like this as well as DB connection etc.
:)

My $0.02

> -Original Message-
> From: Ryan Christensen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 10, 2001 10:31 AM
> To: Philip Olson; Mike
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] PC MAG article
>
>
> Lol..
>
> quoted..
> "PHP proponents argue that abstraction layers dumb down and
> slow down access
> to databases, but we think they can increase developer productivity,
> facilitate application migration, and cut training costs. "
>
> Cut training costs? Yeah.. let's use an inefficient system
> just so we can
> save some money? (even though PHP is already free!!!)
>
> hehe..
>
> 
> Ryan Christensen
> OlyPen Technical Support
> [EMAIL PROTECTED]
> 360.457.3000
> 800.303.8696
>
>
> - Original Message -
> From: Philip Olson <[EMAIL PROTECTED]>
> To: Mike <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 09, 2001 5:26 PM
> Subject: Re: [PHP] PC MAG article
>
>
> > for informational purposes, it can be seen here :
> >
> >
http://www.zdnet.com/pcmag/stories/reviews/0,6755,2713481,00.html
>
> no comment. :)
>
> regards,
> philip
>
>
> On Wed, 9 May 2001, Mike wrote:
>
> > As a devoted php programmer I was surprised how bad PC MAG blasted
php
this
> > month.It sound as if it doesnt scale very well(Ive never had more
than a
few
> > people on my site at once).Any comments???
> >
> > Thanks
> > Mike
> > [EMAIL PROTECTED]
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
[EMAIL PROTECTED]
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
[EMAIL PROTECTED]
>
>


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


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




Re: [PHP] PC MAG article

2001-05-09 Thread Nathan Cook

Did you notice how they mentioned nothing to the fact that PHP _does_ support
ODBC?

To think if they keep printing articles like that then macromedia just might
advertise with them...

Nathan Cook
[EMAIL PROTECTED]
- Original Message - 
From: "Ryan Christensen" <[EMAIL PROTECTED]>
To: "Philip Olson" <[EMAIL PROTECTED]>; "Mike" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 6:31 PM
Subject: Re: [PHP] PC MAG article


> Lol..
> 
> quoted..
> "PHP proponents argue that abstraction layers dumb down and slow down access
> to databases, but we think they can increase developer productivity,
> facilitate application migration, and cut training costs. "
> 
> Cut training costs? Yeah.. let's use an inefficient system just so we can
> save some money? (even though PHP is already free!!!)
> 
> hehe..
> 
> 
> Ryan Christensen
> OlyPen Technical Support
> [EMAIL PROTECTED]
> 360.457.3000
> 800.303.8696
> 
> 
> - Original Message -
> From: Philip Olson <[EMAIL PROTECTED]>
> To: Mike <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 09, 2001 5:26 PM
> Subject: Re: [PHP] PC MAG article
> 
> 
> > for informational purposes, it can be seen here :
> >
> >   http://www.zdnet.com/pcmag/stories/reviews/0,6755,2713481,00.html
> >
> > no comment. :)
> >
> > regards,
> > philip
> >
> >
> > On Wed, 9 May 2001, Mike wrote:
> >
> > > As a devoted php programmer I was surprised how bad PC MAG blasted php
> this
> > > month.It sound as if it doesnt scale very well(Ive never had more than a
> few
> > > people on my site at once).Any comments???
> > >
> > > Thanks
> > > Mike
> > > [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 


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




Re: [PHP] PC MAG article

2001-05-09 Thread Nathan Cook

I don't like PC Magazine, I don't think they offer unbiased reports.  Most often
they are blatantly incorrect.  I was a subscriber for 3 years and cancelled 1
year ago...

BTW, I guess I must be an apache/Unix expert since I can install php from
source, WAHOO!! (Can I put that on my resume?)

Nathan Cook
[EMAIL PROTECTED]
- Original Message -
From: "Mike" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 6:19 PM
Subject: [PHP] PC MAG article


> As a devoted php programmer I was surprised how bad PC MAG blasted php this
> month.It sound as if it doesnt scale very well(Ive never had more than a few
> people on my site at once).Any comments???
>
> Thanks
> Mike
> [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] PC MAG article

2001-05-09 Thread Ryan Christensen

Lol..

quoted..
"PHP proponents argue that abstraction layers dumb down and slow down access
to databases, but we think they can increase developer productivity,
facilitate application migration, and cut training costs. "

Cut training costs? Yeah.. let's use an inefficient system just so we can
save some money? (even though PHP is already free!!!)

hehe..


Ryan Christensen
OlyPen Technical Support
[EMAIL PROTECTED]
360.457.3000
800.303.8696


- Original Message -
From: Philip Olson <[EMAIL PROTECTED]>
To: Mike <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 5:26 PM
Subject: Re: [PHP] PC MAG article


> for informational purposes, it can be seen here :
>
>   http://www.zdnet.com/pcmag/stories/reviews/0,6755,2713481,00.html
>
> no comment. :)
>
> regards,
> philip
>
>
> On Wed, 9 May 2001, Mike wrote:
>
> > As a devoted php programmer I was surprised how bad PC MAG blasted php
this
> > month.It sound as if it doesnt scale very well(Ive never had more than a
few
> > people on my site at once).Any comments???
> >
> > Thanks
> > Mike
> > [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] PC MAG article

2001-05-09 Thread Philip Olson

for informational purposes, it can be seen here :

  http://www.zdnet.com/pcmag/stories/reviews/0,6755,2713481,00.html

no comment. :)

regards,
philip


On Wed, 9 May 2001, Mike wrote:

> As a devoted php programmer I was surprised how bad PC MAG blasted php this
> month.It sound as if it doesnt scale very well(Ive never had more than a few
> people on my site at once).Any comments???
> 
> Thanks
> Mike
> [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] PC MAG article

2001-05-09 Thread Mike

As a devoted php programmer I was surprised how bad PC MAG blasted php this
month.It sound as if it doesnt scale very well(Ive never had more than a few
people on my site at once).Any comments???

Thanks
Mike
[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] ASP 2 PHP

2001-05-09 Thread Max Pyziur



On Wed, 9 May 2001, Brandon Orther wrote:

> Hello,
>
> I am looking at a complete database with it interface written in ASP.  All
> of our company programs are written in PHP and that is what I want to use.
>
> I believe I remember seeing ASP 2 PHP converts before.  Does anyone know of
> any.  They don't have to work perfect just convert it with some bugs and I
> will fixes those.

I've never tried it (though I have the rpms installed in the event one of
my sites needs to use it), but I just saw on freshmeat.net that a new
release of asp2php  was released - http://asp2php.naken.cc/ is the link.

> Also it is using a MSSQL database if that helps at all.
>
> Thanks
> Brandon
>


Max Pyziur BRAMA - Gateway Ukraine
[EMAIL PROTECTED]  http://www.brama.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] cobalt raq4

2001-05-09 Thread Herman Tolentino

anybody out there who has successfully compiled php (apache module) with
PDFLib 4? Much help would be appreciated. Been trying for 1 week.


-- 
PHP General Mailing List (http://www.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 Auth

2001-05-09 Thread gary

Thanks Ive fixed my problem..

"Thomas Edison Jr." wrote:

> Try using this :
>
>  $auth = false; // Assume user is not authenticated
> if (isset( $PHP_AUTH_USER ) && isset($PHP_AUTH_PW)) {
>
> mysql_connect('localhost','root') or die (
> 'Unable to connect to server.' );
> mysql_select_db( 'myDB' ) or die ( 'Unable to
> select database.' );
>
> // Formulate the query
>
> $sql = "SELECT * FROM myTable WHERE
> username = '$PHP_AUTH_USER' AND
> password = '$PHP_AUTH_PW'";
>
> // Execute the query and put results in $result
>
> $result = mysql_query( $sql ) or die ( 'Unable to
> execute query.' );
>
> // Get number of rows in $result.
> $num = mysql_numrows( $result );
> if ( $num != 0 ) {
>
> // A matching row was found - the user is
> authenticated.
>
> $auth = true;
> }
> }
>
> if ( ! $auth ) {
>
> header( 'WWW-Authenticate: Basic realm="Private"'
> );
> header( 'HTTP/1.0 401 Unauthorized' );
> echo 'Authorization Required.';
> exit;
>
> } else {
>
> ***your stuff goes here when authenticated
>
> }
> ?>
>
> works excellent on any browser, apache server with PHP
> module.
>
> T. Edison jr.
>
> --- gary <[EMAIL PROTECTED]> wrote:
> > Im having a problem with Authentication uisng
> > $PHP_AUTH_USER and
> > $PHP_AUTH_PASSWORD works fine connecting via
> > netscape but automatically
> > set to false when using IE 5. Apache server , PHP
> > installed as a module
> > on a freebie server. Code below:
> >  >
> >  // Assume user is not authenticated
> >
> > if (isset($PHP_AUTH_USER) && isset($PHP_AUTH_PW)) {
> >
> >   // Connect to database
> >   $conn = pg_pconnect ("dbname=".$db.$login);
> >   // Select database on MySQL server
> >
> >
> >   // Formulate the query
> >
> >   $sql = "SELECT * FROM ".$table2." WHERE
> >   username = '$PHP_AUTH_USER' AND
> >   password = '$PHP_AUTH_PW' and valid ='y'";
> >
> >   // Execute the query and put results in $result
> >
> >   $result = pg_Exec ( $sql );
> >
> >   // Get number of rows in $result.
> >
> >   $num = pg_numrows( $result );
> >   if ( $num != 0 ) {
> >   // A matching row was found - the user is
> > authenticated.
> >  $auth = true;
> >}
> > }
> > if ( ! $auth ) {
> >   header("WWW-Authentucate: Basic
> > realm=\"Private\"\\n");
> >   Header ("Status: 401 Unauthorized\n");
> >header("HTTP/1.0 401 Unauthorized\n");
> > echo 'Authorization Required.';
> > echo 'Please go to  > href=./index,php?pg=REGISTER>Registration
> > page to Get a logon, It is Free.';
> > echo
> >
> "???".$PHP_AUTH_USER."???".$PHP_AUTH_PW."";
> >   exit;
> > } else {
> > }
> > pg_close($conn);
> > ?>
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
> >
>
> =
> Rahul S. Johari (Director)
> **
> Abraxas Technologies Inc.
> Homepage : http://www.abraxastech.com
> Email : [EMAIL PROTECTED]
> Tel : 91-4546512/4522124
> ***
>
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


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




[PHP] Moving existing systems from ColdFusion to PHP?

2001-05-09 Thread Jason Murray

Hi folks,

I'm looking for a bit of advice here, and probably someone to whom I 
can fire off an email if I run into trouble.

We have a system written in ColdFusion (for anyone who knows Melbourne 
IT, I'm talking about our Digital Certificates sales system, not our
Domain Name Registration system, which is already using PHP :)) which 
I am trying to drag kicking and screaming into PHP code because we don't
have any CF developers.

The system is currently running using Cold Fusion on *nix (ie, NOT
the Windows NT CF that everyone seems to use), and talks to an Oracle
database.

I'm not sure *how* it's talking to the Oracle database, if it is 
talking directly to it, or using unixODBC (which I found references
to in /usr/local/coldfusion). As I don't know the first thing about
Cold Fusion, I am sort of floundering here.

I guess what I need is:
  1. How can I tell whether Cold Fusion is using native Oracle calls
 or using ODBC to talk to the database?
  2. In the CF files, I see reference to variables that I can't see
 defined anywhere: "#Application.datasource1#" etc etc. Where can
 I find the file that defines these variables?
  3. Because other parts of our business rely on the database itself,
 I can't reconstruct it in MySQL. I need to replace *just* the
 Cold Fusion, and leave the database as-is. I guess this means
 I'll need PHP to have either ODBC or Oracle support. Anyone
 able to tell me which is easier to get up and running?

Can anyone shed some light on this for me? It would be much appreciated.

Thanks

Jason

-- 
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
"What'll Scorpy use wormhole technology for?"
'Faster pizza delivery.'

-- 
PHP General Mailing List (http://www.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] Weirdest error I've ever had....

2001-05-09 Thread Chris Anderson

too simple :)
doesnt fix it anyway, it was a xhtml compliancy problem

Chris Anderson   aka "Null"

PHP Developer / Nulltech
PHP-GTK Documentation Writer / gtk.php.net
STA-DoD, TO and D-Day Administrator / dod.stronger.org,
to.stronger.org, dday.stronger.org
Zeroping Staff Member / www.zeroping.com
Volition Programmer / www.Volition-net.com
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 2:26 AM
Subject: Re: [PHP] Weirdest error I've ever had


At 06.05.01  12:00, you wrote:
>Alright I have a simple file writing script. Nothing special. in one
>part I use this code:
> $data[$x] = str_replace("","\n", $data[$x]);
>to replace break tags with page breaks. Problem is that for some
>reason it is adding wierd  tags to the file. It only does this
>on that server. What is that?
why don´t you use $data[$x]=nl2br($data[$x]);
smart n easy
HTH Oliver


--
PHP General Mailing List (http://www.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] ASP 2 PHP

2001-05-09 Thread Brandon Orther

Hello,

I am looking at a complete database with it interface written in ASP.  All
of our company programs are written in PHP and that is what I want to use.

I believe I remember seeing ASP 2 PHP converts before.  Does anyone know of
any.  They don't have to work perfect just convert it with some bugs and I
will fixes those.

Also it is using a MSSQL database if that helps at all.

Thanks
Brandon

-- 
PHP General Mailing List (http://www.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] ASP 2 PHP?

2001-05-09 Thread Tom Carter

I don't have any direct experience using it, but colleagues I know have
given it great reviews.

ASP2PHP script (nice name ;o) )
http://asp2php.naken.cc/

Tom Carter
Web Architect
roundcorners ltd.

On Wed, 9 May 2001, Brandon Orther wrote:

> Hello,
>
> I am looking at a complete database with it interface written in ASP.  All
> of our company programs are written in PHP and that is what I want to use.
>
> I believe I remember seeing ASP 2 PHP converts before.  Does anyone know of
> any.  They don't have to work perfect just convert it with some bugs and I
> will fixes those.
>
> Thanks
> Brandon
>
>
> --
> PHP General Mailing List (http://www.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] Old PHP.net website..

2001-05-09 Thread Ryan Christensen

If you want it quicker though, I would suggest what Egon says.. it's not
that hard to find.

ttyl,
Ryan


Ryan Christensen
OlyPen Technical Support
[EMAIL PROTECTED]
360.457.3000
800.303.8696


- Original Message -
From: Nathan Handler <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 3:19 PM
Subject: Re: [PHP] Old PHP.net website..


> Still lost.. where in here would it be...this looks more like the new
> website stuff...where would I find how to put on that pop-up thing for
menus
> like in the old website?
>
> Best Regards,
>
> Nathan Handler
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Ender" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, May 09, 2001 5:06 PM
> Subject: Re: [PHP] Old PHP.net website..
>
>
> > On Wed, May 09, 2001 at 04:59:41PM -0500, Ender wrote:
> > > Does anyone remember the previous php.net website where you would hold
> > > your cursor over a menu bar and it would pop up info?  Does anyone
know
> > > how to do that or where the script for it is?
> >
> > cvs.php.net -> phpweb
> >
> > -Egon
> >
> > --
> > LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/
> > All known books about PHP and related books: http://php.net/books.php
> > Concert Band of the University of Hohenheim: http://www.concert-band.de/
> > First and second bestselling book in German: http://www.php-buch.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 General Mailing List (http://www.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] ASP 2 PHP?

2001-05-09 Thread Brandon Orther

Hello,

I am looking at a complete database with it interface written in ASP.  All
of our company programs are written in PHP and that is what I want to use.

I believe I remember seeing ASP 2 PHP converts before.  Does anyone know of
any.  They don't have to work perfect just convert it with some bugs and I
will fixes those.

Thanks
Brandon


-- 
PHP General Mailing List (http://www.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] Old PHP.net website..

2001-05-09 Thread Ryan Christensen

Hi,

I took some time one night to get a good portion of it downloaded, and can
send you a textfile of the htm/js that's outputted once the server generates
it.. (since you probably want that instead of the php-ized version..)

Busy at the moment, so email me later tonight.

Thanks!


Ryan Christensen
OlyPen Technical Support
[EMAIL PROTECTED]
360.457.3000
800.303.8696


- Original Message -
From: Nathan Handler <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 3:19 PM
Subject: Re: [PHP] Old PHP.net website..


> Still lost.. where in here would it be...this looks more like the new
> website stuff...where would I find how to put on that pop-up thing for
menus
> like in the old website?
>
> Best Regards,
>
> Nathan Handler
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Ender" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, May 09, 2001 5:06 PM
> Subject: Re: [PHP] Old PHP.net website..
>
>
> > On Wed, May 09, 2001 at 04:59:41PM -0500, Ender wrote:
> > > Does anyone remember the previous php.net website where you would hold
> > > your cursor over a menu bar and it would pop up info?  Does anyone
know
> > > how to do that or where the script for it is?
> >
> > cvs.php.net -> phpweb
> >
> > -Egon
> >
> > --
> > LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/
> > All known books about PHP and related books: http://php.net/books.php
> > Concert Band of the University of Hohenheim: http://www.concert-band.de/
> > First and second bestselling book in German: http://www.php-buch.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 General Mailing List (http://www.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] Old PHP.net website..

2001-05-09 Thread eschmid+sic

On Wed, May 09, 2001 at 05:19:36PM -0500, Nathan Handler wrote:
> Still lost.. where in here would it be...this looks more like the new
> website stuff...where would I find how to put on that pop-up thing for menus
> like in the old website?

Scroll down the versions and you will find it. If you are using 
cvs.php.net the first time, you need some time to find the information.
But believe me, it is there. Look at the older versions, not the newer
ones.

-Egon 

> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Ender" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, May 09, 2001 5:06 PM
> Subject: Re: [PHP] Old PHP.net website..
> 
> 
> > On Wed, May 09, 2001 at 04:59:41PM -0500, Ender wrote:
> > > Does anyone remember the previous php.net website where you would hold
> > > your cursor over a menu bar and it would pop up info?  Does anyone know
> > > how to do that or where the script for it is?
> >
> > cvs.php.net -> phpweb
> >
> > -Egon
> >
> > --
> > LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/
> > All known books about PHP and related books: http://php.net/books.php
> > Concert Band of the University of Hohenheim: http://www.concert-band.de/
> > First and second bestselling book in German: http://www.php-buch.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 General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
-- 
LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/
All known books about PHP and related books: http://php.net/books.php 
Concert Band of the University of Hohenheim: http://www.concert-band.de/
First and second bestselling book in German: http://www.php-buch.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]




Re: [PHP] Is there a string index funct?

2001-05-09 Thread Mark Maggelet

On Wed, 9 May 2001 18:08:45 -0700, Dexter ([EMAIL PROTECTED]) wrote:
>Hi PHP sters,
>
>Looking for a function like Perls index function to get the first
>occurrence of a string within another.
>
>Thanks
>
>Dexter

http://www.php.net/manual/en/function.strpos.php



--
PHP General Mailing List (http://www.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] Apache error when installing PHP 4.0.5

2001-05-09 Thread Mark Maggelet

On Wed, 9 May 2001 15:49:51 -0500, Joseph Bannon
([EMAIL PROTECTED]) wrote:
>> you need to point to the apache-source install
>> ie: ./configure --with-apache=../apache-1.3.19
>
>
>But what if I have apache already installed? I have a Cobalt Raq3
>with
>apache already installed.

you need to recompile apache too, unless you want to run php as cgi,
in which case you just leave out the --with-apache part

>Joseph
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: php-list-
>[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] Old PHP.net website..

2001-05-09 Thread Nathan Handler

Still lost.. where in here would it be...this looks more like the new
website stuff...where would I find how to put on that pop-up thing for menus
like in the old website?

Best Regards,

Nathan Handler
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Ender" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 5:06 PM
Subject: Re: [PHP] Old PHP.net website..


> On Wed, May 09, 2001 at 04:59:41PM -0500, Ender wrote:
> > Does anyone remember the previous php.net website where you would hold
> > your cursor over a menu bar and it would pop up info?  Does anyone know
> > how to do that or where the script for it is?
>
> cvs.php.net -> phpweb
>
> -Egon
>
> --
> LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/
> All known books about PHP and related books: http://php.net/books.php
> Concert Band of the University of Hohenheim: http://www.concert-band.de/
> First and second bestselling book in German: http://www.php-buch.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 General Mailing List (http://www.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] Does the array parameter of ereg actually return strings matched?

2001-05-09 Thread Dexter

Does the array parameter of ereg actually return strings matched? I tried to read a 
file looking for a string using

ereg and wanted to put the matched strings found in an array. Doesn't seem to

be happening with the following.



 $contents=fread($readfile,10);

 $pattern="";
$i=0;
  while(!feof($readfile))
   {

 $contents=fgets($readfile,4065);

if(eregi($pattern,$contents,$regs))
 {   echo "$regs[$i]";
  }
 $i++;
}


Thanks

Dexter

Dexter




[PHP] Is there a string index funct?

2001-05-09 Thread Dexter

Hi PHP sters,

Looking for a function like Perls index function to get the first occurrence of a 
string within another.

Thanks

Dexter




Re: [PHP] Old PHP.net website..

2001-05-09 Thread eschmid+sic

On Wed, May 09, 2001 at 04:59:41PM -0500, Ender wrote:
> Does anyone remember the previous php.net website where you would hold 
> your cursor over a menu bar and it would pop up info?  Does anyone know 
> how to do that or where the script for it is?

cvs.php.net -> phpweb

-Egon

-- 
LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/
All known books about PHP and related books: http://php.net/books.php 
Concert Band of the University of Hohenheim: http://www.concert-band.de/
First and second bestselling book in German: http://www.php-buch.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] Old PHP.net website..

2001-05-09 Thread Ender

Does anyone remember the previous php.net website where you would hold 
your cursor over a menu bar and it would pop up info?  Does anyone know 
how to do that or where the script for it is?

Best regards,

Ender [Clan Leader]
[EMAIL PROTECTED]



[PHP] I HAVE SOLVEN THE PROBLEM .........

2001-05-09 Thread Jorge Amaya

HI ALL,

MY PROBLEM WITH THE NAVIGATOR WAS THAT THE JAVA CONSOLE IS LOADED AND 
THAT TOWARD THE PROBLEM

THANK YOU MARC, HRISHI, GEIR MORK AND TODD KENNEDY


REGARDS




-- 
PHP General Mailing List (http://www.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] Commercial PHP Support...

2001-05-09 Thread Michael Kimsal

We'd offered this before, and got a lukewarm response.  Currently retooling
our website to offer this service directly, but we offer one-off and long-term
commercial support contracts for PHP.  Development, installation,
troubleshooting,
and more.  Contact me directly at 1-866-745-3660 if you have more questions,
or check our website in the next few days -
http://www.tapinternet.com/

We also offer PHP training classes, onsite or in our hometown.  :)




-- 
PHP General Mailing List (http://www.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] Commercial PHP Support...

2001-05-09 Thread Darron Froese

We're working with a large client trying to help them on a couple of large
web development projects.

For the requirements that they have given us, we would love to be able to
use PHP BUT are having problems because:

They can't get commercial support for it.

Basically, they want the ability to cover their asses in case something goes
wrong - so PHP isn't a viable option (in their eyes).

I can get support for an Apache/PHP combo through Covalent - but since the
client may be sticking with their Netscape Enterprise server that may not
work.

Does anybody know of an organization that can support mod_php (if something
goes wrong) for a large corporate environment?

It would be running mod_php on a single server at first, then a few more
servers and then a few more - to a possible total of about 30 boxes.

Thanks.
-- 
darron froese
new media technologist
sutton javelin corporate communications
t  403.716.0351
f  403.265.7662
e  [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] GetImageSize

2001-05-09 Thread Richard

It appears like so.


"Joseph Bannon" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > What version of PHP are you using? According to the manual:
> > "URL support was added in PHP 4.0.5"
>
>
>
> Oh, I have 4.0.4. I need to upgrade don't I?!?
>
> Thanks,
> J
>
> --
> PHP General Mailing List (http://www.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] How does everyone else do this? .php in URL

2001-05-09 Thread DAve Goodrich

on 5/9/01 1:01 PM, Michael Champagne at [EMAIL PROTECTED] wrote:

> I have an area of our site where you can turn off certain 'systems' by
> clicking a button.  This is all done in HTML and it brings up a javascript box
> to verify that this is really what you want to do..  It then does a
> header("location: ...") to redirect to a .php file that locks down the site.
> The problem is that the browser saves this in the history and sometimes will
> do complete this .php file in a URL and the site is locked down by accident.
> Is there a better way to call a certain function of the site rather than doing
> a header("location: ...") redirection?  How does everyone else do this?
> 
> Thanks!
> Mike

I do something like this to move files around between boxes. I have a
webpage that allows a traffic manager to select a date/time to checkout
files from CVS. This date stamp is written to a file, /tmp/doSync.tmp, and a
mail message warning of the impending checkout is sent to the traffic
manager. A cron job checks for the existence of /tmp/doSync.tmp, and if
found a CVS checkout is made to a temp directory /tmp/tempScripts/ using the
metadata from inside the file (date, time, etc).

Another cron script runs rsync to distribute the files where they belong,
and removes the /tmp/doSync.tmp script mailing the results of the rsync
script to the sysadmin.

The page that writes the original file is in PHP, and PHP scripts read the
contents of /tmp/doSync.tmp whenever a traffic manager loads the page to let
him/her know if a checkout is pending or not.

I get around your problem like this, the main page loads a form whose action
is a php script that will place the tmp file, and then redirects back to the
main page. This makes the redirect happen after the fact. I also have a lag
in the cron job to give the traffic manager a chance to intercede after
receiving the mail notification.

Does that make sense?

main.php
  

place_temp.php
  if ($fp=fopen('/tmp/doSync.tmp', 'w')) {
fwrite($fp,"$cvsDateTime \n");
fclose($fp);
chmod("/tmp/tmp/doSync.tmp", 0666);
$message = "A checkout of HTML/PHP files is scheduled \n";
$message .= "If this is an error, you may cancel ";
$message .= "here.";
mail("[EMAIL PROTECTED],"Files moving Live!!",$message);
header("Location: main.php");

} else {

header("Location: main.php");
}

Cron jobs do the rest.


--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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] Apache error when installing PHP 4.0.5

2001-05-09 Thread Joseph Bannon

> you need to point to the apache-source install
> ie: ./configure --with-apache=../apache-1.3.19


But what if I have apache already installed? I have a Cobalt Raq3 with
apache already installed.

Joseph

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




[PHP] Apache error when installing PHP 4.0.5

2001-05-09 Thread Joseph Bannon

What gives?

Here is my error message

configure: error: Invalid Apache directory - unable to find httpd.h under
/usr/include/apache


Here is my configure line I typed in...

./configure --with-mysql=/usr/local/mysql-3.23.37
--with-apache=/usr/include/apache
--enable-track-vars
--prefix=/usr/local/php-4.0.5



Here is the location of the httpd.h file

/usr/include/apache/httpd.h

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




Re[2]: [PHP] thanks Hrishi AND ANOTHER QUESTION ?

2001-05-09 Thread Adaran (Marc E. Brinkmann)

Jorge> HI MARC

Jorge> I have installed Apache on windows 98, php4 already this installed, the 
Jorge> navigator that I use is netscape 6.0 
Jorge> IT DOESN'T LOAD THE NAVIGATOR UP WITH APACHE.

Well, I do have that problems, too. I'm using exactly the same programs, and if
I have Apache Running, Netscape won't start. If I close Apache, start Netscape
and then run it again everything runs fine...

With ICQ 98a, I've got the same problem, even in many other Programs. With
Apache luckily only Netscape doesn't seem to work =). With ICQ, many many
Applications (Photoshop, Homesite, Winamp, some from time to time...) won't start when 
I run them. Closing ICQ immediately solves the
problem...

---
EnjoY,
 Adaran ([EMAIL PROTECTED])
   check http://www.adaran.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] filesize & PHP 3

2001-05-09 Thread Siegfried Kettlitz

Hi,
i have a filepointer $fp openend with fopen. Now my problem i to determine 
the actual filesize of that file with just the filepointer (not with 
filesize($filename) ) is there a way to do so in PHP 3 (not PHP4) ? 


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




[PHP] session

2001-05-09 Thread Rodrigo Reis da Rocha

Hi,
I have a problem with the session variables.

nome_usuario = "vazio";
  $this->webmaster_mail = "[EMAIL PROTECTED]";
  $this->acao = "inicio";
  $this->url_sistema = "http://localhost/web/ ";
 }

 function autorizaSistema($param_usuario, $param_passwd){
  //Verificar no banco se o usuario existe
  $this->nome_usuario = $param_usuario;
 }
}


session_start();

if (!session_is_registered("SISTEMA")){

 //Registra a sessao
 session_register("SISTEMA");
 $GLOBALS["SISTEMA"] = new Autorizacao();
 echo "Seta sistema";

}

echo $GLOBALS["SISTEMA"]->url_sistema;

echo "teste";

echo "reload";
?>

at the secons time that this code is executed generate this error.

Fatal error: The script tried to execute a method or access a property of an 
incomplete object. Please ensure that the class definition autorizacao of the object 
you are trying to operate on was loaded _before_ the session was started in 
C:/XITAMI/webpages/WEB/in2.php on line 38

Please help

Tkx.
R3.



RE: [PHP] manipulating files with php

2001-05-09 Thread Benjamin Munoz


There are a number of ways to do this.  Mine is something like this:

if (has_read_perm($user_id, $file_id)) {
send_file_to_browser($file_id);
} else {
// print error message();
}

...

function has_read_perm($user_id, $file_id) {
// check db table
// return true/false
}

function send_file_to_browser($file_id) {
$file_location = get_file_location($file_id); // get full path of
this file_id
$file_mime = get_file_mime($file_id); // I store this info in the db
$fp = fopen("$file_location","r"); 
$buff = fread($fp,800); 
header("Content-Type: $file_mime_type\n");
echo $buff; 
}

function get_file_location ($file_id) {
// return full path to the file, including file_name
}

function get_file_mime_type($file_id) {
// return the original file mime type, I have this stored into the
db when a file is uploaded
}

Because you are sending a header here, you can't print html before the
function send_file_to_browser() is called.

-Ben

-Original Message-
From: Andrew Coles [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 12:50 PM
To: [EMAIL PROTECTED]
Subject: [PHP] manipulating files with php


I am creating a CRM system using php for my final year university project.
I would like to enable the storing of files on the system.  However I want
to restrict access to these files according to privilege tables stored in
local mysql tables.  In order to prevent access to the files by simply
typing the url, they would be stored outside the web directory.

Is it possible to create a php page which will read a local file from
outside the web directory and pass the data straight to the http output, in
affect allowing checking of a users status before allowing access to the
file?

I would be grateful for any suggestions,

Thanks,

Andrew



-- 
PHP General Mailing List (http://www.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] How does everyone else do this? .php in URL

2001-05-09 Thread Michael Champagne

I have an area of our site where you can turn off certain 'systems' by
clicking a button.  This is all done in HTML and it brings up a javascript box
to verify that this is really what you want to do..  It then does a
header("location: ...") to redirect to a .php file that locks down the site.
The problem is that the browser saves this in the history and sometimes will
do complete this .php file in a URL and the site is locked down by accident.
Is there a better way to call a certain function of the site rather than doing
a header("location: ...") redirection?  How does everyone else do this?

Thanks!
Mike




**
This communication is for informational purposes only.  It is not
intended as an offer or solicitation for the purchase or sale of 
any financial instrument or as an official confirmation of any 
transaction, unless specifically agreed otherwise.  All market 
prices, data and other information are not warranted as to 
completeness or accuracy and are subject to change without
notice.  Any comments or statements made herein do not 
necessarily reflect the views or opinions of Capital Institutional
Services, Inc.  Capital Institutional Services, Inc. accepts no
liability for any errors or omissions arising as a result of
transmission.  Use of this communication by other than intended
recipients is prohibited.
**

-- 
PHP General Mailing List (http://www.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] email_valid function not working??

2001-05-09 Thread Ben Rigby

hi. thanks in advance for any help!
i'm trying to make the email_valid function that i found on php.net
work.
i can get it to validate the email formatting, but it always fails on
the MX check and the DNS check.
any ideas??? thanks! please cc [EMAIL PROTECTED] with any answers

 function valid_email ($email) {
  if
(eregi("^[0-9a-z_]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,3}$",
$email,$check)) {
   echo "passed formatting test. ";
   if ( getmxrr(substr(strstr($check[0], '@'), 1), $validate_email_temp)
) {
echo "passed getmxrr test. ";
 return TRUE;
}
// THIS WILL CATCH DNSs THAT ARE NOT MX.
if(checkdnsrr(substr(strstr($check[0], '@'), 1),"ANY")){
echo "passed dns check";
return TRUE;
}
  }
echo "FALSE";
return FALSE;
}


-- 
PHP General Mailing List (http://www.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] manipulating files with php

2001-05-09 Thread Andrew Coles

I am creating a CRM system using php for my final year university project.
I would like to enable the storing of files on the system.  However I want
to restrict access to these files according to privilege tables stored in
local mysql tables.  In order to prevent access to the files by simply
typing the url, they would be stored outside the web directory.

Is it possible to create a php page which will read a local file from
outside the web directory and pass the data straight to the http output, in
affect allowing checking of a users status before allowing access to the
file?

I would be grateful for any suggestions,

Thanks,

Andrew



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




Re: [PHP] can't get php working on redhat 7.1

2001-05-09 Thread Markus Fischer


- Original Message -
From: "Daniel Goldin (E-mail)" <[EMAIL PROTECTED]>
To: "Php (E-mail) (E-mail)" <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 9:47 PM
Subject: [PHP] can't get php working on redhat 7.1


> Got apache going. But no php. Anyone had any experience on this the latest
> redhat.
>
> Hoping to get some pointers to getting apache/php/mysql working nicely in
> redhat 7.1. I've been struggling with this for days now.

What's the problem in detail ?

- Markus


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




Re: [PHP] sending attachments via mail(), possible?

2001-05-09 Thread Christian Dechery

At 15:17 9/5/2001 -0400, Tym Rehm wrote:
>You have to open the file and encode it.
>Check out this:
>
>/* Define the attachment and encode it base64 */ 
>$filename="/var/www/sf/Ftp_User_Info.doc"; $fd = fopen($filename, "r"); 
>$contents = fread($fd, filesize($filename)); 
>$encoded=chunk_split(base64_encode($contents)); fclose($fd); /* Trim white 
>spaces */ $request_by = trim($request_by); $email = trim($email); $company 
>= trim($company); /* testing if form is filled out */

the problem is that is NO file... I want to put in the attachment part just 
a text... but I want it to go as a text attachment...
I still have to base64_encode-it even if it is text file?


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




RE: [PHP] sending attachments via mail(), possible?

2001-05-09 Thread Benjamin Munoz


There is a PHP class someone wrote called mime_mail that makes this easy. 

The resulting code using this class is something like:


// create new mime_mail object instance
$mail = new mime_mail;

// set all data slots
$mail->from= "[EMAIL PROTECTED]";
$mail->to  = "[EMAIL PROTECTED]";
$mail->subject = "here's that file";
$mail->body= "here's that file";

// read the file from disk
$fd = fopen($file_location, "r");
$data = fread($fd, filesize($file_location));
fclose($fd);

// append the attachment
$mail->add_attachment($data, $file_name, $file_mime_type);

// send e-mail
$mail->send();

Look in phpclasses.upperdesign.com or search in Google.

-Ben

-Original Message-
From: Tym Rehm [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 12:18 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] sending attachments via mail(), possible?


You have to open the file and encode it.
Check out this:



  FitnessQuest FTP user request form - results


FAILED!";
  print "This form can't be sent! You did not fill the form out
completely!The email address is missing!";
  print "Please click the back button and fill in the email
address";
  print "Thank you";
  return;
}
if (empty($dr_ret) )
{
  print "FAILED!";
  print "This form can't be sent! You did not fill the form out
completely!The system is not selected!";
  print "Please click the back button and select a system (DR
or Retail)";
  print "Thank you";
  return;
}
#/* recipients */
$recipient = $email;

#/* subject */
$subject = "FitnessQuest FTP account form";

#/* message */
$message .= "--$border\n";
$message .= "Content-Type: text/plain; charset=us-ascii\n\n";
$message .= "Attached is a FTP account access form. The form is in Microsoft
Word 97 format, please fill it out completely\n";
$message .= "and email it back to [EMAIL PROTECTED] After a completed
form has been recieved your FTP account will be\n";
$message .= "created. It will take approximately two working days to
complete your FTP account. You will recieve an email with\n";
$message .= "username, password, and ftp server name. If you have questions,
email [EMAIL PROTECTED] or call your account\n";
$message .= "representative. Thank you\n\n";
$message .= "\n--$border\n";
$message .= "Content-Type: application/msword; name=\"Ftp\ User\
Info.doc\"\n";
$message .= "Content-Transfer-Encoding: base64\n";
$message .= "Content-Disposition: attachment; filename=\"Ftp\ User\
Info.doc\"\n";
$message .= "\n";
$message .= "$encoded";
#$message .= "--$border\n";

/* Header infomation */
$headers .= "From: FTP Accounts <[EMAIL PROTECTED]>\n";
$headers .= "X-Sender: <[EMAIL PROTECTED]>\n";
$headers .= "Mime-Version: 1.0\n";
$headers .= "Content-Type: multipart/mixed; boundary=\"$border\"\n";

#/* and now mail it */
mail($recipient, $subject, $message, $headers);
print "Notices Sent";
print "Emailed out!";

print "Mail Sent to $recipient";

/* Send notices to the distribution list */
/* Read Distribution list from text file */
$dlist = file("/var/www/sf/dlist");
$line = explode( ",", $dlist[0]);
array_push ($line, $request_by);
$dnumber = count($line);
if ($dnumber == 0)
{
  print "The list is empty";
}
for ($i=0; $i<$dnumber; $i++)
{
#  print "$line[$i]";
   $line[$i] = trim($line[$i]);
/* Clear Notices var */
   unset ($not_mess);
   unset ($not_headers);
   unset ($not_sub);
/* Notice Email Message */
   $not_mess .= "--$border\n";
   $not_mess .= "Content-Type: text/plain; charset=us-ascii\n\n";
   $not_mess .= "An FTP access form was emailed to $email.\n";
   $not_mess .= "Company name: $company\n";
   $not_mess .= "$company will be a $dr_ret customer\n\n\n\n";
   $not_mess .= "The request form was completed by $request_by on
$date.\n\n";
#   $not_mess .= "\n--$border\n";
/* Notice Subject */
  $not_sub .= "FTP user setup notice";
/* Notice Headers */
  $not_headers .= "From: FTP Accounts <[EMAIL PROTECTED]>\n";
  $not_headers .= "X-Sender: <[EMAIL PROTECTED]>\n";
  $not_headers .= "Mime-Version: 1.0\n";
  $not_headers .= "Content-Type: multipart/mixed; boundary=\"$border\"\n";

/* Send Notice email to distribution list */
/* Diag testing */
#  print "|$line[$i]|";
#  print "|$not_sub|";
#  print "|$not_mess|";
#  print "|$not_headers|";
  mail($line[$i], $not_sub, $not_mess, $not_headers);
}


?>



- Original Message -
From: "Christian Dechery" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 3:10 PM
Subject: [PHP] sending attachments via mail(), possible?


> Is it possible to send attachments via mail() function?
>
> I tried it, and it didn't work out... the email I receive is all messed
up,
> and even the simple text part of it is screwed up. I now very little about
> MIME, but I really need to send an attachment, any help? It's a text
> attachment...
>
> This is the code I'm using:
>
> function send_email($body,$num_pedido,$filename)
> {
> define(NL,"\n");
> $boundary="test".chr(rand(65,91))."".md5(uniqid(rand()));
> $message="Segue em anexo dados refe

[PHP] can't get php working on redhat 7.1

2001-05-09 Thread Daniel Goldin \(E-mail\)

Got apache going. But no php. Anyone had any experience on this the latest
redhat.

Hoping to get some pointers to getting apache/php/mysql working nicely in
redhat 7.1. I've been struggling with this for days now.

Thanks for any help

daniel



Daniel Goldin   [EMAIL PROTECTED]
Creative Director   323.225.1926

 BlueLamp Productions
   www.blue-lamp.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] About MySQl and Transactions

2001-05-09 Thread Christian Dechery

At 20:09 9/5/2001 +0200, Fredrik Rodland wrote:
>I don't think MySql does not have support for transactions.  Try using
>another DB - like postgres.

yes it does... download Mysql-Max or install BDB in your mysql dist (if you 
are under *ux or *ix)...

Mysql-Max is the newest Mysql dist including BDB (which support transactions)...


-- 
PHP General Mailing List (http://www.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] Installing the GD Library

2001-05-09 Thread Joseph Bannon

I found your email

http://marc.theaimsgroup.com/?l=php-general&m=98772364615129&w=2


1) But what about installing 1.8.4?
2) What is PNG?
3) What is freetype?

Joseph

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




Re: [PHP] sending attachments via mail(), possible?

2001-05-09 Thread Tym Rehm

You have to open the file and encode it.
Check out this:



  FitnessQuest FTP user request form - results


FAILED!";
  print "This form can't be sent! You did not fill the form out
completely!The email address is missing!";
  print "Please click the back button and fill in the email
address";
  print "Thank you";
  return;
}
if (empty($dr_ret) )
{
  print "FAILED!";
  print "This form can't be sent! You did not fill the form out
completely!The system is not selected!";
  print "Please click the back button and select a system (DR
or Retail)";
  print "Thank you";
  return;
}
#/* recipients */
$recipient = $email;

#/* subject */
$subject = "FitnessQuest FTP account form";

#/* message */
$message .= "--$border\n";
$message .= "Content-Type: text/plain; charset=us-ascii\n\n";
$message .= "Attached is a FTP account access form. The form is in Microsoft
Word 97 format, please fill it out completely\n";
$message .= "and email it back to [EMAIL PROTECTED] After a completed
form has been recieved your FTP account will be\n";
$message .= "created. It will take approximately two working days to
complete your FTP account. You will recieve an email with\n";
$message .= "username, password, and ftp server name. If you have questions,
email [EMAIL PROTECTED] or call your account\n";
$message .= "representative. Thank you\n\n";
$message .= "\n--$border\n";
$message .= "Content-Type: application/msword; name=\"Ftp\ User\
Info.doc\"\n";
$message .= "Content-Transfer-Encoding: base64\n";
$message .= "Content-Disposition: attachment; filename=\"Ftp\ User\
Info.doc\"\n";
$message .= "\n";
$message .= "$encoded";
#$message .= "--$border\n";

/* Header infomation */
$headers .= "From: FTP Accounts <[EMAIL PROTECTED]>\n";
$headers .= "X-Sender: <[EMAIL PROTECTED]>\n";
$headers .= "Mime-Version: 1.0\n";
$headers .= "Content-Type: multipart/mixed; boundary=\"$border\"\n";

#/* and now mail it */
mail($recipient, $subject, $message, $headers);
print "Notices Sent";
print "Emailed out!";

print "Mail Sent to $recipient";

/* Send notices to the distribution list */
/* Read Distribution list from text file */
$dlist = file("/var/www/sf/dlist");
$line = explode( ",", $dlist[0]);
array_push ($line, $request_by);
$dnumber = count($line);
if ($dnumber == 0)
{
  print "The list is empty";
}
for ($i=0; $i<$dnumber; $i++)
{
#  print "$line[$i]";
   $line[$i] = trim($line[$i]);
/* Clear Notices var */
   unset ($not_mess);
   unset ($not_headers);
   unset ($not_sub);
/* Notice Email Message */
   $not_mess .= "--$border\n";
   $not_mess .= "Content-Type: text/plain; charset=us-ascii\n\n";
   $not_mess .= "An FTP access form was emailed to $email.\n";
   $not_mess .= "Company name: $company\n";
   $not_mess .= "$company will be a $dr_ret customer\n\n\n\n";
   $not_mess .= "The request form was completed by $request_by on
$date.\n\n";
#   $not_mess .= "\n--$border\n";
/* Notice Subject */
  $not_sub .= "FTP user setup notice";
/* Notice Headers */
  $not_headers .= "From: FTP Accounts <[EMAIL PROTECTED]>\n";
  $not_headers .= "X-Sender: <[EMAIL PROTECTED]>\n";
  $not_headers .= "Mime-Version: 1.0\n";
  $not_headers .= "Content-Type: multipart/mixed; boundary=\"$border\"\n";

/* Send Notice email to distribution list */
/* Diag testing */
#  print "|$line[$i]|";
#  print "|$not_sub|";
#  print "|$not_mess|";
#  print "|$not_headers|";
  mail($line[$i], $not_sub, $not_mess, $not_headers);
}


?>



- Original Message -
From: "Christian Dechery" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 3:10 PM
Subject: [PHP] sending attachments via mail(), possible?


> Is it possible to send attachments via mail() function?
>
> I tried it, and it didn't work out... the email I receive is all messed
up,
> and even the simple text part of it is screwed up. I now very little about
> MIME, but I really need to send an attachment, any help? It's a text
> attachment...
>
> This is the code I'm using:
>
> function send_email($body,$num_pedido,$filename)
> {
> define(NL,"\n");
> $boundary="test".chr(rand(65,91))."".md5(uniqid(rand()));
> $message="Segue em anexo dados referentes ao pedido $num_pedido.".NL.NL;
> $message="Content-type: text/plain\nContent-transfer-encoding:
> 7bit".NL.NL.$message;
> $attach="Content-type: text/plain\nContent-transfer-encoding:
> base64\nContent-disposition: attachment; filename=".$filename.NL.NL;
> $attach.=base64_encode($body);
> $attach.=NL;
> $mail_body=$boundary.NL.$message.$boundary.NL.$attach.$boundary."-";
> $header="MIME-Version: 1.0\nContent-Type:
> multipart/mixed;\n\tboundary=\"".$boundary."\"\nContent-Transfer-Encoding:
> 7bit";
> // echo "$mail_body";
> mail("[EMAIL PROTECTED]","CDYOU Pedido:
> ".$num_pedido,$mail_body,$header);
> }
>
> the headers are sent perfectly... and if I echo the $mail_body (I think)
> it's correct, but when I get the mail it's all screwed up...
>
> thanks...
> _
> . Christian Dechery - CTO
> .. WebDeveloper @ Webstyle

[PHP] sending attachments via mail(), possible?

2001-05-09 Thread Christian Dechery

Is it possible to send attachments via mail() function?

I tried it, and it didn't work out... the email I receive is all messed up, 
and even the simple text part of it is screwed up. I now very little about 
MIME, but I really need to send an attachment, any help? It's a text 
attachment...

This is the code I'm using:

function send_email($body,$num_pedido,$filename)
{
define(NL,"\n");
$boundary="test".chr(rand(65,91))."".md5(uniqid(rand()));
$message="Segue em anexo dados referentes ao pedido $num_pedido.".NL.NL;
$message="Content-type: text/plain\nContent-transfer-encoding: 
7bit".NL.NL.$message;
$attach="Content-type: text/plain\nContent-transfer-encoding: 
base64\nContent-disposition: attachment; filename=".$filename.NL.NL;
$attach.=base64_encode($body);
$attach.=NL;
$mail_body=$boundary.NL.$message.$boundary.NL.$attach.$boundary."-";
$header="MIME-Version: 1.0\nContent-Type: 
multipart/mixed;\n\tboundary=\"".$boundary."\"\nContent-Transfer-Encoding: 
7bit";
// echo "$mail_body";
mail("[EMAIL PROTECTED]","CDYOU Pedido: 
".$num_pedido,$mail_body,$header);
}

the headers are sent perfectly... and if I echo the $mail_body (I think) 
it's correct, but when I get the mail it's all screwed up...

thanks...
_
. Christian Dechery - CTO
.. WebDeveloper @ Webstyle!
.. http://www.webstyle.com.br
.. http://www.tanamesa.com.br


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




[PHP] Manipulating Images into JPG

2001-05-09 Thread Adam Plocher

I want to build a personal page that will have functionality to change many
types of image formats into a jpg.  Ie, convert gif to jpg, png to jpg, even
bmp to jpg.  Assuming this is possible, does anybody have any sample code I
can take a look at?

Thanks much.

Adam Plocher

"If ignorance is bliss, why aren't there more happy people in the world?"


-- 
PHP General Mailing List (http://www.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] user authentication

2001-05-09 Thread Philip Olson

try :

  http://www.zend.com/zend/tut/authentication.php

regards,
philip


On Wed, 9 May 2001, Jerry Lake wrote:

> Does anyone know of a good user authentication/sessions
> tutorial for php 4? I've looked through the ones at phpbuilder
> and they are not quite as in-depth as I would like.
> 
> Jerry Lake- [EMAIL PROTECTED]
> Interface Engineering Technician
> Europa Communications - http://www.europa.com
> Pacifier Online   - http://www.pacifier.com
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


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




[PHP] zlib in php-4.0.5

2001-05-09 Thread Bjorn Sodergren

whats wrong with getting zlib working in php? configure complains about not
having version >= 1.0.9 (at the line where it checks for gzgets() )

I've tried using a couple suggestions found on the list, which included
downloading source, checked ldconfig and everything, but nothing works, im
using debian, btw.

any ideas ?


-- 
PHP General Mailing List (http://www.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] user authentication

2001-05-09 Thread Jerry Lake

Does anyone know of a good user authentication/sessions
tutorial for php 4? I've looked through the ones at phpbuilder
and they are not quite as in-depth as I would like.

Jerry Lake- [EMAIL PROTECTED]
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.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] About MySQl and Transactions

2001-05-09 Thread Matt Schroebel

You have to have version 3.23 and read this:
http://www.mysql.com/doc/C/O/COMMIT.html


> From: Hassan Arteaga [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 09, 2001 1:24 PM

> How I implements transaccions in MySQL

-- 
PHP General Mailing List (http://www.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] Solution for PHP - IMAP - WAP ?

2001-05-09 Thread Valter Santos

Hi Nikolajsu and PHPers!

I am now working in a complete solution for Web/WAP/PDA,
with content management + portal services (chat, forum, email, etc...)

But I think that you will have to wait until July 2001 for the
first public release.

The solution is a complete platform for deploy a Portal or Site in
all the available "protocols" but managed only by a powerfull backoffice
solution.

For now, it will support HTTP (Web/WAP), SMS, MMS, SMTP, IMAP, LDAP, and so
on...

For all of you that want to became beta testers please replay to me!

Best regards!



Valter Santos
WEB/WAP Consultant



> -Original Message-
> From: Nikolajus Krauklis [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 08, 2001 11:54 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Solution for PHP - IMAP - WAP ?
>
>
> Hi,
>
> Maybe somebody knows solution for PHP IMAP and WAP?
>
> How hard will be complete this products?
>
>
>
>
> -
> Nikolajus Krauklis :: [metasite]
> 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] About MySQl and Transactions

2001-05-09 Thread Fredrik Rodland

I don't think MySql does not have support for transactions.  Try using
another DB - like postgres.

Fredrik


On Wed, 9 May 2001, Hassan Arteaga wrote:

> Hi all !!!
>
> I'd like to implement this pseudocode
>
> 1-open connection with MySQL
> 2-beintransaction
> 3-add data to table1
> 4-add data to table2
> 5-commit transacction   or die (rollbacktransacciont)
>
> How I implements transaccions in MySQL
>
>
> Thanks all !!!
>
> --
> M. Sc. Hassan Arteaga Rodríguez
> Microsoft Certified System Engineer
> Network Admin, WEB Programmer
> FUNDYCS, Ltd
> [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]
>

F


--
Fredrik Rødland   ASTON Technology  Phone: +47 23 28 40 17
Technical Architect   Stocknet  Fax  : +47 910 73 621
[EMAIL PROTECTED]  http://www.aston.no   Mob  : +47 992 19 817


--
PHP General Mailing List (http://www.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] Unix file vs. Mac file formats

2001-05-09 Thread Thomas Hurst

On 9 May 2001 10:15:19 -0700, [EMAIL PROTECTED] ("Hoover,
Josh") wrote:

> because (correct me if I'm wrong), Macs use a different character for
> carriage returns than Windows and/or Unix.

There are two characters to delimit end of lines - Carrage Return (CR)
and Line Feed (LF), which dates back to when printers needed to be told
to return the print head back to the start of the line and to move the
paper down a line.

Sadly for us, this has resulted in a somewhat confused standard, with
Windows using CRLF, Unix using LF and Macs using CR.

If you upload via FTP using ASCII mode, this will probably be handled
automagically for you, btw.
-- 
Thomas 'Freaky' Hurst - [EMAIL PROTECTED] - http://www.aagh.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] About MySQl and Transactions

2001-05-09 Thread Hassan Arteaga

Hi all !!!

I'd like to implement this pseudocode

1-open connection with MySQL
2-beintransaction
3-add data to table1
4-add data to table2  
5-commit transacction   or die (rollbacktransacciont)

How I implements transaccions in MySQL


Thanks all !!!

--
M. Sc. Hassan Arteaga Rodríguez
Microsoft Certified System Engineer
Network Admin, WEB Programmer
FUNDYCS, Ltd
[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] Top Frame

2001-05-09 Thread Jeremy Bowen

Hey,

I have a pae where a variable is passed to a frameset. the main frame then
loads whatever page the use wants. What I want to do is be able to use the
variable in the frame themselves. I can't seem to grab that variable for the
frames, it works perfectly for the frame set just not the individual frames! 

Is there a way to capture that variable for the frames?

My url looks like this: www.anysite.com/showfame.phtml?url=www.anothersite.com

Thanks,

Jeremy

-- 
PHP General Mailing List (http://www.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] Unix file vs. Mac file formats

2001-05-09 Thread Hoover, Josh

PHP at least used to execute Mac formatted files, but it sounds like people
are definitely having some serious problems with 4.0.5 with Mac formatted
files.  The problems I had expereinced with Mac files with PHP was that PHP
would report line numbers incorrectly on parse errors, etc.  This was
because (correct me if I'm wrong), Macs use a different character for
carriage returns than Windows and/or Unix.

Either way, you definitely should tell BBedit (or whatever program you write
your code in) to save files as Unix file types.  This will solve problems
for any version of PHP.

Also, here is a Mac utility that may help out Jon and others with batch
converting Mac text files to Unix ones:

http://hotfiles.zdnet.com/cgi-bin/texis/swlib/hotfiles/info.html?fcode=MC170
56&b=mac


Josh Hoover
KnowledgeStorm, Inc.
[EMAIL PROTECTED]

Searching for a new IT solution for your company? Need to improve your
product marketing? 
Visit KnowledgeStorm at www.knowledgestorm.com to learn how we can simplify
the process for you.
KnowledgeStorm - Your IT Search Starts Here 


> In my experience PHP never has properly executed files in the Mac file
> format. We also use Macs to code php here, but we have bbedit 
> set to as Unix
> file type.



Re: [PHP] Installing the GD Library

2001-05-09 Thread Kurth Bemis

At 12:47 PM 5/9/2001, Alexander Wagner wrote:

christ - search the list archives.

I wrote a email just for the purpose of being archived so that newbies 
would read it and get a clue.

btw- theres nothing ground breaking in compiling gd into php.  try looking 
in the manual under installation :-)

~kurth

>Joseph Bannon wrote:
> > What all do I need to do to install the GD Library and make it work
> > with PHP?
>
>On what kind of platform?
>
>regards
>Wagner
>
>--
>"Some guy hit my fender, and I told him, 'Be fruitful and multiply,'
>but not in those words."
>  - Woody Allen
>
>--
>PHP General Mailing List (http://www.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] Unix file vs. Mac file formats

2001-05-09 Thread DAve Goodrich

on 5/9/01 9:42 AM, jon mclaughlin at [EMAIL PROTECTED] wrote:

> Help!
> 
> Does anyone have any tips on how to deal with this problem I'm having:
> PHP 4.0.5 (on Redhat Linux as an Apache module) won't properly execute
> included files that are saved in the Mac file format instead of a Unix file
> format. (they use different characters to signify an end of line)
> 
> The problem seems to arise with all code after a comment line declared with
> //. The code actually seems to display on the screen as HTML text. Changing
> the file to a Unix file format solves it.
> 
> I'm trying to avoid changing all the files as we're moving dozens of sites
> from a previous Linux server with PHP v4.0.3pl1 to this new server. This
> problem doesn't happen on the old server.
> 
> Is it an issue with the new version? Is there some sort of configuration
> switch I should be looking at? Any suggestions?
> 
> Thanks!
> 
> ..jon

In my experience PHP never has properly executed files in the Mac file
format. We also use Macs to code php here, but we have bbedit set to as Unix
file type.

There are several scripts out in the net both perl and bash that can do this
conversion for you, directory wide. Then tell your Mac programmers to change
their prefs and all should be well.


--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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]




Fw: [PHP] Identifying input type="file"

2001-05-09 Thread Ron Dyck

> > I need to identify the particular name of a file upload type field:
 > type='file' name='image1'>
> >

>
> when a file is uploaded it creates an array in the $HTTP_POST_VARS array,
> called $HTTP_POST_FILES. If you have track_vars enabled, you can access
the
> name of the uploaded file on the local filesystem in the example given
with
> the variable $image1_name. So if you uploaded a file named "myGif.gif"
using
> the file select field shown above, this:
>

Because of the nature of the form I don't know the name of the form element.
But I was able to identify it through $HTTP_POST_FILES.

Thanks

ron


-- 
PHP General Mailing List (http://www.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] progession bar

2001-05-09 Thread Taylor, Stewart

You might use the following method, which will work under Internet Explorer.



.. etc





  " " " TD2
etc
TD6






var which=1;

function progress_bar()
{
   eval("TD"+which+".className='DONE'");
   which++;
   if (which>6) clearTimeout();
}


window.setTimeout('progress_bar()',1);

...etc



-Original Message-
From: Reuben D Budiardja [mailto:[EMAIL PROTECTED]]
Sent: 09 May 2001 16:24
To: Jacky; [EMAIL PROTECTED]
Subject: Re: [PHP] progession bar


I remember that a somewhat similar issues was discussed here sometime ago. 
Check the list archives ( I think the subject was "Progress Bar").

Hope that will give you some ideas also.

Reuben D. B

At 12:32 PM 5/9/01 -0500, Jacky wrote:
>Hi all
>Does any one know how to do the progession bar to mesure the time out? 
>Like give it 1 minute for the bar to progress, I got some logic here but 
>something still unclear to me.
>The procedures I see are
>1. get curren time when the page is loaded
>2. add 60 seconds on that current time value to tell when to stop the bar
>3. make a table , 6 rows so each row repersent every 10 seconds
>4. This is the bit where I got stuck, how do I change the color of table 
>cell every 10 secs for 6 times.
>any help will be thankful
>Jack
>[EMAIL PROTECTED]
>"There is nothing more rewarding than reaching the goal you set for
yourself"


-- 
PHP General Mailing List (http://www.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] Installing the GD Library

2001-05-09 Thread Joseph Bannon

> On what kind of platform?


Linux.

J
















-- 
PHP General Mailing List (http://www.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] Installing the GD Library

2001-05-09 Thread Alexander Wagner

Joseph Bannon wrote:
> What all do I need to do to install the GD Library and make it work
> with PHP?

On what kind of platform?

regards
Wagner

-- 
"Some guy hit my fender, and I told him, 'Be fruitful and multiply,' 
but not in those words."
 - Woody Allen

-- 
PHP General Mailing List (http://www.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] forcing error documents

2001-05-09 Thread Christian Reiniger

On Wednesday 09 May 2001 18:09, Dean Hall wrote:
> I'm trying to force arbitrary errors in the HTTP header like so:
>
> header('HTTP/1.1 404 Not found.');
>
> It's not working like I expected. I found a few discussions of this on
> this list that said that this did not work with PHP 3, but I've found
> nothing about PHP 4.

Works fine here:

function pbHTTP_404 ()
{
header ("HTTP/1.0 404 Not Found");
include ('404.html');
exit ();
}

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

REALITY.SYS corrupted ... reboot Universe [Y,n]?

--
PHP General Mailing List (http://www.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] Installing the GD Library

2001-05-09 Thread Joseph Bannon

What all do I need to do to install the GD Library and make it work with
PHP?

Thanks,

Joseph



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




Re: [PHP] Search a string between

2001-05-09 Thread Christian Reiniger

On Wednesday 09 May 2001 16:14, Luiz Vitor wrote:
> It's still not working.
> I'm using the pattern ([^]*) and I'm getting the first match
> correct, but it's not getting all the other matches.

[^] means "any character except '<', 'f', 'o' and '>'"

You're looking for something like this:

$Text = preg_replace ('/<(foo)>(.*?)<\/\\1>/', '$2', $Text);

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

REALITY.SYS corrupted ... reboot Universe [Y,n]?

--
PHP General Mailing List (http://www.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] GetImageSize

2001-05-09 Thread Joseph Bannon

> What version of PHP are you using? According to the manual:
> "URL support was added in PHP 4.0.5"



Oh, I have 4.0.4. I need to upgrade don't I?!?

Thanks, 
J

-- 
PHP General Mailing List (http://www.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] GetImageSize

2001-05-09 Thread Moody

What version of PHP are you using? According to the manual:
"URL support was added in PHP 4.0.5"

Moody


"Joseph Bannon" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> For some reason, I can get the image image size for an image on the local
> machine, but remotely give me an error
>
>
> My code
>
>  $size = GetImageSize ("images/title.gif");
> echo "size: $size[0]";
> echo "size: $size[1]";
> echo "size: $size[2]";
> echo "size: $size[3]";
> $size = GetImageSize
> ("http://www.picpage.com/users/ka/kaurisma1331/images/image0.jpg";);
> echo "size: $size[0]";
> echo "size: $size[1]";
> echo "size: $size[2]";
> echo "size: $size[3]";
> ?>
>
>
>
> Output
>
>
> size: 310
> size: 80
> size: 1
> size: width="310" height="80"
> Warning: Unable to open
> http://www.picpage.com/users/ka/kaurisma1331/images/image0.jpg in
> web/imagetest.php on line 13
> size:
> size:
> size:
> size:
>
> --
> PHP General Mailing List (http://www.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] Unix file vs. Mac file formats

2001-05-09 Thread jon mclaughlin

Help!

Does anyone have any tips on how to deal with this problem I'm having:
PHP 4.0.5 (on Redhat Linux as an Apache module) won't properly execute
included files that are saved in the Mac file format instead of a Unix file
format. (they use different characters to signify an end of line)

The problem seems to arise with all code after a comment line declared with
//. The code actually seems to display on the screen as HTML text. Changing
the file to a Unix file format solves it.

I'm trying to avoid changing all the files as we're moving dozens of sites
from a previous Linux server with PHP v4.0.3pl1 to this new server. This
problem doesn't happen on the old server.

Is it an issue with the new version? Is there some sort of configuration
switch I should be looking at? Any suggestions?

Thanks!

..jon
-- 
..::.:..::.::.:.:..::..:::...:.:.::.::.::.:..
  jon mclaughlin
  digitalnoise.com
   a division of PLATFORM.NET
.:.:.:..::.:.:::..:::...:.:.::.::.:.::.:.
p:646.613.3510 c:917.612.8261
f:646.613.3599 e:[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] Identifying input type="file"

2001-05-09 Thread Christian Reiniger

On Wednesday 09 May 2001 15:59, Ron Dyck wrote:
> I need to identify the particular name of a file upload type field:
> 
>
> The elements are generated dynamically and I don't know the specific
> name of the field beforehand and of course need to read it before
> processing the form.
>
> Using $HTTP_POST_VARS does not seem to recognize this type of input
> field. Is there another method?
>
> I do have the form as:
> 
> and I can catch all the other form elements without a problem.

Re-Read the chapter on file uploads in the manual.

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

REALITY.SYS corrupted ... reboot Universe [Y,n]?

--
PHP General Mailing List (http://www.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] passing parameters in the url using forward slashes

2001-05-09 Thread Christian Reiniger

On Wednesday 09 May 2001 14:41, hassan el forkani wrote:
> hmm..
> good question i don' t know exactly how it's done but i actually know a
> site that uses this extensively www.emp3finder.com, they concat strings
> i think it involves "massive" server configuration

It's quite simple. Read the tutorial "Building dynamic websites with 
search engines in mind" on phpbuilder.com.


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

REALITY.SYS corrupted ... reboot Universe [Y,n]?

--
PHP General Mailing List (http://www.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   >