[PHP] about include

2001-02-28 Thread Marcos

hi,
   everytime i add include function to a script it will answer like:
 Warning: Failed opening 'common.php' for inclusion
(include_path='/usr/local/apache/htdocs:/home/httpd/mydomain') in
/home/httpd/mydomain/h24h/foro/admin/index.php on line 23

and lines 22 and 25 have:
   chdir("/home/httpd/mydomain/phorum/");
   include "common.php";

in php.ini i have this:

include_path=
"/usr/local/apache/htdocs:/home/httpd/mydomain"
doc_root=
user_dir=
/usr/local/apache/htdocs ;
extension_dir   =   ./
enable_dl   = On

after this, where should i put all my php files? can i put admin php
files into other directories?

any suggestions will be appreciated,

thanks in advance,


marcos lloret
[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] multiple query in 1 select ?

2001-02-28 Thread CC Zona

In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Jack Sasportas) wrote:

> lets say we have a database with the State Names and cities, and I
> wanted to select all the cities in FL I would execute something like
> this
> mysql_query("SELECT * FROM cities WHERE state='FL'");
> and lets say there are 50 records returned
> 
> I want to be able to get all the cities in FL & GA instead of just FL
> and display the results together as if it was 1 restult.  Then the resul
> would be 100 records ( 50 FL & 50 GA ).
> 
> Thanks!
> 
> I did look on php.net and in a php book I have, but could not find
> anything...

The reason you couldn't find you answer in a PHP reference is that it's 
really a SQL question you're asking.  Any basic SQL reference should help.  
In answer to your question: a where clause can have multiple conditions 
such as "WHERE state='FL' or state='GA'", which means if a record matches 
either of the two possible conditions, then that record will be displayed.

-- 
CC

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




Re: [PHP] RE: [PHP-GENERAL] Please help

2001-02-28 Thread Jack Dempsey

Nilesh,

> 
>  
> 
> 
>  WHO IS UR FAVORATE AUTHOR ?
> 
> 
> 
> 
> 
> 
> 
Ok, I just created the text.html file.

> 
> and then i have written a php script file text.php with the following code
> 
> 
>  
> 
> your favorate author is :
>  echo $Author;
> ?>
> 
> 

And I created the text.php file. (both in my www root)

>   when i view the text.html in my browser and type in the name of the author
> ,i am expected to get the result " your favorate author is 
>  but this dosent seem to happen. Can  u help me ?

I DO get the desired result though! Is there something you might have
overlooked? Are they both in the same directory? What browser are you
using? What's happening? Since I copied your code, and it works for me,
I'm thinking its either a browser issue, or where the files are placed,
etc...you sure everything's installed correctly/working fine?
Best of luck,
Jack Dempsey

-- 
PHP General Mailing List (http://www.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] Hebrew websites transition with php3 ..

2001-02-28 Thread Boaz Yahav

Hi Manuel,

All is great, working hard to make WeberDev.com a better place
for the community and trying to make people understand we don't
make $$$ from it :)

The IE / NN war was one that left no chance for NN in Israel.
While MS spent millions in making all of their products in Hebrew,
including the free IE, NN refused to support Hebrew.

While the 3% is correct for Israel, it's far from being true on an
international basis.

There are 3 large portals in Israel, 1 supports only IE (MSN),
and the other two that supported NN, until not long ago, started
to develop for IE only about 4-6 months ago.

This is why there is no reason to support anything other than
IE in Israel.

With all due respect to people that like other browsers, developing
for all browsers costs lots of $$$ and as long as portals are free 
and loosing lots of $$$ it's not profitable to develop for all.

Bottom line, as the CTO of one of those portals I say go
with Logical Hebrew and dump Netscape (In Israel Only).

and don't forget to add the  tag at the
beginning of each page.

Sincerely

  berber

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

-Original Message-
From: Manuel Lemos [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 10:51 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Hebrew websites transition with php3 ..


Hello Boaz,

How are you doing these days? :-)

On 28-Feb-01 16:39:35, you wrote:

>The figures I'm giving you are from one of the two biggest portals in
>Israel.
>it's less than 3%.

Mind me for jumping in, but I think Aviv question about the truth of the 3%
figure ie very pertinent.

The way I see it it is a gross mistake to assume that the audience of a
large portal is necessary a reflex of the potential audience of that portal.

I also work for a large portal company (not for the Hebrew audience though)
and I found people making the same large mistake.  They looked at the sites
audience and figure that there is over 90% of Internet Explorer users in a
site that used IE specific DHTML.  Needless to say that it didn't show
right in Netscape.

Given that sites do not show right in certain browsers, it looks obvious
that almost nobody using those browsers would show in the browser audience
rates.

I even wonder why there are still 3% of users of browsers that do not
support logical Hebrew display that go to your portal.  Same for the 10% of
Netscape users that go to that other site in my company portal.  Maybe
those are just lurkers that went there and gave up on the site and did not
return because they could not see right what was in there.

The reality is that it turns out that there is still about 30% os Netscape
users, meaning that if you force a certain type of display that they don't
see right, you loose their audience.

Just my .02 EUR. :-)

Manuel Lemos



>I'm not sure about Opera, if you are developing for an Israeli
>audience, you can simply develop for IE 4.x and up.

>anyone with any other browser can go and get IE :)

>-Original Message-
>From: Aviv Revach [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 27, 2001 4:03 PM
>To: Boaz Yahav; [EMAIL PROTECTED]
>Subject: RE: [PHP] Hebrew websites transition with php3 ..


>Hey!

>Thank you for the quick reply.

>I do have some questions regarding your answer.

> From what I know and have seen so far, there are more than just 3% 
>Internet users in Israel which use Netscape 4.x (I use it myself...).
>Are you sure that I should just ignore these people, and just use logical 
>Hebrew?

>Also, quite a lot of people started using Opera lately.. (ain't speaking 
>about Israeli users).
>Does Opera supports Logical Hebrew? If so, from which version?


>Best Regards -

>   Aviv Revach


>At 15:20 28/02/01 +0200, Boaz Yahav wrote:
>>Hi Aviv
>>
>>Let me give you a small tip about Hebrew on the net.
>>
>>The proper Hebrew code which was adopted by the Israeli Institute of
>>Standards
>>is the Logical standard. This standard is automatically supported by IE
4.x
>>and 5.x
>>and also by Netscape 6.x.
>>
>>The percentage of not IE4.x or 5.x users in Israel is less than 3%.
>>
>>3 of the major portals in Israel (Walla, Nana and MSN) are already moving
>to
>>
>>logical Hebrew.
>>
>>So why use Visual Hebrew?
>>
>>In case you decide to go with Visual in any case, did you try hebrevc()?
>>
>>Sincerely
>>
>>   berber
>>
>>Visit http://www.weberdev.com Today!!!
>>To see where PHP might take you tomorrow.
>>
>>
>>-Original Message-
>>From: Aviv Revach [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, February 27, 2001 1:43 PM
>>To: [EMAIL PROTECTED]
>>Subject: [PHP] Hebrew websites transition with php3 ..
>>
>>
>>Hey!
>>
>>I've just joined this mailing-list, therefore, first of all, I would like
>>to say hello to everybody.
>>
>>
>>Now, regarding the issue..
>>
>>As some of you might know, handling with Hebrew websites is rather
>>difficult. Hebrew words often come-out in reversed order (i.e. 'lmth'
>>instea

[PHP-CVS] cvs: php4 /ext/imap config.m4 php_imap.c

2001-02-28 Thread Chuck Hagenbuch

chagenbuWed Feb 28 23:06:54 2001 EDT

  Modified files:  
/php4/ext/imap  config.m4 php_imap.c 
  Log:
  If php is compiled --with-imap-ssl, link in the SSL authenticator from
  c-client so that we can use php to make ssl imap connections.
  
  
Index: php4/ext/imap/config.m4
diff -u php4/ext/imap/config.m4:1.24 php4/ext/imap/config.m4:1.25
--- php4/ext/imap/config.m4:1.24Mon Feb 26 07:17:12 2001
+++ php4/ext/imap/config.m4 Wed Feb 28 23:06:54 2001
@@ -1,4 +1,4 @@
-dnl $Id: config.m4,v 1.24 2001/02/26 15:17:12 kalowsky Exp $
+dnl $Id: config.m4,v 1.25 2001/03/01 07:06:54 chagenbu Exp $
 
 AC_DEFUN(IMAP_INC_CHK,[if test -r "$i$1/c-client.h"; then
AC_DEFINE(HAVE_IMAP2000, 1, [ ])
@@ -97,6 +97,7 @@
 fi
 
 if test "$PHP_IMAP_SSL" != "no"; then
+  AC_DEFINE(HAVE_IMAP_SSL,1,[ ])
   AC_ADD_LIBPATH($PHP_SSL_LIBDIR, IMAP_SHARED_LIBADD)
   AC_ADD_LIBRARY(ssl,, IMAP_SHARED_LIBADD)
   AC_ADD_LIBRARY(crypto,, IMAP_SHARED_LIBADD)
Index: php4/ext/imap/php_imap.c
diff -u php4/ext/imap/php_imap.c:1.61 php4/ext/imap/php_imap.c:1.62
--- php4/ext/imap/php_imap.c:1.61   Mon Feb 26 08:36:08 2001
+++ php4/ext/imap/php_imap.cWed Feb 28 23:06:54 2001
@@ -25,7 +25,7 @@
| PHP 4.0 updates:  Zeev Suraski <[EMAIL PROTECTED]>   |
+--+
  */
-/* $Id: php_imap.c,v 1.61 2001/02/26 16:36:08 kalowsky Exp $ */
+/* $Id: php_imap.c,v 1.62 2001/03/01 07:06:54 chagenbu Exp $ */
 
 #define IMAP41
 
@@ -443,6 +443,10 @@
mail_link(&newsdriver);  /* link in the news driver */
mail_link(&philedriver); /* link in the phile driver */
auth_link(&auth_log);/* link in the log authenticator */
+#ifdef  HAVE_IMAP_SSL
+   ssl_onceonlyinit ();
+   auth_link (&auth_ssl);   /* link in the ssl authenticator */
+#endif
 #endif
mail_link(&dummydriver); /* link in the dummy driver */
 #else



-- 
PHP CVS Mailing List (http://www.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] Template recommendations

2001-02-28 Thread Alexander Wagner

Joseph H Blythe wrote:
> Not be phplib (sorry I have tried and dont like the autoprepend)

You can use the template-class from PHPlib whithout the rest of the 
lib, it is completely independent. Just include the "template.inc"-file 
and you can start.

> Be easy to use

It's not that easy to use but once you found out how it works this 
shouldn't be a problem.

> Be Fast

It's pretty fast. If you want something faster, try Smarty.

regards
Wagner

-- 
Assumption is the mother of all fuck-ups.

-- 
PHP General Mailing List (http://www.php.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-GENERAL] Please help

2001-02-28 Thread Nilesh Parmar

Hi
  My name is Nilesh.I at present learning PHP, i have successfully installed
PHP along with Apache .Everything works fine.But i have the following
problem.
 i have created a html page which has a text area with the following code in
it.

 


 WHO IS UR FAVORATE AUTHOR ?








and then i have written a php script file text.php with the following code


 

your favorate author is :



  when i view the text.html in my browser and type in the name of the author
,i am expected to get the result " your favorate author is 
 but this dosent seem to happen. Can  u help me ?

Nilesh Parmar



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

2001-02-28 Thread elias

Hello.
I want to make a small function that sends a debug message:

  function debuginfo($msg)
 {
  echo"the message is $msg, at line" . __LINE__ . " ";
 }

in my code:
 line 1
 line 2
 line x: debuginfo("hello!!!");

is there is anyway to show the caller's line number? in this case 'x' ?






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




[PHP] multiple query in 1 select ?

2001-02-28 Thread Jack Sasportas

lets say we have a database with the State Names and cities, and I
wanted to select all the cities in FL I would execute something like
this
mysql_query("SELECT * FROM cities WHERE state='FL'");
and lets say there are 50 records returned

I want to be able to get all the cities in FL & GA instead of just FL
and display the results together as if it was 1 restult.  Then the resul
would be 100 records ( 50 FL & 50 GA ).

Thanks!

I did look on php.net and in a php book I have, but could not find
anything...



___
Jack Sasportas



-- 
PHP General Mailing List (http://www.php.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 Digest 1 Mar 2001 06:07:08 -0000 Issue 540

2001-02-28 Thread php-general-digest-help


php-general Digest 1 Mar 2001 06:07:08 - Issue 540

Topics (messages 42048 through 42124):

Re: Pulling my hair out over Netscape...
42048 by: Batonik
42055 by: Ernest E Vogelsinger

sitemap script
42049 by: Ali
42051 by: Tim O'Callaghan
42053 by: Tim O'Callaghan

How to insert time and date into mysql?
42050 by: Zenith
42065 by: Christian Reiniger

Need an array parser
42052 by: Dallas K.

Need an array parser(CONT)
42054 by: Dallas K.
42059 by: Ernest E Vogelsinger
42071 by: Steve Edberg
42075 by: Mark Maggelet

Please turn me off from this list
42056 by: Mike Futerko

PHP 4.0.4pl1 --with-oracle
42057 by: Hardy Merrill

Re: Pluralize a word for searching a database
42058 by: richard merit
42108 by: CC Zona

Developer certifications
42060 by: Chris Adams
42061 by: Dragos Roua
42062 by: swinkle
42077 by: Mark Maggelet
42084 by: kmurrah
42092 by: Mark Maggelet

Re: exchange data between javascript & php!
42063 by: Johnson, Kirk

ora_error segfaults
42064 by: Hardy Merrill

When form doesn't know what it's sending
42066 by: Matt Hanley

Re: How to disable some functions?
42067 by: Steve Edberg

Can't get extension dlls loaded in Windows
42068 by: Alan Hale

Re: Hebrew websites transition with php3 ..
42069 by: Boaz Yahav
42080 by: Manuel Lemos
42093 by: Aviv Revach

Compiling Scripts
42070 by: Johnny Withers
42099 by: Jeff
42101 by: John Donagher

Re: Double Click
42072 by: Manuel Lemos
42074 by: John Huggins

Re: Manuel Lemos's PHP POP3 class
42073 by: Manuel Lemos

Cold Fusion vs. PHP
42076 by: Alex Puritche
42079 by: John Huggins

logic question concerning sale prices in shopping basket app
42078 by: Brett

Passing values from ASP to PHP
42081 by: Isaac
42087 by: Thomas Deliduka

How can I log a record??
42082 by: Zenith

Problem creating and manipulating Jpegs with GD
42083 by: Cherie Benoit

Info needed
42085 by: Chris

Question about session data and pop window!
42086 by: Zenith

regex frustration
42088 by: Jerry Lake
42090 by: Simon Garner
42091 by: Chris

require on compressed files
42089 by: Shane Wegner

Template recommendations
42094 by: Joseph H Blythe

A little help with my script
42095 by: Felipe Lopes

PHP Manual in EBOOK Format
42096 by: YoBro
42098 by: eschmid+sic.s.netic.de
42119 by: YoBro

Restrict Access per IP Addresses
42097 by: Nazoréen
42104 by: Ernest E Vogelsinger

checking for a defined function
42100 by: Eric Peters
42107 by: CC Zona

PHP and Mod_auth_mysql.
42102 by: Lists

problem with cgi-binary
42103 by: James Hamilton

PHP on Cobalt
42105 by: Jochen Kaechelin
42111 by: Chuck Barnett

Daily Rotating Page
42106 by: RalphGzman.aol.com
42109 by: Kelly Corkill
42122 by: richard merit

free webhosting
42110 by: Rene Maldonado
42114 by: Philip Olson

Re: image file prob
42112 by: John LYC

displaying form array values
42113 by: Claudia
42116 by: Philip Olson

Re: best slashdot?
42115 by: Matt \"TrollBoy\" Wiseman
42118 by: Jason Murray

newbie:cron job
42117 by: Wen Ni Leong
42120 by: Kelly Corkill
42121 by: Wen Ni Leong
42123 by: Chris Lee

Loss of Connection hanle in object
42124 by: Andrew Halliday

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--



On Wed, 28 Feb 2001, Jackson, Michael wrote:

> I.E. I enter  a value, hit OK.  Then I press the back button.  Then
> I enter a DIFFERENT value, and hit OK.  The SAME value is passed to the PHP
> script!  I'm using the post method, and I haven't found a way to shake this
> yet!  This is afflicting Netscape 4.7 and Netscape 6.  Driving me crazy

Maybe try setting headers like "Expires" or "Cache-Control"?

Greets,
Batonik





At 18:57 28.02.2001, Jackson, Michael said:
[snip]
>   Hello everyone...  I've been developing a PHP app here for a while
>now, and I have been encountering some most frustrating situations in which
>something will work in IE but not Netscape.  Some of this seems to be IE's
>allowances for sloppy coding... :)  But here's a new one.  I have a form,
>that if you were to submit this form once, it will always retain the same
>value.  I.E. I enter  a value, hit OK.  Then I press the back button.  Then
>I enter a DIFFERENT value, an

[PHP] Loss of Connection hanle in object

2001-02-28 Thread Andrew Halliday

Okay - Im writing an object to wrap a database.
The key problem is this:
- it declares a connection var as an object property
- the open() function opens the connection to the database and stores
the handle in $this->connection
- the executeQuery() method complains about not having a valid handle,
because by then, somehow, $this->connection==null!!!

Any ideas?-i swear its just something stupid ive missed ...

HELP!

Thanx in advance,
AndrewH

-
The code following this returns the following to the browser:
-
The connection in open() is :Resource id #1
The connection in executeQuery() is :''

Warning: Supplied argument is not a valid PostgreSQL link resource in
/var/wwwroot/php/PostgreSQLDataSource.php on line 67


-


class PostgreSQLDataSource
{
   var $connection;
   var $lastResultSet;
   var $error_handler;

   var $host, $port, $username, $password, $database;

   function PostgreSQLDataSource($host, $port, $username, $password,
$database)
   {
  global $error_handler;
  $this->error_handler = $error_handler;

  $this->host = $host;
  $this->port = $port;
  $this->username = $username;
  $this->password = $password;
  $this->database = $database;

  //Legacy behaviour: $this->open($host, $port, $username, $password,
$database);
   }

   function open(/*variable arg list*/)
   {
  $connectionString = "";

  if (func_num_args() == 5)
  {
 $this->host = func_get_arg(0);
 $this->port = func_get_arg(1);
 $this->username = func_get_arg(2);
 $this->password = func_get_arg(3);
 $this->database = func_get_arg(4);
  }

  if ($this->host)
 $connectionString .= " host=".$this->host;
  if ($this->port)
 $connectionString .= " port=".$this->port;
  if ($this->username)
 $connectionString .= " user=".$this->username;
  if ($this->password)
 $connectionString .= " password=".$this->password;
  if ($this->database)
 $connectionString .= " dbname=".$this->database;

  $this->connection = pg_Connect($connectionString);
echo "The connection in open() is :".$this->connection."";
  if ($this->connection == false)
 return false;
  else
 return true;
   }

   function close()
   {
  return pg_Close($this->connection);
   }

   function executeQuery($queryString)
   {
echo "The connection in executeQuery() is :'".$this->connection."'";
  $this->lastResultSet = pg_exec($this->connection,$queryString);
  return new Iterator($this);
   }

   /*PRIVATE FUNCTIONS:*/
   function getRow($row)
   {
  return pg_fetch_array($this->lastResultSet,$row);
   }

   function getResultLength()
   {
  return count($this->lastResultSet);
   }
}



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




Re: [PHP] newbie:cronjob

2001-02-28 Thread Chris Lee

"automatic update the document become active after all the related document become 
active."

unsure what your meaning here. cron is used to run a script once and 
hour/day/week/month etc, you can spec it differnet, but this is a standard system. on 
my redhat system

/etc/cron.daily/

just place a file in there

/etc/cron.daily/backup 

set the execuatable bit

chmod +x /etc/cron.dail/backup

edit the file

nano /etc/cron.daily/backup

put some stuff in there.

/usr/local/bin/php -q /home/httpd/vhosts/somesite/somefile.php

put some stuff in /home/httpd/vhosts/somesite/somefile.php



have fun.


-- 

 Chris Lee
 Mediawaveonline.com

 ph. 250.377.1095
 ph. 250.376.2690
 fx. 250.554.1120

 [EMAIL PROTECTED]





"Wen Ni Leong" <[EMAIL PROTECTED]> wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have created a program using PHP3 and MYSQL.  I want to use cron job
to automatic update the document become active after all the related
document become active.

Can you please give me some idea how to start?  I really don't have any
idea.  Please teach me.

Thanks
Wendy






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

2001-02-28 Thread richard merit


We use something like this to changing some sections 
of the web page based on the day of the year

#day number of the year, ex day 181, 183, 183

$subPartQuery=date("z")"; 

or

# day of the week 0=sunday mon=1, tue=3
$subPartQuery=date("w")"; 


select from database where day_col = $subPartQuery

etc. etc.

you have to double check the mysql syntax

rm

> On Wed, 28 Feb 2001 [EMAIL PROTECTED] wrote:
> 
> > Date: Wed, 28 Feb 2001 20:30:47 EST
> > From: [EMAIL PROTECTED]
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Daily Rotating Page
> > 
> > I have set up a template for a page that displays
> the featured product of the day. All data is stored
> in a mySQL db. So every day I want to feature a 
> > different product. Each product contains an entry
> in the db for picture, description, and hotlink.
> > 
> > What would be the best way to go about this? Does
> anybody have any sample code on performing this
> specific task once a day?
> > 
> > Your help is appreciated.
> > 
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> > 
> 
> Kelly
> 
> 303-444-1671
> Boulder, Colorado
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.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 email at your own domain with 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] newbie:cronjob

2001-02-28 Thread Wen Ni Leong

I have created a program using PHP3 and MYSQL.  I want to use cron job
to automatic update the document become active after all the related
document become active.

Can you please give me some idea how to start?  I really don't have any
idea.  Please teach me.

Thanks
Wendy


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


Re: [PHP] newbie:cron job

2001-02-28 Thread Kelly Corkill


Wen, I'm not clear on what you're looking for. You want to schedule
something in cron to run a script that does what? Cron is a unix scheduling
tool, via which you can trigger shell scripts to occur at specific
intervals/points in time.

Sounds like what you may want is a script that acts only after some other
actions are complete. You could do that by building a script that checks
periodically (presuming there is some trigger to check for) and effects only
when found.

 For instance, you can build a unix shell script like this: 

#! /bin/tcsh
/usr/local/bin/mysql -t -uUSERNAME -pPASSWORD DATABASE < Date: Thu, 01 Mar 2001 11:07:30 +0800
> From: Wen Ni Leong <[EMAIL PROTECTED]>
> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> Subject: [PHP] newbie:cron job
> 
> I have created a program using PHP3 and MYSQL.  I want to use cron job
> to automatic update the document become active after all the related
> document become active.
> 
> Can you please give me some idea how to start?  I really don't have any
> idea.  Please teach me.
> 
> Thanks
> Wendy
> 

Kelly

303-444-1671
Boulder, Colorado



-- 
PHP General Mailing List (http://www.php.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 Manual in EBOOK Format

2001-02-28 Thread YoBro

Thanks for that, and sorry.

I had looked everywhere else except there.
That should have been my first option to check out.

YoBro

<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
: On Thu, Mar 01, 2001 at 12:50:49PM +1300, YoBro wrote:
:
: > Does anybody know of, or have the ability to convert the PHP html manual
: > into an EBook for the likes of a palm pilot or Franklin reader?
:
: Try http://php.net/docs.php and look under Other Versions.
:
: -Egon
:
: --
: http://www.linuxtag.de/
: http://php.net/books.php
: http://www.concert-band.de/
: http://www.php-buch.de/
:
: --
: PHP General Mailing List (http://www.php.net/)
: To unsubscribe, e-mail: [EMAIL PROTECTED]
: For additional commands, e-mail: [EMAIL PROTECTED]
: To contact the list administrators, e-mail: [EMAIL PROTECTED]
:



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




[PHP-CVS] Re: [PHP-CVS-DAILY] cvs: php4 / ChangeLog

2001-02-28 Thread Stanislav V Vyaly

unsubscribe php-cvs [EMAIL PROTECTED]


-- 
PHP CVS Mailing List (http://www.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] best slashdot?

2001-02-28 Thread Jason Murray

> PHPSlash is really goodd, although user management won't be 
> out until .7 and .6 was just released.  PHPNuke has usermanagement, 
> but from what I hear its not all that customizable..  Check out phpslash 
> at www.phpslash.org.. they aren't running phpslash on that site currently 
> due to DB difficulties with the host (i.e., requested the DB and am still 
> waiting..)

I'm evaluating PHPNuke at the moment. It certainly seems to have the 
goods on customisation. 

Besides which, you can always edit and fiddle :)

Jason

-- 
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!

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




[PHP] newbie:cron job

2001-02-28 Thread Wen Ni Leong

I have created a program using PHP3 and MYSQL.  I want to use cron job
to automatic update the document become active after all the related
document become active.

Can you please give me some idea how to start?  I really don't have any
idea.  Please teach me.

Thanks
Wendy


-- 
PHP General Mailing List (http://www.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] displaying form array values

2001-02-28 Thread Philip Olson


Hi Claudia,

Something like :

  $msg = 'Destination :';
  foreach ($Destination as $place) {

  $msg .= "\n\t $place";
  }


Regards,

Philip Olson
http://www.cornado.com/

On Wed, 28 Feb 2001, Claudia wrote:

> I would like to know how to add  form array values to a mail message.
> 
> I have my form defined as follows:
> 
>  select form name set as:
> 
> 
> Not sure
> Acapulco
> Alabama
> Arizona
> Bahamas
> Baja
> 
> 
> I am not sure how to pull the values from the Destination array
> 
> Here is some code that does not work: (this script is adding the form info
> to a mail message)
> 
> $msg .= "Destination:\n";
>$i = 0;
> 
>if ($Destination[$i] !="")
>{
> 
>do
>{
>$msg .= "\t$Destination[$i]\n";
> 
>$i == $i + 1;
>}
> 
>while ($Destination[$i] !="");
> 
>}
> 
> I receive an out of memory message -- must be adding the same value over and
> over...or something
> 
> 
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.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] best slashdot?

2001-02-28 Thread Matt \"TrollBoy\" Wiseman

PHPSlash is really goodd, although user management won't be out until .7 and
.6 was just released.  PHPNuke has usermanagement, but from what I hear its
not all that customizable..  Check out phpslash at www.phpslash.org.. they
aren't running phpslash on that site currently due to DB difficulties with
the host (i.e., requested the DB and am still waiting..)

Matt "Trollboy" Wiseman
www.shoggoth.net/trollboy/trollboy.jpg
[EMAIL PROTECTED]
"I wish the world had one throat!!"
-Al Bundy





- Original Message -
From: "Jaxon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 22, 2001 4:57 PM
Subject: [PHP] best slashdot?


> I hate to post flamebait, but I genuinely want to know -
> what have people liked as far as a slasdot style PHP apps?
>
> I would love one that has integrated user management and mailing lists :)
>
> TIA, and sorry for the YAWIB (yet another which-is-best) post.
>
> regards,
> jaxon
>
> --
> PHP General Mailing List (http://www.php.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] free webhosting

2001-02-28 Thread Philip Olson

Greetings Rene,

Check out :

http://www.faqts.com/knowledge-base/view.phtml/aid/4058/fid/27


Regards,

Philip Olson
http://www.cornado.com/

On Wed, 28 Feb 2001, Rene Maldonado wrote:

> Hi,
> 
> Does any one know where can I get free webhosting, like Geocities.com,
> but that suports PHP.
> 
> thanks
> 
> Rene
> 
> 
> -- 
> PHP General Mailing List (http://www.php.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] displaying form array values

2001-02-28 Thread Claudia

I would like to know how to add  form array values to a mail message.

I have my form defined as follows:

 select form name set as:


Not sure
Acapulco
Alabama
Arizona
Bahamas
Baja


I am not sure how to pull the values from the Destination array

Here is some code that does not work: (this script is adding the form info
to a mail message)

$msg .= "Destination:\n";
   $i = 0;

   if ($Destination[$i] !="")
   {

   do
   {
   $msg .= "\t$Destination[$i]\n";

   $i == $i + 1;
   }

   while ($Destination[$i] !="");

   }

I receive an out of memory message -- must be adding the same value over and
over...or something






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

2001-02-28 Thread John LYC

thanks for the info...
well.
what i did was to fread the files and store them using sessions variables.
at the end of the process. .. i do a walk thur the array and insert them into
the DB...

john

John LYC wrote:

> hi..
> i have a form that allow users to upload several image files.
> every time they submit, i do fread them and assign them to an array...
> this array will be passed on until user confirmation.. then i insert
> into database as blob type
>
> //freed image file and assign to array.
> $diagram[$ind] =
> addslashes(fread(fopen($HTTP_POST_FILES["QuestDia"]["tmp_name"][$ind],"r"),
>
> //to facilitate posting of any existing array of the above to the next
> form...
> for($ind=0;$ind < count($diagram);$ind++)
>   print " value=\"".$diagram[$ind]."\">";
>
> the script will bring user back to the form and allow them to upload
> more...
>
> the 2nd time round, i have got error..
> i see parts of $diagram being displayed out... meaning funny characters
> are displayed..
> once $diagram is insert into database,,, the pic is corrupted..
> it works fine if the form does not repeat.. meaning user post images and
> database is updated straight away.
> can someone tell me wat's wrong?
>
> john
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


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




Re: [PHP] PHP on Cobalt

2001-02-28 Thread Chuck Barnett

PHP 4.0 comes on the RAQ4i

chuck
- Original Message -
From: "Jochen Kaechelin" <[EMAIL PROTECTED]>
To: "Php-General@Lists. Php. Net" <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 6:57 PM
Subject: [PHP] PHP on Cobalt


> does anybody know which versions
> of PHP are installed on a CobaltRAQ3 or CobaltRAQ4
> when you buy a new one?
>
> --
> Ihr WEBberater
> Stuttgarter Str.3, D-73033 Göppingen
> Tel. +49(0)7161-929594 - Fax. +49(0)7161-929598
> http://www.wa-p.de ** mailto:[EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




[PHP-CVS] Invalid Address

2001-02-28 Thread postmaster

**
[EMAIL PROTECTED] is no longer a valid address.  
Try replacing @CELL1.com with @alltel.com   
If your email is still not delivered, please contact 
the recipient and request their new email address.
**



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


[PHP] free webhosting

2001-02-28 Thread Rene Maldonado

Hi,

Does any one know where can I get free webhosting, like Geocities.com,
but that suports PHP.

thanks

Rene


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

2001-02-28 Thread Kelly Corkill


If on unix "man cron". Write a script to change a pointer and use cron to
run the script.


On Wed, 28 Feb 2001 [EMAIL PROTECTED] wrote:

> Date: Wed, 28 Feb 2001 20:30:47 EST
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: [PHP] Daily Rotating Page
> 
> I have set up a template for a page that displays the featured product of the day. 
>All data is stored in a mySQL db. So every day I want to feature a 
> different product. Each product contains an entry in the db for picture, 
>description, and hotlink.
> 
> What would be the best way to go about this? Does anybody have any sample code on 
>performing this specific task once a day?
> 
> Your help is appreciated.
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

Kelly

303-444-1671
Boulder, Colorado



-- 
PHP General Mailing List (http://www.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] Pluralize a word for searching a database

2001-02-28 Thread CC Zona

In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (richard merit) wrote:

> I don't think you can since the plural form of English
> words can vary, woman, women, families, family, foot,
> feet, church, churches, sheep, sheep, road, roads...
> 
> ?
> 
> rm
> 
> --- "Robert V. Zwink" <[EMAIL PROTECTED]> wrote:
> > Has anyone every written a function in php to
> > pluralize an english word,
> > particularly when searching a database?
> > 
> > function pluralize($word){
> > return array of pluralized words;
> > }

Maybe by posting a lookup to an online dictionary, and parsing out the 
returned definition for the plural wordform...?

-- 
CC

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




Re: [PHP] checking for a defined function

2001-02-28 Thread CC Zona

In article 
<[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Eric Peters) wrote:

> how can I do something like
> 
> if(!defined(cybercash_encr())) dl("cybercash.so");
> 
> anyone know of a good way to see if a function/module has been included in
> php?

function_exists()

-- 
CC

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




[PHP] Daily Rotating Page

2001-02-28 Thread RalphGzman

I have set up a template for a page that displays the featured product of the day. All 
data is stored in a mySQL db. So every day I want to feature a 
different product. Each product contains an entry in the db for picture, description, 
and hotlink.

What would be the best way to go about this? Does anybody have any sample code on 
performing this specific task once a day?

Your help is appreciated.

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




[PHP] PHP on Cobalt

2001-02-28 Thread Jochen Kaechelin

does anybody know which versions
of PHP are installed on a CobaltRAQ3 or CobaltRAQ4
when you buy a new one?

--
Ihr WEBberater
Stuttgarter Str.3, D-73033 Göppingen
Tel. +49(0)7161-929594 - Fax. +49(0)7161-929598
http://www.wa-p.de ** mailto:[EMAIL PROTECTED]


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




Re: [PHP] Restrict Access per IP Addresses

2001-02-28 Thread Ernest E Vogelsinger

At 00:58 01.03.2001, Nazoréen said:
[snip]
>well i have a problem, i try make an authentication per range IP Address
>like :
>from 194.195.196.0 to 194.195.196.255 but it doesn't work, except if i make
>an authentication for only one IP Address. I tried to make with "LOOP" and
>"WHILE" tag, but i got the problem everytime !
>
>This is the last example script i made with two domains which accept only
>the range IP Address for each :
>
>
>$host = getenv("REMOTE_ADDR");
>$ip = range(0,255);
>if ($host != "194.195.196.($ip))
>if ($host != "195.196.197.($ip))
[snip] 

Salut Anthony,

you may check if an address is within a certain network/subnet, you need to
compare each octet.

For example:
Address 192.168.11.212  Network 192.168.12.255  Mask 255.255.255.0
192 & 255 = 192 192 & 255 = 192 OK
168 & 255 = 168 168 & 255 = 168 OK
11  & 255 = 11  12  & 255 = 12  NOT WITHIN SUBNET

I've put this together in this littel test form:

[snip] 





 is not
contained in , mask 


Enter Address: 
Enter Network: 
Enter Subnetmask: 




[snip] 



 ...ebird

   >O Ernest E. Vogelsinger
   (\)http://www.1-at-web.at/
^ ICQ#   13394035


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




[PHP] problem with cgi-binary

2001-02-28 Thread James Hamilton

Hi

Setup is RH7 on intel running php4.01pl1 as a cgi binary.

virtual server apache conf file includes

Action php-script /cgi-bin/php
AddHandler php-script .php

when php script is called, the following error occurs:

Parse error: parse error in /www/hosted/(Server name)/cgi-bin/php on line
598

However, on another virtual host on the same physical server, with an
identical .conf file (except for file paths of course), php works fine.

There is a copy of the php binary in each cgi-bin.

I know that this has been reported before in the list, but a search did
not bring up an answer. Can anyone help?

James Hamilton
[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 and Mod_auth_mysql.

2001-02-28 Thread Lists

Hi,
Mod_auth_mysql uses a persistant connection to mysql. Will php use
the same connection for any given apache child or does that then mean to
mysqlds for each child, one used with mod_auth_mysql and one when php does
requests ?
Hope I'm making myself clear.




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




Re: [PHP] Compiling Scripts

2001-02-28 Thread John Donagher


You mean the Encoder. The Optimizer has no such requirement.

John

On Wed, 28 Feb 2001, Jeff wrote:

> Use the zend optimizer, www.zend.com . Of course it requires the people who use
> the script to have the optimizer as well, but at least they can't see the
> source.
> 
> Jeff
> 
> Johnny Withers wrote:
> 
> > [I'm not on this list, please CC me in reply]
> >
> > Is there any way to compile a .php file instead of using the source code to
> > distribute?
> >
> > Problem is, I may have to release an application written in PHP out to
> > companies who do not wish to use this application across the Internet and
> > would like to use it on their local intranet. I do not wish to have to deal
> > with the non-disclosers, agreements, etc which comes with releasing source
> > code.
> >
> > Thanks in advance.
> >
> > -
> > Johnny Withers
> > [EMAIL PROTECTED]
> > p. 601.853.0211
> > c. 601.954.9133
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 

John Donagher
Application Engineer
Intacct Corp. - Powerful Accounting on the Web
408-395-0989
720 University Ave.
Los Gatos CA 95032
www.intacct.com

Public key available off http://www.keyserver.net
Key fingerprint = 4024 DF50 56EE 19A3 258A  D628 22DE AD56 EEBE 8DDD


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




[PHP] checking for a defined function

2001-02-28 Thread Eric Peters

how can I do something like

if(!defined(cybercash_encr())) dl("cybercash.so");

anyone know of a good way to see if a function/module has been included in
php?

I need a run time solution for a script to be encoder()ed and distributed,

Thanks

Eric


-- Support your government, give Echelon / Carnivore something to parse --
classfield  top-secret government  restricted data information project CIA
KGB GRU DISA  DoD  defense  systems  military  systems spy steal terrorist
Allah Natasha  Gregori destroy destruct attack  democracy will send Russia
bank system compromise international  own  rule the world ATSC RTEM warmod
ATMD force power enforce  sensitive  directorate  TSP NSTD ORD DD2-N AMTAS
STRAP warrior-T presidental  elections  policital foreign embassy takeover
--


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




Re: [PHP] Compiling Scripts

2001-02-28 Thread Jeff

Use the zend optimizer, www.zend.com . Of course it requires the people who use
the script to have the optimizer as well, but at least they can't see the
source.

Jeff

Johnny Withers wrote:

> [I'm not on this list, please CC me in reply]
>
> Is there any way to compile a .php file instead of using the source code to
> distribute?
>
> Problem is, I may have to release an application written in PHP out to
> companies who do not wish to use this application across the Internet and
> would like to use it on their local intranet. I do not wish to have to deal
> with the non-disclosers, agreements, etc which comes with releasing source
> code.
>
> Thanks in advance.
>
> -
> Johnny Withers
> [EMAIL PROTECTED]
> p. 601.853.0211
> c. 601.954.9133
>
> --
> PHP General Mailing List (http://www.php.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 Manual in EBOOK Format

2001-02-28 Thread eschmid+sic

On Thu, Mar 01, 2001 at 12:50:49PM +1300, YoBro wrote:

> Does anybody know of, or have the ability to convert the PHP html manual
> into an EBook for the likes of a palm pilot or Franklin reader?

Try http://php.net/docs.php and look under Other Versions.

-Egon

-- 
http://www.linuxtag.de/
http://php.net/books.php 
http://www.concert-band.de/
http://www.php-buch.de/

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




[PHP] Restrict Access per IP Addresses

2001-02-28 Thread Nazoréen

Hello,

i'm Anthony from France :-)

well i have a problem, i try make an authentication per range IP Address
like :
from 194.195.196.0 to 194.195.196.255 but it doesn't work, except if i make
an authentication for only one IP Address. I tried to make with "LOOP" and
"WHILE" tag, but i got the problem everytime !

This is the last example script i made with two domains which accept only
the range IP Address for each :



Have u got a solution please !

Thanks !
Have a nice day !

Anthony.


-- 
PHP General Mailing List (http://www.php.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 Manual in EBOOK Format

2001-02-28 Thread YoBro

Does anybody know of, or have the ability to convert the PHP html manual
into an EBook for the likes of a palm pilot or Franklin reader?

This could really help for around the office and meetings.

--
Regards,


YoBro
-
DO NOT REPLY TO THIS VIA EMAIL
PLEASE USE THE NEWSGROUP
All emails sent to this address are automatically deleted.
This is to avoid SPAM!
-



-- 
PHP General Mailing List (http://www.php.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 little help with my script

2001-02-28 Thread Felipe Lopes

I found this script on the internet...It's a script of a message 
board...My problem is that I just want to display the 30 newer messages 
stead of all messages...What do I have to change???

...

script:

", $message);

if (get_magic_quotes_gpc())
{
$message = stripslashes($message); 
}


$date = date("d/m/Y - h:i a");
$message = "$user  -- $date $message \r\n";
// first read the file into a buffer, if it exists
$textfile = basename($PHP_SELF) . ".comment";
if ($fp = @fopen ($textfile, "r")) // open without complaining
{ 
$oldmessages = @fread($fp,filesize($textfile));
@fclose(fp);
}
// now reopen the file in write mode, with the 
// pointer at the head of the file
$fp = fopen ($textfile, "w");
fwrite ($fp, $message);
fwrite ($fp, $oldmessages); // adding back the old messages
fclose ($fp);
}
@readfile(basename(($PHP_SELF . ".comment")));

?>

...
Thank you

Felipe Lopes
MailBR - O e-mail do Brasil -- http://www.mailbr.com.br
Faça já o seu. É gratuito!!!

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




[PHP] Template recommendations

2001-02-28 Thread Joseph H Blythe

Hey all,

I am developming a site using FastTemplates, but I have run into a problem which it 
looks like I will not be able to resolve, I have posted to this list and the makers of 
FastTemplate but have recieved no clues on what is going on.

I have decided to try and find another template system and rewrite the entire site. 
Can people who use such systems let me know thier findings, the template system must:

Be a php class
Totally separate html from php code
Be able to handle *dynamic* blocks of code (ala FastTemplate)
Not be phplib (sorry I have tried and dont like the autoprepend)
Be easy to use
Be Fast

Any comments will be appreciated,


Regards,


Joseph

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




RE: [PHP] Hebrew websites transition with php3 ..

2001-02-28 Thread Aviv Revach

Hey!

So what do YOU offer me to do?

Should I use visual Hebrew (write a php3 script which will reverse Hebrew
words), or should I stick only to Logical Hebrew?


Thank you in advance -

   Aviv Revach

At 17:50 28/02/01 -0300, Manuel Lemos wrote:
>Hello Boaz,
>
>How are you doing these days? :-)
>
>On 28-Feb-01 16:39:35, you wrote:
>
> >The figures I'm giving you are from one of the two biggest portals in
> >Israel.
> >it's less than 3%.
>
>Mind me for jumping in, but I think Aviv question about the truth of the 3%
>figure ie very pertinent.
>
>The way I see it it is a gross mistake to assume that the audience of a
>large portal is necessary a reflex of the potential audience of that portal.
>
>I also work for a large portal company (not for the Hebrew audience though)
>and I found people making the same large mistake.  They looked at the sites
>audience and figure that there is over 90% of Internet Explorer users in a
>site that used IE specific DHTML.  Needless to say that it didn't show
>right in Netscape.
>
>Given that sites do not show right in certain browsers, it looks obvious
>that almost nobody using those browsers would show in the browser audience
>rates.
>
>I even wonder why there are still 3% of users of browsers that do not
>support logical Hebrew display that go to your portal.  Same for the 10% of
>Netscape users that go to that other site in my company portal.  Maybe
>those are just lurkers that went there and gave up on the site and did not
>return because they could not see right what was in there.
>
>The reality is that it turns out that there is still about 30% os Netscape
>users, meaning that if you force a certain type of display that they don't
>see right, you loose their audience.
>
>Just my .02 EUR. :-)
>
>Manuel Lemos
>
>
>
> >I'm not sure about Opera, if you are developing for an Israeli
> >audience, you can simply develop for IE 4.x and up.
>
> >anyone with any other browser can go and get IE :)
>
> >-Original Message-
> >From: Aviv Revach [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, February 27, 2001 4:03 PM
> >To: Boaz Yahav; [EMAIL PROTECTED]
> >Subject: RE: [PHP] Hebrew websites transition with php3 ..
>
>
> >Hey!
>
> >Thank you for the quick reply.
>
> >I do have some questions regarding your answer.
>
> > From what I know and have seen so far, there are more than just 3%
> >Internet users in Israel which use Netscape 4.x (I use it myself...).
> >Are you sure that I should just ignore these people, and just use logical
> >Hebrew?
>
> >Also, quite a lot of people started using Opera lately.. (ain't speaking
> >about Israeli users).
> >Does Opera supports Logical Hebrew? If so, from which version?
>
>
> >Best Regards -
>
> >   Aviv Revach
>
>
> >At 15:20 28/02/01 +0200, Boaz Yahav wrote:
> >>Hi Aviv
> >>
> >>Let me give you a small tip about Hebrew on the net.
> >>
> >>The proper Hebrew code which was adopted by the Israeli Institute of
> >>Standards
> >>is the Logical standard. This standard is automatically supported by IE 4.x
> >>and 5.x
> >>and also by Netscape 6.x.
> >>
> >>The percentage of not IE4.x or 5.x users in Israel is less than 3%.
> >>
> >>3 of the major portals in Israel (Walla, Nana and MSN) are already moving
> >to
> >>
> >>logical Hebrew.
> >>
> >>So why use Visual Hebrew?
> >>
> >>In case you decide to go with Visual in any case, did you try hebrevc()?
> >>
> >>Sincerely
> >>
> >>   berber
> >>
> >>Visit http://www.weberdev.com Today!!!
> >>To see where PHP might take you tomorrow.
> >>
> >>
> >>-Original Message-
> >>From: Aviv Revach [mailto:[EMAIL PROTECTED]]
> >>Sent: Tuesday, February 27, 2001 1:43 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: [PHP] Hebrew websites transition with php3 ..
> >>
> >>
> >>Hey!
> >>
> >>I've just joined this mailing-list, therefore, first of all, I would like
> >>to say hello to everybody.
> >>
> >>
> >>Now, regarding the issue..
> >>
> >>As some of you might know, handling with Hebrew websites is rather
> >>difficult. Hebrew words often come-out in reversed order (i.e. 'lmth'
> >>instead of 'html').
> >>
> >>I'm working on a php3 script which would help me do the following -
> >>Load an existing HTML file which consists Hebrew words (as well as English
> >>words and HTML tags), then reversing the Hebrew words back to order.
> >>
> >>The problem I'm dealing with is how to reverse only the Hebrew words and
> >>not the entire
> >>document, which contains HTML tags and English words as well.
> >>The function 'hebrev()' does the process of reversing, but it reverses tags
> >>as well.
> >>
> >>
> >>I would really appreciate it, if anyone will find some spare time to help
> >>me.
> >>
> >>
> >>Thank you in advance -
> >>
> >>Aviv Revach
> >>
> >>XOR-Coders Mega Programming Resource Site! -
> >>  http://members.xoom.com/xorcoders/
> >>
> >>
> >>--
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]

RE: [PHP] Developer certifications

2001-02-28 Thread Mark Maggelet

On Wed, 28 Feb 2001 15:16:41 -0600, kmurrah ([EMAIL PROTECTED])
wrote:
>actually, it IS a timed test, so you cannot simply "spend all day
>looking up
>the right answer."

Heh, maybe not all day, but I took it twice to see if speed was
getting counted in the score. The first time I sped thru it, and the
second time I let sit there for what seemed like enough time to
consult the manual or a book for each question and probably even
write a sample program to check the output (whatever it would take to
double check that I had the right answer).

It scored me the same both times, and for this reason I decided that
it was not a very good system. Besides, at this point somebody's
probably posted the answers on the internet somewhere, making this
thing completely useless.

>BTW, if you do want to take the test, today is the last day that the
>exam is
>offered for free ... tomorrow they start charging $20 or so for each
>exam
>
>
>-Original Message-
>From: Mark Maggelet [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 28, 2001 2:14 PM
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Cc: [EMAIL PROTECTED]
>Subject: Re: [PHP] Developer certifications
>
>
>On Wed, 28 Feb 2001 20:54:07 +0200 (EET), Dragos Roua
>([EMAIL PROTECTED]) wrote:
>>Hello,
>>
>>If you'll take a look at Brainbench.com you'll see a PHP4 cert exam
>>there. As
>>brainbench plan to become a paid service, their certifications may
>>start worth
>>something sometime.
>
>The brainbench exam is terrible. It's heavy on knowing the details
of
>mssql functions and oci functions, and no points are given for
speed.
>It's like an open book test so anybody can spend all day looking up
>the right answer, fill it out, and get a perfect score. If you just
>want to get the thing over with you can be honest and dump all the
>answers you don't know.
>
>Anyway, I think that as a benchmark it's garbage. A good test should
>stay away from most modules, and also include speed as a factor.
Also
>It's way too easy to cheat on a test like this, so I don't think
they
>should be taken too seriously no matter what.
>
>I can see requiring a person to pass a test like this before they
get
>a job interview, but a company using the scores as a basis for
hiring
>someone would be silly.
>
>>My 2 cents anyway...
>>
>>> Does anyone know of a company which is offering or planning to
>>>offer PHP
>>> developer certifications? Arguments against certification
programs
>>>aside[1],
>>> there are a lot of companies which prefer certified developers,
>>>even to the
>>> point of assuming a project done in ASP will be better than the
>>>same thing
>>done
>>> in PHP simply because the ASP developers are Microsoft certified.
>>>
>>> While this seems like an interesting sideline for a company like
>>>Zend, I'm
>>also
>>> somewhat curious about whether an "Open Source" test could be
>>>developed. It'd
>>> certainly have to be quite different from normal tests and that
>>>move away from
>>> easily memorized answers would probably be a very good thing.
>>>
>>> [1] We've all heard them before. I'm personally in favor only of
>>certifications
>>> like certain devilishly hard Cisco exams which measure more than
>>> multiple-choice memory.
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> To contact the list administrators, e-mail: php-list-
>>>[EMAIL PROTECTED]
>>>
>>
>>
>>--
>>Dragos Roua
>>Mirabilis Media,
>>http://www.portal.ro  http://www.net-info.ro
>>http://www.analyser.ro http://www.adserver.ro
>>http://www.culinar.ro http://www.cartipostale.ro
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>To contact the list administrators, e-mail: php-list-
>>[EMAIL PROTECTED]
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: php-list-
>[EMAIL PROTECTED]
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: php-list-
>[EMAIL PROTECTED]



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




Re: [PHP] regex frustration

2001-02-28 Thread Chris

Try the perl compatible one, you can set a limit of how many times to
replace:

http://www.php.net/manual/en/function.preg-replace.php


> I've tried and tried to no avail, can someone assist
> I need to select the first space in a line like the following
> Nelson Bob and Mary, 123 Street st., Ashton, 555-1212
>
> I need to replace the space between Nelson and Bob with
> a comma so I can separate the first and last names in my DB
> ^\D*\s will select the first name and the space, but I just
> need the space. any ideas?
>
> Jerry Lake- [EMAIL PROTECTED]
> Web Designer
> Europa Communications - http://www.europa.com
> Pacifier Online - http://www.pacifier.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


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




Re: [PHP] regex frustration

2001-02-28 Thread Simon Garner

From: "Jerry Lake" <[EMAIL PROTECTED]>

> I've tried and tried to no avail, can someone assist
> I need to select the first space in a line like the following
> Nelson Bob and Mary, 123 Street st., Ashton, 555-1212
> 
> I need to replace the space between Nelson and Bob with
> a comma so I can separate the first and last names in my DB
> ^\D*\s will select the first name and the space, but I just
> need the space. any ideas?
> 





Or alternatively:




Cheers

Simon Garner


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




[PHP] require on compressed files

2001-02-28 Thread Shane Wegner

Hi all,

I am trying to get the expected behavior of:
require("filename.gz");
or
require("filename.bz2");
to work properly.

Beyond using gzopen, gzread, and gzwrite to do it using a
temp file, is there any other way to include a compressed
file with PHP code?  I thought of using gzread and passing
that to eval but it isn't pure PHP and uses 
respectively.

Thanks in advance,
Shane

-- 
Shane Wegner: [EMAIL PROTECTED]
  http://www.cm.nu/~shane/
PGP:  1024D/FFE3035D
  A0ED DAC4 77EC D674 5487
  5B5C 4F89 9A4E FFE3 035D

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




[PHP] regex frustration

2001-02-28 Thread Jerry Lake

I've tried and tried to no avail, can someone assist
I need to select the first space in a line like the following
Nelson Bob and Mary, 123 Street st., Ashton, 555-1212

I need to replace the space between Nelson and Bob with
a comma so I can separate the first and last names in my DB
^\D*\s will select the first name and the space, but I just
need the space. any ideas?

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


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




Re: [PHP] Passing values from ASP to PHP

2001-02-28 Thread Thomas Deliduka

Well, if it's a query string it's easy...

In the ASP page you do:

<%
Response.Redirect("myscript.php?" & Request.ServerVariables("QUERY_STRING"))
%>

If it's posted form data do this:

<%
Dim Querystring
Querystring = ""
For each Item in Request.Form
if Querystring = "" Then
Querystring = Item & "=" & Server.UrlEncode(Request.Form(Item))
Else
Querystring = Querystring & "&" & Item & "=" &
Server.UrlEncode(Request.Form(Item))
' the above line isn't supposed to wrap
End If
Next
Response.Redirect("myscript.php?" & Querystring)
%>


On 2/28/01 4:08 PM this was written:

> I've been given a project that I want to use PHP with, but unfortunately
> there are unchangable hard-coded values that point clients to an ASP
> script residing on our server. Here's what I want to do, and I don't
> really know how to do it:
> 
> I want to pass all the key/value pairs that are passed to the ASP script
> to a PHP script. I can get values with Request.Form("key_name"), but
> that takes hard-coding the name of the key.
> 
> So if the following is passed to the ASP script:
> one=blue&two=red&three=yellow
> 
> Then I would want to redirect to
> myscript.php?one=blue&two=red&three=yellow
> 
> How do I go about walking through all the key/values that have been passed
> in ASP? I really don't want to have to learn this ugly language..

-- 

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] Question about session data and pop window!

2001-02-28 Thread Zenith

If one of the script ( abc.php ) will generate a pop up (browser) windows,
asking for user confirmation,
then, if the user click on the form button inside that pop up windows,
the form data will submit to also ( abc.php ), then, does the session data
share among this two windows?

Zenith



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




[PHP] Info needed

2001-02-28 Thread Chris

Hi again,
Has anyone here come accross a Rich Text Format to HTML converted based on PHP?

Thanks,
Chris



RE: [PHP] Developer certifications

2001-02-28 Thread kmurrah


actually, it IS a timed test, so you cannot simply "spend all day looking up
the right answer."

BTW, if you do want to take the test, today is the last day that the exam is
offered for free ... tomorrow they start charging $20 or so for each
exam


-Original Message-
From: Mark Maggelet [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 2:14 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Developer certifications


On Wed, 28 Feb 2001 20:54:07 +0200 (EET), Dragos Roua
([EMAIL PROTECTED]) wrote:
>Hello,
>
>If you'll take a look at Brainbench.com you'll see a PHP4 cert exam
>there. As
>brainbench plan to become a paid service, their certifications may
>start worth
>something sometime.

The brainbench exam is terrible. It's heavy on knowing the details of
mssql functions and oci functions, and no points are given for speed.
It's like an open book test so anybody can spend all day looking up
the right answer, fill it out, and get a perfect score. If you just
want to get the thing over with you can be honest and dump all the
answers you don't know.

Anyway, I think that as a benchmark it's garbage. A good test should
stay away from most modules, and also include speed as a factor. Also
It's way too easy to cheat on a test like this, so I don't think they
should be taken too seriously no matter what.

I can see requiring a person to pass a test like this before they get
a job interview, but a company using the scores as a basis for hiring
someone would be silly.

>My 2 cents anyway...
>
>> Does anyone know of a company which is offering or planning to
>>offer PHP
>> developer certifications? Arguments against certification programs
>>aside[1],
>> there are a lot of companies which prefer certified developers,
>>even to the
>> point of assuming a project done in ASP will be better than the
>>same thing
>done
>> in PHP simply because the ASP developers are Microsoft certified.
>>
>> While this seems like an interesting sideline for a company like
>>Zend, I'm
>also
>> somewhat curious about whether an "Open Source" test could be
>>developed. It'd
>> certainly have to be quite different from normal tests and that
>>move away from
>> easily memorized answers would probably be a very good thing.
>>
>> [1] We've all heard them before. I'm personally in favor only of
>certifications
>> like certain devilishly hard Cisco exams which measure more than
>> multiple-choice memory.
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: php-list-
>>[EMAIL PROTECTED]
>>
>
>
>--
>Dragos Roua
>Mirabilis Media,
>http://www.portal.ro  http://www.net-info.ro
>http://www.analyser.ro http://www.adserver.ro
>http://www.culinar.ro http://www.cartipostale.ro
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: php-list-
>[EMAIL PROTECTED]



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



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




[PHP] Problem creating and manipulating Jpegs with GD

2001-02-28 Thread Cherie Benoit

I know you've addressed this already, but I'm still learning a lot of things
and didn't get much from the previous posts. :)  I am using a hosting
service, not my own server. So before I complain that they installed the
jpeg module incorrectly I need someone to make sure it is not my code.

This code with Png works fine:


However, if I change it to Jpeg it gives me a broken image icon. I get no
other errors.


phpinfo() tell me this:
'./configure'
'--with-gd=/opt/local/src/gd-1.8.4'
'--with-config-file-path=/usr/local/lib'
'--with-ttf=/opt/local/src/freetype-1.3.1'
'--with-jpeg-dir=/opt/local/src/jpeg-6b'
'--libdir=/usr/local/lib/'

Is it me or the server? And what do I tell them to do to fix it?

Thanks!
-- 
Cherie Benoit


-- 
PHP General Mailing List (http://www.php.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 can I log a record??

2001-02-28 Thread Zenith

Hello, I am using PHP4 + mysql + Apache to do a little project,

Now, I want to let the end user can browse the record in a database table.
Someone may want the record, through my php script interface, how can I log
the record,
which the user is editing and going to save it.

Or at least how can other instance process know that the record is using by
some other . So that
the script can warn the user not to edit the record.

Thanks!
Zenith



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




[PHP] Passing values from ASP to PHP

2001-02-28 Thread Isaac

I've been given a project that I want to use PHP with, but unfortunately
there are unchangable hard-coded values that point clients to an ASP
script residing on our server. Here's what I want to do, and I don't
really know how to do it:

I want to pass all the key/value pairs that are passed to the ASP script
to a PHP script. I can get values with Request.Form("key_name"), but
that takes hard-coding the name of the key.

So if the following is passed to the ASP script:
one=blue&two=red&three=yellow

Then I would want to redirect to
myscript.php?one=blue&two=red&three=yellow

How do I go about walking through all the key/values that have been passed
in ASP? I really don't want to have to learn this ugly language..

-- 
Isaac Force [EMAIL PROTECTED]
(503)656-2489   http://gorgonous.dhs.org

Real Users find the one combination of bizarre 
input values that shuts down the system for days.



-- 
PHP General Mailing List (http://www.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] Hebrew websites transition with php3 ..

2001-02-28 Thread Manuel Lemos

Hello Boaz,

How are you doing these days? :-)

On 28-Feb-01 16:39:35, you wrote:

>The figures I'm giving you are from one of the two biggest portals in
>Israel.
>it's less than 3%.

Mind me for jumping in, but I think Aviv question about the truth of the 3%
figure ie very pertinent.

The way I see it it is a gross mistake to assume that the audience of a
large portal is necessary a reflex of the potential audience of that portal.

I also work for a large portal company (not for the Hebrew audience though)
and I found people making the same large mistake.  They looked at the sites
audience and figure that there is over 90% of Internet Explorer users in a
site that used IE specific DHTML.  Needless to say that it didn't show
right in Netscape.

Given that sites do not show right in certain browsers, it looks obvious
that almost nobody using those browsers would show in the browser audience
rates.

I even wonder why there are still 3% of users of browsers that do not
support logical Hebrew display that go to your portal.  Same for the 10% of
Netscape users that go to that other site in my company portal.  Maybe
those are just lurkers that went there and gave up on the site and did not
return because they could not see right what was in there.

The reality is that it turns out that there is still about 30% os Netscape
users, meaning that if you force a certain type of display that they don't
see right, you loose their audience.

Just my .02 EUR. :-)

Manuel Lemos



>I'm not sure about Opera, if you are developing for an Israeli
>audience, you can simply develop for IE 4.x and up.

>anyone with any other browser can go and get IE :)

>-Original Message-
>From: Aviv Revach [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 27, 2001 4:03 PM
>To: Boaz Yahav; [EMAIL PROTECTED]
>Subject: RE: [PHP] Hebrew websites transition with php3 ..


>Hey!

>Thank you for the quick reply.

>I do have some questions regarding your answer.

> From what I know and have seen so far, there are more than just 3% 
>Internet users in Israel which use Netscape 4.x (I use it myself...).
>Are you sure that I should just ignore these people, and just use logical 
>Hebrew?

>Also, quite a lot of people started using Opera lately.. (ain't speaking 
>about Israeli users).
>Does Opera supports Logical Hebrew? If so, from which version?


>Best Regards -

>   Aviv Revach


>At 15:20 28/02/01 +0200, Boaz Yahav wrote:
>>Hi Aviv
>>
>>Let me give you a small tip about Hebrew on the net.
>>
>>The proper Hebrew code which was adopted by the Israeli Institute of
>>Standards
>>is the Logical standard. This standard is automatically supported by IE 4.x
>>and 5.x
>>and also by Netscape 6.x.
>>
>>The percentage of not IE4.x or 5.x users in Israel is less than 3%.
>>
>>3 of the major portals in Israel (Walla, Nana and MSN) are already moving
>to
>>
>>logical Hebrew.
>>
>>So why use Visual Hebrew?
>>
>>In case you decide to go with Visual in any case, did you try hebrevc()?
>>
>>Sincerely
>>
>>   berber
>>
>>Visit http://www.weberdev.com Today!!!
>>To see where PHP might take you tomorrow.
>>
>>
>>-Original Message-
>>From: Aviv Revach [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, February 27, 2001 1:43 PM
>>To: [EMAIL PROTECTED]
>>Subject: [PHP] Hebrew websites transition with php3 ..
>>
>>
>>Hey!
>>
>>I've just joined this mailing-list, therefore, first of all, I would like
>>to say hello to everybody.
>>
>>
>>Now, regarding the issue..
>>
>>As some of you might know, handling with Hebrew websites is rather
>>difficult. Hebrew words often come-out in reversed order (i.e. 'lmth'
>>instead of 'html').
>>
>>I'm working on a php3 script which would help me do the following -
>>Load an existing HTML file which consists Hebrew words (as well as English
>>words and HTML tags), then reversing the Hebrew words back to order.
>>
>>The problem I'm dealing with is how to reverse only the Hebrew words and
>>not the entire
>>document, which contains HTML tags and English words as well.
>>The function 'hebrev()' does the process of reversing, but it reverses tags
>>as well.
>>
>>
>>I would really appreciate it, if anyone will find some spare time to help
>>me.
>>
>>
>>Thank you in advance -
>>
>>Aviv Revach
>>
>>XOR-Coders Mega Programming Resource Site! -
>>  http://members.xoom.com/xorcoders/
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>To contact the list administrators, e-mail: [EMAIL PROTECTED]


>XOR-Coders Mega Programming Resource Site! -
> http://members.xoom.com/xorcoders/

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



Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROT

Re: [PHP-CVS] cvs: php4 /sapi/apache2filter README sapi_apache2.c

2001-02-28 Thread Sascha Schumann

On Wed, 28 Feb 2001, Sascha Schumann wrote:

> sas   Wed Feb 28 06:19:16 2001 EDT
>
>   Modified files:
> /php4/sapi/apache2filter  README sapi_apache2.c
>   Log:
>   httpd-2.0 cvs seems to be busted.  I'm getting very strange backtraces
>   and the header filter still seems to be broken.  Will try later.

For all interested parties, the latest httpd-2.0 cvs works
now again with PHP 4.0.

- Sascha


-- 
PHP CVS Mailing List (http://www.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] Cold Fusion vs. PHP

2001-02-28 Thread John Huggins

Try this...

http://www.google.com/search?q=PHP+vs.+ColdFusion

> -Original Message-
> From: Alex Puritche [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 28, 2001 3:15 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Cold Fusion vs. PHP
> 
> 
> Hi, folks!
> I'll highly appreciate if somebody can send me URL of the page where I
> can read performance comparison of the both techniques, of course if
> somebody has it own experience in such things then I'll get to know it
> with increased attention!
> 
> P.S. I'm a bit abashed because of my English. I'm sorry. English isn't
> my native language.
> 
> 
> 
>   
> 
> -- 
>  Regards,
>  Alex  mailto:[EMAIL PROTECTED]
> 
>  May all your Internet Dreams come true!
>  http://www.intellinetusa.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] logic question concerning sale prices in shopping basket app

2001-02-28 Thread Brett

I have a simple page that offers three items(7700,7701,7702).  I am trying to figure 
the best way to calculate the price for each shirt depending on the amount they want.  
The breakdown of prices is:
Any 3 shirts for $50
7700 - 3 for $33 or $14.99
7701 & 7702 - 3 for $50 or $25.

So I sort through the 7700's and set the price for multiples of three which is 11, 
then sort through the 7701 and 7702 and set the price for multiples of three which is 
16.66.

Now I run into a problem with the remaining shirts and figuring out how they should be 
priced.  If there are four shirts left and they are  2-7700, 1- 7701, and 1- 7702,
I need a way to make sure that the 7701 and 7702 are included with 1 of the 7700, and 
the other 7700 is priced at 14.99.

The items are stored in mysql and referenced by the product code(7700).  Hopefully I 
explained this weel enough.  Maybe some ofyou have an idea.
If you want to see what this is for go to http://www.jnewman.com/oxfords.  Play all 
you want, it does nothing but add the prices.  If you add 1 buttondown and 2 of the 
other shirts you will see that the total is 70 something instead of 50 something.

Thanks,
Brett





Re: [PHP] Developer certifications

2001-02-28 Thread Mark Maggelet

On Wed, 28 Feb 2001 20:54:07 +0200 (EET), Dragos Roua
([EMAIL PROTECTED]) wrote:
>Hello,
>
>If you'll take a look at Brainbench.com you'll see a PHP4 cert exam
>there. As
>brainbench plan to become a paid service, their certifications may
>start worth
>something sometime.

The brainbench exam is terrible. It's heavy on knowing the details of
mssql functions and oci functions, and no points are given for speed.
It's like an open book test so anybody can spend all day looking up
the right answer, fill it out, and get a perfect score. If you just
want to get the thing over with you can be honest and dump all the
answers you don't know.

Anyway, I think that as a benchmark it's garbage. A good test should
stay away from most modules, and also include speed as a factor. Also
It's way too easy to cheat on a test like this, so I don't think they
should be taken too seriously no matter what.

I can see requiring a person to pass a test like this before they get
a job interview, but a company using the scores as a basis for hiring
someone would be silly.

>My 2 cents anyway...
>
>> Does anyone know of a company which is offering or planning to
>>offer PHP
>> developer certifications? Arguments against certification programs
>>aside[1],
>> there are a lot of companies which prefer certified developers,
>>even to the
>> point of assuming a project done in ASP will be better than the
>>same thing
>done
>> in PHP simply because the ASP developers are Microsoft certified.
>>
>> While this seems like an interesting sideline for a company like
>>Zend, I'm
>also
>> somewhat curious about whether an "Open Source" test could be
>>developed. It'd
>> certainly have to be quite different from normal tests and that
>>move away from
>> easily memorized answers would probably be a very good thing.
>>
>> [1] We've all heard them before. I'm personally in favor only of
>certifications
>> like certain devilishly hard Cisco exams which measure more than
>> multiple-choice memory.
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: php-list-
>>[EMAIL PROTECTED]
>>
>
>
>--
>Dragos Roua
>Mirabilis Media,
>http://www.portal.ro  http://www.net-info.ro
>http://www.analyser.ro http://www.adserver.ro
>http://www.culinar.ro http://www.cartipostale.ro
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: php-list-
>[EMAIL PROTECTED]



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




[PHP] Cold Fusion vs. PHP

2001-02-28 Thread Alex Puritche

Hi, folks!
I'll highly appreciate if somebody can send me URL of the page where I
can read performance comparison of the both techniques, of course if
somebody has it own experience in such things then I'll get to know it
with increased attention!

P.S. I'm a bit abashed because of my English. I'm sorry. English isn't
my native language.



  

-- 
 Regards,
 Alex  mailto:[EMAIL PROTECTED]

 May all your Internet Dreams come true!
 http://www.intellinetusa.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] Need an array parser(CONT)

2001-02-28 Thread Mark Maggelet

On Wed, 28 Feb 2001 12:33:55 -0800, Dallas K. ([EMAIL PROTECTED])
wrote:
>I am looking for somthing that will parse a multidimentional array
>of any
>size, and return a key / value listing for debugging
>
>Example:
>
>if I have an array such as...
>
>$arr[name] = dallas
>$arr[address][city] = austin
>$arr[address][state] = Texas
>$arr[somthing][somthing_else][blah1]= some_value1
>$arr[somthing][somthing_else][blah2]= some_value2
>$arr[somthing][somthing_else][blah3]= some_value3
>
>I would want the result to be displaied as:
>
>ARR
>name --- dallas
>address --- city --- austin
>address --- state --- Texas
>somthing --- somthing_else --- blah1 --- some_value1
>somthing --- somthing_else --- blah1 --- some_value1





will come pretty close to what you want


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

2001-02-28 Thread John Huggins

If you are lucky and are feeding this form data to a database, you can
create a unique hash field from other fields that would not change from
click 1 to click 2.  Then just make the database treat the hash as a unique
index and it should prevent double entries.  Works for me.

Other advice is to not tell the double clicker that had an error; Just
silently ignore their second request.

> -Original Message-
> From: Manuel Lemos [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 28, 2001 2:55 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Double Click
>
>
> Hello Fabian,
>
> On 28-Feb-01 03:01:02, you wrote:
>
>
> >Hi,
>
> >I have a page, and when I have to add a product I use a form,
> many people are
> >used to make double click in every task, so when the product is
> sent with a
> >double click in the send button, the program send it twice to
> the data base.
>
> >What can I do to prevent this?
>
> You may want to try this forms generation class that lets you define a
> warning message that shows when the user attempts to submit a form more
> than once.
>
> http://phpclasses.UpperDesign.com/browse.html/package/1
>
> Regards,
> Manuel Lemos
>
> Web Programming Components using PHP Classes.
> Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
> --
> E-mail: [EMAIL PROTECTED]
> URL: http://www.mlemos.e-na.net/
> PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
> --
>
>
> --
> PHP General Mailing List (http://www.php.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] Manuel Lemos's PHP POP3 class

2001-02-28 Thread Manuel Lemos

Hello Adrian,

On 28-Feb-01 14:00:48, you wrote:

>anyone using this class:

>whats a good way to extact the address of who sent the mail and stick it in
>a variable,in order
>to reply?

You need to retrieve the message headers with the function RetrieveMessage
and then look in the $headers array (strtok(strtolower($headers[$line]),":"))
for a reply-to or from headers and then use the address specified in that
header.


Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


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

2001-02-28 Thread Manuel Lemos

Hello Fabian,

On 28-Feb-01 03:01:02, you wrote:


>Hi,

>I have a page, and when I have to add a product I use a form, many people are
>used to make double click in every task, so when the product is sent with a
>double click in the send button, the program send it twice to the data base.

>What can I do to prevent this?

You may want to try this forms generation class that lets you define a
warning message that shows when the user attempts to submit a form more
than once.

http://phpclasses.UpperDesign.com/browse.html/package/1

Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


-- 
PHP General Mailing List (http://www.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] Need an array parser(CONT)

2001-02-28 Thread Steve Edberg

At 12:33 PM -0800 2/28/01, Dallas K. wrote:
>I am looking for somthing that will parse a multidimentional array of any
>size, and return a key / value listing for debugging
>
>Example:
>
>if I have an array such as...
>
>$arr[name] = dallas
>$arr[address][city] = austin
>$arr[address][state] = Texas
>$arr[somthing][somthing_else][blah1]= some_value1
>$arr[somthing][somthing_else][blah2]= some_value2
>$arr[somthing][somthing_else][blah3]= some_value3
>
>I would want the result to be displaied as:
>
>ARR
> name --- dallas
> address --- city --- austin
> address --- state --- Texas
> somthing --- somthing_else --- blah1 --- some_value1
> somthing --- somthing_else --- blah1 --- some_value1


var_dump($arr) or print_r($arr) --- see

http://www.php.net/manual/en/function.var-dump.php

http://www.php.net/manual/en/function.print-r.php


-steve

-- 
+--- "They've got a cherry pie there, that'll kill ya" --+
| Steve Edberg   University of California, Davis |
| [EMAIL PROTECTED]   Computer Consultant |
| http://aesric.ucdavis.edu/  http://pgfsun.ucdavis.edu/ |
+-- FBI Special Agent Dale Cooper ---+

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




[PHP] Compiling Scripts

2001-02-28 Thread Johnny Withers

[I'm not on this list, please CC me in reply]

Is there any way to compile a .php file instead of using the source code to
distribute?

Problem is, I may have to release an application written in PHP out to
companies who do not wish to use this application across the Internet and
would like to use it on their local intranet. I do not wish to have to deal
with the non-disclosers, agreements, etc which comes with releasing source
code.

Thanks in advance.


-
Johnny Withers
[EMAIL PROTECTED]
p. 601.853.0211
c. 601.954.9133



-- 
PHP General Mailing List (http://www.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] Hebrew websites transition with php3 ..

2001-02-28 Thread Boaz Yahav

The figures I'm giving you are from one of the two biggest portals in
Israel.
it's less than 3%.

I'm not sure about Opera, if you are developing for an Israeli
audience, you can simply develop for IE 4.x and up.

anyone with any other browser can go and get IE :)

-Original Message-
From: Aviv Revach [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 4:03 PM
To: Boaz Yahav; [EMAIL PROTECTED]
Subject: RE: [PHP] Hebrew websites transition with php3 ..


Hey!

Thank you for the quick reply.

I do have some questions regarding your answer.

 From what I know and have seen so far, there are more than just 3% 
Internet users in Israel which use Netscape 4.x (I use it myself...).
Are you sure that I should just ignore these people, and just use logical 
Hebrew?

Also, quite a lot of people started using Opera lately.. (ain't speaking 
about Israeli users).
Does Opera supports Logical Hebrew? If so, from which version?


Best Regards -

   Aviv Revach


At 15:20 28/02/01 +0200, Boaz Yahav wrote:
>Hi Aviv
>
>Let me give you a small tip about Hebrew on the net.
>
>The proper Hebrew code which was adopted by the Israeli Institute of
>Standards
>is the Logical standard. This standard is automatically supported by IE 4.x
>and 5.x
>and also by Netscape 6.x.
>
>The percentage of not IE4.x or 5.x users in Israel is less than 3%.
>
>3 of the major portals in Israel (Walla, Nana and MSN) are already moving
to
>
>logical Hebrew.
>
>So why use Visual Hebrew?
>
>In case you decide to go with Visual in any case, did you try hebrevc()?
>
>Sincerely
>
>   berber
>
>Visit http://www.weberdev.com Today!!!
>To see where PHP might take you tomorrow.
>
>
>-Original Message-
>From: Aviv Revach [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 27, 2001 1:43 PM
>To: [EMAIL PROTECTED]
>Subject: [PHP] Hebrew websites transition with php3 ..
>
>
>Hey!
>
>I've just joined this mailing-list, therefore, first of all, I would like
>to say hello to everybody.
>
>
>Now, regarding the issue..
>
>As some of you might know, handling with Hebrew websites is rather
>difficult. Hebrew words often come-out in reversed order (i.e. 'lmth'
>instead of 'html').
>
>I'm working on a php3 script which would help me do the following -
>Load an existing HTML file which consists Hebrew words (as well as English
>words and HTML tags), then reversing the Hebrew words back to order.
>
>The problem I'm dealing with is how to reverse only the Hebrew words and
>not the entire
>document, which contains HTML tags and English words as well.
>The function 'hebrev()' does the process of reversing, but it reverses tags
>as well.
>
>
>I would really appreciate it, if anyone will find some spare time to help
>me.
>
>
>Thank you in advance -
>
>Aviv Revach
>
>XOR-Coders Mega Programming Resource Site! -
>  http://members.xoom.com/xorcoders/
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


XOR-Coders Mega Programming Resource Site! -
 http://members.xoom.com/xorcoders/

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




[PHP] Can't get extension dlls loaded in Windows

2001-02-28 Thread Alan Hale

I'm using Omnihttpd Pro personal web server running on Windows ME, and
with PHP 4 bundled with the server. When I try to enable dlls by
uncommenting lines in php.ini (e.g. ;extension=php_gd.dll) the browser
becomes unable to load pages from the server, takes a long time trying
and then gives up with a blank page showing. I've left the extension
directory at the default of "extension_dir = ./ " with the dlls directly
under the php directory. I've a copy of php.ini in both the php
directory and under windows, though its the latter thats being read.

Any suggestions please - I really want to use the gd extension!! (Note I
get the same problem if I uncomment any other dll lines in php.ini)

Alan Hale


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




Re: [PHP] How to disable some functions?

2001-02-28 Thread Steve Edberg

At 4:54 PM + 2/28/01, Philip Reynolds wrote:
>Batonik's [[EMAIL PROTECTED]] 15 lines of wisdom included:
>:>Hi,
>:>
>:> I've heard that it is possible, for security reasons, to disable
>:>such functions like phpinfo(). How can I do this?
>
>You can edit the sources...
>PHP4:  $PHP_BASE_DIR/ext/standard/basic_functions.c
>
>You're looking for a struct called
>function_entry basic_functions[]
>
>On my version (4.0.4-pl1) it's on line 91.
>Your functions are listed there..
>
>for example, delete line "PHP_FE(time,  NULL)"
>which is on line 100 on my version disables the time function.
>However, why you want to disable functions is beyond me, to make PHP
>"safe" you're going to have to disable a LOT of functions..
>
>There might be some PHP4 way to disable functions, I think there
>might be some way to do it from php.ini, but I can't find it
>offhand.
>Phil.
>

It's not documented yet at

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

, but you can use the following in your php.ini file:

disable_functions = ; This directive allows you to disable certain
; functions for security reasons.  It receives
; a comma separated list of function names.
; This directive is *NOT* affected by whether
; Safe Mode is turned on or off.

I presume you could use the

php_value disable_functions phpinfo

syntax in your httpd.conf or .htaccess (you might need to use 
php_admin_value instead of php_value). This is available in php 
4.0.4; I don't know about availability in earlier versions. I don't 
use this, though, so I'm just copying from the provided .ini file.

-steve

-- 
+--- "They've got a cherry pie there, that'll kill ya" --+
| Steve Edberg   University of California, Davis |
| [EMAIL PROTECTED]   Computer Consultant |
| http://aesric.ucdavis.edu/  http://pgfsun.ucdavis.edu/ |
+-- FBI Special Agent Dale Cooper ---+

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




[PHP] When form doesn't know what it's sending

2001-02-28 Thread Matt Hanley

Hi.
i've concatenated a string from a while statement on a SQL query. example: 
"$mars","$venus","$jupiter". let's say i call this $planets.
there are actual variables from a posted form with those names. say, 
$mars=1, $venus=2, $jupiter=3. however, when i echo "$planets" i get the 
string "$mars,"$venus"... rather than what I want:
"1," "2", "3". but if echo $mars i get "1."  i'm trying to create a dynamic 
sql insert statement because the page sending it doesn't know what/how many 
varialbes it's sending. if i hard code it, it works. this has been puzzling 
me for days! see, the 'planets' are all displayed on the form from the 
while statement to database table1. i.e. while (...results) 
$name=row[(planets)]the other variables in the form are defined. say, 
$number. the statement/string reads them okay. i.e. if string/statement was 
("\"$number\",\"$mars\",\"venus\") it will echo as 
("54","$mars","$venus.).  have i made my problem clear? because it's 
sure confusing me!





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




Re: [PHP] How to insert time and date into mysql?

2001-02-28 Thread Christian Reiniger

On Monday 28 February 2000 19:15, you wrote:
> How can I insert time and date into mysql table,
> if the table i have to insert has a field of type time, and a field of
> type date.
>
> Then how can I insert it in PHP, if I use time() function??

Look at the MySQL manual, function FROM_UNIXTIME()

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

"Never doubt that a small group of thoughtful, committed people can
change the world...
Indeed, it's the only thing that ever has."

- Margaret Mead

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




[PHP] ora_error segfaults

2001-02-28 Thread Hardy Merrill

I'm receiving consistent segfaults when invoking ora_error after
an ora_exec error.  When I give

SELECT abc FROM customer

and "abc" is *NOT* a valid column name for "customer" table,
then ora_parse is successful, but ora_exec fails - and if as
a result of the failure I try to call ora_error I get a
segfault.

Has anyone else seen this - any solutions?

TIA.

-- 
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.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] exchange data between javascript & php!

2001-02-28 Thread Johnson, Kirk

I know of two ways to pass data from PHP to JavaScript.

1. Do an "echo" in the JS function definition:

function myJavascriptFunction() {
var foo = ;
}

2. Assign the PHP variable to a HIDDEN  element, then access this from
JS:



function myJavascriptFunction () {
  document.forms[0].somePhpVariable.value += 1;
}

Good luck!

Kirk

-Original Message-
From: kaab kaoutar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 10:51 AM
To: [EMAIL PROTECTED]
Subject: [PHP] exchange data between javascript & php!


Hi!
i want to when i click on a button, i execute some php syntax !
i also want to give a php variable to a javascript 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] Developer certifications

2001-02-28 Thread swinkle

Brainbench, www.brainbench.com offers many online certifications, including 
one in PHP.



>= Original Message From [EMAIL PROTECTED] (Chris Adams) =
>Does anyone know of a company which is offering or planning to offer PHP
>developer certifications? Arguments against certification programs aside[1],
>there are a lot of companies which prefer certified developers, even to the
>point of assuming a project done in ASP will be better than the same thing 
done
>in PHP simply because the ASP developers are Microsoft certified.
>
>While this seems like an interesting sideline for a company like Zend, I'm 
also
>somewhat curious about whether an "Open Source" test could be developed. It'd
>certainly have to be quite different from normal tests and that move away 
from
>easily memorized answers would probably be a very good thing.
>
>[1] We've all heard them before. I'm personally in favor only of 
certifications
>like certain devilishly hard Cisco exams which measure more than
>multiple-choice memory.
>
>--
>PHP General Mailing List (http://www.php.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] Developer certifications

2001-02-28 Thread Dragos Roua

Hello,

If you'll take a look at Brainbench.com you'll see a PHP4 cert exam there. As
brainbench plan to become a paid service, their certifications may start worth
something sometime.

My 2 cents anyway...

> Does anyone know of a company which is offering or planning to offer PHP
> developer certifications? Arguments against certification programs aside[1],
> there are a lot of companies which prefer certified developers, even to the
> point of assuming a project done in ASP will be better than the same thing
done
> in PHP simply because the ASP developers are Microsoft certified.
> 
> While this seems like an interesting sideline for a company like Zend, I'm
also
> somewhat curious about whether an "Open Source" test could be developed. It'd
> certainly have to be quite different from normal tests and that move away from
> easily memorized answers would probably be a very good thing.
> 
> [1] We've all heard them before. I'm personally in favor only of
certifications
> like certain devilishly hard Cisco exams which measure more than
> multiple-choice memory.
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
Dragos Roua
Mirabilis Media,
http://www.portal.ro  http://www.net-info.ro
http://www.analyser.ro http://www.adserver.ro
http://www.culinar.ro http://www.cartipostale.ro


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




[PHP] Developer certifications

2001-02-28 Thread Chris Adams

Does anyone know of a company which is offering or planning to offer PHP
developer certifications? Arguments against certification programs aside[1],
there are a lot of companies which prefer certified developers, even to the
point of assuming a project done in ASP will be better than the same thing done
in PHP simply because the ASP developers are Microsoft certified.

While this seems like an interesting sideline for a company like Zend, I'm also
somewhat curious about whether an "Open Source" test could be developed. It'd
certainly have to be quite different from normal tests and that move away from
easily memorized answers would probably be a very good thing.

[1] We've all heard them before. I'm personally in favor only of certifications
like certain devilishly hard Cisco exams which measure more than
multiple-choice memory.

-- 
PHP General Mailing List (http://www.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] Need an array parser(CONT)

2001-02-28 Thread Ernest E Vogelsinger

At 21:33 28.02.2001, Dallas K. said:
[snip]
>I am looking for somthing that will parse a multidimentional array of any
>size, and return a key / value listing for debugging
>
>Example:
>
>if I have an array such as...
>
>$arr[name] = dallas
>$arr[address][city] = austin
>$arr[address][state] = Texas
>$arr[somthing][somthing_else][blah1]= some_value1
>$arr[somthing][somthing_else][blah2]= some_value2
>$arr[somthing][somthing_else][blah3]= some_value3
>
>I would want the result to be displaied as:
>
>ARR
>name --- dallas
>address --- city --- austin
>address --- state --- Texas
>somthing --- somthing_else --- blah1 --- some_value1
>somthing --- somthing_else --- blah1 --- some_value1
[snip] 

Not tested, but try this as an example:

 "dallas",
"address" => array("city" => "austin", "state" => "Texas"),
"something" => array("something else" => array("blah1",
"some_value1",
   "blah2",
"some_value2")));
print(showArray(null, $a);
?>

this should recursively go into multi-dimensional arrays and construct an
output similar to your requirements.



 ...ebird

   >O Ernest E. Vogelsinger
   (\)http://www.1-at-web.at/
^ ICQ#   13394035


-- 
PHP General Mailing List (http://www.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] Pluralize a word for searching a database

2001-02-28 Thread richard merit

I don't think you can since the plural form of English
words can vary, woman, women, families, family, foot,
feet, church, churches, sheep, sheep, road, roads...

?

rm

--- "Robert V. Zwink" <[EMAIL PROTECTED]> wrote:
> Has anyone every written a function in php to
> pluralize an english word,
> particularly when searching a database?
> 
> function pluralize($word){
> return array of pluralized words;
> }
> 
> Any help would be appreciated.  Seems like their
> might be a nice regex
> waiting to handle this?  Thanks!
> 
> Robert Zwink
> http://zwink.levitate.org
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Get email at your own domain with 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] PHP 4.0.4pl1 --with-oracle

2001-02-28 Thread Hardy Merrill

Anyone experience any problems working with Oracle when PHP has
Oracle compiled in --with-oracle=/oracle/home/dir?

I am occassionally having the webserver hang when I try to execute
a php script that I'm testing to access an Oracle database - this
was causing  Oracle processes so I re-compiled with
--enable-sigchild, and now I don't see any defunct processes, but
the whole webserver still hangs, and now I get a seg fault.

Is this a recognized problem/bug, and is there a solution?  Would
compiling --with-oci8 solve this?

TIA.

-- 
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.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] Please turn me off from this list

2001-02-28 Thread Mike Futerko

unsubscribe


-- 
PHP General Mailing List (http://www.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] Pulling my hair out over Netscape...

2001-02-28 Thread Ernest E Vogelsinger

At 18:57 28.02.2001, Jackson, Michael said:
[snip]
>   Hello everyone...  I've been developing a PHP app here for a while
>now, and I have been encountering some most frustrating situations in which
>something will work in IE but not Netscape.  Some of this seems to be IE's
>allowances for sloppy coding... :)  But here's a new one.  I have a form,
>that if you were to submit this form once, it will always retain the same
>value.  I.E. I enter  a value, hit OK.  Then I press the back button.  Then
>I enter a DIFFERENT value, and hit OK.  The SAME value is passed to the PHP
>script!  I'm using the post method, and I haven't found a way to shake this
>yet!  This is afflicting Netscape 4.7 and Netscape 6.  Driving me crazy
[snip] 

I'm not sure if any values get passed to PHP at all... Netscape is very
cache-inclined, so it is likely that you're seeing the cached output of
your previous query.

There are several methods to overcome this situation:
(1) HTTP cache headers (see RFC2616, ftp://ftp.isi.edu/in-notes/rfc2616.txt):
Cache-Control: no-cache  (HTTP/1.1)
Pragma: no-cache (HTTP/1.0)
(2) Expires headers
Expires: Sat, 1 Jan 2000 00:00 +

Or use the  fields. Note as a side effect that using the
"Expires" header will keep a lot of search engines from indexing the result
page.

Another method is using a random value as SEARCH parameter, e.g.
http://www.myhost.com/myapp.php?rv=0987412&...other parameters
Your application must ensure that the random value is as random as
possible. This makes the URL "unique" and will bypass any ill-behaved cache
(it won't help if the user hits the back button, of course...)



 ...ebird

   >O Ernest E. Vogelsinger
   (\)http://www.1-at-web.at/
^ ICQ#   13394035


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




[PHP] Need an array parser(CONT)

2001-02-28 Thread Dallas K.

I am looking for somthing that will parse a multidimentional array of any
size, and return a key / value listing for debugging

Example:

if I have an array such as...

$arr[name] = dallas
$arr[address][city] = austin
$arr[address][state] = Texas
$arr[somthing][somthing_else][blah1]= some_value1
$arr[somthing][somthing_else][blah2]= some_value2
$arr[somthing][somthing_else][blah3]= some_value3

I would want the result to be displaied as:

ARR
name --- dallas
address --- city --- austin
address --- state --- Texas
somthing --- somthing_else --- blah1 --- some_value1
somthing --- somthing_else --- blah1 --- some_value1






Re: [PHP] sitemap script

2001-02-28 Thread Tim O'Callaghan

ahh my mistake  .net, you know what i mean :)

tim..
- Original Message -
From: "Tim O'Callaghan" <[EMAIL PROTECTED]>
To: "Ali" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 1:19 PM
Subject: Re: [PHP] sitemap script


> try freshmeat.org
>
> http://freshmeat.net/projects/phpsitemapper/
>
> hope it helps :)
>
> tim
> - Original Message -
> From: "Ali" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, February 28, 2001 1:16 PM
> Subject: [PHP] sitemap script
>
>
> > Does anybody know of a sitemap script written in php? I appreciate any
> hint.
> >
> > Ali
> >
> >
> > --
> > PHP General Mailing List (http://www.php.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] Need an array parser

2001-02-28 Thread Dallas K.

I am looking for somthing that will parse a multidimentional array of any
size, and return a key / value listing for debugging

Example:

if I have an array such as...

$arr[name] = dallas
$arr[address][city] = austin
$arr[address][state] = Texas
$arr[somthing][somthing_else][blah1]= some_value1
$arr[somthing][somthing_else][blah2]= some_value2
$arr[somthing][somthing_else][blah3]= some_value3

I would want the result to be displaied as:


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

2001-02-28 Thread Tim O'Callaghan

try freshmeat.org

http://freshmeat.net/projects/phpsitemapper/

hope it helps :)

tim
- Original Message -
From: "Ali" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 1:16 PM
Subject: [PHP] sitemap script


> Does anybody know of a sitemap script written in php? I appreciate any
hint.
>
> Ali
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




[PHP] How to insert time and date into mysql?

2001-02-28 Thread Zenith

How can I insert time and date into mysql table,
if the table i have to insert has a field of type time, and a field of type
date.

Then how can I insert it in PHP, if I use time() function??



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




[PHP] sitemap script

2001-02-28 Thread Ali

Does anybody know of a sitemap script written in php? I appreciate any hint.

Ali


-- 
PHP General Mailing List (http://www.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] Pulling my hair out over Netscape...

2001-02-28 Thread Batonik

On Wed, 28 Feb 2001, Jackson, Michael wrote:

> I.E. I enter  a value, hit OK.  Then I press the back button.  Then
> I enter a DIFFERENT value, and hit OK.  The SAME value is passed to the PHP
> script!  I'm using the post method, and I haven't found a way to shake this
> yet!  This is afflicting Netscape 4.7 and Netscape 6.  Driving me crazy

Maybe try setting headers like "Expires" or "Cache-Control"?

Greets,
Batonik


-- 
PHP General Mailing List (http://www.php.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 Digest 28 Feb 2001 17:54:33 -0000 Issue 539

2001-02-28 Thread php-general-digest-help


php-general Digest 28 Feb 2001 17:54:33 - Issue 539

Topics (messages 41953 through 42047):

Move a file from dir to another or delete file..?
41953 by: Dhaval Desai
41954 by: Simon Garner
41957 by: Yasuo Ohgaki
41982 by: Christian Reiniger
41997 by: Tim Ward

Double Click
41955 by: Fabian Fabela
41956 by: Joe Stump
41962 by: Ovidiu EFTIMIE

function not working?
41958 by: Kurth Bemis
42037 by: Chris Lee

++$i and $i++ whatz the difference?
41959 by: Dhaval Desai
41960 by: Jay Klehr
41968 by: ..s.c.o.t.t..

subscript my mail-id for php
41961 by: B Satish , Gurgaon

subscribe my mail-id for php mailing lists
41963 by: B Satish , Gurgaon

Re: LDAP Listing
41964 by: Fredrik Wahlberg

what is wrong with this sniplet?
41965 by: Jacky
41971 by: Alvin Tan
41972 by: Jacky
41973 by: Jacky
41974 by: Simon Garner
41983 by: Christian Reiniger
41988 by: Yasuo Ohgaki

curl functions problems
41966 by: Dezider Góra

Re: Exception Handling in php
41967 by: Ovidiu EFTIMIE

Caller's __LINE__
41969 by: elias
41970 by: CC Zona
41976 by: Neil Kimber
42010 by: Christian Dechery
42036 by: Joao Prado Maia

Getting form name
41975 by: Matt Williams
41977 by: Simon Garner
41979 by: Matt Williams

Re: Another question about using shmop!
41978 by: Christian Reiniger

Re: File downloading?
41980 by: Christian Reiniger

multiple databases
41981 by: Michael Hall
41984 by: Simon Garner
41985 by: Michael Hall
41987 by: Simon Garner
41993 by: Christian Reiniger

Re: Revised [PHP] COM and PHP
41986 by: Daniel Tryba

Hebrew websites transition with php3 ..
41989 by: Aviv Revach
41998 by: Boaz Yahav
41999 by: Aviv Revach

optimal way of counting votes in online poll
41990 by: Vikram Vaswani
41992 by: Simon Garner

found a bug with  File Uploads..
41991 by: Dhaval Desai
42035 by: Chris Lee
42043 by: TTT

Re: while loop and modulus?
41994 by: Tim Ward

illegal string index
41995 by: E. Uytterhoeven
42034 by: Chris Lee

Re: Members area
41996 by: Miles Thompson

webmin like tools in php
42000 by: Mitchell Hagerty

PHP and iPlanet on Solaris
42001 by: Montgomery-Recht, Evan
42045 by: Kelly Corkill

PHP and SVG
42002 by: Joe Sheble (Wizaerd)
42022 by: Phil Driscoll

Problems with PHP4 CGI binary
42003 by: Philip Reynolds

POST Referral
42004 by: Boget, Chris
42005 by: Matt

A small Q
42006 by: Harshdeep S Jawanda
42008 by: Matt
42009 by: Clayton Dukes
42011 by: Philip Reynolds
42013 by: Robert Vetter

formating output
42007 by: george
42033 by: Chris Lee

interpolating functions into here-docs
42012 by: kevin1

PHP and printing
42014 by: fano
42018 by: Michael Meinl

include_once
42015 by: Hardy Merrill
42021 by: Hardy Merrill

Retrieving Version numbers.
42016 by: ACNS-ONLINE Webmaster
42024 by: Batonik

PHP / mySQL Problem
42017 by: Michael Gorner

Re: mySQL table joins are slow, need rebuild?
42019 by: Steve Segarra

How to disable some functions?
42020 by: Batonik
42030 by: Philip Reynolds

redefine constants
42023 by: Christian Dechery
42026 by: Neil Kimber
42031 by: Chris Lee

user_error() default error type
42025 by: Christian Dechery

Test. Please, ignore!
42027 by: Alex Puritche

Pluralize a word for searching a database
42028 by: Robert V. Zwink

iPlanet issue...
42029 by: Montgomery-Recht, Evan

Manuel Lemos's PHP POP3 class
42032 by: Adrian Murphy

putenv() question.
42038 by: Carter Comunale

second select how???
42039 by: Miguel Loureiro
42042 by: Jason Jacobs

Re: re:mod_dav and dreamweaver 4.0
42040 by: Michael A. Peters

Re: PHP single user??
42041 by: Chris Lee

Re: [PHP-WIN] Re: [PHP] Revised [PHP] COM and PHP
42044 by: Alain Samoun

exchange data between javascript & php!
42046 by: kaab kaoutar

Pulling my hair out over Netscape...
42047 by: Jackson, Michael

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--



Hi!


Well I would like to move a file from one directoy to
another using php and a web browser.
I could just find a function to move an uploaded file
but not a normal file which is allready there in some
directory.


Is there any way I can move a fi

[PHP] Pulling my hair out over Netscape...

2001-02-28 Thread Jackson, Michael

   Hello everyone...  I've been developing a PHP app here for a while
now, and I have been encountering some most frustrating situations in which
something will work in IE but not Netscape.  Some of this seems to be IE's
allowances for sloppy coding... :)  But here's a new one.  I have a form,
that if you were to submit this form once, it will always retain the same
value.  I.E. I enter  a value, hit OK.  Then I press the back button.  Then
I enter a DIFFERENT value, and hit OK.  The SAME value is passed to the PHP
script!  I'm using the post method, and I haven't found a way to shake this
yet!  This is afflicting Netscape 4.7 and Netscape 6.  Driving me crazy

  Thanks in advance,
  Michael

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




[PHP] exchange data between javascript & php!

2001-02-28 Thread kaab kaoutar

Hi!
i want to when i click on a button, i execute some php syntax !
i also want to give a php variable to a javascript function
Thanks

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


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




Re: [PHP] PHP and iPlanet on Solaris

2001-02-28 Thread Kelly Corkill

Sounds like the server doesn't have or recognize the mime type, ala on
apache in srm.conf:
application/x-httpd-php3 phtml php3 php

I'm not familiar with iPlanet but on apache I would check the mime type
definition, apache httpd.conf and make sure to restart the server to reload.


On Wed, 28 Feb 2001, Montgomery-Recht, Evan wrote:

> Date: Wed, 28 Feb 2001 09:33:26 -0500
> From: "Montgomery-Recht, Evan" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP and iPlanet on Solaris
> 
> I got the latest snapshot of php to compile on solaris (4.0.4pl1 wouldn't).
> 
> Anyways I edited the mime.types and obj.conf as described in the
> installation instructions, but right now it's trying to download the
> test.php file I created instead of processing.  Is there anything not in the
> documentation that I need to add.
> 
> thanks,
> 
> evan
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

Kelly

303-444-1671
Boulder, Colorado



-- 
PHP General Mailing List (http://www.php.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-WIN] Re: [PHP] Revised [PHP] COM and PHP

2001-02-28 Thread Alain Samoun

Among other articles, look at the COM functions in PHP4 article:
http://www.phpbuilder.com/columns/

Alain

On Wed, Feb 28, 2001 at 11:35:15AM +0100, Daniel Tryba wrote:
> On Mon, Feb 05, 2001 at 03:05:24PM -0500, Conover, Ryan wrote:
> > I have been trying the following example from the PHP developer's cookbook
> > and it keeps giving me the following error.
> > 
> > Parse error: parse error in c:\Inetpub\wwwroot/temp.php on line 5
> >  > $excel_handle = new COM("excel.application"); //line2
> > $excel_handle->Visible = false; //line3
> > $worksheet = $excel_handle->workbooks->add(); //line4
> > $worksheet->Cells(1,1)->value = "Name"; //line5
> > $worksheet->SaveAs("temp.xls"); //line6
> > $excel_handle->quit(); //line7
> > //line8
> > ?> //line9
> > 
> > Anyone that has Com and PHP experience help please
> 
> I didn't test it in PHP (only in wscript.exe), but it seems the example 
> is wrong. It should be (line 4 -> 4a, 4b):
> 
> excel_handle = new COM("Excel.Application"); //line2
> excel_handle.Visible = true; //line3
> workbook = excel_handle.Workbooks.Add(); //4a
> worksheet=workbook.WorkSheets.Add(); //4b
> worksheet.Cells(1,1).Value = "Name"; //line5
> worksheet.SaveAs("temp.xls"); //line6
> excel_handle.quit(); //line7
> 
> This seems to work.
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.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] found a bug with File Uploads..

2001-02-28 Thread TTT

Hi ,
in fact it doesn't do much ( at least on the couple browser I tested it) :
whatever you put as a limit the file will upload ...
this is a p.. in  the a... because if you do the check on the server it can
only be done when the upload is complete : pretty unfair to tell the user
that he has no more space when he spent 20 minutes uploading a file ( we use
audio files and they might be fairly big)

but apart from that I recently upgraded to 4.04pl1 and I have the same
problem (which didn't happen before) that is described by Dhaval , running
on Linux (RHT 7.0 with plenty'o patch ... , Apache 1.3.14) ...

changing the max file size doesn't do much :-(

the uploaded file seems to have 'type multipart...' and other junk caracters
added at the beginning of the file after the copy (which returns a success
error code !!!)

it seems to be a bug in 4.04pl1

help 

--
Thierry TABARD
Digital Sound Planet
http://www.digitalsoundplanet.com
""Chris Lee"" <[EMAIL PROTECTED]> wrote in message
97jbpe$m17$[EMAIL PROTECTED]">news:97jbpe$m17$[EMAIL PROTECTED]...
> try droping the max_file_size entry, does it help? I run on linux and my
file uploads work from all browsers but opera.
>
> 
>
> is a silly thing php has added, the only purpose I could ever see for this
is to prevent people from uploading 3G files, but if this is the case,
should the security not be server side, vs client side? as you mentioned,
modify php.ini to change your limit. does anyone know another use for this ?
>
>
> --
>
>  Chris Lee
>  Mediawaveonline.com
>
>  ph. 250.377.1095
>  ph. 250.376.2690
>  fx. 250.554.1120
>
>  [EMAIL PROTECTED]
>
>
> "Dhaval Desai" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi!
>
> I think I just found a bug in php.
>
> I try to upload a file of size 37.0 K and you know
> what happens.,,
>
> The browser takes its own time..and the stupid thing
> doesnot upload the file.
>
> If I upload a file of size 2k then it uploads..
>
>
> I have specified the file size in the form as :
>
>  ACTION="upload.php" METHOD="POST">
>  value="10">
>
> In Php.ini file I have found 8M is the maximum size..
>
>
> I am running php 4.0.3pl1 wioth Apache on Windows 98.
> I also have a server on Cqhost.com
>
> I have seen the same happen there,.too...
>
>
> Is this a bug or a problem..??
>
>
> Please Reply
>
> Cheers!~
> Dhaval Desai
>
>
>
>
>
>
>
> __
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>



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




Re: [PHP] second select how???

2001-02-28 Thread Jason Jacobs

Mmhmm...onChange() event...it's javascript.  Go to webmonkey.com and search
for it.  They have a cute little tutorial about how to do that.  Good luck.

Jason

- Original Message -
From: Miguel Loureiro <[EMAIL PROTECTED]>
To: php-gen <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 12:50 PM
Subject: [PHP] second select how???


Hello all,
I have a dynamic select box, according information in database, but I want
to restrict a second select box with the choice made in the first select
box, but my problem is that I only know the value of the first one after
submit form. It is possible to know a choice of a select box without
submited ??
T.Y.
Best Regards
Miguel Loureiro <[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 single user??

2001-02-28 Thread Chris Lee

sounds like a db prodblem, vs php. could be wrong. check your config file. for the max 
users.


-- 

 Chris Lee
 Mediawaveonline.com

 ph. 250.377.1095
 ph. 250.376.2690
 fx. 250.554.1120

 [EMAIL PROTECTED]

"Todd Cary" <[EMAIL PROTECTED]> wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I am having a very strange problem: PHP 4.0.4 on a NT 4 platform with
IIS 5 is only allowing one surfer to do a DB Select.  If the DB is busy
with the first user, the page is not available to other users.  And I
have no problems with Win 2K.

Am I missing something very obvious?

Todd

--
Todd Cary
Ariste Software
[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:mod_dav and dreamweaver 4.0

2001-02-28 Thread Michael A. Peters

Not DreamWeaver specifically- but to make sure the problem is DreamWeaver and not 
something else, try connecting with a different webDAV client.

I can personally vouch for Goliath under Mac OS and DAVExplorer under x86 Linux 
(DAVExplorer requires you have the JRE installed- and that java is in your path. 
DAVExplorer also works on Wndows).

On Wednesday, February 28, 2001, at 07:59 PM, Joseph H Blythe wrote:

> Hello, 
>  
> Sorry if this is a little off topic but has anyone successfully used mod_dav with 
> dreamweaver 4.0, I have mod_dav setup but am having trouble connecting to it via 
> dreamweaver. 
>  
> If anyone has successfully used this could they email me privately, as I don't want 
>to waste 
> any more bandwidth on this list. 
>  
> Cheers, 
>  
> Joseph 
>  
> --  
> PHP General Mailing List (http://www.php.net/) 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> To contact the list administrators, e-mail: [EMAIL PROTECTED] 
>  
>  

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Michael A. Peters
Abriasoft Senior Developer

http://www.abriasoft.com/

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




[PHP] second select how???

2001-02-28 Thread Miguel Loureiro

Hello all,
I have a dynamic select box, according information in database, but I want to restrict 
a second select box with the choice made in the first select box, but my problem is 
that I only know the value of the first one after submit form. It is possible to know 
a choice of a select box without submited ?? 
T.Y.
Best Regards
Miguel Loureiro <[EMAIL PROTECTED] >



  1   2   >