Re: [PHP] Accessing Intberase database in NT

2001-04-02 Thread Stuart J. Browne


[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Any idea how can i possibly access an Interbase database residing in NT4
from
 my web server running in Linux?

To do this, I believe you will have to compile PHP on the Linux box with the
Linux GDS libraries (as if you were going to use Interbase locally).

I've not done this however.

The Interbase install on Linux is GLibC only (which I found out the hard way
*mumble*), but is freely available.  We use it here.

When compiling PHP4, "./configure --with-interbase" is required, along with
your other options.

Hope this helps you.

Bkx



-- 
PHP General Mailing List (http://www.php.net/)
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 jobs?

2001-04-02 Thread Boaz Yahav

http://www.weberjob.com

Sincerely

  berber

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



-Original Message-
From: Joseph Bannon [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 6:05 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php jobs?



What is a good place to find PHP jobs?

J



Say I'm Hot! - Post Your Picture!
http://www.sayimhot.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] I can't connect php with apache.

2001-04-02 Thread Kukai

Hi all,

I have been trying to install PHP4.0 to Apache1.3 on Win2K platform.
I followed the instruction carefully, and all of applications, PHP4.0,
Apache1.3, MySQL are installed correctly, I think. However when I put
the URI into the browser, http://localhost/test.php, I got message "The
page cannot be found". I checked error log said 

"[Mon Apr 02 03:02:03 2001] [error] [client 127.0.0.1] Invalid URI in
request GET /test.php HTTP/1.1"

I changed every elements related with this error message.
And I found out one thing that if I changed name from test.php to test
php3, it seems ok. It didn't generate error message. But it is still not
be shown in browser, it show brank page. But when I push source bottum,
it is shown collect source code... I don't know what I should do
next. Is there someone who can explain this situation? Please. 

Thank you.

kukai

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




[PHP] Retrieving W2000 username as a PHP variable.

2001-04-02 Thread Jon

I am using Apache 1.3.19 for Win32 and PHP 4.04 as a module. I would like to
retrieve, as a variable, the user name loged in the W2000 domain. Running
PHPINFO() function it does not display USERNAME variable so I would like to
know if there is other alternative to accomplish this task.

Thanks











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




[PHP] very dumb question, need help

2001-04-02 Thread Jacky

Hi all
I have been to look at manual about session, in php4, still not quite get it.
Basically if I have sniplet below in one page, how do I assign value into that session 
and how do I call it up in next page? I sthe way I assign value into session correct? 
( I think it did not, because it did not work, but still need to show what I did, so 
help can get to the right point easier).
Note: that I simply hardcode value into session just to see if it will like it.
*
?php
session_register("test");
$test = "myname";
?
*
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for yourself"



[PHP] array_diff usage

2001-04-02 Thread V e r b a l

I'm daft. I don't understand the PHP Manual.

I have two arrays:
Open[0] contains 1 2 3 4 5
Closed[0] contains 1 2

Now:
$test = array_diff($Open, $Closed);
$lines = count($test);
print $lines;

Gives me: 1
I thought it should be 3.

While:
for ($counter =0; $counter = $lines -1; $counter++)
{
print $test[0];
}

gives me "5".

What I was hoping was that $lines should be 3 and that I'd get
3
4
5 
printed.

V e r b a l

-- 
PHP General Mailing List (http://www.php.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 build a template??

2001-04-02 Thread E K L

Hi Experts,

I'm planning to build a template but failed to do so

Here is the code:

?

include "class.FastTemplate.php";

$tpl = new FastTemplate("../usr/local/apache/htdocs/toplevel.tpl");

$tpl-define(array("toplevel" = "toplevel.tpl"));

$tpl-assign("title", "R U THEre");
$tpl-assign("content", "try this out");

$tpl-parse("main", "toplevel");

$tpl-FastPrint();

?

error:
Warning: Failed opening 'class.FastTemplate.php' for inclusion 
(include_path='.:/usr/local/lib/php') in /usr/local/apache/htdocs/tem.php on 
line 3

Fatal error: Cannot instantiate non-existent class: fasttemplate in 
/usr/local/apache/htdocs/tem.php on line 5

Please consult, thanks...

E K
_
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] login without database

2001-04-02 Thread Knut H. Hassel Nielsen

On Fri, 30 Mar 2001, Jon Rosenberg wrote:

 you could use flat files, another words store the user information in a text
 file like below:
 username|pass|email
 bob|fgffsdg|[EMAIL PROTECTED]
 foo|bar|[EMAIL PROTECTED]


 and then just read and write the file with PHP.

 Jon

Be sure to crypt the password you're saving in the file. Then you crypt the
passwords coming in to the script with the same salt (se function crypt in the
manual). Then compare the two and see if they differ from each other.

Good luck

-- 
Knut
--
Knut H. Hassel Nielsen
Principal Engineer / Avdelingsingenir
Norwegian University of Science and Technology / NTNU
Department of Computer and Information Science / IDI
N-7491 Trondheim, Norway
Phone Office / Telefon jobb : (+47) 73 59 18 46
Fax   Office / Telefax jobb : (+47) 73 59 17 33
Cell. Phone / Mobiltelefon  :   91 59 86 06


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




[PHP] is this syntax correct?

2001-04-02 Thread Jacky

Hi all
is this syntax correct to work on session in php4?

?php
global $test;
$test = "foo";
session_register("$test");
?

but nest page when I call variable $test to echo it, nothing come up? what did I do 
wrong?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for yourself"



Re: [PHP] array_diff usage

2001-04-02 Thread Stig Venaas

On Mon, Apr 02, 2001 at 12:41:07AM -0700, V e r b a l wrote:
 I'm daft. I don't understand the PHP Manual.
 
 I have two arrays:
 Open[0] contains 1 2 3 4 5
 Closed[0] contains 1 2

So the arrays contain one string each? array_diff() won't work then.
Try this:

$a = array(1, 2, 3, 4, 5);
$b = array(1, 2);
$test = array_diff($a, $b);
$lines = count($test);
echo $lines;
var_dump($test);

The output should be:

3array(3) {
  [2]=
  int(3)
  [3]=
  int(4)
  [4]=
  int(5)
}

Stig

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




RE: [PHP] is this syntax correct?

2001-04-02 Thread Joseph Bannon

What does global and session_register do?


J





Say I'm Hot! - Post Your Picture!
http://www.sayimhot.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] is this syntax correct?

2001-04-02 Thread [EMAIL PROTECTED]

I also tried this syntax:
?php
global $test;
$test = "foo";
session_register("test");
?

and it still not work as when I go to next page, and try echo $test, nothing
come up.
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"
- Original Message -
From: Joseph Bannon [EMAIL PROTECTED]
To: Jacky@lilst [EMAIL PROTECTED]
Sent: Monday, April 02, 2001 3:44 AM
Subject: RE: [PHP] is this syntax correct?


  So what is the right way to do?


 I resent my email to the list. I've done mostly DB work, so I need to know
 what those functions do.

 J




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




[PHP] Max file size of 2 bytes exceeded

2001-04-02 Thread PHP

Hi guys,

I seem to be having a problem uploading images.

My server is running on FreeBSD and i am using PHP ver 4

I have checked all the settings in my php.ini file.

max_execution_time = 30
memory_limit = 8M
post_max_size = 8M

file_uploads = On
upload_max_filesize = 2M

I have a form that a user inputs data and can include an image file, using
which i create a html page.
Now the html page is being created in the particular directory but the image
upload gives an an error saying

Warning: Max file size of 2 bytes exceeded - file [image1] not saved in
Unknown on line 0

Warning: Cannot send session cache limiter - headers already sent

Could you please help me out on this.

Regards,
Arun



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




Re: [PHP] is this syntax correct?

2001-04-02 Thread [EMAIL PROTECTED]

Not really, do I need to have session_start at the sender page and the
receiver page?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"
- Original Message -
From: Wade Halsey [EMAIL PROTECTED]
To: Jacky@lilst [EMAIL PROTECTED]
Sent: Monday, April 02, 2001 3:48 AM
Subject: Re: [PHP] is this syntax correct?


 do you have
 session_start();
  at the top of the next page?

 - Original Message -
 From: Jacky@lilst [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, April 02, 2001 10:43 PM
 Subject: Re: [PHP] is this syntax correct?


  I also tried this syntax:
  ?php
  global $test;
  $test = "foo";
  session_register("test");
  ?
 
  and it still not work as when I go to next page, and try echo $test,
 nothing
  come up.
  Jack
  [EMAIL PROTECTED]
  "There is nothing more rewarding than reaching the goal you set for
  yourself"
  - Original Message -
  From: Joseph Bannon [EMAIL PROTECTED]
  To: Jacky@lilst [EMAIL PROTECTED]
  Sent: Monday, April 02, 2001 3:44 AM
  Subject: RE: [PHP] is this syntax correct?
 
 
So what is the right way to do?
  
  
   I resent my email to the list. I've done mostly DB work, so I need to
 know
   what those functions do.
  
   J
  
  
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 





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




[PHP-CVS] cvs: php4 /ext/dbx dbx.c dbx_odbc.c dbx_pgsql.c

2001-04-02 Thread Marc Boeren

mboeren Mon Apr  2 01:51:36 2001 EDT

  Modified files:  
/php4/ext/dbx   dbx.c dbx_odbc.c dbx_pgsql.c 
  Log:
  Inserted a few extra initialisations, just in case. Had some problems in a
  different module, this solved it there, hance the added insurance. (Mc)
  
  
Index: php4/ext/dbx/dbx.c
diff -u php4/ext/dbx/dbx.c:1.6 php4/ext/dbx/dbx.c:1.7
--- php4/ext/dbx/dbx.c:1.6  Mon Mar 26 00:26:07 2001
+++ php4/ext/dbx/dbx.c  Mon Apr  2 01:51:35 2001
@@ -293,6 +293,7 @@
 }
 
 MAKE_STD_ZVAL(rv_success); 
+ZVAL_LONG(rv_success, 0);
 
 result = switch_dbx_close(rv_success, dbx_handle, 
INTERNAL_FUNCTION_PARAM_PASSTHRU, dbx_module);
 
@@ -359,6 +360,7 @@
 / /}
  /*/
 MAKE_STD_ZVAL(rv_result_handle); 
+ZVAL_LONG(rv_result_handle, 0);
 convert_to_string_ex(arguments[1]);
 result = switch_dbx_query(rv_result_handle, dbx_handle, arguments[1], 
INTERNAL_FUNCTION_PARAM_PASSTHRU, dbx_module);
 /*/ boolean return value means either failure for any query or success for 
queries that don't return anything  /*/
@@ -398,6 +400,7 @@
 zend_hash_update(return_value-value.obj.properties, "data", 5, (void *)(data), 
sizeof(zval *), NULL);
 /*/ get columncount and add to returnvalue as property /*/
 MAKE_STD_ZVAL(rv_column_count); 
+ZVAL_LONG(rv_column_count, 0);
 result = switch_dbx_getcolumncount(rv_column_count, rv_result_handle, 
INTERNAL_FUNCTION_PARAM_PASSTHRU, dbx_module);
 if (!result) { 
 zend_error(E_ERROR, "dbx_query: get column_count failed...");
@@ -417,6 +420,7 @@
 for (col_index=0; col_indexrv_column_count-value.lval; ++col_index) {
 zval * rv_column_name;
 MAKE_STD_ZVAL(rv_column_name);
+ZVAL_LONG(rv_column_name, 0);
 result = switch_dbx_getcolumnname(rv_column_name, rv_result_handle, 
col_index, INTERNAL_FUNCTION_PARAM_PASSTHRU, dbx_module);
 if (result) { 
 zend_hash_index_update(info_row-value.ht, col_index, (void 
*)(rv_column_name), sizeof(zval *), NULL);
@@ -439,6 +443,7 @@
 for (col_index=0; col_indexrv_column_count-value.lval; ++col_index) {
 zval * rv_column_type;
 MAKE_STD_ZVAL(rv_column_type);
+ZVAL_LONG(rv_column_type, 0);
 result = switch_dbx_getcolumntype(rv_column_type, rv_result_handle, 
col_index, INTERNAL_FUNCTION_PARAM_PASSTHRU, dbx_module);
 if (result) { 
 zend_hash_index_update(info_row-value.ht, col_index, (void 
*)(rv_column_type), sizeof(zval *), NULL);
@@ -455,6 +460,7 @@
 while (result) {
 zval * rv_row;
 MAKE_STD_ZVAL(rv_row);
+ZVAL_LONG(rv_row, 0);
 result = switch_dbx_getrow(rv_row, rv_result_handle, row_count, 
INTERNAL_FUNCTION_PARAM_PASSTHRU, dbx_module);
 if (result) {
 /*/if (row_count=result_row_offset  (result_row_count==-1 || 
row_countresult_row_offset+result_row_count)) { /*/
@@ -513,6 +519,7 @@
 }
 
 MAKE_STD_ZVAL(rv_errormsg); 
+ZVAL_LONG(rv_errormsg, 0);
 result = switch_dbx_error(rv_errormsg, NULL, INTERNAL_FUNCTION_PARAM_PASSTHRU, 
dbx_module);
 if (!result) {
 FREE_ZVAL(rv_errormsg);
Index: php4/ext/dbx/dbx_odbc.c
diff -u php4/ext/dbx/dbx_odbc.c:1.4 php4/ext/dbx/dbx_odbc.c:1.5
--- php4/ext/dbx/dbx_odbc.c:1.4 Fri Mar 23 06:50:17 2001
+++ php4/ext/dbx/dbx_odbc.c Mon Apr  2 01:51:35 2001
@@ -94,6 +94,7 @@
 return 0;
 }
 MAKE_STD_ZVAL(num_fields_zval);
+ZVAL_LONG(num_fields_zval, 0);
 if (!dbx_odbc_getcolumncount(num_fields_zval, queryresult_zval, 
INTERNAL_FUNCTION_PARAM_PASSTHRU)) {
 FREE_ZVAL(num_fields_zval);
 if (queryresult_zval) zval_ptr_dtor(queryresult_zval);
@@ -187,6 +188,7 @@
 
 /*/ get # fields /*/
 MAKE_STD_ZVAL(num_fields_zval);
+ZVAL_LONG(num_fields_zval, 0);
 if (!dbx_odbc_getcolumncount(num_fields_zval, result_handle, 
INTERNAL_FUNCTION_PARAM_PASSTHRU)) {
 return 0;
 }
@@ -215,6 +217,7 @@
 return 0;
 }
 MAKE_STD_ZVAL(field_index_zval);
+ZVAL_LONG(field_index_zval, 0);
 number_of_arguments=2;
 for (field_index=0; field_indexfield_count; ++field_index) {
 ZVAL_LONG(field_index_zval, field_index+1);
Index: php4/ext/dbx/dbx_pgsql.c
diff -u php4/ext/dbx/dbx_pgsql.c:1.3 php4/ext/dbx/dbx_pgsql.c:1.4
--- php4/ext/dbx/dbx_pgsql.c:1.3Fri Mar 23 06:50:17 2001
+++ php4/ext/dbx/dbx_pgsql.cMon Apr  2 01:51:35 2001
@@ -40,6 +40,7 @@
 zval *returned_zval=NULL;
 
MAKE_STD_ZVAL(conn_zval);
+ZVAL_LONG(conn_zval, 0);
 
if (Z_STRLEN_PP(username)0  Z_STRLEN_PP(password)0){
int len;
@@ -85,6 +86,7 @@
 zval *returned_zval=NULL;
 
MAKE_STD_ZVAL(conn_zval);
+ZVAL_LONG(conn_zval, 0);
 
if (Z_STRLEN_PP(username)0  Z_STRLEN_PP(password)0){
int len;



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, 

[PHP-CVS] cvs: php4 /ext/aspell config.m4

2001-04-02 Thread Jani Taskinen

sniper  Mon Apr  2 02:06:33 2001 EDT

  Modified files:  
/php4/ext/aspellconfig.m4 
  Log:
  Fixed a typo. Bug: #10103
  
Index: php4/ext/aspell/config.m4
diff -u php4/ext/aspell/config.m4:1.4 php4/ext/aspell/config.m4:1.5
--- php4/ext/aspell/config.m4:1.4   Tue Mar 27 12:34:22 2001
+++ php4/ext/aspell/config.m4   Mon Apr  2 02:06:33 2001
@@ -1,4 +1,4 @@
-dnl $Id: config.m4,v 1.4 2001/03/27 20:34:22 sniper Exp $
+dnl $Id: config.m4,v 1.5 2001/04/02 09:06:33 sniper Exp $
 
 AC_MSG_CHECKING(for ASPELL support)
 AC_ARG_WITH(aspell,
@@ -19,9 +19,9 @@
 fi
 AC_DEFINE(HAVE_ASPELL,1,[Whether you have aspell])
 AC_MSG_RESULT(yes)
-   PHP_EXTENSION(aspell)
+PHP_EXTENSION(aspell)
   else
-AC_MSG_ERROR(no)
+AC_MSG_RESULT(no)
   fi
 ],[
   AC_MSG_RESULT(no)



-- 
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] geocities and php

2001-04-02 Thread Joseph Bannon

I notice that geocities does not allow you to reference images that are on
their servers to your homepage on another server/host. Is there a way to
make PHP send different host information to geocities' server?

Thanks,
J


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




[PHP] session question

2001-04-02 Thread Jan Grafström

Hi!
I am trying to learn about sessions and set up this file,

?
 session_start();
 $fillista = "fillista.xml";
 session_register("SID"."fillista");
 $SID = date("Y F j H:i:s");
 print "SID=".$SID;
?

This seams not to work on the file fillista.xml, I can still read it
afterwords in IE:s cache. How do I pass the session to a xml-file on
server?

Thanks for any help.

Regards
jan


-- 
PHP General Mailing List (http://www.php.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 2 Apr 2001 09:41:06 -0000 Issue 603

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


php-general Digest 2 Apr 2001 09:41:06 - Issue 603

Topics (messages 46526 through 46583):

libpng error
46526 by: Thalis A. Kalfigopoulos
46543 by: nicuc.ac.jp

Programming Jobs
46527 by: Jon Jacob
46531 by: Michael Kimsal
46563 by: natter

Re: C and PHP
46528 by: Joe Stump

Question: Number of Characters
46529 by: Marcus Ouimet
46530 by: CC Zona
46532 by: Steve Edberg

Re: ereg
46533 by: Steve Edberg

Re: Executing a PHP file to write an html file
46534 by: David Robley
46536 by: Matt Friedman

Re: Problems with files!
46535 by: David Robley
46545 by: Jon Jacob
46546 by: Tyrone Mills
46552 by: Jon Jacob

Need project info from developers
46537 by: Michael Kimsal

Re: version
46538 by: Stuart J. Browne

cookie working only 90% array missing one var and sql query burns [YIKES!]
46539 by: PHPretard

Re: No-refresh
46540 by: trogers

Attach File in PHP's Mail Function.
46541 by: Mark Lo \(3\)

send mail in HTML format in Mail Function
46542 by: Mark Lo \(3\)
46544 by: Tyler Longren

Re: header() vs. no cache, it doesn't work.
46547 by: Stuart J. Browne

Search Engines
46548 by: Joe Montiel
46549 by: Matt Friedman
46551 by: Steve Werby

php jobs?
46550 by: Joseph Bannon
46553 by: Rick St Jean
46568 by: Boaz Yahav

session in php3 and in php4
46554 by: Jacky
46557 by: Steve Werby

Re: suppressing error messages
46555 by: Patrick Dunford

Re: Execute Shell command?
46556 by: Chris Fry

RE:Zend Encoder
46558 by: Nettie Feldman

Re: registering an array into a session (?)
46559 by: cam k

Accessing Intberase database in NT
46560 by: elan.usa.edu.ph
46567 by: Stuart J. Browne

phpLinks 2.0b Released
46561 by: Greg Donald

Problem installing on BSD
46562 by: natter
46564 by: David Robley
46565 by: natter
46566 by: Felix Kronlage

php-4.0.5-dev with Apache rpm
46569 by: Paul Juliano

I can't connect php with apache.
46570 by: Kukai

Retrieving W2000 username as a PHP variable.
46571 by: Jon

very dumb question, need help
46572 by: Jacky

array_diff usage
46573 by: V e r b a l
46577 by: Stig Venaas

how to build a template??
46574 by: E K L

Re: login without database
46575 by: Knut H. Hassel Nielsen

is this syntax correct?
46576 by: Jacky
46578 by: Joseph Bannon
46579 by: Jacky
46581 by: Jacky

Max file size of 2 bytes exceeded
46580 by: PHP

geocities and php
46582 by: Joseph Bannon

session question
46583 by: Jan Grafström

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]


--



Helloppl,
I have php compiled with GD support (version1.8 so I have png support). I try 
the following code and get a broken image:

?php
header("Content-type: image/png");

$image= imagecreate(200,200) or die("Failed in call to imagecreate()BR\n");
imagepng($image);
$blue = imageColorAllocate($image,0,0,255);
imageRectangle($image, 50, 50, 150, 150, $blue);

imagedestroy($image);
?

I get this error in the Apache error log (Apache with DSO support and php as a .so):
gd-png:  fatal libpng error: Invalid number of colors in palette
gd-png error: setjmp returns error condition

Any ideas what's wrong?

regards,
thalis





Hello

  I make change of your code by move some line to correct line and it's
work.
Here this a code

?PHP
header("Content-type: image/png");
$image= imagecreate(200,200) or die("Failed in call to
imagecreate()BR\n");
$blue = imageColorAllocate($image,0,0,255);
imageRectangle($image, 50, 50, 150, 150, $blue);
imagepng($image); //  I MOVE THIS LINE
imagedestroy($image);
?

Hope this will help.
-Tuna-


""Thalis A. Kalfigopoulos"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Helloppl,
 I have php compiled with GD support (version1.8 so I have png support). I
try the following code and get a broken image:

 ?php
 header("Content-type: image/png");

 $image= imagecreate(200,200) or die("Failed in call to
imagecreate()BR\n");
 imagepng($image);
 $blue = imageColorAllocate($image,0,0,255);
 imageRectangle($image, 50, 50, 150, 150, $blue);

 imagedestroy($image);
 ?

 I get this error in the Apache error log (Apache with DSO support and php
as a .so):
 gd-png:  fatal libpng error: Invalid number of colors in palette
 gd-png error: setjmp returns error condition

 Any ideas what's wrong?

 regards,
 thalis


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL 

[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/aspell config.m4

2001-04-02 Thread Jani Taskinen

sniper  Mon Apr  2 02:07:22 2001 EDT

  Modified files:  (Branch: PHP_4_0_5)
/php4/ext/aspellconfig.m4 
  Log:
  MFH
  
Index: php4/ext/aspell/config.m4
diff -u php4/ext/aspell/config.m4:1.3 php4/ext/aspell/config.m4:1.3.4.1
--- php4/ext/aspell/config.m4:1.3   Wed Dec 29 20:07:17 1999
+++ php4/ext/aspell/config.m4   Mon Apr  2 02:07:22 2001
@@ -1,4 +1,4 @@
-dnl $Id: config.m4,v 1.3 1999/12/30 04:07:17 sas Exp $
+dnl $Id: config.m4,v 1.3.4.1 2001/04/02 09:07:22 sniper Exp $
 
 AC_MSG_CHECKING(for ASPELL support)
 AC_ARG_WITH(aspell,
@@ -19,9 +19,9 @@
 fi
 AC_DEFINE(HAVE_ASPELL,1,[Whether you have aspell])
 AC_MSG_RESULT(yes)
-   PHP_EXTENSION(aspell)
+PHP_EXTENSION(aspell)
   else
-AC_MSG_ERROR(no)
+AC_MSG_RESULT(no)
   fi
 ],[
   AC_MSG_RESULT(no)



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

2001-04-02 Thread Wen Ni

Dear Friends,

I want to do page counter for my web site and I wonder whether PHP can
do it or not.  I am new in PHP so can you all please give me some idea
how to solve my problem.

Thank a lot.

regards,
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] Max file size of 2 bytes exceeded

2001-04-02 Thread Christian Reiniger

On Monday 02 April 2001 10:44, you wrote:
 Hi guys,

 I seem to be having a problem uploading images.

 My server is running on FreeBSD and i am using PHP ver 4

 I have checked all the settings in my php.ini file.

 max_execution_time = 30
 memory_limit = 8M
 post_max_size = 8M

 file_uploads = On
 upload_max_filesize = 2M

 Warning: Max file size of 2 bytes exceeded - file [image1] not saved in
 Unknown on line 0

PHP doesn't process the "M". Specify the sizes in bytes

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

Pretty cool, the kind of power information technology puts in our hands
these days.

- Securityfocus on probing 3600 hosts for known problems in 3 weeks

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




Re: [PHP] is this syntax correct?

2001-04-02 Thread Christian Reiniger

On Monday 02 April 2001 22:30, you wrote:
 Hi all
 is this syntax correct to work on session in php4?

 ?php
 global $test;
 $test = "foo";
 session_register("$test");
 ?

 but nest page when I call variable $test to echo it, nothing come up?
 what did I do wrong? Jack

Use session_start();

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

Pretty cool, the kind of power information technology puts in our hands
these days.

- Securityfocus on probing 3600 hosts for known problems in 3 weeks

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




Re: [PHP] is this syntax correct?

2001-04-02 Thread Christian Reiniger

On Monday 02 April 2001 10:44, you wrote:
 What does global and session_register do?

RTFM

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

Pretty cool, the kind of power information technology puts in our hands
these days.

- Securityfocus on probing 3600 hosts for known problems in 3 weeks

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




[PHP] Betr.: [PHP] Page Counter

2001-04-02 Thread M. Verheijen

Dear Wendy,

Check out http://www.hotscripts.com/PHP/Scripts_and_Programs/ 
You should all you the scripts you'll need here!, still some problems?
Let me know?

Best regards,
Maarten Verheijen

MvG,

Maarten Verheijen
T/EXP kamernummer C558
Telefoonummer 4559

 Wen Ni [EMAIL PROTECTED] 02-04-01 11:33 
Dear Friends,

I want to do page counter for my web site and I wonder whether PHP can
do it or not.  I am new in PHP so can you all please give me some idea
how to solve my problem.

Thank a lot.

regards,
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] phpinfo unneeded

2001-04-02 Thread juang

guys..

mmmh still confuse, i had try to find out "disable_functions " but i cant
found it, and then i write the syntax with myself and i stop-restart my
apache mmhhh?? still didn't work. and here its my configure:

 ./configure '--with-apxs=/usr/local/apache/bin/apxs'
'--with-mysql=/usr/local/mysql' '--with-gd' '--enable-debugger'
'--enable-track-vars' '--with-yp' '--enable-memory-limit=yes'
'--enable-debug=no' '--with-zlib' php.ini file path is set to:
/usr/local/lib


Matt: it's for free hosting and i would like to make a community in this
server that's why i don't want a user using phpinfo();

thx
-JUANG-


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




[PHP] Parent class

2001-04-02 Thread Milan Mlynarcik

Is there way to access paret class from outside of class ???
I know that to access parent object from within the class I can use code
like this one:
?php
class a
{
vara;

function a()
{
$this-a = "OK";
}
}

class b extends a
{
function b()
{
//here I access a class directly
a::a();
}
}
?

But I would like to know how to access a class like this:
?php

$b = new b();
//and now I want to access class a with something like
$b-a::a();
//but this doesn't work
?
Is it possible ??? If yes how ???


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




Re: [PHP] phpinfo unneeded

2001-04-02 Thread Felix Kronlage

On Mon, Apr 02, 2001 at 06:14:07PM +0700, juang wrote:

 mmmh still confuse, i had try to find out "disable_functions " but i cant
 found it, and then i write the syntax with myself and i stop-restart my
 apache mmhhh?? still didn't work. and here its my configure:

put the following in your php.ini (in the Safe Mode Section):

disable_functions = phpinfo()

that should do it.
-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 

 PGP signature


[PHP] File upload via HTML forms

2001-04-02 Thread \[Intent A/S\] Tais M. Hansen

Hi!

I'm currently working with a site on a safe mode enabled server.

First off, there's no way safe mode can be disabled.

Now, I need to be able to upload a file via a HTML form post, read and copy
this file to a different location. But when the file is uploaded, it is
placed in a tmp dir with the uid of what php is running with and since the
script I'm working with will always have a different ownership/uid than the
php process, I won't be able to read this file.

Does anyone know how to get around this problem?

Thanks in advance!
--
--
Intent A/S

Tais M. Hansen
Web Developer



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




[PHP] Reading specific contents of a file

2001-04-02 Thread Thomas Edison Jr.

using fopen() i can open a file  using fread() i can
read it's contents, store them  print them. But is
there any way of checking the contents for a specific
word or characters? 
For example i want the file pointer to search  if
found, print the word "enter" from the open file. how
to do this?

T. Edison jr.


=
Rahul S. Johari (Director)
**
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
***

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text

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




[PHP] Include files????

2001-04-02 Thread Bruno Freire

Hi! My name is Bruno.


Anybody can tell me how can i do Include files?
I mean,   Write a function in a file and after this just include this file
in the code, like 
#include file.h  of C++?? 

Thanks !!!



Re: [PHP] Include files????

2001-04-02 Thread Felix Kronlage

On Mon, Apr 02, 2001 at 08:55:26AM -0300, Bruno Freire wrote:

 Anybody can tell me how can i do Include files?

has the thought of looking up the manual at php.net crossed your mind?
try searching php.net for include(), require()

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


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




Re: [PHP] Database connections

2001-04-02 Thread Yasuo Ohgaki

You don't have to call mysql_close(). PHP handles cleaning resources when script
execution is ended.

You can set default connection parameters for MySQL in php.ini.
I don't know if you need to call mysql_connect(). (I don't use MySQL :)

Regards,
--
Yasuo Ohgaki


""David Hynes"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I'm using PHP on a windows box to access a MySQL database.

 I noticed that I do not need to open a database connection before performing
 a mysql_db_query().  Is this bad coding ?  Should the database connection
 always be made ?  Is this specific to Windows ?

 # $databaseConnection = mysql_connect ("localhost", "", "");  ## I don't
 seem to need this line, or the last one
 mysql_db_query("dbnam", "SQL query");
 # mysql_close ($databaseConnection);

 Thanks,
 David.

 ---
 Fed202 Solutions
 www.fed202solutions.com
 Mobile : 07779 293368
 ---


 --
 PHP General Mailing List (http://www.php.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] known problems with session_register()?

2001-04-02 Thread Yasuo Ohgaki

What is your php.ini?
If you are enabled track vars and disabled register globals, all you have to do
is assign values to $HTTP_SESSION_VARS and
unset($HTTP_SESSION_VARS['your_session_var']). You don't need to use
session_register(), session_unregister() if it's the case.

Refer to User Notes in Session Section - Annotated PHP Manual for details.

Regards,
--
Yasuo Ohgaki


"Felix Kronlage" [EMAIL PROTECTED] wrote in message
20010401181830.B5417@mad">news:20010401181830.B5417@mad...
 Hi,

 are there any knows problems/bugs with session_register()?

 With openbsd  as a platform (not tested on others) I have the problem
 that 20% of the times sessions don't get initialized correctly.
 The session-file is created in /tmp (cookies for session-use are turned off),
 just the variables registered via session_registered are not written into the
file.
 The same piece of code works on the same box, with same php 80% of the times.
 (Had this problem with php4.0.4x up to php4.0.5rc3).

 any hints on this?
 -fkr
 --
 gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0
   |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
   |all your base are belong to us  |  shame on me  | fkr@IRCnet |


 --
 PHP General Mailing List (http://www.php.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] Attach File in PHP's Mail Function.

2001-04-02 Thread Yasuo Ohgaki

This has been asked recently. You can search archives. Look for links can be
found at
http://www.php.net/support.php

Most easiest way is grabbing mail class that can handle attachment.
There are many of them on the net. I think www.zend.com code exchange might have
one.

If you want to do it by yourself, you need to read related RFCs.

Regards,
--
Yasuo Ohgaki


""Mark Lo (3)"" [EMAIL PROTECTED] wrote in message
000701c0bb1b$d3b772a0$2e53fea9@mark">news:000701c0bb1b$d3b772a0$2e53fea9@mark...
 Hi,

  I would like to ask how to attach a file in PHP's Mail Function ??

 Thank you

 Mark


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



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




Re: [PHP] php-4.0.5-dev with Apache rpm

2001-04-02 Thread Yasuo Ohgaki
Annotated manual is useful. Refer to

http://www.php.net/manual/en/install.linux.php
http://www.php.net/manual/en/install.apache.php

You need to install apache-devel RPM if you are using RedHat.

Regards,
--
Yasuo Ohgaki


""Paul Juliano"" [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 Hi,

 How do I manually compile php-4.0.5-dev with an Apache rpm installation?  Or
do
 I have to install both apache and php manually?  I know how to do the second
 method, but as much as possible, I don't want to hose the running apache
install.

 Thanks.

 __
 www.edsamail.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] Parent class

2001-04-02 Thread Yasuo Ohgaki

Did you try $b-a()?
It should work.

--
Yasuo Ohgaki


"Milan Mlynarcik" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Is there way to access paret class from outside of class ???
 I know that to access parent object from within the class I can use code
 like this one:
 ?php
 class a
 {
 vara;

 function a()
 {
 $this-a = "OK";
 }
 }

 class b extends a
 {
 function b()
 {
 //here I access a class directly
 a::a();
 }
 }
 ?

 But I would like to know how to access a class like this:
 ?php

 $b = new b();
 //and now I want to access class a with something like
 $b-a::a();
 //but this doesn't work
 ?
 Is it possible ??? If yes how ???


 --
 PHP General Mailing List (http://www.php.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] I can't connect php with apache.

2001-04-02 Thread Yasuo Ohgaki

I guess your httpd.conf is not allowing.
Is your httpd.conf allow CGI script?

Refer to Apache manual for that.

Regards,
--
Yasuo Ohgaki


"Kukai" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi all,

 I have been trying to install PHP4.0 to Apache1.3 on Win2K platform.
 I followed the instruction carefully, and all of applications, PHP4.0,
 Apache1.3, MySQL are installed correctly, I think. However when I put
 the URI into the browser, http://localhost/test.php, I got message "The
 page cannot be found". I checked error log said

 "[Mon Apr 02 03:02:03 2001] [error] [client 127.0.0.1] Invalid URI in
 request GET /test.php HTTP/1.1"

 I changed every elements related with this error message.
 And I found out one thing that if I changed name from test.php to test
 php3, it seems ok. It didn't generate error message. But it is still not
 be shown in browser, it show brank page. But when I push source bottum,
 it is shown collect source code... I don't know what I should do
 next. Is there someone who can explain this situation? Please.

 Thank you.

 kukai

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

2001-04-02 Thread Jason Lotito

http://newbienetwork.net/sections.php?op=viewarticleartid=1

Read it, Learn it.

Jason Lotito
www.NewbieNetwork.net
Where those who can, teach;
and those who can, learn.

 -Original Message-
 From: Wen Ni [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 02, 2001 3:33 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Page Counter
 
 
 Dear Friends,
 
 I want to do page counter for my web site and I wonder whether PHP can
 do it or not.  I am new in PHP so can you all please give me some idea
 how to solve my problem.
 
 Thank a lot.
 
 regards,
 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]




[PHP] Search Engines

2001-04-02 Thread Geoff Caplan

Steve,

You clearly know your stuff about search engines.

I was planning to use the header:

header("Expires: " . gmdate("D, d M Y H:i:s") . " GMT");

to ensure that pages are not cached in the client.

But reading your excellent contribution, I was wondering whether a
search bot would see this and decide not to index as the page was
about to expire.

Any advice much appreciated

Geoff Caplan



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




[PHP] libphp3.so

2001-04-02 Thread Marcelo Pereira

Hi all,

I'm having trouble when installing PHP3-3.0.18.
I've done:

tar xzvf php3-3.0.18.tar.gz
cd php3-3.0.18
./configure --with-pgsql
./make
./make install

Then, in the INSTALL file says to add the follow line at /etc/httpd/conf/httpd.conf

LoadMoldulemodules/libphp3.so

But, I dunno where is this (libphp3.so) file... and I also don't know where is the 
mod_php3.so file.
What did I do wrong ???


Thanks in advance,

Marcelo Pereira
Programmer




Re: [PHP] known problems with session_register()?

2001-04-02 Thread Felix Kronlage

On Mon, Apr 02, 2001 at 09:13:41PM +0900, Yasuo Ohgaki wrote:

 If you are enabled track vars and disabled register globals, all you have to do
 is assign values to $HTTP_SESSION_VARS and

both are on. Could there be a problem with session_register() ?
I do think it's odd, that the same code, on the same box, same
php, same everything works 80% of the time and fails in 20% of the time.
(no, there can't be a race-condition).

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


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




Re: [PHP] session in php3 and in php4

2001-04-02 Thread A.T.Z.


I heard rumors saying there is no way to use session in php3, is that 
correct?

No. PHPLIB

If there is no way to get around this, what is syntax for assign session 
in php4 then?

www.php.net take a look at the manual. Or one of the sites about PHP 
webmonkey etc..

Bye,


B.



-- 
PHP General Mailing List (http://www.php.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 substitute Java classes?

2001-04-02 Thread torsten plaul

Hi folks,
using Java-classes seems to be the only way to deal with CORBA in an easy
way...
I installed the Java support for PHP4 successfully. It runs fine under
WinNt/Apache.

The problem I´ve got is that Sun added some CORBA-classes to the archive
(rt.jar)
JDK comes with. But instead importing SUN´s classes the CORBA-classes I use
have
to use the classes coming from the CORBA-distributor IONA.

At the command line the launch command looks like this:




C:\java.exe -Dorg.omg.CORBA.ORBSingletonClass=IE.Iona.OrbixWeb.CORBA.singlet
onORB myPackage.myCORBAClass

where the D-parameter tells the interpreter to use
IE.Iona.OrbixWeb.CORBA.singletonORB intstead of
org.omg.CORBA.ORBSingletonClass

Is there any way to configure either PHP or Apache or even Java to do this
!?

Any help would be very appreciated from

torsten plaul



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




Re: [PHP] is this syntax correct?

2001-04-02 Thread Jack Dempsey

Jacky,

basic thing about sessions: you need session_start() at the top of every
page in which you expect to use them...check out zend.com for some
tutorials...but yes, you do need it at the top of that page...

-jack
"Jacky@lilst" wrote:
 
 Not really, do I need to have session_start at the sender page and the
 receiver page?
 Jack
 [EMAIL PROTECTED]
 "There is nothing more rewarding than reaching the goal you set for
 yourself"
 - Original Message -
 From: Wade Halsey [EMAIL PROTECTED]
 To: Jacky@lilst [EMAIL PROTECTED]
 Sent: Monday, April 02, 2001 3:48 AM
 Subject: Re: [PHP] is this syntax correct?
 
  do you have
  session_start();
   at the top of the next page?
 
  - Original Message -
  From: Jacky@lilst [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, April 02, 2001 10:43 PM
  Subject: Re: [PHP] is this syntax correct?
 
 
   I also tried this syntax:
   ?php
   global $test;
   $test = "foo";
   session_register("test");
   ?
  
   and it still not work as when I go to next page, and try echo $test,
  nothing
   come up.
   Jack
   [EMAIL PROTECTED]
   "There is nothing more rewarding than reaching the goal you set for
   yourself"
   - Original Message -
   From: Joseph Bannon [EMAIL PROTECTED]
   To: Jacky@lilst [EMAIL PROTECTED]
   Sent: Monday, April 02, 2001 3:44 AM
   Subject: RE: [PHP] is this syntax correct?
  
  
 So what is the right way to do?
   
   
I resent my email to the list. I've done mostly DB work, so I need to
  know
what those functions do.
   
J
   
   
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail: [EMAIL PROTECTED]
  
  
 
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

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




RE: [PHP] File upload via HTML forms

2001-04-02 Thread John Almberg

Howdy,

You should be able to read this file using the file system functions. The
PHP process (if it is set up properly) should have read access to this
directory. The problem you will have is *writing* it to your own directory,
as the PHP process probably *doesn't* have write access to your directory
structure. The way I got around this was to read the tmp file with the file
system, and write it using FTP (which can log in to your area.)

Hope this  helps.

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

2001-04-02 Thread Matt Davis

Hi, is anyone aware of any php training courses available in the UK or
alternativly any online anywhere.

Thanks

Matt.


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




[PHP] Why does it work this way?

2001-04-02 Thread Boget, Chris

for( $i = "a"; $i = "z"; $i++ ) {
}

Not entirely too sure why, but the above works.  And
it's really cool that it does. :)
However, it doesn't work as one would expect (aside 
from the fact that it works at all :p).  Just looking at 
it, I would think that it would iterate from "a" to "z"
and stop.  But in fact, what it's doing is going from 
"a" to "yz", having iterated all of the alphabet using
double letters ( "aa", "az", "bb", "bz" ... "yy", "yz").
Why is that?

Just trying to understand. :)

Thanks for any help/insight you can provide!

Chris



[PHP] why some dll's don't work

2001-04-02 Thread Adrian Murphy

Certain dll's i try to use simply refuse to work.

php.ini is edited correctly.
php_ftp.dll works
php_gd.dll don't
php_ldap.dll works
php_oci8.dll don't(with oracle 8i personal inastalled)
etc.
whats going on.all the requiste dll's are in the right folder.


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




Re: [PHP] very dumb question, need help

2001-04-02 Thread Hardy Merrill

At the top of every script that will register or use session
variables, I do "session_register" - something like this:

script_1.php

 ?php
session_start();
session_register("test");
$test = "myname";
 ?

script_2.php

 ?php
session_start();
echo "Value of \$test = $test"; // value should be "myname"
 ?

HTH.

-- 
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com

Jacky [[EMAIL PROTECTED]] wrote:
 Hi all
 I have been to look at manual about session, in php4, still not quite get it.
 Basically if I have sniplet below in one page, how do I assign value into that 
session and how do I call it up in next page? I sthe way I assign value into session 
correct? ( I think it did not, because it did not work, but still need to show what I 
did, so help can get to the right point easier).
 Note: that I simply hardcode value into session just to see if it will like it.
 *
 ?php
 session_register("test");
 $test = "myname";
 ?
 *
 Jack
 [EMAIL PROTECTED]
 "There is nothing more rewarding than reaching the goal you set for yourself"

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




RE: [PHP] geocities and php

2001-04-02 Thread Krznaric Michael

Try cURL

http://www.php.net/manual/en/ref.curl.php

You can send anything you want.

Mike

-Original Message-
From: Joseph Bannon [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 5:36 AM
To: [EMAIL PROTECTED]
Subject: [PHP] geocities and php


I notice that geocities does not allow you to reference images that are on
their servers to your homepage on another server/host. Is there a way to
make PHP send different host information to geocities' server?

Thanks,
J


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

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




[PHP-CVS] cvs: php4 /ext/standard array.c

2001-04-02 Thread Andrei Zmievski

andrei  Mon Apr  2 06:20:17 2001 EDT

  Modified files:  
/php4/ext/standard  array.c 
  Log:
  Use correct string length.
  
  
Index: php4/ext/standard/array.c
diff -u php4/ext/standard/array.c:1.106 php4/ext/standard/array.c:1.107
--- php4/ext/standard/array.c:1.106 Mon Mar 19 13:20:02 2001
+++ php4/ext/standard/array.c   Mon Apr  2 06:20:16 2001
@@ -21,7 +21,7 @@
+--+
 */
 
-/* $Id: array.c,v 1.106 2001/03/19 21:20:02 andrei Exp $ */
+/* $Id: array.c,v 1.107 2001/04/02 13:20:16 andrei Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -2202,7 +2202,7 @@
switch (zend_hash_get_current_key_ex(target_hash, string_key, 
str_key_len, num_key, 1, pos)) {
case HASH_KEY_IS_STRING:
Z_STRVAL_P(data) = string_key;
-   Z_STRLEN_P(data) = str_key_len;
+   Z_STRLEN_P(data) = str_key_len-1;
Z_TYPE_P(data) = IS_STRING;
break;
case HASH_KEY_IS_LONG:



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

2001-04-02 Thread David G.

"Jon Jacob" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I hope this is not off topic, but I need to ask a general audience this
 question and this seems like the right group.

 I have been out of work for two months and I am not sure why.  I am a
 talented web programmer with three years experience, strong Perl,
 JavaScript, CGI, and HTML skills and a great work ethic.

You, and thousands of others looking for work right now. These skills are
the bare minimum, in my opinion.

 I have been offered a job (which I turned down)

Well, that's a reason you're still out of work.

 ...but nothing desirable has come my
 way.  I know the economy is slow, but I am shocked that I am out of work
 for this long.  Are others experiencing this, or is it just me?

Many others.

 I live in Portland, OR which is not the center of the tech universe but
 has strong tech companies nonetheless.

Are there any strong tech companies left?  ;-)

 I am just confused and am
 wondering if it is something I am doing or something that is being done
 to me.  If the later, I can wait it out, but I just wanted to know if
 anyone in my silimiar situation was experiencing something the same and
 had any insight to share.

 I apologize for the vent, but it is starting to become frustrating and
 confusing.

Follow natter's advice and learn SQL. Simple web programming isn't enough to
get you hired anywhere at this time.

-david




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




[PHP] Programming Jobs - what I look for.

2001-04-02 Thread Michael Kimsal

To follow up just a bit more, here are skills I would require of someone
before hiring them:

* Practical SQL knowledge, with hands-on experience of at least 6 months
(with projects/URLs to show for it) with either MySQL, Postgres, MSSQL,
Oracle, DB2 or another high-level DB system (preferably more
than one, but we'll take just one).

* At least 6 months of practical PHP knowledge - projects/URLs to
show for it.

* Ability to design/debug complex HTML tables, or create scripts to do the
same. :)

* Ability to talk me through at least 2 ways of solving a data manipulation
problem, without code - whiteboard/paper/hand gestures and words only.
You also need to be able to argue why one method is better over another.
You don't have to be right, but you have to be able to justify your
choices.

* Understanding of HTTP, session management, cookies, etc.

* More than a passing interest in new technologies, and how to apply
your current skills to those new areas (wireless, etc.)

* Willingness to work weekends/evenings, if need be, to meet deadlines.

There are some tech things above, and some personality things.
I don't care too much if the projects people show me are personal
or professional, as long as they get excited about some of those
projects - either by talking about the skills they gained or mistakes
they made, or about how these projects can be adapted to other
situations.

I'm not dogging you personally Jon - I don't even know you.  I'm just
speaking as an employer in the web services field - these are the skills
I generally look for in people.  :)  My guess is that others have similar
criteria, but I may be way off base.



Jon Jacob wrote:

 I hope this is not off topic, but I need to ask a general audience this
 question and this seems like the right group.

 I have been out of work for two months and I am not sure why.  I am a
 talented web programmer with three years experience, strong Perl,
 JavaScript, CGI, and HTML skills and a great work ethic.  I have been
 offered a job (which I turned down) but nothing desirable has come my
 way.  I know the economy is slow, but I am shocked that I am out of work
 for this long.  Are others experiencing this, or is it just me?

 I live in Portland, OR which is not the center of the tech universe but
 has strong tech companies nonetheless.  I am just confused and am
 wondering if it is something I am doing or something that is being done
 to me.  If the later, I can wait it out, but I just wanted to know if
 anyone in my silimiar situation was experiencing something the same and
 had any insight to share.

 I apologize for the vent, but it is starting to become frustrating and
 confusing.



-- 
PHP General Mailing List (http://www.php.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: Programming Jobs - what I look for.

2001-04-02 Thread Jon Jacob

Michael Kimsal wrote:

 To follow up just a bit more, here are skills I would require of someone
 before hiring them:

 * Practical SQL knowledge, with hands-on experience of at least 6 months
 (with projects/URLs to show for it) with either MySQL, Postgres, MSSQL,
 Oracle, DB2 or another high-level DB system (preferably more
 than one, but we'll take just one).

 * At least 6 months of practical PHP knowledge - projects/URLs to
 show for it.

 * Ability to design/debug complex HTML tables, or create scripts to do the
 same. :)

 * Ability to talk me through at least 2 ways of solving a data manipulation
 problem, without code - whiteboard/paper/hand gestures and words only.
 You also need to be able to argue why one method is better over another.
 You don't have to be right, but you have to be able to justify your
 choices.

 * Understanding of HTTP, session management, cookies, etc.

 * More than a passing interest in new technologies, and how to apply
 your current skills to those new areas (wireless, etc.)

 * Willingness to work weekends/evenings, if need be, to meet deadlines.

 There are some tech things above, and some personality things.
 I don't care too much if the projects people show me are personal
 or professional, as long as they get excited about some of those
 projects - either by talking about the skills they gained or mistakes
 they made, or about how these projects can be adapted to other
 situations.

 I'm not dogging you personally Jon - I don't even know you.  I'm just
 speaking as an employer in the web services field - these are the skills
 I generally look for in people.  :)  My guess is that others have similar
 criteria, but I may be way off base.


Appreciate your response.  I was hoping to get some employer input.

Frankly, I truncated my skills to the list because I was trying to make a
point of what I was looking for not who am I.  I do know SQL and I have been
working on a personal project for about three months which I hope to "release"
in about two weeks that uses Perl for data gathering, Oracle for data storage,
and PHP for the CGI.

Just for clarification you can view my resume at:
http://www.manymoons.net/~jon/resume.html

When I knew I was headed out of work the first thing I did was work on my
skill set.  I started with C++, looked over and played with PHP, and then
moved on to working out some stuff in Oracle.

You are right.  If I only knew Perl, JS, and HTML, then that would be the
"bare minimum".  But, I do know more than that and I have demonstrated an
ability to learn new skills.  The amazing thing is that Intel was hiring
contractors for $50/hr just for their Perl skills.  That was before X-mas.  I
had an interview all set to go.  Then, Intel announced in January that they
were putting a freeze on hiring.  This largely sums up my experience.  Again,
I have to say that I don't think my skill set is a major issue.  Maybe I am
wrong.  But, I have had enough interest in people wanting to hire me, there
just has been no funds to do so.


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


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




RE: [PHP] PHP SITE SUGGESTION

2001-04-02 Thread Krznaric Michael

I have a suspcion that it may have to do with your shell interperting the 
character.  Try to quote your URL with single quotes ('').

Mike

-Original Message-
From: Michael Kimsal [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 10:41 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP SITE SUGGESTION


With the hope that someone at php.net is listening...

I understand you want to track how many downloads you've got, etc. but
can you make the download more direct somehow?  I can't do a wget
against
the php.net site to download the latest version.  :(  I think it's the ?
in the
URL that gives me a problem.

Thanks.



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

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




[PHP] Instalation

2001-04-02 Thread Marcelo Pereira

Hi,

Why can't I found neither LIBPHP3.SO nor MOD_PHP3.SO ???

Thanks

Marcelo Pereira
Programmer



RE: [PHP] Programming Jobs - what I look for.

2001-04-02 Thread James Moore


 * Ability to talk me through at least 2 ways of solving a data
 manipulation
 problem, without code - whiteboard/paper/hand gestures and words only.
 You also need to be able to argue why one method is better over another.
 You don't have to be right, but you have to be able to justify your
 choices.

Sounds like a suit who wants to be a techie sure your doing the right job ;)

James


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




[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-04-02 Thread Rasmus Lerdorf

rasmus  Mon Apr  2 07:57:11 2001 EDT

  Modified files:  
/CVSROOTavail gen_acl_file.m4 
  Log:
  Karma for Nick
  
  

Index: CVSROOT/avail
diff -u CVSROOT/avail:1.128 CVSROOT/avail:1.129
--- CVSROOT/avail:1.128 Mon Mar 26 01:36:13 2001
+++ CVSROOT/avail   Mon Apr  2 07:57:11 2001
@@ -2,12 +2,12 @@
 unavail
 avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane|CVSROOT
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,andre,sniper,david,lyric,zimt,mk,goba,zak,jmcastagnetto,dams|phpweb
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo,martin,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,andre,zimt,uw,jeichorn,bjoern,chregu,bkelly,tfromm,subjective,cox,mboeren|php4/pear,pearweb,pear
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo,martin|php4,php3,php31,phpfi
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo,martin,hholzgra|functable
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo,martin,lurcher,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,andre,zimt,uw,jeichorn,bjoern,chregu,bkelly,tfromm,subjective,cox,mboeren|php4/pear,pearweb,pear
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo,martin,lurcher|php4,php3,php31,phpfi
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo,martin,lurcher,hholzgra|functable
 avail|rasmus,sterling,jimw|pres
 
avail|jalal,zak,andre,ultrapingo,lyric,jmoore,ronabop,sbergmann,joey,sniper,torben,hellekin,cnewbill|qaweb
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo,martin,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom,dickmeiss,jkj,hellekin,kgergely,andreroq,eduardh,cnewbill,fuzzy74,inki,bjoern,fams,smasiello,dim,lucasr,cpereira,lagflores,kjh90,ernani,theseer,cevm,noribsd,eskaly,mctrash,berto,leobopp,tcr,subjective,mboeren,ufux|phpdoc

[PHP] Ming and flash detection

2001-04-02 Thread Jason Stechschulte

Hi, I'm having a problem writing a flash detector, and was hoping
someone would help.  I had one working that I created with Flash 4, but
it would fetch another webpage after loading so that it knew where to
redirect to.  So it looked like:

PHP embeds FLASH --- load variables from PHP  redirects to correct
page.

If FLASH wouldn't load, then javascript or a http refresh header would
send them elsewhere.

I'm trying to use Ming to eliminate the load variables from PHP
portion.  That way once the FLASH file loads, it will redirect, and you
won't have to wait for the program to go to the server and load more
variables.  Here is the code I'm using:

brokencode
?php

// $load is a variable that is passed in the embed tag ex:
// embed src=detectflash.php?load=?=$PHP_SELF?
$thisURL = "$load?hasflash=yes";
Ming_setScale(1.0);

// Create a very small movie with a white background.
$m = new SWFMovie();
$m-setBackground(0xff, 0xff, 0xff);
$m-setDimension(18, 18);

// This movie simply redirects to the appropriate page.
$m-add(new SWFAction("getURL('$thisURL', ''); stop();"));
$m-nextFrame();
$m-add(new SWFAction("play();"));

header('Content-type: application/x-shockwave-flash');
$m-output();
?
/brokencode

So far I've tested this in 3 browsers all on Windows 2000.
IE5 - works just fine.
Opera 5 - works just fine.
Netscape 4.08 - Never redirects.

I added code to write $thisURL to a file so I could see if it is getting
passed correctly, and it is.  So there must be a problem with the movie
somewhere.  In the getURL() function, I have tried many different things
for the second argument.  _self, _parent, _top.  None of these makes any
difference.  Anyone have any ideas I could try??

-- 
Jason Stechschulte
University of Northwestern Ohio
[EMAIL PROTECTED]
(419)998-3108
--
When it's dark enough you can see the stars.
-- Ralph Waldo Emerson,

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




RE: [PHP] Installing PHP as cgi and as self.

2001-04-02 Thread James Moore


 Hello,

 Can I install php as a cgi and install it as its own program?  On a redhat
 7.0 box Apache 1.3

 Thanks Brandon?

Yep, cgi is the same as a command line interpreter.
Just ./configure and dont enable any of the sapi's

James


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




Re: [PHP] array_diff usage

2001-04-02 Thread Martin Skjöldebrand

Stig Venaas wrote:

 So the arrays contain one string each? array_diff() won't work then.

Sorry - my fault.
I'm getting the values from a database - not manually added.

 Try this:
 
 $a = array(1, 2, 3, 4, 5);
 $b = array(1, 2);
 $test = array_diff($a, $b);
 $lines = count($test);
 echo $lines;
 var_dump($test);

I'm afraid I dont quite under stand the output you gave (maybe ... or do 
you mean var_dump included the number of the array elements?)

M.

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




Re: [PHP] Problem installing on BSD

2001-04-02 Thread natter

From my httpd.conf:

LoadModule php4_modulelibexec/apache/libphp4.so  (this file does
exist)
AddModule mod_php4.c

# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps



Felix Kronlage wrote:

 On Mon, Apr 02, 2001 at 12:01:08AM -0600, natter wrote:

  3. Changed my httpd.conf file to allow .php:
  - AddType application/x-httpd-php .php
  - AddType application/x-httpd-php-source .phps

 Do you have the directive to load the php-module in your httpd.conf?

 | LoadModule php4_module/path/to/the/module/libphp4.so

 -fkr, and don't forget the 'apachectl restart'
 --
 gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0
   |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
   |all your base are belong to us  |  shame on me  | fkr@IRCnet |

 --
 PHP General Mailing List (http://www.php.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] Programming Jobs - what I look for.

2001-04-02 Thread Pierre-Yves Lemaire


* Willingness to work weekends/evenings, if need be, to meet deadlines.



And if you are still working weekends and evenings after 9 months on the 
job, quit immediately. Start your own company or go fishing :)

py


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




Re: [PHP] Programming Jobs - what I look for.

2001-04-02 Thread Michael Kimsal

Not sure exactly what you mean.  I'm a suit who *wants* to be a techie?

I'm a techie who is also a suit, if truth be told.


James Moore wrote:

  * Ability to talk me through at least 2 ways of solving a data
  manipulation
  problem, without code - whiteboard/paper/hand gestures and words only.
  You also need to be able to argue why one method is better over another.
  You don't have to be right, but you have to be able to justify your
  choices.

 Sounds like a suit who wants to be a techie sure your doing the right job ;)

 James

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


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




[PHP] Snmp, php and Win2K

2001-04-02 Thread Richard Heyes

Anyone have any examples of php that uses snmp to get the details of
bandwidth usage from a Win2K server (ie Bytes sent/received on a
particular interface)?

Thanks.
-- 
Richard Heyes

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




Re: [PHP] libpng error

2001-04-02 Thread Thalis A. Kalfigopoulos

Thank you very much, really appreciate it. But I have to admit that I an example from 
a book in which he creates a gif (and not a png), where he doesn't actually have to 
allocate a color. He only has 3 lines which are supposed to work. Maybe true for gif, 
but cannot tell, since I don't have gif support.

header("Content-type: image/gif");
$image= imagecreate(200,200)l
imageRectangle($image, 50, 50, 150, 150, $blue);

regards,
thalis

--
No excellent soul is exempt from a mixture of madness.
-- Aristotle

On Mon, 2 Apr 2001, nicuc.ac.jp wrote:

 Hello
 
   I make change of your code by move some line to correct line and it's
 work.
 Here this a code
 
 ?PHP
 header("Content-type: image/png");
 $image= imagecreate(200,200) or die("Failed in call to
 imagecreate()BR\n");
 $blue = imageColorAllocate($image,0,0,255);
 imageRectangle($image, 50, 50, 150, 150, $blue);
 imagepng($image); //  I MOVE THIS LINE
 imagedestroy($image);
 ?
 
 Hope this will help.
 -Tuna-
 
 
 ""Thalis A. Kalfigopoulos"" [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Helloppl,
  I have php compiled with GD support (version1.8 so I have png support). I
 try the following code and get a broken image:
 
  ?php
  header("Content-type: image/png");
 
  $image= imagecreate(200,200) or die("Failed in call to
 imagecreate()BR\n");
  imagepng($image);
  $blue = imageColorAllocate($image,0,0,255);
  imageRectangle($image, 50, 50, 150, 150, $blue);
 
  imagedestroy($image);
  ?
 
  I get this error in the Apache error log (Apache with DSO support and php
 as a .so):
  gd-png:  fatal libpng error: Invalid number of colors in palette
  gd-png error: setjmp returns error condition
 
  Any ideas what's wrong?
 
  regards,
  thalis
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


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




RE: [PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-04-02 Thread James Moore

Rasmus,

please could you add *.chm to cvs wrappers please so the compiled helpfiles
in PHPWEB arnt corrupted anymore when they are added. I dont think my Karama
allows me to do this myself (I know you can cvs add -kb file.chm but
someones bound to forget to do so in the future).

Thanks

James

 -Original Message-
 From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
 Sent: 02 April 2001 15:57
 To: [EMAIL PROTECTED]
 Subject: [PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4


 rasmusMon Apr  2 07:57:11 2001 EDT

   Modified files:
 /CVSROOT  avail gen_acl_file.m4
   Log:
   Karma for Nick




-- 
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] Ming and flash detection

2001-04-02 Thread Chris Adams

On 2 Apr 2001 07:58:42 -0700, Jason Stechschulte [EMAIL PROTECTED] wrote:
// This movie simply redirects to the appropriate page.
$m-add(new SWFAction("getURL('$thisURL', ''); stop();"));

I added code to write $thisURL to a file so I could see if it is getting
passed correctly, and it is.  So there must be a problem with the movie
somewhere.  In the getURL() function, I have tried many different things
for the second argument.  _self, _parent, _top.  None of these makes any
difference.  Anyone have any ideas I could try??

Try _level0 - that's what you'd need to replace the current movie.

Alternately, you can avoid needing to load Flash at all - use JavaScript to
iterate over the plugins array on Netscape and use VBScript with an On Error
handler to instantiate the Flash ActiveX control - if it fails, your VBScript
can assume Flash isn't installed (which is the sane default).

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




RE: [PHP] Starting a Forum?!

2001-04-02 Thread James Moore


 Hi...

 I'm starting a forum, but I have one problem..

 1. Is there a easy way to ignore/don't take HTML/php tags inside a post..

 e.g someone echo's $mysql_password/username?
  or something else...

 include, require etc...

take a look at http://www.php.net/manual/en/function.htmlspecialchars.php
and http://www.php.net/manual/en/function.htmlentities.php

Cheers,

James


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




Re: [PHP] libpng error

2001-04-02 Thread Thalis A. Kalfigopoulos

On Mon, 2 Apr 2001, Thalis A. Kalfigopoulos wrote:

 Thank you very much, really appreciate it. But I have to admit that I have an 
example from a book in which he creates a gif (and not a png), where he doesn't 
actually have to allocate a color. He only has 3 lines which are supposed to work. 
Maybe true for gif, but cannot tell, since I don't have gif support.
 
 header("Content-type: image/gif");
 $image= imagecreate(200,200)l
 imageRectangle($image, 50, 50, 150, 150, $blue);

Sorry mistake. 3-line code of example was:

header("Content-type: image/gif");
$image= imagecreate(200,200);
imagegif($image);

cheers,
thalis

  
I make change of your code by move some line to correct line and it's
  work.
  Here this a code
  
  ?PHP
  header("Content-type: image/png");
  $image= imagecreate(200,200) or die("Failed in call to
  imagecreate()BR\n");
  $blue = imageColorAllocate($image,0,0,255);
  imageRectangle($image, 50, 50, 150, 150, $blue);
  imagepng($image); //  I MOVE THIS LINE
  imagedestroy($image);
  ?
  
  Hope this will help.
  -Tuna-


-- 
PHP General Mailing List (http://www.php.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] cvs: CVSROOT / cvswrappers

2001-04-02 Thread Rasmus Lerdorf

rasmus  Mon Apr  2 08:03:12 2001 EDT

  Modified files:  
/CVSROOTcvswrappers 
  Log:
  .chm files are binary
  
  
Index: CVSROOT/cvswrappers
diff -u CVSROOT/cvswrappers:1.3 CVSROOT/cvswrappers:1.4
--- CVSROOT/cvswrappers:1.3 Mon Mar  5 17:26:41 2001
+++ CVSROOT/cvswrappers Mon Apr  2 08:03:11 2001
@@ -1,5 +1,5 @@
 #
-#ident "@(#)cvs/examples:$Name:  $:$Id: cvswrappers,v 1.3 2001/03/06 01:26:41 andrei 
Exp $"
+#ident "@(#)cvs/examples:$Name:  $:$Id: cvswrappers,v 1.4 2001/04/02 15:03:11 rasmus 
+Exp $"
 #
 # This file describes wrappers and other binary files to CVS.
 #
@@ -49,3 +49,4 @@
 *.doc  -k 'b' -m 'COPY'
 *.lha  -k 'b' -m 'COPY'
 *.pdf  -k 'b' -m 'COPY'
+*.chm  -k 'b' -m 'COPY'



-- 
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-CVS] cvs: php4 / NEWS /ext/odbc php_odbc.c

2001-04-02 Thread Nick Gorham

lurcher Mon Apr  2 08:18:47 2001 EDT

  Modified files:  
/php4   NEWS 
/php4/ext/odbc  php_odbc.c 
  Log:
  
  Added small change to php_odbc module, to check for failed SQLDisconnects
  and to close any outstanding transactions if the call fails, then disconnect
  again. This can cause chaos with SQL Server, this regards a SELECT as 
  starting a transaction, and will leave it  open if the result set is not all
  read.
  
  
Index: php4/NEWS
diff -u php4/NEWS:1.625 php4/NEWS:1.626
--- php4/NEWS:1.625 Sun Apr  1 07:13:09 2001
+++ php4/NEWS   Mon Apr  2 08:18:46 2001
@@ -2,6 +2,9 @@
 |||
 
 ?? ??? 200?, Version 4.0.6
+- Added small change to php_odbc module, to check for failed SQLDisconnects
+  and to close any outstanding transactions if the call fails, then disconnect
+  again (lurcher)
 - Modified get_parent_class() and get_class_methods() to accept a class name as
   well as a class instance. (Andrei, Zend Engine)
 - Added support for UNC style paths. (\\server\share\file, //server/share/file)
Index: php4/ext/odbc/php_odbc.c
diff -u php4/ext/odbc/php_odbc.c:1.75 php4/ext/odbc/php_odbc.c:1.76
--- php4/ext/odbc/php_odbc.c:1.75   Tue Mar 27 07:46:27 2001
+++ php4/ext/odbc/php_odbc.cMon Apr  2 08:18:47 2001
@@ -18,7 +18,7 @@
+--+
  */
 
-/* $Id: php_odbc.c,v 1.75 2001/03/27 15:46:27 kalowsky Exp $ */
+/* $Id: php_odbc.c,v 1.76 2001/04/02 15:18:47 lurcher Exp $ */
 
 #include "php.h"
 #include "php_globals.h"
@@ -169,17 +169,29 @@
}
 }
 
+/*
+ * disconnect, and if it fails, then issue a rollback for any pending transaction 
+(lurcher)
+ */
+
+static void safe_odbc_disconnect( void *handle )
+{
+   int ret;
+
+   ret = SQLDisconnect( handle );
+   if ( ret == SQL_ERROR )
+   {
+   SQLTransact( NULL, handle, SQL_ROLLBACK );
+   SQLDisconnect( handle );
+   }
+}
+
 static void _close_odbc_conn(zend_rsrc_list_entry *rsrc)
 {
odbc_connection *conn = (odbc_connection *)rsrc-ptr;
-   /* FIXME
-* Closing a connection will fail if there are
-* pending transactions. It is in the responsibility
-* of the user to avoid this.
-*/
+
ODBCLS_FETCH();
 
-   SQLDisconnect(conn-hdbc);
+   safe_odbc_disconnect(conn-hdbc);
SQLFreeConnect(conn-hdbc);
SQLFreeEnv(conn-henv);
efree(conn);
@@ -191,7 +203,7 @@
odbc_connection *conn = (odbc_connection *)rsrc-ptr;
ODBCLS_FETCH();

-   SQLDisconnect(conn-hdbc);
+   safe_odbc_disconnect(conn-hdbc);
SQLFreeConnect(conn-hdbc);
SQLFreeEnv(conn-henv);
free(conn);
@@ -2092,7 +2104,7 @@
 
if(ret != SQL_SUCCESS){
zend_hash_del(EG(persistent_list), 
hashed_details, hashed_len + 1);
-   SQLDisconnect(db_conn-hdbc);
+   safe_odbc_disconnect(db_conn-hdbc);
SQLFreeConnect(db_conn-hdbc);
goto try_and_get_another_connection;
}



-- 
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] Can php read and than print file like it is

2001-04-02 Thread Jan Grafström

Hi!
I have a file with text on 17 rows and when I let php read it ,get
filezise and than print I only get the first row.
I want all rows exatly like it is in the file, is it possible?
My file:
html
head
title/title
/head
body
some rows here
/body
/html

Thanks in advance for all help I can get.

Regards
Jan


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




Re: [PHP] Can php read and than print file like it is

2001-04-02 Thread Steve Werby

"Jan Grafstrm" [EMAIL PROTECTED] wrote:
 I have a file with text on 17 rows and when I let php read it ,get
 filezise and than print I only get the first row.
 I want all rows exatly like it is in the file, is it possible?
 My file:
 html
 head

Yes, it's possible.  Post your code so we can see what you've tried.  I
suggest using fopen() and fgets() to accomplish what you want.  The first
example in the manual at http://www.php.net/manual/en/function.fgets.php
does exactly what you want.

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


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




[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/standard array.c

2001-04-02 Thread Andrei Zmievski

andrei  Mon Apr  2 09:12:07 2001 EDT

  Modified files:  (Branch: PHP_4_0_5)
/php4/ext/standard  array.c 
  Log:
  MFH
  
  
Index: php4/ext/standard/array.c
diff -u php4/ext/standard/array.c:1.101 php4/ext/standard/array.c:1.101.2.1
--- php4/ext/standard/array.c:1.101 Mon Mar 12 02:14:00 2001
+++ php4/ext/standard/array.c   Mon Apr  2 09:12:06 2001
@@ -21,7 +21,7 @@
+--+
 */
 
-/* $Id: array.c,v 1.101 2001/03/12 10:14:00 stas Exp $ */
+/* $Id: array.c,v 1.101.2.1 2001/04/02 16:12:06 andrei Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -2195,7 +2195,7 @@
switch (zend_hash_get_current_key_ex(target_hash, string_key, 
str_key_len, num_key, 1, pos)) {
case HASH_KEY_IS_STRING:
Z_STRVAL_P(data) = string_key;
-   Z_STRLEN_P(data) = str_key_len;
+   Z_STRLEN_P(data) = str_key_len-1;
Z_TYPE_P(data) = IS_STRING;
break;
case HASH_KEY_IS_LONG:



-- 
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] Programming Jobs - what I look for.

2001-04-02 Thread Michael Kimsal

Completely agreed.  We're quite casual about start/end times (not strict 9-5) and

if you need to take a long lunch to hit the doctor's office or something, that's
OK.
But we do expect people to pitch in long hours when the deadlines are on -
not often, but often enough that they matter.  I've been involved in too many
death-marches
myself to not want to go through that every week.


Chris Adams wrote:

 On 2 Apr 2001 06:49:02 -0700, Michael Kimsal [EMAIL PROTECTED] wrote:
 * Willingness to work weekends/evenings, if need be, to meet deadlines.

 With the requirement that this should only be a temporary thing and rewarded
 appropriately (preferably with time off after the deadline). If it's become a
 death-march, it's time to look for other work.

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

2001-04-02 Thread Marcelo Pereira

Hi all [again],

I'm becoming crazy installing PHP3 on my system I had already been using PHP but 
with no postgresql support, now I need it and I done:

get php3-3.0.18.tar.gz
untared it
./configure --with-pgsql
./make
./make install

The INSTALL file says to add
-LoadModules libphp3modules/libpgp3.so
WHERE is this file ???

I could NOT get it running,

Is there anyone here that could, for the love of god, help me to install it with pgsql 
support on my system ???

Thanks, really thanks, in advance,

Marcelo Pereira
Programmer



RE: [PHP] nl2br

2001-04-02 Thread Boget, Chris

 In PHP there is an instruction : nl2br .
 Does anybody know if there is something similar in Perl???

I think this syntax is correct...  it's been a while...

$string =~ /\\n/\br\/g

or something along those lines... :p

Chris



Re: [PHP] Programming Jobs - what I look for.

2001-04-02 Thread Mukul Sabharwal


--- Michael Kimsal [EMAIL PROTECTED] wrote:
 To follow up just a bit more, here are skills I
 would require of someone
 before hiring them:
 
 * Practical SQL knowledge, with hands-on experience
 of at least 6 months
 (with projects/URLs to show for it) with either
 MySQL, Postgres, MSSQL,
 Oracle, DB2 or another high-level DB system
 (preferably more
 than one, but we'll take just one).
 
 * At least 6 months of practical PHP knowledge -
 projects/URLs to
 show for it.
 
 * Ability to design/debug complex HTML tables, or
 create scripts to do the
 same. :)
 
 * Ability to talk me through at least 2 ways of
 solving a data manipulation
 problem, without code - whiteboard/paper/hand
 gestures and words only.
 You also need to be able to argue why one method is
 better over another.
 You don't have to be right, but you have to be able
 to justify your
 choices.
 
 * Understanding of HTTP, session management,
 cookies, etc.
 
 * More than a passing interest in new technologies,
 and how to apply
 your current skills to those new areas (wireless,
 etc.)
 
 * Willingness to work weekends/evenings, if need be,
 to meet deadlines.
 

Well what better opputunity is there to post your
resume link, an employer sitting right here (or
there), and not being considered as spam -:)

http://www.devhome.net/resume.txt

i've been working on php since hmm... quite some time,
maybe 2 years back or more, a hop from perl, never
looked back though. my resume does explain much of my
knowledge, so i'll let anyone interested go there :-)

well not many php jobs in india sadly -:(

my php projects have been diverse, but the only when
you'll be able to appreciate is http://www.devhome.net

a site i keep working on, and some of you even may
know of.

thanks


 There are some tech things above, and some
 personality things.
 I don't care too much if the projects people show me
 are personal
 or professional, as long as they get excited about
 some of those
 projects - either by talking about the skills they
 gained or mistakes
 they made, or about how these projects can be
 adapted to other
 situations.
 
 I'm not dogging you personally Jon - I don't even
 know you.  I'm just
 speaking as an employer in the web services field -
 these are the skills
 I generally look for in people.  :)  My guess is
 that others have similar
 criteria, but I may be way off base.
 
 
 
 Jon Jacob wrote:
 
  I hope this is not off topic, but I need to ask a
 general audience this
  question and this seems like the right group.
 
  I have been out of work for two months and I am
 not sure why.  I am a
  talented web programmer with three years
 experience, strong Perl,
  JavaScript, CGI, and HTML skills and a great work
 ethic.  I have been
  offered a job (which I turned down) but nothing
 desirable has come my
  way.  I know the economy is slow, but I am shocked
 that I am out of work
  for this long.  Are others experiencing this, or
 is it just me?
 
  I live in Portland, OR which is not the center of
 the tech universe but
  has strong tech companies nonetheless.  I am just
 confused and am
  wondering if it is something I am doing or
 something that is being done
  to me.  If the later, I can wait it out, but I
 just wanted to know if
  anyone in my silimiar situation was experiencing
 something the same and
  had any insight to share.
 
  I apologize for the vent, but it is starting to
 become frustrating and
  confusing.
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
 


=
To find out more about me : http://www.geocities.com/mimodit
My bookmarks are available @ http://mukul.free.fr

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text

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




RE: [PHP] VRML and PHP

2001-04-02 Thread Dominick Vansevenant

Since PHP comes from a preprocessor and you can create VRML Code with it, it
is
possible. Just set .vrml as your extension in the config file and implement
PHP tags.

Greetz,

Dominick

-Original Message-
From: Godd [mailto:[EMAIL PROTECTED]]
Sent: maandag 2 april 2001 18:59
To: [EMAIL PROTECTED]
Subject: [PHP] VRML and PHP


I was wondering if it is possible for you to develop a VRML page that
incorporates php to get the content that will be displayed??

I mean just the prospects of having a page the is "3D " and dynamic content
based is quite interesting to 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]



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




Re: [PHP] Can php read and than print file like it is

2001-04-02 Thread Steve Werby

"Jan Grafstrm" [EMAIL PROTECTED] wrote:
 Thank You Steve!
 Here is my php
 
 ?
  $fillista = "fillista.xml";
  $fp = @fopen($fillista,r);
  $count = fgets($fp,filesize($fillista));
  fclose($fp);
  print "fillista=".$count;
 ?

Your call to fgets() is only returning the first line of the input file.
Add the following line after it and $count will now have the first 2 lines:

$count .= fgets($fp,filesize($fillista));

If you construct your code to *loop* through the input file using fgets()
like the first example at http://www.php.net/manual/en/function.fgets.php
that I mentioned your problem will be solved.  Good luck!

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


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




[PHP] Why does it work this way?

2001-04-02 Thread Mark Roedel

-Original Message-
From: Boget, Chris [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 11:12 AM
To: Mark Roedel
Subject: RE: [PHP] Why does it work this way?


 Because "z"+1 turns out to be "aa" (which, if you ask me, 
 makes about as much sense as any of the alternatives), 

 How is it that "z" + 1 is "aa"?  What is PHP using behind the 
 scenes to get/generate this value? 

Let me start by correcting myself on a minor technicality.

"z"+1 turns out to be 1 (because "z" has an integer value of 0).  It's
"z"++ that turns out to be "aa".

Perhaps one of the core developers who has a better understanding of the
behind-the-scenes operations of PHP can elaborate on this, but what it
basically points out to me is that "incrementing" and "adding one"
aren't always the same thing.  I assume this behavior is tied closely to
what PHP determines the type of a variable at any given time to be.

If we take that as a starting point, then what I see happening is that,
for the purposes of incrementing, there are certain ranges defined
within PHP.  0-9 is one,  obviously.  a-z appears to be another.  If,
for the purposes of the increment operator only, you treat the letters
of the alphabet as a range of integers, then the result you're seeing
makes perfect sense.  You get to your highest digit, then go back to
zero and increment the next column.

The problem, in the "for" loop that we started out discussing, is that
there doesn't seem to be any way to make a comparison that follows those
same rules.  You can't treat them as integers, because "aa" and "z" have
the same integer-value -- zero.  Treating them as strings gives the
result we've already seen.

Other interesting sort-of-related notes:

While incrementing works (sort of) on strings, decrementing doesn't
appear to have any effect at all.

$test="z";
echo $test--;
echo $test;

results in "zz"

Incrementing only appears to work on strings within particular ranges of
characters.

$test="(";
echo $test++;
echo $test;

results in "(("


---
Mark Roedel   | "The most overlooked advantage to owning a
Systems Programmer|  computer is that if they foul up there's no
LeTourneau University |  law against whacking them around a little."
Longview, Texas, USA  |  -- Owen Porterfield 

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




Re: [PHP] Programming Jobs - what I look for.

2001-04-02 Thread Mukul Sabharwal

oops, a 404, well

try http://www.devhome.net/resume.txt in txt

and http://www.devhome.net/resume.doc in word!

:)

--- Mukul Sabharwal [EMAIL PROTECTED] wrote:
 
 --- Michael Kimsal [EMAIL PROTECTED] wrote:
  To follow up just a bit more, here are skills I
  would require of someone
  before hiring them:
  
  * Practical SQL knowledge, with hands-on
 experience
  of at least 6 months
  (with projects/URLs to show for it) with either
  MySQL, Postgres, MSSQL,
  Oracle, DB2 or another high-level DB system
  (preferably more
  than one, but we'll take just one).
  
  * At least 6 months of practical PHP knowledge -
  projects/URLs to
  show for it.
  
  * Ability to design/debug complex HTML tables, or
  create scripts to do the
  same. :)
  
  * Ability to talk me through at least 2 ways of
  solving a data manipulation
  problem, without code - whiteboard/paper/hand
  gestures and words only.
  You also need to be able to argue why one method
 is
  better over another.
  You don't have to be right, but you have to be
 able
  to justify your
  choices.
  
  * Understanding of HTTP, session management,
  cookies, etc.
  
  * More than a passing interest in new
 technologies,
  and how to apply
  your current skills to those new areas (wireless,
  etc.)
  
  * Willingness to work weekends/evenings, if need
 be,
  to meet deadlines.
  
 
 Well what better opputunity is there to post your
 resume link, an employer sitting right here (or
 there), and not being considered as spam -:)
 
 http://www.devhome.net/resume.txt
 
 i've been working on php since hmm... quite some
 time,
 maybe 2 years back or more, a hop from perl, never
 looked back though. my resume does explain much of
 my
 knowledge, so i'll let anyone interested go there
 :-)
 
 well not many php jobs in india sadly -:(
 
 my php projects have been diverse, but the only when
 you'll be able to appreciate is
 http://www.devhome.net
 
 a site i keep working on, and some of you even may
 know of.
 
 thanks
 
 
  There are some tech things above, and some
  personality things.
  I don't care too much if the projects people show
 me
  are personal
  or professional, as long as they get excited about
  some of those
  projects - either by talking about the skills they
  gained or mistakes
  they made, or about how these projects can be
  adapted to other
  situations.
  
  I'm not dogging you personally Jon - I don't even
  know you.  I'm just
  speaking as an employer in the web services field
 -
  these are the skills
  I generally look for in people.  :)  My guess is
  that others have similar
  criteria, but I may be way off base.
  
  
  
  Jon Jacob wrote:
  
   I hope this is not off topic, but I need to ask
 a
  general audience this
   question and this seems like the right group.
  
   I have been out of work for two months and I am
  not sure why.  I am a
   talented web programmer with three years
  experience, strong Perl,
   JavaScript, CGI, and HTML skills and a great
 work
  ethic.  I have been
   offered a job (which I turned down) but nothing
  desirable has come my
   way.  I know the economy is slow, but I am
 shocked
  that I am out of work
   for this long.  Are others experiencing this, or
  is it just me?
  
   I live in Portland, OR which is not the center
 of
  the tech universe but
   has strong tech companies nonetheless.  I am
 just
  confused and am
   wondering if it is something I am doing or
  something that is being done
   to me.  If the later, I can wait it out, but I
  just wanted to know if
   anyone in my silimiar situation was experiencing
  something the same and
   had any insight to share.
  
   I apologize for the vent, but it is starting to
  become frustrating and
   confusing.
  
  
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  To contact the list administrators, e-mail:
  [EMAIL PROTECTED]
  
 
 
 =
 To find out more about me :
 http://www.geocities.com/mimodit
 My bookmarks are available @ http://mukul.free.fr
 
 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail. 
 http://personal.mail.yahoo.com/?.refer=text
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
 


=
To find out more about me : http://www.geocities.com/mimodit
My bookmarks are available @ http://mukul.free.fr

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text

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




Re: [PHP] Looping through the alphabet [was: Why does it work this way?]

2001-04-02 Thread Steve Werby

"Boget, Chris" [EMAIL PROTECTED] wrote:
 for( $i = "a"; $i = "z"; $i++ ) {
 }

 Not entirely too sure why, but the above works.  And
 it's really cool that it does. :)
 However, it doesn't work as one would expect (aside

You may know this already and not have a need, but for the benefit of others
who may have read your post, you can loop through 'a' to 'z' using the chr()
function as follows:

?php
for ( $i = 97; $i = 122; $i++ )
{
echo chr( $i );
}
?

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


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




[PHP] freetype info required

2001-04-02 Thread Robert Vetter

Could someone please supply me with a little information about freetype
fonts concerning the following points of interest:
1/ A good description of what it actually is.
2/ How to actually use it in a practical sense hopefully in conjunction
with php.
3/ Supply of some small code snippets showing real world examples.
4/ Any freetype library functions.

I thank you all in advance for any help that you can grtant to me.

Joe :)

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




[PHP] Check whether I have php installed as cgi or api???

2001-04-02 Thread Brandon Orther

Hello,

Can I check to see if cgi is installed as a cgi or an api?  What does PHP
embedded mean?

thanXor
Brandon


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




[PHP] how do I turn off error checking in foreach() ?

2001-04-02 Thread Chris Lee

here is my code, If select_array() does not find anything it will not return anything, 
foreach() requires an array. I rtied putting an @ inforn of $database- but this didnt 
work (didnt think it would) and I cant put in fron of the foreach() I get a parse 
error.

   foreach($database-select_array('', 'orders, orders_product', $query) as $pos = 
$orders)
   {
...
}


-- 

 Chris Lee
 [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] scheduler

2001-04-02 Thread Michael Roark

Does anyone have any code which creates schedules? Like to create a works 
schedule or a league schedule (baseball, softball that sort of thing)



-Micahel


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




[PHP] Reading PHP.INI not from C:\WINNT

2001-04-02 Thread Diego Fulgueira

Hi!
I can't make php.exe to read the configuration file, php.ini, from another
path different from c:\winnt\. This location seems to be the default, but I
want to change it to any other.

I tried erasing php.ini from C:\winnt\ and I thought php.exe would read the
php.ini siting next to it (in the same directory), but it didn't. It sees
php.exe just doesn't read ANY php.ini if it does not find it in c:\winnt\.

This problem is important for me because I want to work with different
configuration files for each of my sites.

Any clue?

Thanks a lot.
Cheers.
Diego.


-- 
PHP General Mailing List (http://www.php.net/)
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 do I turn off error checking in foreach() ?

2001-04-02 Thread Lindsay Adams

$database is the object.
Select_array() is the function in the class, so...
Try putting it in front of select_array()
I don't know if this will work, but this is where I would think to put it.

$database-@select_array()

Let me know if it works.


On 4/2/01 8:15 AM, "Chris Lee" [EMAIL PROTECTED] wrote:

 here is my code, If select_array() does not find anything it will not return
 anything, foreach() requires an array. I rtied putting an @ inforn of
 $database- but this didnt work (didnt think it would) and I cant put in fron
 of the foreach() I get a parse error.
 
  foreach($database-select_array('', 'orders, orders_product', $query) as $pos
 = $orders)
  {
   ...
   }
 


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




RE: [PHP] VRML and PHP

2001-04-02 Thread James Moore


 
 Since PHP comes from a preprocessor and you can create VRML Code 
 with it, it
 is
 possible. Just set .vrml as your extension in the config file and 
 implement
 PHP tags.

Yep totally...

James

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




[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/standard output.c

2001-04-02 Thread Anil Madhavapeddy

avsmMon Apr  2 09:48:29 2001 EDT

  Modified files:  (Branch: PHP_4_0_5)
/php4/ext/standard  output.c 
  Log:
  MFH, rev 1.53
  
  
Index: php4/ext/standard/output.c
diff -u php4/ext/standard/output.c:1.48.2.2 php4/ext/standard/output.c:1.48.2.3
--- php4/ext/standard/output.c:1.48.2.2 Sat Mar 31 14:54:07 2001
+++ php4/ext/standard/output.c  Mon Apr  2 09:48:29 2001
@@ -17,7 +17,7 @@
+--+
 */
 
-/* $Id: output.c,v 1.48.2.2 2001/03/31 22:54:07 zeev Exp $ */
+/* $Id: output.c,v 1.48.2.3 2001/04/02 16:48:29 avsm Exp $ */
 
 #include "php.h"
 #include "ext/standard/head.h"
@@ -214,6 +214,7 @@
zend_stack_destroy(OG(ob_buffers));
}
}
+   OG(nesting_level)--;
}
 
if (send_buffer) {
@@ -226,8 +227,6 @@
 
if (!just_flush) {
efree(to_be_destroyed_buffer);
-
-   OG(nesting_level)--;
} else {
OG(active_ob_buffer).text_length = 0;
OG(active_ob_buffer).status |= PHP_OUTPUT_HANDLER_START;



-- 
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] FLASH AND PHP

2001-04-02 Thread Godd

Now VRML and PHP may be possible but if you can get Flash to get in the mix
that will be so bad.

What I really want to do is to get a flash file that will use the pictures
that I send to it via php and let it use that picture to do the animation.

Now what I am looking at is a flash file that displays info on a product.
now given the picture of the product and the information on the product, I
want flash to use that info with the events that I will place in the flash
file and let it do its thing.

now that will be good. I am not sure what macromedia has along this line.



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




[PHP] joining tables and getting results in php query

2001-04-02 Thread Publications

I would like to be able to type in the username, select a change option and
then update a table that does not contain the username.
auth_user - contains user_id and username
userinfo - contains user_id and the field I want to update

What do I need to do fix this code?

 if ($userinfo) {
  if ($submit=='Unsubscribe') {
 $mail_list='N';
  } else {
 $mail_list='B';
  }
  $res=mysql_result("select user_id from auth_user where
username='$username'"); //how do I get this to relate to my next query?
  $res=mysql_query("replace into userinfo values
('$user_id','$mail_list')",$dbe);
  if ($res) {
 print "Email: $username ($mail_list)br\n";
  } else {
 print "Problems adding email to unsubscribe list: ";
 print mysql_error()."br\n";
  }
   }

   print "form action=\"dontEmail.php\" method=get\n";
   $sess-hidden_session();
   print "Email Address: ";
   print "input type=text size=30 maxlength=100 name=\"username\"\n";
   print "input type=submit name=\"submit\" value=\"Bad Email Address\"
\n";
   print "input type=submit name=\"submit\" value=\"Unsubscribe\"br\n";
   print "/form\n";


Thank you

Duffy Betterton
Director of Publications
[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] drop-down menu variables

2001-04-02 Thread Joao Monteiro

when i edit variables with a form the ones wich are simple text get
corrected ok, but the ones chosen from drop-down menus only get added to
existing variables...
what am i doing wrong?

Thanx

Joao Monteiro



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




Re: [PHP] scheduler

2001-04-02 Thread Rick St Jean

check out

www.ileaguemanager.com

At 12:12 PM 4/2/01 -0500, Michael Roark wrote:
Does anyone have any code which creates schedules? Like to create a works 
schedule or a league schedule (baseball, softball that sort of thing)



-Micahel


--
PHP General Mailing List (http://www.php.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] duplicate a table

2001-04-02 Thread McShen


how do i duplicate a table?
i tried
create table refer2 select * from refer;
create table refer2 as select * from refer;

they didn't work.
my mysql version is  mysql 3.22.28,



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




[PHP] cookies

2001-04-02 Thread Louis Brooks

Okay, I have tried every example in the PHP Essentials book and on the 
php.net site that I can find on setting cookies using php3. Is there a 
problem with Netscape 4.x and setting cookies or is there something I have 
missed in setting up setcookie()?

Here is the code I am using:

?php
setcookie("testcookie", "testvalue", time()+14400, "/", ".callook.org");
?
html
head

I do not get any errors, it just does not set a cookie. Any help would be 
greatly appreciated.

Thanks,

Louis 


Re: [PHP] scheduler

2001-04-02 Thread Michael Roark

While this would work. Its a service for which you pay. I was looking for a 
code snippet.

At 02:56 PM 4/2/2001 -0400, Rick St Jean wrote:
check out

www.ileaguemanager.com

At 12:12 PM 4/2/01 -0500, Michael Roark wrote:
Does anyone have any code which creates schedules? Like to create a works 
schedule or a league schedule (baseball, softball that sort of thing)



-Micahel


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




  1   2   >