[PHP] php chat

2001-07-09 Thread Jack

Hi all
is there anyone know where can I get a good php chat programme?
Jack
[EMAIL PROTECTED]
"Love your enemies, it will drive them nuts"



[PHP] for() problem on php-4.0.6

2001-07-09 Thread Mesut Tunga

Hi All,

a for statment like below has been worked lowe php versions:

  for ( $idx = "01"; $idx <= 12; $idx++ )
  {
   echo " $idx\n";
  }

like 01, 02, 03, 04, ... 12

but same statment on 4.0.6 version, it writes

01, 2, 3, 4,  ... 12

what is the different between verisons? or how can I solve this?

Regards...
Mesut...



-- 
PHP General Mailing List (http://www.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] for() problem on php-4.0.6

2001-07-09 Thread Mesut Tunga

Hi All,

a for statment like below has been worked lowe php versions:

  for ( $idx = "01"; $idx <= 12; $idx++ )
  {
   echo " $idx\n";
  }

like 01, 02, 03, 04, ... 12

but same statment on 4.0.6 version, it writes

01, 2, 3, 4,  ... 12

what is the different between verisons? or how can I solve this?

Regards...
Mesut...

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

2001-07-09 Thread Jack

Hi all
I am new to php class, basically never use class before. Now I try to use a credit 
card class from Zend, the class name is credit_card.pkg. How do I create the object 
for this type of class and how do I call the functions from this class to use?
Jack
[EMAIL PROTECTED]
"Love your enemies, it will drive them nuts"



[PHP] php-4.0.6 ./configure - -with - sybase

2001-07-09 Thread nelo manuel

Hi all,
since long time ago i've been trying to configure php-4.0.6 with sybase
when i try ./configure --with-sybase=/sybase/directory
it compiles OK!
but when i write the initial function to  sybase_connect() i get an error 
message"fatal error, undeclared function" :(

is there any other troubleshoot technique that am not aware of?
pls help!!!

Nelson
London



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


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




[PHP] how do I include a class into my php page

2001-07-09 Thread Jack

Exactly what the title said, I have a class file, name credit_card.pkg, how do I 
include that into another php page? The same way we do with normal include file?
Jack
[EMAIL PROTECTED]
"Love your enemies, it will drive them nuts"



[PHP] Re: how do i remove the first 3 characters from a variable?

2001-07-09 Thread elias

substr($variable, 0, 3);

"Doron" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 10x
>
>



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




[PHP] Re: for() problem on php-4.0.6

2001-07-09 Thread Tomas

Why don't you use an integer? For and strings don't like each other very
much...

$idx\n";
}
?>

Bye! 8-)
Espeleta Tomas




-- 
PHP General Mailing List (http://www.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] for() problem on php-4.0.6

2001-07-09 Thread Pavel Jartsev

Mesut Tunga wrote:
> 
> Hi All,
> 
> a for statment like below has been worked lowe php versions:
> 
>   for ( $idx = "01"; $idx <= 12; $idx++ )
>   {
>echo " $idx\n";
>   }
> 
> like 01, 02, 03, 04, ... 12
> 
> but same statment on 4.0.6 version, it writes
> 
> 01, 2, 3, 4,  ... 12
> 
> what is the different between verisons? or how can I solve this?
> 

Try this:
\n",$idx );
}
?>

See also:
http://www.php.net/manual/en/function.printf.php
http://www.php.net/manual/en/function.sprintf.php

-- 
Pavel a.k.a. Papi

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

2001-07-09 Thread Uri Even-Chen

To PHP-general group,


Is there a way to define specific variables as "always global", without
needing to define them as global at each function separately?  For
example, these variables are always global on my scripts, so I have to
include this line in each function:


   // Global Variables.
   global $SPEEDY_GLOBAL_VARS, $HTTP_ENV_VARS, $HTTP_GET_VARS,
$HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS;


Is there a way to define them only once globally?


Thanks,

Uri Even-Chen
Speedy Software
Raanana, Israel.

Welcome to Speedy Net (In Hebrew):
   http://www.speedy.co.il/
Speedy Dating (In Hebrew):
   http://dating.speedy.co.il/
Speedy Composer (In English):
   http://www.speedy.co.il/composer/


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

2001-07-09 Thread Hilbert Mostert

Hya all,

I have a problem with the odbc drivers for PHP, I use a DBMaker database and when i 
try to load
a binary field in the database PHP echoes the field when i use a SELECT query,
but I only want the data with odbc_result or something because it creates some 
highly annoying problems.



[PHP] Income on the Net!

2001-07-09 Thread Noel Hadfield

Here is an opportunity that you can take up FREE. If you join as an 
affiliate, we'll teach you how to build a profitable business on the 
Internet, using our system to create an income stream and earn income 
globally, 24 hours a day.

Don't let this opportunity slip past you - our organization is already well 
over 1 million strong and growing at around 6,000 each day! Join us and 
let's work together to get a share of all those members.

Just hit:

mailto:[EMAIL PROTECTED]?Subject=Opportunity

To be removed from this list, hit:

mailto:[EMAIL PROTECTED]?Subject=Remove

-- 
PHP General Mailing List (http://www.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 4.0.6 diferent handling of comments.

2001-07-09 Thread Guille -bisho-


In previous versions I could comment in this way:
#<%=$txt%>

And now only consider # as the comment.

I think this is the proper way of working, But maybe other people could have
problems with this change ???

-- 
 \|||/Guillermo Pérez Pérez
 < o   o >  - [EMAIL PROTECTED]
  \  L  /   - [EMAIL PROTECTED]
 -oOOo---oOOo-
 Onírica: Análisis, diseño e implantación de soluciones informáticas
  http://www.onirica.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] webmail

2001-07-09 Thread Max Pyziur


On Mon, 9 Jul 2001, Adrian D'Costa wrote:

> Hi,
>
> I am trying to write a web-based email client for my site (or are there
> any samples) using php4 and POP3.
>
> I have a book on professional PHP but that sample uses IMAP which is not
> installed on my system.
>
> Could anyone tell me where I can get some samples or how to proceed with
> this project.

There are several good sources on the web which carry information about
ongoing opensource projects.  To cite three:
http://www.freshmeat.net/
http://php.resourceindex.com/
http://sourceforge.net/

The one which I use which matches your requirements (non-PHP, perl-module
driven) is NS WebMail, one which I use and gives basic webmail
capablities, though missing some desired functionality (sort on date,
sender, or subject; default sort is reverse chrono).  It's relatively easy
to install.
http://nikosoft.free.fr/nswm.htm

For freshmeat's listing check here:
http://freshmeat.net/search/?q=webmail

> TIA
>
> Adrian


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] Help with a variable

2001-07-09 Thread James Bartlett

Hi,

Is there some way that I can check to see if a variable is present?

e.g.

if (variable is not present)
{
set variable to 0;
}
else
{
some code that uses variable;
}

Thanks for any advice.

James



[PHP] Any banner system?

2001-07-09 Thread José León Serna

Hello:
I would like to know if there's a PHP Banner system with the following
features:
-Allow insert the banners anywhere
-Advanced statistics page
-Limit on banner impressions/clicks
-Allow users (my customers) to see their banners statistics
-Run on MySQL

Best Regards.

QaDRAM, RAD development for the WEB
http://www.qadram.com

VCLCrawler.com, your VCL search engine
http://www.vclcrawler.com

W2Kwm, Windows 2000 interface for XWindow
http://www.vclcrawler.com/w2kwm/index.htm

ebnoud.com, El Boletín No Oficial de Usuarios de Delphi
http://www.ebnoud.com



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




RE: [PHP] Help with a variable

2001-07-09 Thread Adrian Ciutureanu

http://php.net/isset

> -Original Message-
> From: James Bartlett [mailto:[EMAIL PROTECTED]]
> Sent: 9 iulie 2001 14:44
> To: [EMAIL PROTECTED]
> Subject: [PHP] Help with a variable
> 
> 
> Hi,
> 
> Is there some way that I can check to see if a variable is present?
> 
> e.g.
> 
> if (variable is not present)
> {
> set variable to 0;
> }
> else
> {
> some code that uses variable;
> }
> 
> Thanks for any advice.
> 
> James
> 

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

2001-07-09 Thread kath

Original message:
> > I am trying to write a web-based email client for my site (or are there
> > any samples) using php4 and POP3.

Reply:
> The one which I use which matches your requirements (non-PHP, perl-module
> driven) is NS WebMail,

He just said he was using PHP4, not Perl :)

- k

- Original Message -
From: "Max Pyziur" <[EMAIL PROTECTED]>
To: "Adrian D'Costa" <[EMAIL PROTECTED]>
Cc: "php general list" <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 7:07 AM
Subject: Re: [PHP] webmail


>
> On Mon, 9 Jul 2001, Adrian D'Costa wrote:
>
> > Hi,
> >
> > I am trying to write a web-based email client for my site (or are there
> > any samples) using php4 and POP3.
> >
> > I have a book on professional PHP but that sample uses IMAP which is not
> > installed on my system.
> >
> > Could anyone tell me where I can get some samples or how to proceed with
> > this project.
>
> There are several good sources on the web which carry information about
> ongoing opensource projects.  To cite three:
> http://www.freshmeat.net/
> http://php.resourceindex.com/
> http://sourceforge.net/
>
> The one which I use which matches your requirements (non-PHP, perl-module
> driven) is NS WebMail, one which I use and gives basic webmail
> capablities, though missing some desired functionality (sort on date,
> sender, or subject; default sort is reverse chrono).  It's relatively easy
> to install.
> http://nikosoft.free.fr/nswm.htm
>
> For freshmeat's listing check here:
> http://freshmeat.net/search/?q=webmail
>
> > TIA
> >
> > Adrian
>
>
> 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]




[PHP] exec system passthru

2001-07-09 Thread Plamen Slavov

Sorry if question was asked, but i did not find any information
I use Apache/1.3.20 Win32 PHP/4.0.5 on a Windows ME
I can run commands built in command.com like dir or cd, using system() or passthru(),
but whenever i try to use external command, like pkunzip or gzip, the web server hangs 
and i have to restart my computer
The only solution i found was specifying the commands in a .bat file and running the 
.bat file with system() - which works OK
Someone had the same problem or a possible solution
tahnks
--
Visit our site at http://eshop.bg



Re: [PHP] Re: poor HTML syntax crashing (!) netscape

2001-07-09 Thread Tom Carter

Thanks for the offer... trouble was I took over a poorly designed project
which had to be expanded v quickly I agree entirely .. syntax is
key.. ended up restructuring the code from scratch...  quicker then
trying to hack the old.

> PHP will roll over and die if you leave a ';' off the end of a line, but
no
> one claims it sucks. Don't shoot the messenger

I wasn't blaming NS for not handling the HTMl, I just found it quite
surprising that poor syntax can cause the entire browser to crash! A better
comparison is a ';' missing in PHP causing the PHP engine to just shut down!

As a foot note... it was a table problem.. one bug in a nested table (in an
included included include file) that was causing it!!

Thanks
Tom


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




Re: [PHP] Help with a variable

2001-07-09 Thread Adrian Murphy

isset() function
- Original Message - 
From: "James Bartlett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 12:43 PM
Subject: [PHP] Help with a variable


Hi,

Is there some way that I can check to see if a variable is present?

e.g.

if (variable is not present)
{
set variable to 0;
}
else
{
some code that uses variable;
}

Thanks for any advice.

James



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

2001-07-09 Thread dc

I was simply looking for a way to easily develop re-usable components. I
know that functions can be used in php, however, the custom tag (xml type)
syntax is more clean and easy to view. I may try using xml with functions to
get what I desire.

I don't think custom tags will go away with functions. They exist in jsp
also and are good to use. In fact at Java One there was a push towards
removing all java code from the jsp. Simply use custom tags. This allows you
to divide your development team into java guru's and web guru's. The web
developers would not need to know all of the java code. They would simply
need a listing of the custom tags. This becomes handy if you have people
that are inexperienced in Java. You can give them a small pocket reference
of the tags you use in the jsp's rather than a 1-2 inch book on Java.

As for the C approach...I may try that also. I'll have to dust off my
Ritchie book.

Thanks for the help,
Dan


"Michael Kimsal" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> dc wrote:
>
> >I was curious if there was any custom tag support like jsp or cold fusion
in
> >php (or outside libraries). I'm looking at trying to make re-usuable
> >components and want to use something more than including simple classes
or
> >function calls.
> >
> >Thanks for your time,
> >
> If you know C, then yes.  You can write your own C libraries to be
> compiled in to PHP to give
> you new 'built in' functions.  Personally, I'm not good enough with C to
> do that, and am not sure that you'd
> get enough of a speed boost to justify it.  Probably in some cases you
> would, but is that the reason (speed?)
> you're asking?
>
> I wonder how many CF people will be writing custom tags still now that
> CF5 finally allows user-defined functions.;
>
> Michael Kimsal
> http://www.tapinternet.com/php/
> PHP Training Courses
> 734-480-9961
>
>



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




[PHP] mysql, interbase, etc

2001-07-09 Thread kachaloo

Hi,
Which db supports trigers and stored procedures and is also free ?  I
thought mysql supports it but to my dismay it does not it will support it in
the near future 
Please help as I need to find one out soon. wht abt interbase is it anygood
?
Regards,
Vishal

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




RE: [PHP] mysql, interbase, etc

2001-07-09 Thread Adrian Ciutureanu

http://www.PostgreSQL.org


> -Original Message-
> From: kachaloo [mailto:[EMAIL PROTECTED]]
> Sent: 9 iulie 2001 16:58
> To: [EMAIL PROTECTED]
> Subject: [PHP] mysql, interbase, etc
> 
> 
> Hi,
> Which db supports trigers and stored procedures and is 
> also free ?  I
> thought mysql supports it but to my dismay it does not it 
> will support it in
> the near future 
> Please help as I need to find one out soon. wht abt interbase 
> is it anygood
> ?
> Regards,
> Vishal
> 
> -- 
> PHP General Mailing List (http://www.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] max_execution_time & header

2001-07-09 Thread Peter Schumacher

I'm trying to backup a huge amount of data comming from a MySQL database.

It seems that my script times out before it is done.
I'm unable to persuade my ISP to raise the max_execution_time and thought of
using redirects instead (header).

I've written a script that backs up 500 rows and then redirects to a simple
script that in turn redirects back to my main script (with an offset).

I still run into the max_execution_time!!! I thought it would be reset as I
redirect to another page.

Any help appreciated.

Regards,

Peter Schumacher



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

2001-07-09 Thread ReDucTor

Hey,
   What are some domain places that allow mass whois??? for like a few hundred domains 
at once...?
   - Jame "ReDucTor" Mitchell



Re: [PHP] max_execution_time & header

2001-07-09 Thread mike cullerton

on 7/9/01 8:17 AM, Peter Schumacher at [EMAIL PROTECTED] wrote:

> I still run into the max_execution_time!!! I thought it would be reset as I
> redirect to another page.

within your script

ini_set("max_execution_time", $some_bunch_of_seconds);

 -- mike cullerton



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




RE: [PHP] PHP security FAQ

2001-07-09 Thread David Price

Setting the open_basedir in the Apache conf file for each virtual host
should do the trick.   At least on my server, with "php_admin_value
open_basedir /home/david" set under the section for my domain I can't see
any files outside my home directory.

With safe_mode turned on, I think that even prevents users from uploading to
their directories.

Hope this helps,

David Price

-Original Message-
From: cp@unknown [mailto:cp@unknown]On Behalf Of Christian Politz
Sent: Monday, July 09, 2001 10:15 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP security FAQ


Hi,
i have a question concerning PHP and virtual hosting. Is it still true
that we need Apache's suExec mechanism to protect the users against each
other in a virtual domain setup? I think with open_basedir i can prevent
users from (over)writing other users files. And with safe_mode on i can
prevent evil things like system("cat /etc/passwd"); And when i set the
directory permissions like

rwx-x   dom1user/www/domain1.com
rwx-x   dom2user/www/domain2.com

(the directories in domain-tree (eg htdocs, cgi-bin) can have other
permissions)

i can prevent that the users read out foreign directories. So i can't
see any reason why i shouldn't use the module version of PHP for a
multiple domain setup. Or did i miss something? I would be really happy
to hear your opinions.

Thanks in advance,
Chris

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


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




Re: [PHP] session variable name into form

2001-07-09 Thread PHP

This works for me...
echo '  ';

- Original Message -
From: "Andrew Austin" <[EMAIL PROTECTED]>
To: "Php Lists (E-mail)" <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 12:25 AM
Subject: [PHP] session variable name into form


I have a session variable called auth_user and want to put the variable into
a form field. I have tried the following and similar but am not succeeding.



how else might it be done

aa

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


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




[PHP] Download function for php

2001-07-09 Thread Mark Lo

Hi,

Is there any php download function for php.  I am asking is the one like
downloading the file from the server when people click the link.  Like
downloading php sources tar file.

Thank you

Mark


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




[PHP] Re: how do I include a class into my php page

2001-07-09 Thread Chris Lee

yes of course, you know your own anser :)

some_class.egn


index.php


--

  Chris Lee
  [EMAIL PROTECTED]


"Jack" <[EMAIL PROTECTED]> wrote in message
021b01c108b1$ec596640$[EMAIL PROTECTED]">news:021b01c108b1$ec596640$[EMAIL PROTECTED]...
Exactly what the title said, I have a class file, name credit_card.pkg, how
do I include that into another php page? The same way we do with normal
include file?
Jack
[EMAIL PROTECTED]
"Love your enemies, it will drive them nuts"




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




[PHP] Re: how to use class

2001-07-09 Thread Chris Lee

include_once('some_class.egn');
$some_class = new some_class;
$some_class->some_function();

--

  Chris Lee
  [EMAIL PROTECTED]




"Jack" <[EMAIL PROTECTED]> wrote in message
020801c108af$36dc70c0$[EMAIL PROTECTED]">news:020801c108af$36dc70c0$[EMAIL PROTECTED]...
Hi all
I am new to php class, basically never use class before. Now I try to use a
credit card class from Zend, the class name is credit_card.pkg. How do I
create the object for this type of class and how do I call the functions
from this class to use?
Jack
[EMAIL PROTECTED]
"Love your enemies, it will drive them nuts"




-- 
PHP General Mailing List (http://www.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] Download function for php

2001-07-09 Thread Mark Charette

To download a file from the server needs no special magic - just a link to
the file.


Mark C.

- Original Message -
From: "Mark Lo" <[EMAIL PROTECTED]>
To: "php general" <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 9:36 AM
Subject: [PHP] Download function for php


> Hi,
>
> Is there any php download function for php.  I am asking is the one
like
> downloading the file from the server when people click the link.  Like
> downloading php sources tar file.
>
> Thank you
>
> Mark
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




[PHP] Re: Download function for php

2001-07-09 Thread Chris Lee

why do you need a function for this ? why dont you just make a link to the
file ?

some_src 

as long as some_src.tgz is in the web root this will work. and if the file
is not in the web root, then why are you downloading something from the web
not int the web root ? make a symbolic link from the src file to a link in
the web root.

of course you could allways send the download headers and readfile() the
file.



--

  Chris Lee
  [EMAIL PROTECTED]


"Mark Lo" <[EMAIL PROTECTED]> wrote in message
001101c10884$863351a0$caccfea9@Mark">news:001101c10884$863351a0$caccfea9@Mark...
> Hi,
>
> Is there any php download function for php.  I am asking is the one
like
> downloading the file from the server when people click the link.  Like
> downloading php sources tar file.
>
> Thank you
>
> Mark
>



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




[PHP] Re: Domain question

2001-07-09 Thread Chris Lee

not exactly a php question. but to answer your question .. I have no answer.

--

  Chris Lee
  [EMAIL PROTECTED]


"Reductor" <[EMAIL PROTECTED]> wrote in message
005d01c10881$a8517a80$0200a8c0@ReDucTor">news:005d01c10881$a8517a80$0200a8c0@ReDucTor...
Hey,
   What are some domain places that allow mass whois??? for like a few
hundred domains at once...?
   - Jame "ReDucTor" Mitchell




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

2001-07-09 Thread Mark Roedel

> -Original Message-
> From: Adrian D'Costa [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 09, 2001 12:34 AM
> To: php general list
> Subject: [PHP] webmail
> 
> 
> I am trying to write a web-based email client for my site (or 
> are there any samples) using php4 and POP3.

There are a few classes for POP3 interaction using PHP's socket
functions at

http://px.sklar.com/section.html?section_id=10
 

---
Mark Roedel ([EMAIL PROTECTED])  ||  "There cannot be a crisis next week.
Systems Programmer / WebMaster  ||   My schedule is already full."
 LeTourneau University  ||-- Henry Kissinger


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




[PHP] Re: Sorting an assoiative Array

2001-07-09 Thread Chris Lee

I used similar and just put it into a function

function array_max($array)
{
asort($array);
return current($array);
}

this just gives me the first element of the array.

--

  Chris Lee
  [EMAIL PROTECTED]



"Patrick Meisel" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,

I need to get the highest value of a hash. I first just wanted to do an
arsort and then access the first value with $data[0], which didn´t work. I
guess you can´t access associative arrays by index.
So I found this way to do it (as the $data array needs to remain unchanged):
  $temp=$data;
  arsort ($temp);
  $max=reset($temp);


Is there really no shorter way to do it??


Pat




-- 
PHP General Mailing List (http://www.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] Storing serialized classes in database

2001-07-09 Thread Michael Champagne

We are writing a series of applications which will store a user 'profile'
between sessions as a serialized object in our Oracle database.  We're storing
data like the output format a user prefers file downloads in and things like
that.  If have to add certain things to this class, I'm assuming the
serialized objects in the database become unusable.  Does anyone have a good
solution for this?  I suppose we could go through the database and somehow
convert these serialized 'profiles' to meet the new class spec.  How much of a
hassle is that?

Thanks in advance for any responses,

Michael Champagne, Software Engineer
Capital Institutional Services, Inc.
wk: [EMAIL PROTECTED]
hm: [EMAIL PROTECTED]



**
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] xml and php question

2001-07-09 Thread Conor McTernan

Hey all

I'm not so sure if this is the correct place to ask this question, but I'm
hoping some of you will be able to give me some feedback. I am currently
toying around with php and mysql developing a website for myself, the
current one is partly php powered, but I am trying to move it over to a
complete php and mysql system, I would also like to use XML. 

i have previously used Xml on another web project, and i really liked the
way you could reformat you content, and it's ease of use. What i was
wondering is, if any of you use XML to store your content, in what way do
you go about it. 

At the moment i see 2 sepeerate ways of going about it. 

a)Mark up your documents in xml and store the xml documents in a database,
your database can be pretty simple, witha couple of fields that represent
some of the meta data in the xml file, e.g. Author, Date-created, then a
large blob which is the doc. when you wish to view the document, you
search on the criteria that is available, and then retrieve your xml
doc. Some down sides to this could be the explosion in the size of the db,
if you are storing a large amount of documents etc and also the redundancy
in some of hte fields, e.g you have an author field, but this info is
contained in the xml doc. It is good, because it is an essentialy simple
application, in both php code to pull the data and in the database design.


b)have the database act as a sort of XML holder, e.g. break the document
down to it's base components, and store all the meta data in the database,
when a doc is needed, the xml doc can be created on the fly, by pulling
the data out of the appropriate fields. some problems with this can be the
database design, it can become extremly complicated(i would imagine, i
have not tried it yet), as you are effiectively modelling the DTD in the
database. but at the same time, we are reducing redundancy, hopefully, so
long as it is well normalised. 

the reason i am asking this is becaue of the amount i read about xml, how
good it is extensible etc, there is not much out there inregards to the
practical application of it, aside form the odd tutorial on how to
construct a DTD or how to parse XMl with Java/PHP etc.

once again, i'm not sure if this post is appropriate to this mailing list,
perhaps i should send it to a MySql list or something, but if anyone has
any ideas or thoughts on the topic i would really appreciate it.

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




[PHP] Re: Download function for php

2001-07-09 Thread George Whiffen

Mark Lo wrote:
> 
> Hi,
> 
> Is there any php download function for php.  I am asking is the one like
> downloading the file from the server when people click the link.  Like
> downloading php sources tar file.
> 
> Thank you
> 
> Mark

No download function that I know of, but it isn't hard to
download.

The trick is to send out a Content-Type header  with the
Mime type, 
an optional Content-disposition to suggest a name and then
whatever it is you want
to download.

e.g. to download some data in tab-delimited format -

header("Content-type: text/tab-separated-values");
header("Content-disposition: inline;
filename=".$myfilename);

while(...
{
   print "\t$field1\t$field2\t$field3\t$field4\n";
}

exit;

You can download any mime type, so it could just as well be
downloading a 
text file, a word-processor document, an image, a Shockwave
file or whatever.
You can easily use readfile to pick up the contents of an
existing file. 

If you find the browser is trying to get too clever when it
spots the Mime type,
you can always make up your own, which should force it to
just offer a save.


Hope that helps.

George

-- 
PHP General Mailing List (http://www.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] Storing serialized classes in database

2001-07-09 Thread scott [gts]

you could use a simple assoc. array for all the user's information,
and store that serialized in the database rather than serialize
the entire object.

that way, you'd have to store less information in the DB,
and wouldnt have to worry about breaking any of your code
in the future (or the object becoming unuseable after being
put into the database)

i dont know how you've got the whole thing setup right now,
but i'd imagine that it'll save you a great deal of work
to only deal with serialized data and not serialized objects.

> -Original Message-
> From: Michael Champagne [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 09, 2001 10:58 AM
> To: PHP General Mailing List
> Subject: [PHP] Storing serialized classes in database
> 
> 
> We are writing a series of applications which will store a user 'profile'
> between sessions as a serialized object in our Oracle database.  We're storing
> data like the output format a user prefers file downloads in and things like
> that.  If have to add certain things to this class, I'm assuming the
> serialized objects in the database become unusable.  Does anyone have a good
> solution for this?  I suppose we could go through the database and somehow
> convert these serialized 'profiles' to meet the new class spec.  How much of a
> hassle is that?
> 
> Thanks in advance for any responses,
> 
> Michael Champagne, Software Engineer
> Capital Institutional Services, Inc.
> wk: [EMAIL PROTECTED]
> hm: [EMAIL PROTECTED]
> 
> 
> 
> **
> 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 General Mailing List (http://www.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] url without a query string?

2001-07-09 Thread teo

Hi Jon!
On Mon, 09 Jul 2001, Jon Yaggie wrote:

> the problem
> 
> i have a page that uses a query string to determine content.  ie
> index.php?id=2  in this page there is a link to a memebership area that
> uses a remote service.  this service requires that thee be the exact
> same refering url.  is the refering url must always be index.php.  how
> can i do this?  can i do this?
> 
fake it by sending a Referer header.

-- teodor

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




Re: [PHP] Storing serialized classes in database

2001-07-09 Thread infoz

The way we do commonly this in Dreamtime is to have a container object
(essentially an associative array with a wrapper
(http://www.phptemplates.org/old/classref/dot_Container.html) that allows
you to get/set the profile data elements by name.

That whole object is then serialized as the (single) session data element.

However, in a pinch I think that unserialize() could probably tolerate some
deviation in the class definition.  You could probably add/delete methods
without any problem, since methods aren't serialized.

I haven't tried to see what would happen if the list of variables of the
serialized object didn't match the subsequent class, but I'm guessing that
PHP is pretty forgiving.  It would only take a few moments to try this out.

- Tim
  http://www.phptemplates.org

- Original Message -
From: "Michael Champagne" <[EMAIL PROTECTED]>
To: "PHP General Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 10:58 AM
Subject: [PHP] Storing serialized classes in database


> We are writing a series of applications which will store a user 'profile'
> between sessions as a serialized object in our Oracle database.  We're
storing
> data like the output format a user prefers file downloads in and things
like
> that.  If have to add certain things to this class, I'm assuming the
> serialized objects in the database become unusable.  Does anyone have a
good
> solution for this?  I suppose we could go through the database and somehow
> convert these serialized 'profiles' to meet the new class spec.  How much
of a
> hassle is that?



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




[PHP] Re: Help with a variable

2001-07-09 Thread George Whiffen

James Bartlett wrote:
> 
> Hi,
> 
> Is there some way that I can check to see if a variable is present?
> 
> e.g.
> 
> if (variable is not present)
> {
> set variable to 0;
> }
> else
> {
> some code that uses variable;
> }
> 
> Thanks for any advice.
> 
> James

isset function

variable is already 0 if !isset

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

2001-07-09 Thread Ker Ruben Ramos

ey guys.. anyone know of doing something like with
net.yahoo.com/cgi-bin/trace.sh?ip_here .. something that prints out every
result of the traceroute command... not showing the result after command
exited


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




Re: [PHP] session variable name into form

2001-07-09 Thread Aral Balkan

This might help - straight from the PHP manual:

* * *
If track_vars is enabled and register_globals is disabled, only members of
the global associative array $HTTP_SESSION_VARS can be registered as session
variables. The restored session variables will only be available in the
array $HTTP_SESSION_VARS.

If register_globals is enabled, then all global variables can be registered
as session variables and the session variables will be restored to
corresponding global variables.

If both track_vars and register_globals are enabled, then the globals
variables and the $HTTP_SESSION_VARS entries will reference the same value.
* * *

Hope this helps,
Aral :)
__
([EMAIL PROTECTED])
New Media Producer, Kismia, Inc.
([EMAIL PROTECTED])
Adj. Prof., American University
¯¯



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




RE: [PHP] session variable name into form

2001-07-09 Thread scott [gts]

this also works:


but the way you have it currently written is perfectly OK.
it seems as if the problem is with your variable not being
set, rather than with your PHP code.

try explicitly setting the variable a few lines above
the output of the INPUT field


blah blah blah


PS: is the output happening in a function?
be sure to have the variable "global"-ized somewhere
in the function, or else you'll never see any value
for $auth_user;

> -Original Message-
> From: PHP [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 09, 2001 10:32 AM
> To: Andrew Austin; Php Lists (E-mail)
> Subject: Re: [PHP] session variable name into form 
> 
> 
> This works for me...
> echo '  ';
> 
> - Original Message -
> From: "Andrew Austin" <[EMAIL PROTECTED]>
> To: "Php Lists (E-mail)" <[EMAIL PROTECTED]>
> Sent: Monday, July 09, 2001 12:25 AM
> Subject: [PHP] session variable name into form
> 
> 
> I have a session variable called auth_user and want to put the variable into
> a form field. I have tried the following and similar but am not succeeding.
> 
> 
> 
> how else might it be done
> 
> aa
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
PHP General Mailing List (http://www.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] a recent 2600 article about PHP/CGI vulnerabilities

2001-07-09 Thread scott [gts]

i just read an article in 2600 yesterday about supposed
PHP/CGI vulnerabilities.  anyone else catch it?

personally, when i read the article, i started chuckling,
becuase the supposed "vulnerability" is not with PHP or
any particular language, but with shoddy "secure" 
programming practises (which are a problem with any
language), so i was a little let down that i wasn't
going to get some info on actual "PHP vulnerabilities".

the authour described the supposedly common practise of
passing around a plaintext variable denoting whether or
not the page was supposed to authorize a user or not:
  http://server.com/this.php?mode=insecure
  http://server.com/this.php?mode=secure

the article went on to explain how incredibly easy it 
is to exploit this type of website by simply changing
"mode=secure" to "mode=insecure" and effectively skipping
the need to authenticate yourself.  the article also
urged all readers to develop more secure PHP code and
avoid the practise of being lazy about authentication.

(if you dont bother to write good security code, it's
usually worse than having no security at all, becuase
having bad security will prompt people to break it
just to prove that it's worthless)

just figured i'd paraphrase the article and suggest that
you all pick up an issue 2600 - it's a great read... and
in the most recent issue, there's an article about PHP/perl
based mailing lists and ways that they can be exploited
to mail-bomb people.

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

2001-07-09 Thread scott [gts]

do you have shell access, and do they have the CGI version of PHP?
you could always try running it from the command line
if you have access

> -Original Message-
> From: mike cullerton [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 09, 2001 10:25 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] max_execution_time & header
> 
> 
> on 7/9/01 8:17 AM, Peter Schumacher at [EMAIL PROTECTED] wrote:
> 
> > I still run into the max_execution_time!!! I thought it would be reset as I
> > redirect to another page.
> 
> within your script
> 
> ini_set("max_execution_time", $some_bunch_of_seconds);
> 
>  -- mike cullerton
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
PHP General Mailing List (http://www.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] a recent 2600 article about PHP/CGI vulnerabilities

2001-07-09 Thread Chris Anderson

/me unsubscribes : )
- Original Message - 
From: "scott [gts]" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 11:40 AM
Subject: [PHP] a recent 2600 article about PHP/CGI vulnerabilities


> i just read an article in 2600 yesterday about supposed
> PHP/CGI vulnerabilities.  anyone else catch it?
> 
> personally, when i read the article, i started chuckling,
> becuase the supposed "vulnerability" is not with PHP or
> any particular language, but with shoddy "secure" 
> programming practises (which are a problem with any
> language), so i was a little let down that i wasn't
> going to get some info on actual "PHP vulnerabilities".
> 
> the authour described the supposedly common practise of
> passing around a plaintext variable denoting whether or
> not the page was supposed to authorize a user or not:
>   http://server.com/this.php?mode=insecure
>   http://server.com/this.php?mode=secure
> 
> the article went on to explain how incredibly easy it 
> is to exploit this type of website by simply changing
> "mode=secure" to "mode=insecure" and effectively skipping
> the need to authenticate yourself.  the article also
> urged all readers to develop more secure PHP code and
> avoid the practise of being lazy about authentication.
> 
> (if you dont bother to write good security code, it's
> usually worse than having no security at all, becuase
> having bad security will prompt people to break it
> just to prove that it's worthless)
> 
> just figured i'd paraphrase the article and suggest that
> you all pick up an issue 2600 - it's a great read... and
> in the most recent issue, there's an article about PHP/perl
> based mailing lists and ways that they can be exploited
> to mail-bomb people.
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 


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




Re: [PHP] RE: [PHP-WIN] php > XML output in IE: no display

2001-07-09 Thread Patrick Sibenaler




> IE does some "intelligent guessing" based on filename extension that will
> override headers. If you send enough headers in the right sequence you can
> get it to work right - with a weird name if you want to save it and
> sometimes a double query on whether or not you want to save it. Tricking it
> via PATH_INFO URLs works without any weird problems.

I've just tried to fool IE into any mime (text/plain, image/gif, 
foo/bar) with the same content but it keeps ignoring it all on IE.

-- 
PHP General Mailing List (http://www.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] HTML/PHP's static state problem.

2001-07-09 Thread Alexander Deruwe

Hey all,

I've run into a little problem: 
Take, for example, combobox A and combobox B. Suppose B's s depend on what is
selected in A.. 
Is it possible to update B according to what is selected in A?

Thanks,

Alexander 'ad' Deruwe


-- 
PHP General Mailing List (http://www.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] FW: failure notice/unsubscibe

2001-07-09 Thread Maxim Maletsky

mail something here:

[EMAIL PROTECTED]



Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-Original Message-
From: Robert Barrington [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 1:36 AM
To: PHP General
Subject: [PHP] FW: failure notice/unsubscibe




Robert B. Barrington

GetMart Commercial Ecom: Web Administrator
http://weddinginlasvegas.com/
http://getmart.com/
[EMAIL PROTECTED]
Vegas Vista Productions
3172 North Rainbow Boulevard
Suite 326
Las Vegas, Nevada 89108-4534
Telephone: (702)656-1027
Facsimile: (702)656-1608

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 6:39 AM
To: [EMAIL PROTECTED]
Subject: failure notice

Hi. This is the qmail-send program at pb1.pair.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<[EMAIL PROTECTED]>:
ezmlm-reject: fatal: Sorry, I don't accept commands in the subject line.
Please send a message to the -help address shown in the the
``Mailing-List:'' header for command info (#5.7.0)

--- Below this line is a copy of the message.

Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 15233 invoked from network); 9 Jul 2001 13:38:29 -
Received: from unknown (HELO barbank.lvcm.com) (24.234.53.84)
  by pb1.pair.com with SMTP; 9 Jul 2001 13:38:29 -
Received: (qmail 2698 invoked from network); 9 Jul 2001 13:38:02 -
Received: from unknown (HELO nt) (192.168.1.2)
  by cm084.53.234.24.lvcm.com with SMTP; 9 Jul 2001 13:38:02 -
Reply-To: <[EMAIL PROTECTED]>
From: "Robert Barrington" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Subject: Unsubscribe
Date: Mon, 9 Jul 2001 06:46:18 -0700
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Importance: Normal

Guys, I need to unsubscribe. I have tried the demon at the bottom of the
list numerous times, but it refuses to either recognize my email address or
it says that it not on its list. Could someone help? Please?

Robert B. Barrington

GetMart Commercial Ecom: Web Administrator
http://weddinginlasvegas.com/
http://getmart.com/
[EMAIL PROTECTED]
Vegas Vista Productions
3172 North Rainbow Boulevard
Suite 326
Las Vegas, Nevada 89108-4534
Telephone: (702)656-1027
Facsimile: (702)656-1608

-Original Message-
From: Jack [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 1:01 PM
To: [EMAIL PROTECTED]
Subject: [PHP] how do I include a class into my php page

Exactly what the title said, I have a class file, name credit_card.pkg, how
do I include that into another php page? The same way we do with normal
include file?
Jack
[EMAIL PROTECTED]
"Love your enemies, it will drive them nuts"


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



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




[PHP] php & aol

2001-07-09 Thread Steve

I have a php form which the user fills out with info like name, and email
address, stores the user input in a database and then it sends a link via
email to a friend. ow the form works fine as long as you are not coming from
an AOL address? when the aol user fills out the form all seems to go well,
but no data shows up in the database and the link is not sent via email.

Is there something special that is required for AOL users to be able to use
or view php pages? and the input to be passed to other php pages or to a
database?

Thanks
Steve


-- 
PHP General Mailing List (http://www.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] HTML/PHP's static state problem.

2001-07-09 Thread Alexander Deruwe

Hello Maxim,

Basically I mean this: I load the page, it has two comboboxes ( with ).
The first one contains names of countries, the second names of cities within those
countries.
When I select "Belgium" in the first one, I only want to see all Belgian cities.

Now with JavaScript this wouldn't really be a problem, I guess, but I need PHP for 
going
into my database.

Any ideas?

Alexander 'ad' Deruwe

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

2001-07-09 Thread Chris Oxenreider


Hello:

My apologies if this has been covered before, or if i have missed it on
the php manual web pages.  I am looking for some information on how to do
a perl like array with a *sql call in PHP.


Here is what I want to do:

table:
  problem_class
_rid (tinyint)
description (mediumtext)

Sample data:
_riddescription
1   open
2   closed
3   testing
10  S
11  M
12  L
13  XL
20  Black
21  Red
22  Green
23  Blue


In perl this might be accomplished by doing this:
   (Note some pseudo code is used here.  Assume mysql as database but
could be others like Oracle.)

   $query  = "SELECT _rid,description FROM problem_class";
   $q_pointer = sql_query($query);
   @problem_class = sql_associate_array_get($q_pointer);

   print "\n";
   for ($i = 0; $i < 10 ; ++$i) {
   if ( $problem_class[$i] ne "") {
   print " $problem_class[$i]\n";
   }
   }
   print "\n";

   print "\n";
   for ($i = 10; $i < 20 ; ++$i) {
   if ( $problem_class[$i] ne "") {
   print " $problem_class[$i]\n";
   }
   }
   print "\n";

   print "\n";
   for ($i = 20; $i < 30 ; ++$i) {
   if ( $problem_class[$i] ne "") {
   print " $problem_class[$i]\n";
   }
   }
   print "\n";


This produces something very close to this:


 open
 closed
 testing



 S
 M
 L
 XL



 Black
 Red
 Green
 Blue



If I could use something like this, it would allow me to produce different
'for' statements for each select drop down I wanted to create.  One table
to maintain, and change encase politics force me to change some of
definitions with out having to do a massive sql update.  This works as
long as the problem_class table is rather short (ie less than 1,000
records).

I know I am missing something 'obvious' in this.  Your help is
appreciated.  Thank you.




-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Chris Oxenreider | [EMAIL PROTECTED] | http://www.state.net/~oxenreid
 | MicroSoft Windows 2000: The De facto sub standard.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



-- 
PHP General Mailing List (http://www.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] HTML/PHP's static state problem.

2001-07-09 Thread Maxim Maletsky

Then still a JavaScript:

Find a code that loads or submits the page (passing a var) when
selecting/clicking on a country in the  list. Then using your
variable contains the country get the needed cities.

That is the only way to 'emulate' JS.
You could also provide an HTML text list of countries, and then under it the
list of cities, and so on and so on...

I would try to do it step-by-step:

You select your country first, then on the next page select your city and
then on the next page fill in the form. Page 2 and 3 can actually be
together if you wish. I kinda don't like JavaScript (except for intranet
sites, where usability is the must), too long code, too bad compatibility,
too easy to disallow...

Hope this helps,


Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-Original Message-
From: Alexander Deruwe [mailto:aderuwe@mayhem]On Behalf Of Alexander
Deruwe
Sent: Tuesday, July 10, 2001 3:39 AM
To: Maxim Maletsky
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] HTML/PHP's static state problem.


Hello Maxim,

Basically I mean this: I load the page, it has two comboboxes ( with
).
The first one contains names of countries, the second names of cities within
those
countries.
When I select "Belgium" in the first one, I only want to see all Belgian
cities.

Now with JavaScript this wouldn't really be a problem, I guess, but I need
PHP for going
into my database.

Any ideas?

Alexander 'ad' Deruwe


-- 
PHP General Mailing List (http://www.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] HTML/PHP's static state problem.

2001-07-09 Thread Boget, Chris

> Basically I mean this: I load the page, it has two comboboxes 
> ( with ).
> The first one contains names of countries, the second names 
> of cities within those countries.
> When I select "Belgium" in the first one, I only want to see 
> all Belgian cities.
> Now with JavaScript this wouldn't really be a problem, I  guess, 
> but I need PHP for going into my database.

What I do is this:

Where I set up the form, for the first combo box, I fill it using
the results from the query:

"SELECT * FROM countries"

and name that combo box "country_name".  I set an event on
this combo box to be "OnChange=form.submit();"

For the second combo box, I use the query:

"SELECT * FROM cities WHERE country=\"$country_name\""

So the combo box will be empty the first time into the page but
each time they select a new country, it gets filled appropriately.

I have some checks to determine where the form submission is
coming from so I know whether or not to actually process the
data.

HTH

Chris




Re: [PHP] HTML/PHP's static state problem.

2001-07-09 Thread infoz

If it's not prohibitive, you can pre-load all the possibilities into
javascript arrays via PHP, and decide which to subset to display using
javascript.  I did this on a large on-line kid's encyclopedia, where the
page could display different lists of links using javascript depending on
where they clicked.

As an alternative, if your user interface is done in Flash, then it's a
simple matter to query the server for the list of cities to display whenever
the first has a new selection.

- Tim
  http://www.phptemplates.org

> The first one contains names of countries, the second names of cities
within those countries. When I select "Belgium" in the first one, I only
want to see all Belgian cities.
> Now with JavaScript this wouldn't really be a problem, I guess, but I need
PHP for going into my database.



-- 
PHP General Mailing List (http://www.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] HTML/PHP's static state problem.

2001-07-09 Thread PHP

As a matter of fact you can create dynamic comboboxes, but not with
soley PHP.  Because PHP is server-side, it has no idea what the user has
selected on a form, etc.  JavaScript, on the other hand, is client-side, so
it keeps track of what the user is doing.

I've done this very thing for a leasing company.  I used PHP and MySQL
to create a series of arrays in Javascript.  When the user clicked on a
value in the first combobox I used onClick to call a function which loaded
information into the second box.

- Original Message -
From: "Alexander Deruwe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 12:17 PM
Subject: [PHP] HTML/PHP's static state problem.


> Hey all,
>
> I've run into a little problem:
> Take, for example, combobox A and combobox B. Suppose B's s depend
on what is
> selected in A..
> Is it possible to update B according to what is selected in A?
>
> Thanks,
>
> Alexander 'ad' Deruwe
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




RE: [PHP] HTML/PHP's static state problem.

2001-07-09 Thread Boget, Chris

> I've done this very thing for a leasing company.  I used 
> PHP and MySQL to create a series of arrays in Javascript.  
> When the user clicked on a value in the first combobox I 
> used onClick to call a function which loaded information 
> into the second box.

A definite possibility.  The only downside being is if there is 
*alot* of data it'll take a while for the user to DL the page.

Chris



RE: [PHP] HTML/PHP's static state problem.

2001-07-09 Thread Maxim Maletsky

That is why I am saying - loading two pages is cooler then do it all on one.
Some people are still scratching the web on 28 and 36 K - those gonna get
sick submitting your form.

Plus a page view.



Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-Original Message-
From: Boget, Chris [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 1:51 AM
To: 'PHP'; [EMAIL PROTECTED]; Alexander Deruwe
Subject: RE: [PHP] HTML/PHP's static state problem.


> I've done this very thing for a leasing company.  I used
> PHP and MySQL to create a series of arrays in Javascript.
> When the user clicked on a value in the first combobox I
> used onClick to call a function which loaded information
> into the second box.

A definite possibility.  The only downside being is if there is
*alot* of data it'll take a while for the user to DL the page.

Chris


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




RE: [PHP] command output

2001-07-09 Thread Ben Bleything

Couldn't you just 
echo `traceroute $ipgoeshere`;
??

Ben

-Original Message-
From: Ker Ruben Ramos [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 09, 2001 8:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP] command output

ey guys.. anyone know of doing something like with
net.yahoo.com/cgi-bin/trace.sh?ip_here .. something that prints out
every
result of the traceroute command... not showing the result after command
exited


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



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




[PHP] PHP as a shell script

2001-07-09 Thread Kevin Pratt

Can anyone direct me to a place where I can read up on how to use php as a
shell scripting language?


Thanks Kevin
Ouelong Group
www.ouelong.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] PHP as a shell script

2001-07-09 Thread Ben Bleything

It's simple.  Find your php binary (or build one if you don't have
one)... I think 'which php' will find it.

Then, write a php file with '#!/path/to/php -q' at the top.  Use any one
of the various execution methods to run your programs.  Done!

I've been doing this for quite a while.  I find it easier than
'traditional' shell scripting =>

More questions?  Ask!
Ben

-Original Message-
From: Kevin Pratt [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 09, 2001 10:02 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP as a shell script

Can anyone direct me to a place where I can read up on how to use php as
a
shell scripting language?


Thanks Kevin
Ouelong Group
www.ouelong.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] PHP array information.

2001-07-09 Thread scott [gts]

i dont quite think i understand the question, but if you
want to fetch results as an array with mysql, do this:

$result = mysql_query(" sql ");
mysql_fetch_array($result);

> -Original Message-
> From: Chris Oxenreider [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 09, 2001 12:39 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP array information.
> 
> 
> 
> Hello:
> 
> My apologies if this has been covered before, or if i have missed it on
> the php manual web pages.  I am looking for some information on how to do
> a perl like array with a *sql call in PHP.
> 
> 
> Here is what I want to do:
> 
> table:
>   problem_class
> _rid (tinyint)
> description (mediumtext)
> 
> Sample data:
> _riddescription
> 1   open
> 2   closed
> 3   testing
> 10  S
> 11  M
> 12  L
> 13  XL
> 20  Black
> 21  Red
> 22  Green
> 23  Blue
> 
> 
> In perl this might be accomplished by doing this:
>(Note some pseudo code is used here.  Assume mysql as database but
> could be others like Oracle.)
> 
>$query  = "SELECT _rid,description FROM problem_class";
>$q_pointer = sql_query($query);
>@problem_class = sql_associate_array_get($q_pointer);
> 
>print "\n";
>for ($i = 0; $i < 10 ; ++$i) {
>if ( $problem_class[$i] ne "") {
>print " $problem_class[$i]\n";
>}
>}
>print "\n";
> 
>print "\n";
>for ($i = 10; $i < 20 ; ++$i) {
>if ( $problem_class[$i] ne "") {
>print " $problem_class[$i]\n";
>}
>}
>print "\n";
> 
>print "\n";
>for ($i = 20; $i < 30 ; ++$i) {
>if ( $problem_class[$i] ne "") {
>print " $problem_class[$i]\n";
>}
>}
>print "\n";
> 
> 
> This produces something very close to this:
> 
> 
>  open
>  closed
>  testing
> 
> 
> 
>  S
>  M
>  L
>  XL
> 
> 
> 
>  Black
>  Red
>  Green
>  Blue
> 
> 
> 
> If I could use something like this, it would allow me to produce different
> 'for' statements for each select drop down I wanted to create.  One table
> to maintain, and change encase politics force me to change some of
> definitions with out having to do a massive sql update.  This works as
> long as the problem_class table is rather short (ie less than 1,000
> records).
> 
> I know I am missing something 'obvious' in this.  Your help is
> appreciated.  Thank you.
> 
> 
> 
> 
> -- 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Chris Oxenreider | [EMAIL PROTECTED] | http://www.state.net/~oxenreid
>  | MicroSoft Windows 2000: The De facto sub standard.
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.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: RE: [PHP] webmail

2001-07-09 Thread olsonric

In addition, here's a POP3 class from the PHP Classes Repository...


-- 
PHP General Mailing List (http://www.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]somebody help me out here!

2001-07-09 Thread Chris Cocuzzo

hey-

I know I've seen an article/tutorial on the zend website very recently about
parsing urls. It was about being able to use urls which are search engine
friendly and only use the forward slashes, and it also included the code to
interpret all of that. Does anyone know of this article who can direct me to
WHERE it was on that site, or if not, to a site that has a similar article?

thanks
chris


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




[PHP] Getting extensions to load in Win32

2001-07-09 Thread Michael Hall

I am having a devil of a time getting any extensions to load on my Windows
machines.

I have the php.ini set up as follows:

[...]
extension_dir = C:\PHP\extensions
[...]
;extension=php_fdf.dll
extension=php_gd.dll

I'm trying to load the php_gd.dll, but I get the same problem with any of
the extensions listed in php.ini.  The files are present, I have the
directory set up in php.ini, but php won't work at all until I comment out
the extension line again.

Any suggestions?

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] Getting extensions to load in Win32

2001-07-09 Thread Hoover, Josh

Michael,

First, try running php.exe from the command line.  When you do that, it will
probably give you a message about not being able to find certain dll's it
needs.  I believe most, if not all, of the dlls you need are in your PHP
directory under a dll directory.  The best thing to do is to add this path
(PHP_DIRECTOR\dlls\) to the System path.  You may have to restart to get
this new entry to be recognized.  Once you do that, run php.exe on the
command line again and see if it still gives you errors.

Hope that helps,

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 

> I'm trying to load the php_gd.dll, but I get the same problem 
> with any of
> the extensions listed in php.ini.  The files are present, I have the
> directory set up in php.ini, but php won't work at all until 
> I comment out
> the extension line again.



[PHP] Re: Getting extensions to load in Win32

2001-07-09 Thread Inércia Sensorial

  Sometimes you have to add the dir on the php.ini, for example:

;extension=php_df.dll

  Becomes:

extension=extensions/php_gd.dll

  Can't remember if it is / or \ after 'extensions'


--


  Julio Nobrega.

Yes, I am developing another 'Portal-System'
Have a look:
http://sourceforge.net/projects/toca

"Michael Hall" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am having a devil of a time getting any extensions to load on my Windows
> machines.
>
> I have the php.ini set up as follows:
>
> [...]
> extension_dir = C:\PHP\extensions
> [...]
> ;extension=php_fdf.dll
> extension=php_gd.dll
>
> I'm trying to load the php_gd.dll, but I get the same problem with any of
> the extensions listed in php.ini.  The files are present, I have the
> directory set up in php.ini, but php won't work at all until I comment out
> the extension line again.
>
> Any suggestions?
>
> 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] PHP/Apache security question : bugtraq, suExec etc

2001-07-09 Thread Robert Mena

Hi, I follow bugtraq and recently there was a thread
regarding safe_mode of php and how to "break" it.
The thread was killed without a conclusion to where
this is really a new threat or the same problem
(scripts executed with sage uid/gid of the web
server).

So, I was wondering if the php-dev team has already
reached a veredict.

I recently saw a post about the use of suExec and I'd
like to know the performance impact and is there
anything php could do to make such thing easier
(perhaps this is more an apache issue).

Up to now all my virtual domains have used safe_mode,
openbase_dir and document_root settings limiting the
access to files/scripts located under the virtual
directory and no access to override the settings with
a .htaccess.

Is this secure "enough" ? My major concern is the
hability to upload a php code (using ftp), some c
files of a local exploit, compile it and execute as
apache...

thanks.


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

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




[PHP] Name of an array???

2001-07-09 Thread Dallas K.

I need to echo the NAME of an array to the browser. when I try this all I get is 
"Array". when I try to : echo $$array_name; I get nothing.

How can I get the NAME of an array to the browser?

Thanks.



[PHP] enable_dl : manual not clear enough?

2001-07-09 Thread Robert Mena

Extension Loading Directives

Hi, 
While reading the english version of the manual I got
stucked in a part that seems a little confusing.

"enable_dl boolean
This directive is really only 

The main reason for turning dynamic loading off is
security. With dynamic loading, it's possible to
ignore all the safe_mode and open_basedir
restrictions. 

The default is to allow dynamic loading, except when
using safe-mode. In safe-mode, it's always imposible
to use dl()."

Well it is or isn't possible to use dl with safe_mode
?

It says "...With dynamic loading, it's possible to
ignore all the safe_mode and open_basedir 
restrictions."  and then "In safe-mode, it's always
imposible to use dl().".




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

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




[PHP] sorting results of opendir()

2001-07-09 Thread kmurrah

Greetings.

I need to read the contents of a directory, sort it alphabetically, and
display it 

i'm doing find on the reading and displaying, but can someone help me with
the sort?


$dir = opendir(".");

while ($file=readdir($dir)) {


if($file!= "." && $file != "..")
{
echo("$file");
}
}





thanks,

kennm



-- 
PHP General Mailing List (http://www.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] Name of an array???

2001-07-09 Thread scott [gts]

you mean output the name of the variable??

what are you trying to do with that?

> -Original Message-
> From: Dallas K. [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 09, 2001 4:04 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Name of an array???
> Importance: High
> 
> 
> I need to echo the NAME of an array to the browser. when I try this 
> all I get is "Array". when I try to : echo $$array_name; I get nothing.
> 
> How can I get the NAME of an array to the browser?
> 
> 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] can I fopen an https url?

2001-07-09 Thread Jeff Orrok

Christian Reiniger wrote:
> 
> On Saturday 07 July 2001 09:27, Jeff Orrok wrote:
> > and assuming I can, will this dump the resulting page to the browser?
> >
> > $fp = fopen( $buildURI, "r" );
> > fpassthru( $fp );
> > fclose( $fp );
> 
> Why don't you just try it?

*heavy sigh*  OK, let me rephrase my inquiry.  What must I do to be able
to fopen an https url?  For some reason, php tries to find it in the
path that the executing script resides in.

--
:-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] can I fopen an https url?

2001-07-09 Thread Thomas Deliduka

On 7/9/2001 2:07 PM this was written:

> *heavy sigh*  OK, let me rephrase my inquiry.  What must I do to be able
> to fopen an https url?  For some reason, php tries to find it in the
> path that the executing script resides in.

You have to use cURL http://curl.haxx.se/ with PHP
(http://www.php.net/manual/en/ref.curl.php)

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.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] Image thumbnail creation

2001-07-09 Thread Steph

Hi all! New to the list and new to PHP. Im trying to create Image thumbnail
dynamically versus creasting them manually via my graphics program.

Thanks,
Steph


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

2001-07-09 Thread Ethan Schroeder

You must have the gd library compiled into PHP for this
http://www.php.net/manual/en/ref.image.php




- Original Message -
From: "Steph" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 11:27 AM
Subject: [PHP] Image thumbnail creation


> Hi all! New to the list and new to PHP. Im trying to create Image
thumbnail
> dynamically versus creasting them manually via my graphics program.
>
> Thanks,
> Steph
>
>
> --
> PHP General Mailing List (http://www.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] Name of an array???

2001-07-09 Thread Steve Edberg

Not quite sure what you're getting at here. As you discovered, if you have

$Thing = array(5,6,7,8);

and you 'echo $Thing;' you get 'Array.' However, in this case, you 
know the variable name already - $Thing!

Are you thinking more along these lines:

$ArrayName = 'Thing';
$$ArrayName = array(5,6,7,8);

now,

echo $ArrayName;==> Thing
echo $$ArrayName;   ==> Array
echo ${$ArrayName}[0];  ==> 5

See

http://www.php.net/manual/en/language.variables.variable.php

for more info.

-steve



At 1:03 PM -0700 7/9/01, Dallas K. wrote:
>I need to echo the NAME of an array to the browser. when I try 
>this all I get is "Array". when I try to : echo $$array_name; I 
>get nothing.
>
>How can I get the NAME of an array to the browser?
>
>Thanks.

-- 
+-- Factoid: Of the 100 largest economies in the world, 51 are --+
| Steve Edberg   University of California, Davis |
| [EMAIL PROTECTED]   Computer Consultant |
| http://aesric.ucdavis.edu/  http://pgfsun.ucdavis.edu/ |
+--- corporations -- http://www.ips-dc.org/reports/top200text.htm ---+

-- 
PHP General Mailing List (http://www.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] BE A MILLIONAIRE WITHIN A YEAR!

2001-07-09 Thread biz_25

BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR!

Dear Friend:

  "Making over half million dollars every 4 to 5 months from your
home for an investment of only $25 U.S.Dollars expense one time"

  THANKS TO THE COMPUTER AGE AND THE INTERNET!
  ===
  BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR!

Before you say "Bull", please read the following.

This is the letter you have been hearing about on the news 
lately.
Due to the popularity of this letter on the Internet,a national 
weekly news program recently devoted an entire show to the 
investigation of this program described below, to see if it 
really can make people money.

The show also investigated whether or not the program was 
legal.Their findings proved once and for all that there are 
"absolutely no laws prohibiting the participation in the program 
and if people can follow the simple instructions, they are bound 
to make some mega bucks with only $25 out of pocket cost".

  DUE TO THE RECENT INCREASE OF POPULARITY & RESPECT
  THIS PROGRAM HAS ATTAINED, IT IS CURRENTLY WORKING
  BETTER THAN EVER.

  This is what one had to say:

"Thanks to this profitable opportunity. I was approached many 
times before but each time I passed on it. I am so glad I finally 
joined just to see what one could expect in return for the 
minimal effort and money required. To my astonishment, I received 
total $ 610,470.00 in 21weeks, with money still coming in".

   Pam Hedland, Fort Lee, New Jersey.

   Here is another testimonial:

"This program has been around for a long time but I never 
believed
in it.  But one day when I received this again in the mail I 
decided to gamble my $25 on it. I followed the simple 
instructions and walaa. 3 weeks later the money started to 
come in. First month I only made$240.00 but the next 2 months 
after that I made a total of $290,000.00. So far, in the past 8 
months by re-entering the program, I have made over $710,000.00 
and I am playing it again.

The key to success in this program is to follow the simple steps
and NOT change anything."

  More testimonials later but first:

  ** PRINT THIS NOW FOR YOUR FUTURE REFERENCE ***


If you would like to make at least $500,000 every 4 to 5 months
easily and comfortably, please read the following...THEN READ IT 
AGAIN and AGAIN!!!

  Follow the simple instructions below and your financial dreams
  will come true, GUARANTEED

  INSTRUCTIONS:

 Order all 5 reports shown on the list below.

 For each report, send $5 CASH, THE NAME & NUMBER OF THE 
REPORT YOU ARE ORDERING and YOUR E-MAIL ADDRESS to the person 
whose name appears ON THAT LIST next to the report.

  MAKE SURE YOUR RETURN ADDRESS IS ON YOUR ENVELOPE
  TOP LEFT CORNER in case of any mail problems.

 When you place your order, make sure you order each of the 5 
reports.

You will need all 5 reports so that you can save them on your
computer and resell them.

YOUR TOTAL COST $5 X 5 = $25.00.

*Within a few days you will receive, via e-mail, each of 
the 5 reports from these 5 different individuals. Save them on 
your computer so they will be accessible for you to send to the 
1,000's of people who will order them from you. Also make a 
floppy of these reports and keep it at your desk in case 
something happens to your computer.

**IMPORTANT - DO NOT alter the names of the people who 
are
listed next to each report, or their sequence on the list, in any 
way other than what is instructed below in steps 1 through 6 or 
you will loose out on majority of your profits. Once you 
understand the way this works, you will also see how it does not 
work if you change it.

Remember, this method has been tested, and if you alter, it will 
NOT work!!!

People have tried to put their friends/relatives names on all 
five
thinking they could get all the money. But it does not work this 
way. Believe us, we all have tried to be greedy and then nothing 
happened.

So do not try to change anything other than what is instructed. 
Because if you do, it will not work for you.  Remember, honesty 
reaps the reward!!!

  1. After you have ordered all 5 reports, take this 
advertisement
and REMOVE the name & address of the person in REPORT # 5. This 
person has made it through the cycle and is no doubt counting 
their fortune.

  2. Move the name & address in REPORT # 4 down TO REPORT # 5.
  3. Move the name & address in REPORT # 3 down TO REPORT # 4.
  4. Move the name & address in REPORT # 2 down TO REPORT # 3.
  5. Move the name & address in REPORT # 1 down TO REPORT # 2
  6. Insert YOUR name & address in the REPORT # 1 Position.

  PLEASE MAKE SURE you copy every name & address ACCURATELY!
=

Take this entire letter, with the modified list of names, and 
save
it on your computer. DO NOT MAKE ANY OTHER CHANGES.  Save this on 
a disk as well just in case if you 

Re: [PHP] Storing serialized classes in database

2001-07-09 Thread Christopher Heschong

When you serialize() an object in PHP, it only stores the properties, 
not the methods.  This way you can change any of the methods in your 
class definitions, or add new properties, and when the data is 
unserialize()d, it will fit into the new class definition.

The latest (development) version of Pecos 
(http://pecos.screwdriver.net/) (which should, incidentally, be released 
later today or tomorrow) has moved from using entirely serialized() data 
to having a seperate table for storing properties.  Basically, we loop 
through the object using get_object_vars() and store each property 
(serialized() only if it was an array or another object) seperately in a 
seperate field.  This approach allows you to search by property rather 
than having to do a full-text search of the serialize()d data (or even 
worse, loading up each object and searching through it manually).

--
/chris/

On Monday, July 9, 2001, at 10:58 AM, Michael Champagne wrote:

> We are writing a series of applications which will store a user 
> 'profile'
> between sessions as a serialized object in our Oracle database.  We're 
> storing
> data like the output format a user prefers file downloads in and things 
> like
> that.  If have to add certain things to this class, I'm assuming the
> serialized objects in the database become unusable.  Does anyone have a 
> good
> solution for this?  I suppose we could go through the database and 
> somehow
> convert these serialized 'profiles' to meet the new class spec.  How 
> much of a
> hassle is that?
>
> Thanks in advance for any responses,
>
> Michael Champagne, Software Engineer
> Capital Institutional Services, Inc.
> wk: [EMAIL PROTECTED]
> hm: [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] sorting results of opendir()

2001-07-09 Thread Jeff Lewis

Why don't you add the $file to an array, then do a sort on the array?
sort($array)

Jeff

> -Original Message-
> From: kmurrah [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 09, 2001 2:06 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] sorting results of opendir()
>
>
> Greetings.
>
> I need to read the contents of a directory, sort it alphabetically, and
> display it 
>
> i'm doing find on the reading and displaying, but can someone help me with
> the sort?
>
>
> $dir = opendir(".");
>
> while ($file=readdir($dir)) {
>
>
>   if($file!= "." && $file != "..")
>   {
>   echo("$file");
>   }
> }
>
>
>
>
>
> thanks,
>
> kennm
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>


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




[PHP] Re: php chat

2001-07-09 Thread Henrik Hansen

[EMAIL PROTECTED] (Jack) wrote:

 > 1.  (*) text/plain  
 > 
 > Hi all
 > is there anyone know where can I get a good php chat programme?

there are one here:

http://phpwizard.net/projects/phpChat/
and one for irc here:
http://phpwizard.net/projects/phpIRC/

you could also look at php's new irc functions.

-- 
Henrik Hansen

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

2001-07-09 Thread Steve Edberg

Here's one way:


$dir = opendir('.');
unset($FileList);

while ($file=readdir($dir)) {

if($file!= '.' && $file != '..')
{
$FileList[] = $file;
}

}

sort $FileList;
reset($FileList);

while(list(, $F) = each($FileList)) {

echo "$F\n";

}

If you're using PHP4, you can replace everything after the 
sort($FileList) with the more compact:

foreach($FileList as $F) { echo "$F\n"; }


See

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

for more info on sorting arrays.


- steve



At 1:05 PM -0500 7/9/01, kmurrah wrote:
>Greetings.
>
>I need to read the contents of a directory, sort it alphabetically, and
>display it 
>
>i'm doing find on the reading and displaying, but can someone help me with
>the sort?
>
>$dir = opendir(".");
>
>while ($file=readdir($dir)) {
>
>
>   if($file!= "." && $file != "..")
>   {
>   echo("$file");
>   }
>}
>


-- 
+-- Factoid: Of the 100 largest economies in the world, 51 are --+
| Steve Edberg   University of California, Davis |
| [EMAIL PROTECTED]   Computer Consultant |
| http://aesric.ucdavis.edu/  http://pgfsun.ucdavis.edu/ |
+--- corporations -- http://www.ips-dc.org/reports/top200text.htm ---+

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

2001-07-09 Thread Kevin Pratt

Is there any special switches I have to pass to the compile of php to create
the php binary?

Kevin
- Original Message -
From: "Ben Bleything" <[EMAIL PROTECTED]>
To: "'Kevin Pratt'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 11:03 AM
Subject: RE: [PHP] PHP as a shell script


> It's simple.  Find your php binary (or build one if you don't have
> one)... I think 'which php' will find it.
>
> Then, write a php file with '#!/path/to/php -q' at the top.  Use any one
> of the various execution methods to run your programs.  Done!
>
> I've been doing this for quite a while.  I find it easier than
> 'traditional' shell scripting =>
>
> More questions?  Ask!
> Ben
>
> -Original Message-
> From: Kevin Pratt [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 09, 2001 10:02 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP as a shell script
>
> Can anyone direct me to a place where I can read up on how to use php as
> a
> shell scripting language?
>
>
> Thanks Kevin
> Ouelong Group
> www.ouelong.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 General Mailing List (http://www.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] Book Database

2001-07-09 Thread Reuben D Budiardja


Hi,
I'm doing project using php that will allow me to enter an ISBN number of a 
book, and put that book info into my database. 

Is there any free book database out there that I can query using ISBN, and 
will return me the info such as the title, author, publisher? If I can just 
get the title and author, that would be great.

Thanks.
Reuben D. Budiardja

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

2001-07-09 Thread Chris Lott

The Library of Congress web site is good for that sort of thing. You can
search for an ISBN and have returned a formatted MARC record/etc which is
fairly easy to parse. I don't have code anymore, but I did exactly this at
one time.

c

> -Original Message-
> From: Reuben D Budiardja [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 09, 2001 10:55 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Book Database
> 
> 
> 
> Hi,
> I'm doing project using php that will allow me to enter an 
> ISBN number of a 
> book, and put that book info into my database. 
> 
> Is there any free book database out there that I can query 
> using ISBN, and 
> will return me the info such as the title, author, publisher? 
> If I can just 
> get the title and author, that would be great.
> 
> Thanks.
> Reuben D. Budiardja
> 
> -- 
> PHP General Mailing List (http://www.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] caller() function

2001-07-09 Thread scott [gts]

i cannot seem to find any function that's similar to
perl's "caller()" function - to get information about the
file/function that is calling the current function.

for example, the test() function is called from scott.php

scott.php


Hello there



test.php

function test() {
  without passing in __LINE__ and __FILE__ 
  to the test() function myself, is there anyway
  to find out the file/line that called this function??
}



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] PHP as a shell script

2001-07-09 Thread bleythbe

There are... but I'm not sure what they are.  If you
build PHP _without_ any options, I believe you will get
the binary.

Read the documentation that comes with the source.  It
will show you the way.

Ben

Quoting Kevin Pratt <[EMAIL PROTECTED]>:

> Is there any special switches I have to pass to
> the compile of php to create
> the php binary?
> 
> Kevin
> - Original Message -
> From: "Ben Bleything"
> <[EMAIL PROTECTED]>
> To: "'Kevin Pratt'" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Monday, July 09, 2001 11:03 AM
> Subject: RE: [PHP] PHP as a shell script
> 
> 
> > It's simple.  Find your php binary (or build
> one if you don't have
> > one)... I think 'which php' will find it.
> >
> > Then, write a php file with '#!/path/to/php
> -q' at the top.  Use any one
> > of the various execution methods to run your
> programs.  Done!
> >
> > I've been doing this for quite a while.  I
> find it easier than
> > 'traditional' shell scripting =>
> >
> > More questions?  Ask!
> > Ben
> >
> > -Original Message-
> > From: Kevin Pratt [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 09, 2001 10:02 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] PHP as a shell script
> >
> > Can anyone direct me to a place where I can
> read up on how to use php as
> > a
> > shell scripting language?
> >
> >
> > Thanks Kevin
> > Ouelong Group
> > www.ouelong.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 General Mailing List (http://www.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] sorting results of opendir()

2001-07-09 Thread bleythbe

Just store each $file into an array ($array[] = $file)
and the sort($array).  Works dandy =>

Ben

Quoting kmurrah <[EMAIL PROTECTED]>:

> Greetings.
> 
> I need to read the contents of a directory, sort
> it alphabetically, and
> display it 
> 
> i'm doing find on the reading and displaying,
> but can someone help me with
> the sort?
> 
> 
> $dir = opendir(".");
> 
> while ($file=readdir($dir)) {
> 
> 
>   if($file!= "." && $file != "..")
>   {
>   echo("$file");
>   }
> }
> 
> 
> 
> 
> 
> thanks,
> 
> kennm
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> 
> 

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




Re: [PHP] PHP as a shell script

2001-07-09 Thread Tyler Longren

Just don't compile it with apache or some other web server.  It should
create the executable then.

Tyler

- Original Message -
From: "Kevin Pratt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 12:01 PM
Subject: [PHP] PHP as a shell script


> Can anyone direct me to a place where I can read up on how to use php as a
> shell scripting language?
>
>
> Thanks Kevin
> Ouelong Group
> www.ouelong.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] echo array name

2001-07-09 Thread Matthew Luchak



Not sure if this helps but how about?

array("31","has 1 day holiday"),
February=>array("28","is very cold"));

for($i=0; $i < count($months); $i++) {
while(list($key,$val)=each($months)) {echo $key.' has
'.$val[0].' days, it '.$val[1].' ';}
}


?>



 
Matthew Luchak 
Webmaster
Kaydara Inc. 
[EMAIL PROTECTED]

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




RE: [PHP] PHP as a shell script

2001-07-09 Thread scott [gts]

dont use --with-apxs or --with-apache

./configure --my-options
make
make test
make install

that should do it.

> -Original Message-
> From: Tyler Longren [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 09, 2001 3:07 PM
> To: Kevin Pratt; [EMAIL PROTECTED]
> Subject: Re: [PHP] PHP as a shell script
> 
> 
> Just don't compile it with apache or some other web server.  It should
> create the executable then.
> 
> Tyler
> 
> - Original Message -
> From: "Kevin Pratt" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 09, 2001 12:01 PM
> Subject: [PHP] PHP as a shell script
> 
> 
> > Can anyone direct me to a place where I can read up on how to use php as a
> > shell scripting language?
> >
> >
> > Thanks Kevin
> > Ouelong Group
> > www.ouelong.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 General Mailing List (http://www.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] Image thumbnail creation

2001-07-09 Thread [EMAIL PROTECTED]

on 7/9/01 2:27 PM, Steph at [EMAIL PROTECTED] wrote:

> Hi all! New to the list and new to PHP. Im trying to create Image thumbnail
> dynamically versus creasting them manually via my graphics program.


There's a nice one here:

http://www.brokenchair.org/projects/snippets/


Susan


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

2001-07-09 Thread Kevin Pratt

Yep all done thanks...
Kevin
- Original Message -
From: "scott [gts]" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 1:26 PM
Subject: RE: [PHP] PHP as a shell script


> dont use --with-apxs or --with-apache
>
> ./configure --my-options
> make
> make test
> make install
>
> that should do it.
>
> > -Original Message-
> > From: Tyler Longren [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 09, 2001 3:07 PM
> > To: Kevin Pratt; [EMAIL PROTECTED]
> > Subject: Re: [PHP] PHP as a shell script
> >
> >
> > Just don't compile it with apache or some other web server.  It should
> > create the executable then.
> >
> > Tyler
> >
> > - Original Message -
> > From: "Kevin Pratt" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, July 09, 2001 12:01 PM
> > Subject: [PHP] PHP as a shell script
> >
> >
> > > Can anyone direct me to a place where I can read up on how to use php
as a
> > > shell scripting language?
> > >
> > >
> > > Thanks Kevin
> > > Ouelong Group
> > > www.ouelong.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 General Mailing List (http://www.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]somebody help me out here!

2001-07-09 Thread Andrew Chase

There's a search engine optimization tutorial at Webmonkey:

http://hotwired.lycos.com/webmonkey/01/23/index1a.html?tw=e-business

It mentions doing the Amazon-style search-engine friendly URLs and links to
a page about mod_rewrite for Apache:

http://httpd.apache.org/docs/mod/mod_rewrite.html


-Andy



> -Original Message-
> From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 09, 2001 9:57 AM
> To: PHP General List (E-mail)
> Subject: [PHP]somebody help me out here!
>
>
> hey-
>
> I know I've seen an article/tutorial on the zend website very
> recently about
> parsing urls. It was about being able to use urls which are search engine
> friendly and only use the forward slashes, and it also included
> the code to
> interpret all of that. Does anyone know of this article who can
> direct me to
> WHERE it was on that site, or if not, to a site that has a
> similar article?
>
> thanks
> chris
>
>


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




[PHP] RE: sorting results of opendir()

2001-07-09 Thread Andrew Chase

Try reading the directory contents into an array, sorting it, *then*
outputting the contents of the array:

$dir = opendir(".");

$dirlist = array();
$index = 0;
while($file = readdir($dir) && $file != "." && $file != ".."){
$dirlist[$index++] = $file;
}

sort($dirlist);

foreach($dirlist as $file){
echo "$file";
}



> -Original Message-
> From: kmurrah [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 09, 2001 11:06 AM
> To: [EMAIL PROTECTED]
> Subject: sorting results of opendir()
>
>
> Greetings.
>
> I need to read the contents of a directory, sort it alphabetically, and
> display it 
>
> i'm doing find on the reading and displaying, but can someone help me with
> the sort?
>


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




RE: [PHP] RE: sorting results of opendir()

2001-07-09 Thread Don Read


On 09-Jul-01 Andrew Chase wrote:
> Try reading the directory contents into an array, sorting it, *then*
> outputting the contents of the array:
> 
> $dir = opendir(".");
> 
> $dirlist = array();
> $index = 0;
> while($file = readdir($dir) && $file != "." && $file != ".."){
>   $dirlist[$index++] = $file;
> }
> 
> sort($dirlist);
> 
> foreach($dirlist as $file){
>   echo "$file";
> }
> 
> 

errmmm ...

$ls=`ls`;
echo nl2br($ls);

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

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