Re: [PHP] Strange Parser error

2001-02-01 Thread Ben Peter

Phil,

posting the scrpit would be good, it's hard to say anything without
having seen it.

Ben

Phil Daintree wrote:
> 
> I have been working on a script and come to a brick wall which I can't break...
> 
> I am using Suse Linux 2.2 kernel, PHP4.04pl1 Mysql 3.22  Mod_ssl open_ssl - this is
> running on an old 486 with 16Meg RAM.
> 
> I have a session object variable ($Items) which has as one of its elements 
>($LineItems) an
> array of objects each containing the order line details. This script is to insert the
> records to process a dispatch into an invoice.
> I lock (all the tables I need to lock) before going into a loop through all the
> $Items->LineItems and then a whole raft of SQL inserts and updates using the same 
>$SQL
> variable to hold the SQL and $Result variable to hold the result in each case.
> 
> The problem is that I get a parser error when the sript within the foreach
> ($Items->LineItems as OrderLine) loop
>  gets too big when I remove the last block of code the pasrser error which was 
>occurring
> at a line before the deleted code dissappears and the script works (as far as it 
>goes).
> Add in a few more lines within the loop and the parser error comes back but further 
>up in
> the code that was previously working ok - and has not been changed!!
> 
> The script is not huge line 343 -  385 is where the parser is falling over .
> 
> Has any one hit this snag. I can post the script if this pricks anyones interest!
> 
> TIA
> Phil Daintree
> 
> --
> PHP General Mailing List (http://www.php.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] Dynamic Variable Creation from Forms

2001-02-01 Thread Nuno Silva

[ rswfire ] wrote:

> I have a problem I'm not sure how to fix.
> 
> PART I
> 
> I have a form on a page that creates its variables dynamically.  
> Here's an example:
> 
> mysql_db_query($db, "SELECT * FROM table");
> while ($row = mysql_fetch_array($result))
> {
> 
>  echo "";
> 
> }
> 
> PART II
> 
> I need to make reference to these dynamically created variables.  How 
> do I do this?  This does not work, obviously:
> 
> $chk_.$row["checkboxtype"]
> 
> Thanks in advance...
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> 
> 
$temp = "chk_$row";
echo $$temp["checkboxtype"];

the trick is $$var_name ;)

have fun,
Nuno




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

2001-02-01 Thread PHPBeginner.com



 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.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] RE: test ... please ignore ...

2001-02-01 Thread Navid

Thank you very much, I will look forward to this. This may be just what I
was looking for, a complete beginner's tutorial for PHP. Congrats and good
luck with the opening night.

Sincerely,
Navid

-Original Message-
From: PHPBeginner.com [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 2:31 AM
To: PHP
Subject: [PHP] RE: test ... please ignore ...




 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.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] newlines in boxes..

2001-02-01 Thread James Smith

Alright, on my site, I have a news section, whenever i
goto insert new news in the Admin area, I have to
insert  or /n in it, while typing in the news. 
How do I make this a automated process I know it can
be done, but addslashes doesn't work and
htmlspecailchars() doesn't work what will?  

Thanks,

James

__
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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




[PHP] Win2K/PHP4.0.4pl1 - include_path mess (won't include from the current directory)

2001-02-01 Thread PHPBeginner.com

Hello guys,

I have the following problem:

in my PHP.ini (which stays under c:\WINNT) I have

include_path= "P:\includes; "  ; UNIX: "/path1:/path2"
Windows: "\path1;\path2"
doc_root=   ; the root of the php 
pages, used only if nonempty

under "P:\includes" are PHPLIB and some few scripts that I need to
auto_prepend under all the roots on my local server.



PHPLIB is being included properly, but, if I try to include a file within a
current directory like:

include ("header.inc");

I get the following error:

Warning: Failed opening 'header.inc' for inclusion
(include_path='P:\includes; ') in p:\phpbeginner\index.html on line 17

(NOTE: include ("$DOCUMENT_ROOT/header.inc"); will work perfectly )

I know that on Linux to fix the problem would be enough to add something
like this into PHP.INI

include_path= ".: /full/path/to/includes: "  ; UNIX:
"/path1:/path2"  Windows: "\path1;\path2"

How do I do this under Win2K ?

Anyone had this problem before?

Cheers,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.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] connecting to AS400 DB2

2001-02-01 Thread szii

To connect to an AS400, you MUST HAVE THE DRDA package installed.
Then you just run the Unified ODBC as usual (which still don't use ODBC but
translate to DB2 CLI under the covers.)

Look for the DRDA stuff in the DB2 Connect area/CD-ROM.

There's stuff on phpbuilder.com about it too.

-Szii


At 01:33 PM 1/31/2001 -0500, Conover, Ryan wrote:
>I was wondering if anyone as successfully pulled info from a DB2 Database on
>As400. My enviroment is
>Win2K server/php4.0.4/ZendOptimizer/IIS5. I was wondering how I could
>directly query the AS400. Or would it be wiser to pull the info from the
>AS400 into MSSQL Server.  I was wondering how I would do either of these
>options.
>
>
>Ryan Conover
>
>-- 
>PHP General Mailing List (http://www.php.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] Pricing for PHP programming???

2001-02-01 Thread mwaples

Shane McBride wrote:
> 
> I know this is not really a PHP question, but it should make for a good thread. :)
> 
> I was wondering what other PHP people charge to write PHP? I have just been given a 
>project for a fairly large customer, much larger than I normally do work for. So I am 
>VERY confused.concerned about how to price it. Most of my other PHP projects have 
>been done for small single owners businesses, and the PHP has been pretty basic.
> 
> Now that I can actually do what I am being asked without have to learn it, I am 
>stuck. I did a shopping cart for someone, but I didn't charge them a REAL price 
>because I didn't know how to do it with PHP. So, I of course didn't charge the client 
>for my learning curve.
> 
> I know the price is very dependant upon the task. What I am doing is creating a 
>web-based front-end for a MySQL database. I'll need to create the database tables, 
>etc. The front-end is going to be rather dynamic since the data content depends 
>largely on the previous choices of the end-user. One or two tables with 20-30 fields. 
>5-6 pages of html and PHP.
> 
> I'm just scouting this out, and am VERY confident with the contributors to this list 
>and their opinions.
> 
> TIA,
> Shane

Just an observation from some people I know in the USA - they charge
whatever they can get away with.
How about honestly charging what you think you are worth ? 
Knowing how to use php means nothing - but if you know it well you will
be worth a lot.

-- 
PHP General Mailing List (http://www.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] Why sprintf for query?

2001-02-01 Thread Ben Peter

Karl,

where is the first line from? it's pretty useless overhead. 

$q = 'SELECT prodnum, childdesc FROM prodaval' would be second fastest
(the string is now parsed as it is in single quotes).

fastest would be to directly feed the statement to the query function
(e.g. mysql_query) instead of storing it in a variable before.

Cheers,
Ben

"Karl J. Stubsjoen" wrote:
> 
> Sprintf formats strings and numbers to a specific format (correct?) then why
> is this
> 
> $q = SPRINTF("SELECT prodnum, childdesc FROM prodaval");
> 
> like that?  Why SPRINTF in this case?  We are calling a MySQL table, is it
> specific to calling a MySQL table or is this required for all calls to a
> DB... or (simply) could it be written like this
> 
> $q = "SELECT prodnum, childdesc FROM prodaval";
> 
> 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] Re-Creation of Objects in sessions

2001-02-01 Thread Thomas Stinner

Hello together,

if you currently use sessions and register objects inside of a session
it is necessary to include the class definition of such object in every
php page to be able to access the contents of such object.

This is problematic if you have a system where the main php page does
not know everything about the functions it is using. 

For example we have a lot of functions that do some specific tasks and
require to store an object inside the session. However, the main php
page (where the session_start() is in) doesn't know anything about it.

On the next page our function is only able to access the data that was
inside the object und the name of the class that is used by the object. 

So, theoretically it would be possible to load the class definition now
and make the object useable. 

Is there any mechanism we can use to take the, now existing, class
definition and the incomplete PHP Object to create a real, useable PHP
Object?


-- 
Till soon,
 Thomas Stinner
billiton internet services GmbH

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




Re: [PHP] Cobalt Raq Servers & PHP

2001-02-01 Thread WreckRman2

I currently have a dedicated RaQ3 server which runs PHP great. Before I got
the RaQ3 my host provider was using a RaQ4 which also ran great. No problems
on my end using the RaQ servers and PHP.

David Smith

- Original Message -
From: Jamie Thompson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 31, 2001 12:13 PM
Subject: [PHP] Cobalt Raq Servers & PHP


> Has anyone had any experience using php on a Cobalt Raq4 server? any bugs
or
> weird stuff i should know about?
>
> --
> There are more than 1,000 chemicals in a cup of coffee.
>   Of these, only 26 have been tested,
>   and half caused cancer in rats.
>
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




[PHP] Directory Listing with PHP

2001-02-01 Thread Chris Aitken



(Damn I hate it when I forget to change the subject)


Does anyone have, or know of a script which simulates what Apache gives out 
when it shows the entire contents of a directory ?

I find it very handy to use the directory listing of say graphics 
directories and the like, but I dont want others looking into them.

What I thought would be a good system is to have an index.php file which 
asks for a password. If the password is accepted, it shoots them off to a 
php script which displays the contents of the DIR just as apache would.

This way I can bar viewing of the directories contents, only viewable to 
the owners of the password.


Ive seen a couple of scripts which claim to show the directory listing, but 
none of them seem to work any good with a decent layout and amount of file 
info. So im looking for a script which can display the listing properly. 
Does one exist, or am I just relieving myself into the wind ?


Thanks

Chris

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

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


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




Re: [PHP] E-mail valid

2001-02-01 Thread Chris Aitken



Does anyone have, or know of a script which simulates what Apache gives out 
when it shows the entire contents of a directory ?

I find it very handy to use the directory listing of say graphics 
directories and the like, but I dont want others looking into them.

What I thought would be a good system is to have an index.php file which 
asks for a password. If the password is accepted, it shoots them off to a 
php script which displays the contents of the DIR just as apache would.

This way I can bar viewing of the directories contents, only viewable to 
the owners of the password.


Ive seen a couple of scripts which claim to show the directory listing, but 
none of them seem to work any good with a decent layout and amount of file 
info. So im looking for a script which can display the listing properly. 
Does one exist, or am I just relieving myself into the wind ?


Thanks

Chris

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

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


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




[PHP-CVS] cvs: php4 / NEWS /ext/pcre php_pcre.c php_pcre.h

2001-02-01 Thread Andrei Zmievski

andrei  Wed Jan 31 21:04:59 2001 EDT

  Modified files:  
/php4   NEWS 
/php4/ext/pcre  php_pcre.c php_pcre.h 
  Log:
  Modified /F handling to allow calling object methods.
  
  

Index: php4/NEWS
diff -u php4/NEWS:1.575 php4/NEWS:1.576
--- php4/NEWS:1.575 Wed Jan 31 18:09:08 2001
+++ php4/NEWS   Wed Jan 31 21:04:58 2001
@@ -2,13 +2,16 @@
 |||
 
 ?? ??? 200?, Version 4.0.5
+- Improved handling of preg_replace() /F modifier so that it's possible to
+  specify array($obj, 'method') construct as a replacement function. (Andrei)
 - Added mysql_get_client_info(), mysql_get_server_info(),
   mysql_get_proto_info(), and mysql_get_host_info() functions. (Sean)
-- Added search cache and track query features.
+- Added search cache and track query features to mnogosearch extension.
+  (Sergey K)
 - Major change of the php pdf api. It could break some functions though
   backwards compatibility was tried to maintain. Adding some still
   missing functions as well. (Uwe)
-- mnoGoSearch extension module initial version has been added.
+- mnoGoSearch extension module initial version has been added. (Sergey K)
   This module currently at the alpha state, but it can be used already.
 - Allow url encoding in DB usernames and passwords (Stig, PEAR)
 - Added raiseError and setErrorHandling methods to PEAR class (Stig, PEAR)
Index: php4/ext/pcre/php_pcre.c
diff -u php4/ext/pcre/php_pcre.c:1.81 php4/ext/pcre/php_pcre.c:1.82
--- php4/ext/pcre/php_pcre.c:1.81   Mon Jan 22 14:05:04 2001
+++ php4/ext/pcre/php_pcre.cWed Jan 31 21:04:58 2001
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: php_pcre.c,v 1.81 2001/01/22 22:05:04 andrei Exp $ */
+/* $Id: php_pcre.c,v 1.82 2001/02/01 05:04:58 andrei Exp $ */
 
 /*
TODO:
@@ -561,32 +561,28 @@
return 1;   
 }
 
-static int preg_do_repl_func(char *function_name, char *subject, int *offsets, int 
count, char **result)
+static int preg_do_repl_func(zval *function, char *subject, int *offsets, int count, 
+char **result)
 {
zval*retval_ptr;/* Function return value */
-   zval function;  /* Function to call */
-   zval*function_ptr = &function;  /* Pointer to function 
to call */
zval   **args[1];   /* Argument to pass to function */
zval*subpats;   /* Captured subpatterns */ 
int  result_len;/* Return value length */
int  i;
CLS_FETCH();
 
-   ZVAL_STRING(function_ptr, function_name, 0);
-
MAKE_STD_ZVAL(subpats);
array_init(subpats);
for (i = 0; i < count; i++)
add_next_index_stringl(subpats, &subject[offsets[i<<1]], 
offsets[(i<<1)+1] - offsets[i<<1], 1);
args[0] = &subpats;
 
-   if (call_user_function_ex(CG(function_table), NULL, function_ptr, &retval_ptr, 
1, args, 0, NULL) == SUCCESS && retval_ptr) {
+   if (call_user_function_ex(EG(function_table), NULL, function, &retval_ptr, 1, 
+args, 0, NULL) == SUCCESS && retval_ptr) {
convert_to_string_ex(&retval_ptr);
*result = estrndup(Z_STRVAL_P(retval_ptr), Z_STRLEN_P(retval_ptr));
result_len = Z_STRLEN_P(retval_ptr);
zval_ptr_dtor(&retval_ptr);
} else {
-   php_error(E_WARNING, "Unable to call custom replacement function 
%s()", function_name);
+   php_error(E_WARNING, "Unable to call custom replacement function");
result_len = offsets[1] - offsets[0];
*result = estrndup(&subject[offsets[0]], result_len);
}
@@ -693,8 +689,7 @@
 
 char *php_pcre_replace(char *regex,   int regex_len,
   char *subject, int subject_len,
-  char *replace, int replace_len,
-  int  *result_len, int limit)
+  zval *replace_val, int *result_len, int 
+limit)
 {
pcre*re = NULL; /* Compiled regular 
expression */
pcre_extra  *extra = NULL;  /* Holds results of studying */
@@ -714,7 +709,9 @@
   a 
function to get the replacement string */
int  start_offset;  /* Where the new 
search starts */
int  g_notempty = 0;/* If the match should 
not be empty */
+   int  replace_len;   /* Length of 
+replacement string */
char*result,/* Result of 
replacement */
+

RE: [PHP] Pricing for PHP programming???

2001-02-01 Thread Jonathan Sharp

I find this an interesting topic...

One thing that we've found when looking for additional PHP programmers to
add is that since PHP has exploded there are a lot of people out there
coding in PHP that don't have a background in programming or some of the
design considerations. We've looked at various places from techies.com to
guru.com and haven't found that many PHP gurus out there. So in terms of
skill level, what do you all see the going rate? I know I'm currently
underpaid at $25/hour and I do ALL the PHP programming, project management,
engineering, database theory etc...oh...and did I mention I do all the
network support too? (I'm taking my CCNA in June...) so yeah...we're a
starup what did you expect?! =)

Comments?

Disclaimer: I don't mean to offend anyone out there who codes in PHP. But
from the experience that I've had trying to find someone who can really code
clean, effecient stuff that plugs into the whole picture has been virtually
non-existent...(if you do, please call! We have a few openings!)

Thanks,
-Jonathan Sharp

Director of Technology - Imprev Inc.
Renwick Development Group - Flyerware
http://www.flyerware.com/
Phone: (425)688-9200
Cell: (425)766-1398

-Original Message-
From: Philip Olson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 5:40 PM
To: Shane McBride
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Pricing for PHP programming???



Hey Shane,

This is a tricky issue, here's me (USD):

  $60/hr
  $30/hr if end result becomes open sourced (no strings)

General discounts for features such as : fun,true non-profit,intelligent
employer,learning curve and it all lives on a sliding scale depending on
their ability to pay and my desire for work/money (time).  Also, barter
is usually an option.  Usually hovers between 30-50 and one day this will
go up :-)  This is the most difficult part of the job, time estimates
and pricing.  Bah.  "Just give me money and I'll do stuff."

Regards,

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


> On Wed, Jan 31, 2001 at 03:25:27PM -0500, Shane McBride wrote:
> I know this is not really a PHP question, but it should make for a good
> thread. :)
>
> I was wondering what other PHP people charge to write PHP? I have just
> been given a project for a fairly large customer, much larger than I
> normally do work for. So I am VERY confused.concerned about how to price
> it. Most of my other PHP projects have been done for small single owners
> businesses, and the PHP has been pretty basic.
>
> Now that I can actually do what I am being asked without have to learn
> it, I am stuck. I did a shopping cart for someone, but I didn't charge
> them a REAL price because I didn't know how to do it with PHP. So, I of
> course didn't charge the client for my learning curve.
>
> I know the price is very dependant upon the task. What I am doing is
> creating a web-based front-end for a MySQL database. I'll need to create
> the database tables, etc. The front-end is going to be rather dynamic
> since the data content depends largely on the previous choices of the
> end-user. One or two tables with 20-30 fields. 5-6 pages of html and
> PHP.
>
> I'm just scouting this out, and am VERY confident with the contributors
> to this list and their opinions.
>
> TIA,
> Shane


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

2001-02-01 Thread Philip Olson


Hey Shane,

This is a tricky issue, here's me (USD):

  $60/hr
  $30/hr if end result becomes open sourced (no strings)

General discounts for features such as : fun,true non-profit,intelligent
employer,learning curve and it all lives on a sliding scale depending on
their ability to pay and my desire for work/money (time).  Also, barter 
is usually an option.  Usually hovers between 30-50 and one day this will
go up :-)  This is the most difficult part of the job, time estimates
and pricing.  Bah.  "Just give me money and I'll do stuff." 

Regards,

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


> On Wed, Jan 31, 2001 at 03:25:27PM -0500, Shane McBride wrote:
> I know this is not really a PHP question, but it should make for a good
> thread. :) 
> 
> I was wondering what other PHP people charge to write PHP? I have just
> been given a project for a fairly large customer, much larger than I
> normally do work for. So I am VERY confused.concerned about how to price
> it. Most of my other PHP projects have been done for small single owners
> businesses, and the PHP has been pretty basic.
> 
> Now that I can actually do what I am being asked without have to learn
> it, I am stuck. I did a shopping cart for someone, but I didn't charge
> them a REAL price because I didn't know how to do it with PHP. So, I of
> course didn't charge the client for my learning curve.   
> 
> I know the price is very dependant upon the task. What I am doing is
> creating a web-based front-end for a MySQL database. I'll need to create
> the database tables, etc. The front-end is going to be rather dynamic
> since the data content depends largely on the previous choices of the
> end-user. One or two tables with 20-30 fields. 5-6 pages of html and
> PHP. 
> 
> I'm just scouting this out, and am VERY confident with the contributors
> to this list and their opinions.  
> 
> TIA,
> Shane


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

2001-02-01 Thread Sean Cazzell

> Does anyone have a function that tells you weather a variable holds a valid
> e-mail address or not?

It depends on what you mean by "valid email address".  For example, I can
enter "[EMAIL PROTECTED]" which looks valid, but doesn't exist.  You can
take things a step further and lookup the domain and make sure it
exists.  Even then, I can enter "[EMAIL PROTECTED]" which will pass the
lookup check.  You can go even further and send me an email message with a
"key" which I must enter in order to prove that the email address I gave
is valid.  Even so, it is easy to create a throw-away account at hotmail
or another free email provider.

Anyway, there is a class on phpclasses.upperdesign.com that does a good
job of checking an address.


Regards,

Sean Cazzell


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

2001-02-01 Thread Stephen Edberg

On Thu, 1 Feb 2001, Josh G wrote:

> http://www.php.net/quickref.php is probably the best you'll get. no 
> descriptions, but it _is_ a list of all the functions.
> 
> Gfunk -  http://www.gfunk007.com/
>

See:
http://zugeschaut-und-mitgebaut.de/php/

-steve

 
> - Original Message - 
> From: "Jerry Lake" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, February 01, 2001 10:45 AM
> Subject: [PHP] function list
> 
> 
> > Is there somewhere I can get a list
> > of all the php functions and a brief
> > description, instead of the full manual
> > like a cheat sheet of sorts
> > 
> > Jerry Lake
 

...
. Steve Edberg   [EMAIL PROTECTED] .
. Computer Consultant University of California, Davis .
. http://aesric.ucdavis.edu/   http://pgfsun.ucdavis.edu/ .
...



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




[PHP] Formatting/Financial

2001-02-01 Thread [ rswfire ]

Is there a simple way to format a variable into an appropriate financial 
string...

5.0
5.4
4.346

I'd like all of the above to format as $XXX.XX


_
Get your FREE download of MSN Explorer at http://explorer.msn.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] Formatting/Financial

2001-02-01 Thread Josh G

number_format($number,2);

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
  

- Original Message - 
From: "[ rswfire ]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 12:33 PM
Subject: [PHP] Formatting/Financial


> Is there a simple way to format a variable into an appropriate financial 
> string...
> 
> 5.0
> 5.4
> 4.346
> 
> I'd like all of the above to format as $XXX.XX
> 
> 
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.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-CVS] cvs: php4 /ext/mysql php_mysql.c

2001-02-01 Thread Stig Bakken

ssb Thu Feb  1 01:36:52 2001 EDT

  Modified files:  
/php4/ext/mysql php_mysql.c 
  Log:
  did someone poop in the code? :-)
  
  
Index: php4/ext/mysql/php_mysql.c
diff -u php4/ext/mysql/php_mysql.c:1.68 php4/ext/mysql/php_mysql.c:1.69
--- php4/ext/mysql/php_mysql.c:1.68 Wed Jan 31 15:35:37 2001
+++ php4/ext/mysql/php_mysql.c  Thu Feb  1 01:36:52 2001
@@ -1,4 +1,4 @@
-3/*
+/*
+--+
| PHP version 4.0  |
+--+
@@ -16,7 +16,7 @@
+--+
 */
  
-/* $Id: php_mysql.c,v 1.68 2001/01/31 23:35:37 eschmid Exp $ */
+/* $Id: php_mysql.c,v 1.69 2001/02/01 09:36:52 ssb Exp $ */
 
 
 /* TODO:



-- 
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] File Download Completion

2001-02-01 Thread Daniel Grace

On Wednesday, January 31, 2001 at 12:00 PM, "Boaz Yahav"
<[EMAIL PROTECTED]> wrote:

> Seems like your theory doesn't stand the reality test :)
>
> This is the script which for some reason works with Netscape but not with
IE
> (it used to) :
>ignore_user_abort(0);
>$filename="test.gz";
>$file="/home/examples/" . $filename;
>header("Content-Disposition: attachment; filename=$filename");
>header("Content-Type: application/x-gzip");
>header("Content-Length: ".filesize($file));
>header("Pragma: no-cache");
>header("Expires: 0");
/*
>$fp = fopen($file, "r");
>if(!$fp) {
>echo"Can't open file for read";
>exit();
>}
>print fread($fp, filesize($file));
*/ // readfile($file) does the same thing.

>echo"The file was downloaded
> successfully";
>
> For some reason it never shows the last echo weather i let the DL complete
> or stop it
> in the middle...
>

Remember that everything you are sending to the browser -- whether it be by
print, echo, readfile, or HTML code outside of , becomes the
file the user is downloading. If you were to open the gzip file you're
sending, you'd notice that the "The file was
downloaded successfully" is being appended to
the end of that file.



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




RE: [PHP] RE: test ... please ignore ...

2001-02-01 Thread PHPBeginner.com

Thanks for you sweet words!

did not expect, though ...

We were about to open PHPBeginner.com today, but our local test servers went
to hell once we upgraded them to PHP4.0.4. Not because there's a bug or
something, but because of configurations.

We are still testing the site, and will open it , as says on the FrontPage
in 10 days. On February 11-th..

Cheers,
Maxim Maletsky

-Original Message-
From: Navid [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 6:02 PM
To: 'PHPBeginner.com'; 'PHP'
Subject: RE: [PHP] RE: test ... please ignore ...


Thank you very much, I will look forward to this. This may be just what I
was looking for, a complete beginner's tutorial for PHP. Congrats and good
luck with the opening night.

Sincerely,
Navid

-Original Message-
From: PHPBeginner.com [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 2:31 AM
To: PHP
Subject: [PHP] RE: test ... please ignore ...




 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.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] Pricing for PHP programming???

2001-02-01 Thread Josh G

I hear you. Another thing that's hard to find, is somebody who is a
good programmer, and a good graphic designer. I don't really know
any, apart from myself, and I've been just shy of being called a lying
scumbag by a few HR companies over the years when they look at
my resume ;-)

This thread has really fired up my desire to go the states US$80
an hour for php dmn, that's a shitload more than I
make here, which is more like US$20/hr

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Jonathan Sharp" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 12:49 PM
Subject: RE: [PHP] Pricing for PHP programming???


> I find this an interesting topic...
>
> One thing that we've found when looking for additional PHP programmers to
> add is that since PHP has exploded there are a lot of people out there
> coding in PHP that don't have a background in programming or some of the
> design considerations. We've looked at various places from techies.com to
> guru.com and haven't found that many PHP gurus out there. So in terms of
> skill level, what do you all see the going rate? I know I'm currently
> underpaid at $25/hour and I do ALL the PHP programming, project
management,
> engineering, database theory etc...oh...and did I mention I do all the
> network support too? (I'm taking my CCNA in June...) so yeah...we're a
> starup what did you expect?! =)
>
> Comments?
>
> Disclaimer: I don't mean to offend anyone out there who codes in PHP. But
> from the experience that I've had trying to find someone who can really
code
> clean, effecient stuff that plugs into the whole picture has been
virtually
> non-existent...(if you do, please call! We have a few openings!)
>
> Thanks,
> -Jonathan Sharp
>
> Director of Technology - Imprev Inc.
> Renwick Development Group - Flyerware
> http://www.flyerware.com/
> Phone: (425)688-9200
> Cell: (425)766-1398
>
> -Original Message-
> From: Philip Olson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 31, 2001 5:40 PM
> To: Shane McBride
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Pricing for PHP programming???
>
>
>
> Hey Shane,
>
> This is a tricky issue, here's me (USD):
>
>   $60/hr
>   $30/hr if end result becomes open sourced (no strings)
>
> General discounts for features such as : fun,true non-profit,intelligent
> employer,learning curve and it all lives on a sliding scale depending on
> their ability to pay and my desire for work/money (time).  Also, barter
> is usually an option.  Usually hovers between 30-50 and one day this will
> go up :-)  This is the most difficult part of the job, time estimates
> and pricing.  Bah.  "Just give me money and I'll do stuff."
>
> Regards,
>
> Philip Olson
> http://www.cornado.com/
>
>
> > On Wed, Jan 31, 2001 at 03:25:27PM -0500, Shane McBride wrote:
> > I know this is not really a PHP question, but it should make for a good
> > thread. :)
> >
> > I was wondering what other PHP people charge to write PHP? I have just
> > been given a project for a fairly large customer, much larger than I
> > normally do work for. So I am VERY confused.concerned about how to price
> > it. Most of my other PHP projects have been done for small single owners
> > businesses, and the PHP has been pretty basic.
> >
> > Now that I can actually do what I am being asked without have to learn
> > it, I am stuck. I did a shopping cart for someone, but I didn't charge
> > them a REAL price because I didn't know how to do it with PHP. So, I of
> > course didn't charge the client for my learning curve.
> >
> > I know the price is very dependant upon the task. What I am doing is
> > creating a web-based front-end for a MySQL database. I'll need to create
> > the database tables, etc. The front-end is going to be rather dynamic
> > since the data content depends largely on the previous choices of the
> > end-user. One or two tables with 20-30 fields. 5-6 pages of html and
> > PHP.
> >
> > I'm just scouting this out, and am VERY confident with the contributors
> > to this list and their opinions.
> >
> > TIA,
> > Shane
>
>
> --
> PHP General Mailing List (http://www.php.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] function list

2001-02-01 Thread Josh G

http://www.php.net/quickref.php is probably the best you'll get. no 
descriptions, but it _is_ a list of all the functions.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
  

- Original Message - 
From: "Jerry Lake" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 10:45 AM
Subject: [PHP] function list


> Is there somewhere I can get a list
> of all the php functions and a brief
> description, instead of the full manual
> like a cheat sheet of sorts
> 
> Jerry Lake
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


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




[PHP] RE: Dynamic Variable Creation from Forms

2001-02-01 Thread Tim Ward

this works, you should be able to do something similar assigning
$row["checkboxtype"] as the array key. That way you don't need to know what
it's called just the array it is an element of.


 $fvValue)
echo("$fvTitle:$fvValue");
};

?>


 $gvValue)
echo("$gvTitle");
?>



Tim Ward
Senior Systems Engineer

Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html


> -Original Message-
> From: [ rswfire ] [mailto:[EMAIL PROTECTED]]
> Sent: 01 February 2001 00:29
> To: [EMAIL PROTECTED]
> Subject: Dynamic Variable Creation from Forms
> 
> 
> I have a problem I'm not sure how to fix.
> 
> PART I
> 
> I have a form on a page that creates its variables 
> dynamically.  Here's an 
> example:
> 
> mysql_db_query($db, "SELECT * FROM table");
> while ($row = mysql_fetch_array($result))
> {
> 
>   echo "";
> 
> }
> 
> PART II
> 
> I need to make reference to these dynamically created 
> variables.  How do I 
> do this?  This does not work, obviously:
> 
> $chk_.$row["checkboxtype"]
> 
> Thanks in advance...
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.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-CVS] cvs: php4 /ext/mysql php_mysql.c

2001-02-01 Thread eschmid+sic

On Thu, Feb 01, 2001 at 09:36:52AM -, Stig Bakken wrote:
> ssb   Thu Feb  1 01:36:52 2001 EDT
> 
>   Modified files:  
> /php4/ext/mysql   php_mysql.c 
>   Log:
>   did someone poop in the code? :-)
>   
>   
> Index: php4/ext/mysql/php_mysql.c
> diff -u php4/ext/mysql/php_mysql.c:1.68 php4/ext/mysql/php_mysql.c:1.69
> --- php4/ext/mysql/php_mysql.c:1.68   Wed Jan 31 15:35:37 2001
> +++ php4/ext/mysql/php_mysql.cThu Feb  1 01:36:52 2001
> @@ -1,4 +1,4 @@
> -3/*
> +/*
> +--+
> | PHP version 4.0  |
> +--+
> @@ -16,7 +16,7 @@
> +--+
>  */
>   
> -/* $Id: php_mysql.c,v 1.68 2001/01/31 23:35:37 eschmid Exp $ */
> +/* $Id: php_mysql.c,v 1.69 2001/02/01 09:36:52 ssb Exp $ */

I only pooped in protos.

-Egon

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

-- 
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] What is "foo"?

2001-02-01 Thread Josh G

try the jargon file, it will tell you more about where foo came from.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Rouvas Stathis" <[EMAIL PROTECTED]>
To: "Soeren Staun-Pedersen" <[EMAIL PROTECTED]>
Cc: "SED" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 9:41 AM
Subject: Re: [PHP] What is "foo"?


> And don't forget "goo". "foo" and "goo" go together:-)
> -Stathis.
>
> Soeren Staun-Pedersen wrote:
> >
> > > Probably some of you are laughing while reading this :) But I have
seen the
> > > word "foo" used so many time (in programming) from different resources
for
> > > different reasons. Has it any meaning? (e.g. in PHP)
> >
> > It's just one of those words which stuck around. People like Leslie
> > Lamport (LaTeX) and other computer scientists have kept it alive for at
> > least a century now.
> >
> > Most people believe it originates from "foobar" or "fubar" which is
> > actually an acronym for "Fucked Up Beyond All Recognition". :-)
> >
> > Regards,
> >
> > Soeren Staun-Pedersen - [EMAIL PROTECTED]
> > --
> > "The internet is full, beat it"
> > - 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]
>


-- 
PHP General Mailing List (http://www.php.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: Dynamic Variable Creation from Forms

2001-02-01 Thread Tim Ward

this works, you should be able to do something similar assigning
$row["checkboxtype"] as the array key. That way you don't need to know what
it's called just the array it is an element of.
(I thinmk this bounced first time)

 $fvValue)
echo("$fvTitle:$fvValue");
};

?>


 $gvValue)
echo("$gvTitle");
?>



Tim Ward
Senior Systems Engineer

Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html


> -Original Message-
> From: [ rswfire ] [mailto:[EMAIL PROTECTED]]
> Sent: 01 February 2001 00:29
> To: [EMAIL PROTECTED]
> Subject: Dynamic Variable Creation from Forms
> 
> 
> I have a problem I'm not sure how to fix.
> 
> PART I
> 
> I have a form on a page that creates its variables 
> dynamically.  Here's an 
> example:
> 
> mysql_db_query($db, "SELECT * FROM table");
> while ($row = mysql_fetch_array($result))
> {
> 
>   echo "";
> 
> }
> 
> PART II
> 
> I need to make reference to these dynamically created 
> variables.  How do I 
> do this?  This does not work, obviously:
> 
> $chk_.$row["checkboxtype"]
> 
> Thanks in advance...
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.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] upload_max_filesize

2001-02-01 Thread David Smith

Can anyone explain in detail how I can increase the upload_max_filesize to 5 meg 
instead of the default 2 meg?

Thanks,

David



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

2001-02-01 Thread Stanislav Malyshev

stasThu Feb  1 02:24:02 2001 EDT

  Modified files:  
/php4/ext/standard  file.c 
  Log:
  Add utility function
  
  
Index: php4/ext/standard/file.c
diff -u php4/ext/standard/file.c:1.136 php4/ext/standard/file.c:1.137
--- php4/ext/standard/file.c:1.136  Sun Jan 21 09:26:43 2001
+++ php4/ext/standard/file.cThu Feb  1 02:24:02 2001
@@ -20,7 +20,7 @@
+--+
  */
 
-/* $Id: file.c,v 1.136 2001/01/21 17:26:43 rasmus Exp $ */
+/* $Id: file.c,v 1.137 2001/02/01 10:24:02 stas Exp $ */
 
 /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
 
@@ -2071,6 +2071,36 @@
 }  
 
 #endif
+
+/* Function reads all data from file or socket and puts it into the buffer */
+size_t php_fread_all(char **buf, int socket, FILE *fp, int issock) {
+   size_t ret;
+   char *ptr;
+   size_t len = 0, max_len;
+   int step = PHP_FSOCK_CHUNK_SIZE;
+   int min_room = PHP_FSOCK_CHUNK_SIZE/4;
+   
+   ptr = *buf = emalloc(step);
+   max_len = step;
+
+   while(ret = FP_FREAD(ptr, max_len - len, socket, fp, issock)) {
+   len += ret;
+   if(len + min_room >= max_len) {
+   *buf = erealloc(*buf, max_len + step);
+   max_len += step;
+   ptr = *buf + len;
+   }
+   }
+
+   if(len) {
+   *buf = erealloc(*buf, len);
+   } else {
+   efree(*buf);
+   *buf = NULL;
+   }
+
+   return len;
+}
 
 /*
  * Local variables:



-- 
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] Pricing for PHP programming???

2001-02-01 Thread Robin Vickery

> "JG" == "Josh G" <[EMAIL PROTECTED]> writes:

 > I hear you. Another thing that's hard to find, is somebody who is a
 > good programmer, and a good graphic designer. 

I've never quite understood why employers seem to expect that a
php/perl programmer should also be doing graphic design. They're
quite unrelated activities using completely different skills. It's
not something that's generally expected from other professions
(when was the last time you saw an advert for an accountant that
required they be proficient with Photoshop?) so why programmers?


-robin (who can't draw for toffee)


-- 
Robin Vickery.
BlueCarrots, 14th Floor, 20 Eastbourne Terrace, London, W2 6LE

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

2001-02-01 Thread David Smith

Sorry, that isn't very detailed but I appreciate your help. Where can I find
php.ini?


- Original Message -
From: Jonatan Bagge <[EMAIL PROTECTED]>
To: David Smith <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 6:41 AM
Subject: Re: [PHP] upload_max_filesize


> David Smith wrote:
>
> > Can anyone explain in detail how I can increase the upload_max_filesize
to 5 meg instead of the default 2 meg?
> >
> > Thanks,
> >
> > David
>
> php.ini
>


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

2001-02-01 Thread Josh G

nah, it's not that they want me to, it's that they don't believe i can :)
although my present employer is rather happy that i can draw and
code, he saves a salary that way ;-)

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.

  
- Original Message - 
From: "Robin Vickery" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 3:43 AM
Subject: Re: [PHP] Pricing for PHP programming???


> > "JG" == "Josh G" <[EMAIL PROTECTED]> writes:
> 
>  > I hear you. Another thing that's hard to find, is somebody who is a
>  > good programmer, and a good graphic designer. 
> 
> I've never quite understood why employers seem to expect that a
> php/perl programmer should also be doing graphic design. They're
> quite unrelated activities using completely different skills. It's
> not something that's generally expected from other professions
> (when was the last time you saw an advert for an accountant that
> required they be proficient with Photoshop?) so why programmers?
> 
> 
> -robin (who can't draw for toffee)
> 
> 
> -- 
> Robin Vickery.
> BlueCarrots, 14th Floor, 20 Eastbourne Terrace, London, W2 6LE
> 
> -- 
> PHP General Mailing List (http://www.php.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] List archives with PHP frontend

2001-02-01 Thread Ben Peter

Hi all,

has anyone seen mailing list archiving software with a php frontend?

more detailed:

I am looking for software that sits listening on an email address and
will archive all mail that it receives (which in this case would be that
of a mailing list).

The archive should be accessible by a php interface.

I guess there must be some off-the-shelf solution to this (or at least
each of the components separately), but I have not seen it.

Thanks for your help,

Ben

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




[PHP] Image

2001-02-01 Thread David Tandberg-Johansen

Hello!

I wonder if anyone can tell me how I can use an another image as an
background in a new image?

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]




RE: [PHP] .htpasswd?

2001-02-01 Thread Thor M. Steindorsson

check this out:

http://www.hotscripts.com/Detailed/3903.html

It does what you're asking for... 
why write the code when you can copy and paste? :)


-Original Message-
From: James Smith [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 1:22 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] .htpasswd?


Is there a way that when a user signs up for a
user/pass on a site, to automatically update the
.htpasswd on the site?  Right now I'm running a Win2k
Pro, with Apache installed and MySQL/PHP.  

Thanks,

James

__
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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



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




[PHP] Why sprintf for query?

2001-02-01 Thread Karl J. Stubsjoen

Sprintf formats strings and numbers to a specific format (correct?) then why
is this

$q = SPRINTF("SELECT prodnum, childdesc FROM prodaval");

like that?  Why SPRINTF in this case?  We are calling a MySQL table, is it
specific to calling a MySQL table or is this required for all calls to a
DB... or (simply) could it be written like this

$q = "SELECT prodnum, childdesc FROM prodaval";

Thanks!


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




RE: [PHP] Pricing for PHP programming???

2001-02-01 Thread Jonathan Sharp

Yeah, I'm consulting though...but yes there are some other options...where
does it say $80/hour in the US?!

-Jonathan

> -Original Message-
> From: Philip Olson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 31, 2001 6:05 PM
> To: Josh G
> Cc: PHP User Group
> Subject: Re: [PHP] Pricing for PHP programming???
>
>
>
> One thing to keep in mind is we're mixing up contract jobs and "real" jobs
> with contract jobs usually being much higher rates.  Not sure on any
> specifics though but real jobs are pretty secure, eight hours a day ... so
> it's a tradeoff.  Most (if not all) quotes thus far are in regard to
> contract jobs.
>
> Philip
>
> On Thu, 1 Feb 2001, Josh G wrote:
>
> > I hear you. Another thing that's hard to find, is somebody who is a
> > good programmer, and a good graphic designer. I don't really know
> > any, apart from myself, and I've been just shy of being called a lying
> > scumbag by a few HR companies over the years when they look at
> > my resume ;-)
> >
> > This thread has really fired up my desire to go the states US$80
> > an hour for php dmn, that's a shitload more than I
> > make here, which is more like US$20/hr
> >
> > Gfunk -  http://www.gfunk007.com/
> >
> > I sense much beer in you. Beer leads to intoxication, intoxication to
> > hangovers, and hangovers to... suffering.
> >
> >
> > - Original Message -
> > From: "Jonathan Sharp" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, February 01, 2001 12:49 PM
> > Subject: RE: [PHP] Pricing for PHP programming???
> >
> >
> > > I find this an interesting topic...
> > >
> > > One thing that we've found when looking for additional PHP
> programmers to
> > > add is that since PHP has exploded there are a lot of people out there
> > > coding in PHP that don't have a background in programming or
> some of the
> > > design considerations. We've looked at various places from
> techies.com to
> > > guru.com and haven't found that many PHP gurus out there. So
> in terms of
> > > skill level, what do you all see the going rate? I know I'm currently
> > > underpaid at $25/hour and I do ALL the PHP programming, project
> > management,
> > > engineering, database theory etc...oh...and did I mention I do all the
> > > network support too? (I'm taking my CCNA in June...) so yeah...we're a
> > > starup what did you expect?! =)
> > >
> > > Comments?
> > >
> > > Disclaimer: I don't mean to offend anyone out there who codes
> in PHP. But
> > > from the experience that I've had trying to find someone who
> can really
> > code
> > > clean, effecient stuff that plugs into the whole picture has been
> > virtually
> > > non-existent...(if you do, please call! We have a few openings!)
> > >
> > > Thanks,
> > > -Jonathan Sharp
> > >
> > > Director of Technology - Imprev Inc.
> > > Renwick Development Group - Flyerware
> > > http://www.flyerware.com/
> > > Phone: (425)688-9200
> > > Cell: (425)766-1398
> > >
> > > -Original Message-
> > > From: Philip Olson [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, January 31, 2001 5:40 PM
> > > To: Shane McBride
> > > Cc: [EMAIL PROTECTED]
> > > Subject: Re: [PHP] Pricing for PHP programming???
> > >
> > >
> > >
> > > Hey Shane,
> > >
> > > This is a tricky issue, here's me (USD):
> > >
> > >   $60/hr
> > >   $30/hr if end result becomes open sourced (no strings)
> > >
> > > General discounts for features such as : fun,true
> non-profit,intelligent
> > > employer,learning curve and it all lives on a sliding scale
> depending on
> > > their ability to pay and my desire for work/money (time).
> Also, barter
> > > is usually an option.  Usually hovers between 30-50 and one
> day this will
> > > go up :-)  This is the most difficult part of the job, time estimates
> > > and pricing.  Bah.  "Just give me money and I'll do stuff."
> > >
> > > Regards,
> > >
> > > Philip Olson
> > > http://www.cornado.com/
> > >
> > >
> > > > On Wed, Jan 31, 2001 at 03:25:27PM -0500, Shane McBride wrote:
> > > > I know this is not really a PHP question, but it should
> make for a good
> > > > thread. :)
> > > >
> > > > I was wondering what other PHP people charge to write PHP?
> I have just
> > > > been given a project for a fairly large customer, much larger than I
> > > > normally do work for. So I am VERY confused.concerned about
> how to price
> > > > it. Most of my other PHP projects have been done for small
> single owners
> > > > businesses, and the PHP has been pretty basic.
> > > >
> > > > Now that I can actually do what I am being asked without
> have to learn
> > > > it, I am stuck. I did a shopping cart for someone, but I
> didn't charge
> > > > them a REAL price because I didn't know how to do it with
> PHP. So, I of
> > > > course didn't charge the client for my learning curve.
> > > >
> > > > I know the price is very dependant upon the task. What I am doing is
> > > > creating a web-based front-end for a MySQL database. I'll
> need to create

[PHP] E-mail valid

2001-02-01 Thread Brandon Orther

Hello,

Does anyone have a function that tells you weather a variable holds a valid
e-mail address or not?

Thank you,


Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.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 Digest 1 Feb 2001 00:27:36 -0000 Issue 485

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


php-general Digest 1 Feb 2001 00:27:36 - Issue 485

Topics (messages 37461 through 37567):

Bcc email does not work
37461 by: kaab kaoutar

Re: Read Vs. Include
37462 by: Daniel Grace

REGULAR EXPRESSION
37463 by: kaab kaoutar

Odbc Vs Oracle
37464 by: kaab kaoutar

php changing passwd from unixusers?
37465 by: Geert Houben - HICT

Re: File Download Completion
37466 by: Daniel Grace
37472 by: Andy Woolley
37501 by: Boaz Yahav
37524 by: Boaz Yahav
37528 by: Boaz Yahav
37538 by: Daniel Grace

Oracle8 OciLogon !
37467 by: kaab kaoutar

Oracle failed to connect
37468 by: kaab kaoutar
37546 by: Steve Haemelinck

where to get musql for windows NT
37469 by: kaab kaoutar
37471 by: Augusto Cesar Castoldi
37483 by: Michael Kimsal

Re: SQL question
37470 by: Daniel Grace

PHPub: A Zend IDE/DEBUGGER Alternative
37473 by: Ralph Guzman

Php and forking
37474 by: Nicklas af Ekenstam
37520 by: Chris Lee

RegEx and URLs
37475 by: Joe Sheble (Wizaerd)

cURL & telnet
37476 by: Montgomery-Recht, Evan

print correct values for variables inside variebles ..
37477 by: hsmith.twilyt.com

Re: expressions
37478 by: CC Zona

neat html output
37479 by: Mark
37480 by: Joe Sheble (Wizaerd)
37481 by: Joe Sheble (Wizaerd)
37485 by: php3.developersdesk.com
37489 by: Toby Miller
37552 by: Jeff Lacy

Unable to fork???
37482 by: Daniel Williams
37495 by: johnny p.

Can you do this
37484 by: Boget, Chris
37497 by: Christian Reiniger
37498 by: Boget, Chris

Re: php & jsp
37486 by: Shashank Tripathi

Re: HowTo:  IBM DB2 w/PHP
37487 by: Karl J. Stubsjoen
37537 by: szii.sziisoft.com

Re: Want to learn PHP
37488 by: php3.developersdesk.com

php4 - MS SQL7 connection problem
37490 by: .n Angel

Loading extensions
37491 by: Shimon Dekel

Re: Uppdating a frame from another frame using PHP
37492 by: Ryan Gaul

Re: ID value
37493 by: Piotr Duszynski

Re: Killing session cookies, caches and everything.
37494 by: Angel Behar

Session Code debug help requested
37496 by: Matthew Mundy
37532 by: Hardy Merrill

Re: str_replace
37499 by: Jason Murray
37500 by: Philip Olson

Cobalt Raq Servers & PHP
37502 by: Jamie Thompson
37561 by: WreckRman2

Re: sessions - max number of variables before things get bad?
37503 by: Jon Snell

gethostbyaddr timeout
37504 by: Aaron Gould
37513 by: Jon Jacob
37527 by: Jon Snell

File uploading?
37505 by: Lauri Vain
37509 by: Ben
37511 by: James Smith

Is correct ??
37506 by: Miguel Loureiro
37507 by: Boget, Chris
37508 by: Boget, Chris
37510 by: johnny p.

copy() ??
37512 by: Fredrik Arild Takle
37522 by: johnny p.
37536 by: James Smith

imap (nntp) message tracking
37514 by: Larry Hotchkiss

connecting to AS400 DB2
37515 by: Conover, Ryan
37521 by: Larry Hotchkiss

What is "foo"?
37516 by: SED
37517 by: Soeren Staun-Pedersen
37518 by: Philip Olson
37519 by: Christian Reiniger
37555 by: Rouvas Stathis
37557 by: Josh G

Symbolic link fails when User Authentication comes in
37523 by: david klein
37526 by: johnny p.
37529 by: david klein

Re: PHP4.04pl1 upgrade
37525 by: Ayan R. Kayal

Program execution
37530 by: Czapáry Gábor

Pricing for PHP programming???
37531 by: Shane McBride
37533 by: Robert Covell
37535 by: Chris Lee
37543 by: Chad Day
37545 by: Joe Stump

Zend Optimizer not working with @
37534 by: Chris Lee
37556 by: Andi Gutmans

newlines in  boxes..
37539 by: James Smith
37544 by: Michael Hall

.htpasswd?
37540 by: James Smith
37558 by: david klein
37559 by: Thor M. Steindorsson

Re: [PHP-DB] question ! show binary
37541 by: James Smith

Re: [PHP-DB] newlines in  boxes..
37542 by: Xsarus Internetdiensten

Functions returning by reference
37547 by: Richard Heyes

Exit Function
37548 by: Karl J. Stubsjoen
37549 by: Boget, Chris
37550 by: Martin A. Marques
37551 by: Steve Smith
37553 by: Josh G
37554 by: Chris Lee

Loading Files & Writing...
37560 by: Videomoviehouse - Marcus Ouimet

Compiling PHP
37562 by: php.hotchilli.com

function list
37563 by: Jerry Lake
37564 by: Josh G
37566 by: Stephen Edberg

E-mail valid
37565 by: Brandon Orther

Dynamic Variable Creation from Forms
37567 by: [ rswfire ]

Administrivia:

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


Re: [PHP] Dynamic Variable Creation from Forms

2001-02-01 Thread Josh G

It is what you're looking for, you just need to think it through a little.

instead of

> $chk_$row["field"]

try

$foo = "chk_" . $row["field"];
$bar = $$foo;

or if you're trying to do something else, you may need

$foo = "chk_" . $row;
$bar = ($$foo)["field"];

as I'm not sure which order of execution you want to happen on that
line, since it's not valid :)

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "[ rswfire ]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 11:41 AM
Subject: Re: [PHP] Dynamic Variable Creation from Forms


> Thanks for your response, but that's not my problem.  I'll explain
> further...
>
> I have a table with the following fields in a row:
>
> aaa
> bbb
> ccc
> ddd
> eee
>
> I have a page with a form:
>
> 
> mysql_db_query($db, "SELECT * FROM table");
> while ($row = mysql_fetch_array($result))
> {
>
>echo "";
>
> }
>
> This will create several checkboxes with the following names:
>
> chk_aaa
> chk_bbb
> chk_ccc
> chk_ddd
> chk_eee
>
> ON THE NEXT PAGE, AFTER THE SUBMIT BUTTON IS CLICKED, THESE VARIABLES WILL
> EXIST, but I cannot refer to them like this:
>
> $chk_$row["field"]
>
> How can I refer to them???  They can change based on the field data, so
they
> cannot be considered static variables.
>
>
>
>
>
>
> Not *sure* i understand the problem, but this may be the solution:
>
> $foo = "hello";
> $bar = "foo";
> $foobar = $$bar;
>
> $foobar now contains "hello".
>
> Gfunk -  http://www.gfunk007.com/
>
> I sense much beer in you. Beer leads to intoxication, intoxication to
> hangovers, and hangovers to... suffering.
>
>
> - Original Message -
> From: "[ rswfire ]" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, February 01, 2001 11:28 AM
> Subject: [PHP] Dynamic Variable Creation from Forms
>
>
> >I have a problem I'm not sure how to fix.
> >
> >PART I
> >
> >I have a form on a page that creates its variables dynamically.  Here's
an
> >example:
> >
> >mysql_db_query($db, "SELECT * FROM table");
> >while ($row = mysql_fetch_array($result))
> >{
> >
> >   echo "";
> >
> >}
> >
> >PART II
> >
> >I need to make reference to these dynamically created variables.  How do
I
> >do this?  This does not work, obviously:
> >
> >$chk_.$row["checkboxtype"]
> >
> >Thanks in advance...
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.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] INAPPROPRIATE IOCTL ERROR

2001-02-01 Thread Kif

help...
ok, now this looks quite straightforward...

$filename="http://195.92.38.87/cgi-win/homeview.dll?details1?src=1050&Proper
tyCode=1050003/SAPHI/14665/3";
$file=fopen($filename,"r") or die("cant open $filename");
while(!feof($file)){
$line=fgets($file,4096);
echo $line;
}

but when i run it i get an error

fopen("http://195.92.38.87/cgi-win/homeview.dll?details1?src=1050&PropertyCo
de=1050003/SAPHI/14665/3","r") -
Inappropriate ioctl for device in /home/httpd/docs/test.php on line 6

So can someone please tell me, what the blazes an ioctl is and why do i have
an inappropriate one?

The remote file is fine,

Thanks

Kif



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




php-general Digest 1 Feb 2001 12:39:00 -0000 Issue 486

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


php-general Digest 1 Feb 2001 12:39:00 - Issue 486

Topics (messages 37568 through 37625):

Re: Dynamic Variable Creation from Forms
37568 by: Josh G
37569 by: Nuno Silva
37573 by: [ rswfire ]
37574 by: Josh G
37575 by: Jonathan Sharp
37617 by: Tim Ward
37619 by: Tim Ward

Why sprintf for query?
37570 by: Karl J. Stubsjoen
37613 by: Ben Peter

passing data between pages?
37571 by: Britton
37572 by: Josh G

Thankz
37576 by: [ rswfire ]

Re: Odbc Vs Oracle
37577 by: Nold, Mark

Re: Pricing for PHP programming???
37578 by: Michael Kimsal
37580 by: Philip Olson
37582 by: Jonathan Sharp
37583 by: Josh G
37584 by: Jason Murray
37585 by: Philip Olson
37586 by: Jonathan Sharp
37587 by: [ rswfire ]
37588 by: Jonathan Sharp
37589 by: scott.gerhardt-it.com
37614 by: mwaples.waples.net
37621 by: Robin Vickery
37623 by: Josh G

Formatting/Financial
37579 by: [ rswfire ]
37581 by: Josh G
37607 by: Andrew Golovin

PHP4 Ultradev Extension availble!
37590 by: Dan Radigan

Php database
37591 by: Vinicius Garcia
37604 by: Michael Hall

new mail() function
37592 by: Police Trainee

Is there a 'redo' loop control function?
37593 by: John Luxford

reload help!!!
37594 by: Wen Ni Leong

Strange Parser error
37595 by: Phil Daintree
37611 by: Ben Peter

one quick question: how do I assign atring value into variable?
37596 by: Jacky.lilst
37606 by: David Robley

Re: E-mail valid
37597 by: Sean Cazzell
37598 by: Chris Aitken
37600 by: Josh G

Directory Listing with PHP
37599 by: Chris Aitken
37602 by: Andrew Braund

Re: connecting to AS400 DB2
37601 by: szii.sziisoft.com

404 error checker
37603 by: Institute for Social Ecology
37605 by: Jason Murray

Re: New User of PHP
37608 by: Chris Choy

Re: test ... please ignore ...
37609 by: PHPBeginner.com
37615 by: Navid
37616 by: PHPBeginner.com

Re-Creation of Objects in sessions
37610 by: Thomas Stinner

Win2K/PHP4.0.4pl1 - include_path mess (won't include from the current directory)
37612 by: PHPBeginner.com

List archives with PHP frontend
37618 by: Ben Peter

upload_max_filesize
37620 by: David Smith
37622 by: David Smith

Image
37624 by: David Tandberg-Johansen

INAPPROPRIATE IOCTL ERROR
37625 by: Kif

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]


--



Not *sure* i understand the problem, but this may be the solution:

$foo = "hello";
$bar = "foo";
$foobar = $$bar;

$foobar now contains "hello".

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "[ rswfire ]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 11:28 AM
Subject: [PHP] Dynamic Variable Creation from Forms


> I have a problem I'm not sure how to fix.
>
> PART I
>
> I have a form on a page that creates its variables dynamically.  Here's an
> example:
>
> mysql_db_query($db, "SELECT * FROM table");
> while ($row = mysql_fetch_array($result))
> {
>
>   echo "";
>
> }
>
> PART II
>
> I need to make reference to these dynamically created variables.  How do I
> do this?  This does not work, obviously:
>
> $chk_.$row["checkboxtype"]
>
> Thanks in advance...
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.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]
>





[ rswfire ] wrote:

> I have a problem I'm not sure how to fix.
> 
> PART I
> 
> I have a form on a page that creates its variables dynamically.  
> Here's an example:
> 
> mysql_db_query($db, "SELECT * FROM table");
> while ($row = mysql_fetch_array($result))
> {
> 
>  echo "";
> 
> }
> 
> PART II
> 
> I need to make reference to these dynamically created variables.  How 
> do I do this?  This does not work, obviously:
> 
> $chk_.$row["checkboxtype"]
> 
> Thanks in advance...
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> 
> 
$temp = "chk_$row";
echo $$temp["checkboxtype"];

the trick is $$var_name ;)

have fun,
Nuno







Thanks for your response, but that's not my prob

[PHP] Inappropriate ioctl for device

2001-02-01 Thread Kif

help...
ok, now this looks quite straightforward...

$filename="http://195.92.38.87/cgi-win/homeview.dll?details1?src=1050&Proper
tyCode=1050003/SAPHI/14665/3";
$file=fopen($filename,"r") or die("cant open $filename");
while(!feof($file)){
$line=fgets($file,4096);
echo $line;
}

but when i run it i get an error

fopen("http://195.92.38.87/cgi-win/homeview.dll?details1?src=1050&PropertyCo
de=1050003/SAPHI/14665/3","r") -
Inappropriate ioctl for device in /home/httpd/docs/test.php on line 6

So can someone please tell me, what the blazes an ioctl is and why do i have
an inappropriate one?

The remote file is fine,

Thanks

Kif





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




[PHP] Easy flowchart programm

2001-02-01 Thread Wico de Leeuw

Hiya

Anyone knows a flowchart program that's very easy in use and good for 
programming (in php)
I saw programms like viso and stuff i think there a better en easier in use 
programms to make a good programm flow.

Greetz,

Tnx in advance

WIco


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

2001-02-01 Thread Tim Ward

don't know what apache does but this will give you everything below the
pathn you pass in.

function sitemap($ddPath)
{   $dhandle = opendir($ddPath);
echo("");
while ($ddFile = readdir($dhandle))
{   if ($ddFile == "." or $ddFile == "..") continue; // trap .
and ..
echo("".$ddFile . "");
if (is_dir($ddPath . $ddFile)) sitemap($ddPath . $ddFile .
"/");
};
closedir($dhandle);
echo("");
};

Tim Ward
Senior Systems Engineer

Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html


> -Original Message-
> From: Chris Aitken [mailto:[EMAIL PROTECTED]]
> Sent: 01 February 2001 05:05
> To: PHP User Group
> Subject: Directory Listing with PHP
> 
> 
> 
> 
> (Damn I hate it when I forget to change the subject)
> 
> 
> Does anyone have, or know of a script which simulates what 
> Apache gives out 
> when it shows the entire contents of a directory ?
> 
> I find it very handy to use the directory listing of say graphics 
> directories and the like, but I dont want others looking into them.
> 
> What I thought would be a good system is to have an index.php 
> file which 
> asks for a password. If the password is accepted, it shoots 
> them off to a 
> php script which displays the contents of the DIR just as 
> apache would.
> 
> This way I can bar viewing of the directories contents, only 
> viewable to 
> the owners of the password.
> 
> 
> Ive seen a couple of scripts which claim to show the 
> directory listing, but 
> none of them seem to work any good with a decent layout and 
> amount of file 
> info. So im looking for a script which can display the 
> listing properly. 
> Does one exist, or am I just relieving myself into the wind ?
> 
> 
> Thanks
> 
> Chris
> 
> --
>Chris Aitken - Webmaster/Database Designer - IDEAL Internet
> email: [EMAIL PROTECTED]  phone: +61 2 4628   fax: +61 2 
> 4628 8890
>  
> 
>Unix -- because a computer's a terrible thing to waste!
> 
> 

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




[PHP-CVS] cvs: php4 /ext/mnogosearch Makefile.in php_mnogo.c test.php

2001-02-01 Thread Sergey Kartashoff

gluke   Thu Feb  1 05:06:25 2001 EDT

  Modified files:  
/php4/ext/mnogosearch   Makefile.in php_mnogo.c test.php 
  Log:
  UDM_PARAM_CHARSET parameter in Udm_Set_Agent_Param() has been added to
  set local charset you are using. Example updated also.
  @- UDM_PARAM_CHARSET parameter in Udm_Set_Agent_Param() has been added to
  @  set local charset you are using. Example updated also. (gluke)
  
  
Index: php4/ext/mnogosearch/Makefile.in
diff -u php4/ext/mnogosearch/Makefile.in:1.1 php4/ext/mnogosearch/Makefile.in:1.2
--- php4/ext/mnogosearch/Makefile.in:1.1Tue Jan 30 04:53:45 2001
+++ php4/ext/mnogosearch/Makefile.inThu Feb  1 05:06:25 2001
@@ -1,3 +1,5 @@
+# $Source: /local/repository/php4/ext/mnogosearch/Makefile.in,v $
+# $Id: Makefile.in,v 1.2 2001/02/01 13:06:25 gluke Exp $
 
 LTLIBRARY_NAME= libmnogosearch.la
 LTLIBRARY_SOURCES = php_mnogo.c
Index: php4/ext/mnogosearch/php_mnogo.c
diff -u php4/ext/mnogosearch/php_mnogo.c:1.2 php4/ext/mnogosearch/php_mnogo.c:1.3
--- php4/ext/mnogosearch/php_mnogo.c:1.2Wed Jan 31 06:04:29 2001
+++ php4/ext/mnogosearch/php_mnogo.cThu Feb  1 05:06:25 2001
@@ -1,5 +1,5 @@
 /* $Source: /local/repository/php4/ext/mnogosearch/php_mnogo.c,v $ */
-/* $Id: php_mnogo.c,v 1.2 2001/01/31 14:04:29 gluke Exp $ */
+/* $Id: php_mnogo.c,v 1.3 2001/02/01 13:06:25 gluke Exp $ */
 
 /*
+--+
@@ -47,6 +47,7 @@
 #define UDM_PARAM_SEARCH_MODE  3
 #define UDM_PARAM_CACHE_MODE   4
 #define UDM_PARAM_TRACK_MODE   5
+#define UDM_PARAM_CHARSET  6
 
 #define UDM_TRACK_ENABLED  1
 #define UDM_TRACK_DISABLED 0
@@ -126,6 +127,7 @@
REGISTER_LONG_CONSTANT("UDM_PARAM_SEARCH_MODE",UDM_PARAM_SEARCH_MODE,CONST_CS 
| CONST_PERSISTENT);  
REGISTER_LONG_CONSTANT("UDM_PARAM_CACHE_MODE",UDM_PARAM_CACHE_MODE,CONST_CS | 
CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("UDM_PARAM_TRACK_MODE",UDM_PARAM_TRACK_MODE,CONST_CS | 
CONST_PERSISTENT);
+   REGISTER_LONG_CONSTANT("UDM_PARAM_CHARSET",UDM_PARAM_CHARSET,CONST_CS | 
+CONST_PERSISTENT);  

/* udm_get_res_param constants */
REGISTER_LONG_CONSTANT("UDM_PARAM_FOUND",UDM_PARAM_FOUND,CONST_CS | 
CONST_PERSISTENT);
@@ -238,16 +240,16 @@
 
switch(ZEND_NUM_ARGS()){

-   case 3: {
-   
if(zend_get_parameters_ex(3,&yyagent,&yyvar,&yyval)==FAILURE){
-   RETURN_FALSE;
-   }
-   convert_to_long_ex(yyvar);
-   convert_to_string_ex(yyval);
-   ZEND_FETCH_RESOURCE(Agent, UDM_AGENT *, yyagent, -1, 
"mnoGoSearch-agent", le_link);
-   var = (*yyvar)->value.lval;
-   val = (*yyval)->value.str.val;
+   case 3: 
+   if(zend_get_parameters_ex(3,&yyagent,&yyvar,&yyval)==FAILURE){
+   RETURN_FALSE;
}
+   convert_to_long_ex(yyvar);
+   convert_to_string_ex(yyval);
+   ZEND_FETCH_RESOURCE(Agent, UDM_AGENT *, yyagent, -1, 
+"mnoGoSearch-agent", le_link);
+   var = (*yyvar)->value.lval;
+   val = (*yyval)->value.str.val;
+   
break;

default:
@@ -256,59 +258,80 @@
}

switch(var){
-   case UDM_PARAM_PAGE_SIZE: {
-   Agent->page_size=atoi(val);
-   if(Agent->page_size<1)Agent->page_size=20;
-   }
+   case UDM_PARAM_PAGE_SIZE: 
+   Agent->page_size=atoi(val);
+   if(Agent->page_size<1)Agent->page_size=20;
+   
break;
-   case UDM_PARAM_PAGE_NUM: {
-   Agent->page_number=atoi(val);
-   if(Agent->page_number<0)Agent->page_number=0;
-   }
+   
+   case UDM_PARAM_PAGE_NUM: 
+   Agent->page_number=atoi(val);
+   if(Agent->page_number<0)Agent->page_number=0;
+   
break;
+   
case UDM_PARAM_SEARCH_MODE:
switch (atoi(val)){
case UDM_MODE_ALL:
Agent->search_mode=UDM_MODE_ALL;
break;
+   
case UDM_MODE_ANY:
Agent->search_mode=UDM_MODE_AN

[PHP] How does memory limit work?

2001-02-01 Thread Ralf Hupfer

Hi Everybody,

I am trying to prevent my Linux machine from crashing by the use of
memory_limit, but is does not seem to work as I expect it to: When a
php-script includes itself recursively by accident it grabbes all memory
available in a matter of seconds, although I set max_execution_time=30
and memory_limit=8388608. After 30 seconds of execution the apache
terminates the request, but the script keeps on running and allocating
memory (far more than 8 MB). Do I misunderstand the memory_limit option?
Is there an other way to limit memory usage besides system wide memory
quotas?

Thanks
Ralf



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

2001-02-01 Thread Trevor DeVore

At 02:11 PM 2/1/01 +0100, you wrote:
>Hiya
>
>Anyone knows a flowchart program that's very easy in use and good for 
>programming (in php)
>I saw programms like viso and stuff i think there a better en easier in 
>use programms to make a good programm flow.

If your looking for something really easy there is Inspiration 
(www.inspiration.com) for Mac and Windows.  It isn't a UML program but 
allows you to through together flowcharts quickly and easily and isn't too 
expensive.


Trevor DeVore
Blue Mango Multimedia


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

2001-02-01 Thread Brian V Bonini

Isn't it illegal in the US to discuss
rates in this manner?

It's always been my understanding that
The U.S. law specifically makes discussion
of pricing between competitors (all or some)
a federal offense. 

Am I taking this too literally?

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




[PHP] NEWBIE QUESTION

2001-02-01 Thread Stinie Steinbach

DOES ANYONE KNOW WHAT'S WRONG WITH THIS CODE
IK WANT TO GENERATE A CODE THAT SELECTS A COUPELE OF PARAMETERS FROM TWO
TABLES IN A MYSQL DATABASE...
THE QUERY THAT I USE WORKS CORRECTLY BUT I HAVE A PROBLEM WITH THE LINKS
I WANT TO GENERATE WITH PHP...
I NEED TO CREATE AN ARRAY OF LINKS THAT LOOK LIKE THIS...

BLOK 0 | BLOK 1 | BLOK 2 | BLOK 3 | BLOK 4 | BLOK 5 | BLOK 6 | BLOK 7 |
BLOK 8 | BLOK 9

PLEASE HELP!!!


http://tias.kub.nl/programs/\"opleiding_afkorting=$opleiding_afkorting\"/

   \"leergang_afkorting=$leergang_afkorting\"/
\"virtuele.klas/programma/blok\"module_nummer=$module_nummer\"/\"leergang_afkorting=$leergang_afkorting\"_blok0\"

   module_nummer=$module_nummer.html\">$module_nummer
}
?>


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

2001-02-01 Thread Jon Haworth

It's usually in your system root, but you could have put it somewhere else
when you installed PHP.

If you're on Windows it's liable to be in \windows\system,
\windows\system32, \winnt\system, or \winnt\system32. Most OSes come with a
Find Files command these days (just a thought).

Once you have found it, open it in your favourite text editor. Search for
"upload_max_filesize" and set it to whatever you like. Save it. Tell your
boss you'll have to spend all afternoon fixing this bug, then spend the rest
of the day reading Dilbert cartoons.


HTH
Jon


-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]]
Sent: 01 February 2001 11:45
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] upload_max_filesize


Sorry, that isn't very detailed but I appreciate your help. Where can I find
php.ini?


- Original Message -
From: Jonatan Bagge <[EMAIL PROTECTED]>
To: David Smith <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 6:41 AM
Subject: Re: [PHP] upload_max_filesize


> David Smith wrote:
>
> > Can anyone explain in detail how I can increase the upload_max_filesize
to 5 meg instead of the default 2 meg?
> >
> > Thanks,
> >
> > David
>
> php.ini
>


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

2001-02-01 Thread Andrei Zmievski

andrei  Thu Feb  1 06:11:45 2001 EDT

  Modified files:  
/php4/build rules_pear.mk 
  Log:
  Add cvsclean target for standalone extensions.
  
  
Index: php4/build/rules_pear.mk
diff -u php4/build/rules_pear.mk:1.12 php4/build/rules_pear.mk:1.13
--- php4/build/rules_pear.mk:1.12   Fri Aug 25 01:15:10 2000
+++ php4/build/rules_pear.mkThu Feb  1 06:11:44 2001
@@ -14,7 +14,7 @@
 #  | Authors: Sascha Schumann <[EMAIL PROTECTED]>|
 #  +--+
 #
-# $Id: rules_pear.mk,v 1.12 2000/08/25 08:15:10 sas Exp $ 
+# $Id: rules_pear.mk,v 1.13 2001/02/01 14:11:44 andrei Exp $ 
 #
 
 include $(top_srcdir)/build/rules_common.mk
@@ -54,6 +54,12 @@
 distclean: distclean-recursive clean-x
rm -f config.cache config.log config.status config_vars.mk libtool \
php_config.h stamp-h Makefile build-defs.h php4.spec libphp4.module
+
+cvsclean:
+   @for i in `find . -name .cvsignore`; do \
+   (cd `dirname $$i` 2>/dev/null && rm -rf `cat .cvsignore` *.o *.a || 
+true); \
+   done
+   @rm -f $(SUBDIRS) 2>/dev/null || true
 
 install-modules:
@test -d modules && \



-- 
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] Pricing for PHP programming???

2001-02-01 Thread Joe Stump

You are taking this WAY to seriously. What you are talking about is the Sherman
Act that developed our current antitrust laws. Specifically you are talking
about "price fixing", which is illegal in the US. If EVERY PHP coder in the US
got together at a trade show and said "We will all demand $150.00 an hour no
matter what" then THAT would be illegal. Me mentioning to you how much I charge
is totally legal.

This mainly applies to big businesses and large manufacturers - OPEC for example
would be TOTALLY illegal in the US.

--Joe

On Thu, Feb 01, 2001 at 08:49:00AM -0500, Brian V Bonini wrote:
> Isn't it illegal in the US to discuss
> rates in this manner?
> 
> It's always been my understanding that
> The U.S. law specifically makes discussion
> of pricing between competitors (all or some)
> a federal offense. 
> 
> Am I taking this too literally?
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 

---
Joe Stump, PHP Hacker, [EMAIL PROTECTED] -o)
http://www.miester.org http://www.care2.com /\\
"It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V
---


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




[PHP] PHP and report generation

2001-02-01 Thread Todd Cary

I have a need to produce reports from data in a table *and* the reports
need to look the same for all clients (e.g. PDF output).  Are there any
"report generators" that can be interfaced with with PHP that have a PDF
output *or* do I need to "roll my own" for each task/report?

Todd

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]



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




Re: [PHP] Pricing for PHP programming???

2001-02-01 Thread Michael Kimsal



[EMAIL PROTECTED] wrote:

>
> Just an observation from some people I know in the USA - they charge
> whatever they can get away with.
> How about honestly charging what you think you are worth ?
> Knowing how to use php means nothing - but if you know it well you will
> be worth a lot.
>

Slight philosophical disagreement here - knowing PHP extremely well still doesn't
make it worth anything, unless you can apply that knowledge to a client's
problems and create solutions/applications that are valuable to them.

Don't charge what you think you're worth.  Wait, no.
Charge what you think you're worth OR what the project is worth to the
client, whatever is higher.  If what you think you're worth is more than they
want to (or can) pay, move on.

You may think it's worth $3000.  The client may think it's worth (and willing to pay)
$30,000.  As a matter of fact, you MAY not get the work if your price is too
low (perceived value).

There is a book out there called "million dollar consulting" (author=weiss I think) 
which
might be a good read for list members, at least the chapter on pricing.


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




[PHP] Tab character

2001-02-01 Thread Karl J. Stubsjoen

Is this a tab character \t


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

2001-02-01 Thread Martin A. Marques

El Jue 01 Feb 2001 12:17, Karl J. Stubsjoen escribió:
> Is this a tab character \t

yes (depending)

-- 
System Administration: It's a dirty job, 
but someone told I had to do it.
-
Martín Marqués  email:  [EMAIL PROTECTED]
Santa Fe - Argentinahttp://math.unl.edu.ar/~martin/
Administrador de sistemas en math.unl.edu.ar
-

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




[PHP] [Q] Domxml: unlink() method?

2001-02-01 Thread Peter Sabaini

hello,

i am rather desperately trying to figure out how to delete a node
object from the DOM.

say i have a node $node by manually traversing the DOM tree or by an
xpath_eval() function call. i can access the children
($node->children()) or the parent ($node->parent()) or add a sub-node
($node->new_child()) but there seems to be no $node->unlink() or
something like that to remove $node from my DOM tree.

in libxml which the php domxml extension is built upon there's a
function xmlUnlinkNode() which seems to do just that, but there is no
binding for this function in php (or i didn't find it. i looked in
ext/domxml/php_domxml.c).

any solutions / workarounds / patches anyone? or am i being plain
dumb -- i am pretty a php novice so chances are i overlooked the very
very obvious.

thanks

peter.
-- 
Peter Sabaini [EMAIL PROTECTED]
NETCONOMY Onlineberatungs- und -management Gmbh & Co KG
www.netconomy.net - Schoenaugasse 64, 8010 Graz
Tel. +43-(0)316 875-3081.



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

2001-02-01 Thread Sascha Schumann

sas Thu Feb  1 07:24:17 2001 EDT

  Modified files:  
/php4/ext/pcre  php_pcre.c 
  Log:
  Fix broken ZTS build
  
  
Index: php4/ext/pcre/php_pcre.c
diff -u php4/ext/pcre/php_pcre.c:1.82 php4/ext/pcre/php_pcre.c:1.83
--- php4/ext/pcre/php_pcre.c:1.82   Wed Jan 31 21:04:58 2001
+++ php4/ext/pcre/php_pcre.cThu Feb  1 07:24:17 2001
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: php_pcre.c,v 1.82 2001/02/01 05:04:58 andrei Exp $ */
+/* $Id: php_pcre.c,v 1.83 2001/02/01 15:24:17 sas Exp $ */
 
 /*
TODO:
@@ -569,6 +569,7 @@
int  result_len;/* Return value length */
int  i;
CLS_FETCH();
+   ELS_FETCH();
 
MAKE_STD_ZVAL(subpats);
array_init(subpats);



-- 
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] Problems getting Zend IDE to run.

2001-02-01 Thread Neil Kimber

I'm running on Windows 2000.
I've installed the JRE 1.3.
I've installed the IDE
I run the IDE
I get:


"Could not find the main class. Program will exit!"


As far as I can tell the following appear to be true:

There are no other installations of Java installed on the machine.
My path doesn't point anywhere that seems problematic.
The IDE files appear to have installed correctly.

Does anyone have any ideas that I can try before I start pulling my hair
out?

Thanks,
Neil


-- 
PHP General Mailing List (http://www.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] Symbolic link fails when User Authentication comes in

2001-02-01 Thread johnny p.

If you miswrite a CGI script and have lots of system calls, someone
could send a command to your script that creates a link to, say, your
password file, or something else, and then be able to view it through
the web.  If you have other users on the system the security hole opens
wider.  There are plenty of other reasons, as well.  I would look for
security information on various security websites, like insecure.org,
securityfocus.com, etc..  Subscribe to some BUGTRAQ security lists.  You
will be surprised what is and is not a security hole.  And, the more
"features" you enable on your site, the more security concious you need
to become.  Your machine is *never* safe and enabling features opens
more possibilities for abuse.

If you have a linux box, you might want to try locking your system down
a bit with portsentry and bastille linux:
http://www.psionic.com/abacus/portsentry/
http://www.bastille-linux.org/

Just my humble and paranoid opinion from past experiences.  :)

johnny p.

> -Original Message-
> From: david klein [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 31, 2001 2:04 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [PHP] Symbolic link fails when User
> Authentication comes in
>
>
> Johnny,
>
> It works, but how could this create a security hole?
> Could you please
> expalin a little bit more?
>
> Thanks,
> David
>
>
> >From: "johnny p." <[EMAIL PROTECTED]>
> >To: "david klein" <[EMAIL PROTECTED]>,
> <[EMAIL PROTECTED]>
> >Subject: RE: [PHP] Symbolic link fails when User
> Authentication comes in
> >Date: Wed, 31 Jan 2001 13:54:22 -0600
> >
> >Add the FollowSymLinks to your httpd.conf file for that directory.  I
> >don't recommend doing this, tho, since it *is* a security hole.
> >
> >
> >Options Indexes FollowSymLinks
> >
> >
> >johnny p.
> >
> > > -Original Message-
> > > From: david klein [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, January 31, 2001 1:43 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP] Symbolic link fails when User
> Authentication comes in
> > >
> > >
> > > I am using Apache user authentication, and it works fine.
> > > However, if there
> > > is a symbolic link inside a securied directory, the symbolic
> > > linked file
> > > will deny any access.
> > >
> > > For example, directory "/apps/apache/docs/test1" is a
> > > securied directory,
> > > and there is a symbolic linked file "file1.txt", after you
> > > logged into
> > > directory "/apps/apache/docs/test1" and try to access
> > > "file1.txt", you will
> > > be denied for the access?
> > >
> > > Does anyone have any idea?
> > >
> > > Thanks,
> > > David
> > > _
> > > Get your FREE download of MSN Explorer at http://explorer.msn.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]
> >
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.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] Performance hit with certain apache configs?

2001-02-01 Thread Robinson, Mike

Hello,

I'm wondering if anyone has any info regarding any performance hits
taken as a result of changing the default type to application/x-httpd-php
in Apache's httpd.conf, or if there are any _other_ implications of doing
this.

Any info would be appreciated, as would a cc: cuz I'm not subbed
at my work address. Thanks.

 Mike Robinson
 
 ph:  416.945.8786
 email:  [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] Tab character

2001-02-01 Thread Toby Miller

Yes, and here are others which came from the following URL:
http://www.php.net/manual/en/pcre.pattern.syntax.php

\a = alarm, that is, the BEL character (hex 07)
\cx = "control-x", where x is any character
\e = escape (hex 1B)
\f = formfeed (hex 0C)
\n = newline (hex 0A)
\r = carriage return (hex 0D)
\t = tab (hex 09)
\xhh = character with hex code hh
\ddd = character with octal code ddd, or backreference

-Toby

- Original Message - 
From: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>
To: "PHP Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 10:17 AM
Subject: [PHP] Tab character


> Is this a tab character \t
> 
> 
> -- 
> PHP General Mailing List (http://www.php.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] Pricing for PHP programming???

2001-02-01 Thread Krznaric Michael

I have over 6 years programming experience, almost 3 include PHP.  I
also have sound database knowledge. Where is the best place to find PHP
consulting work?

Mike

-Original Message-
From: Jonathan Sharp [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 9:26 PM
To: Philip Olson; Josh G
Cc: PHP User Group
Subject: RE: [PHP] Pricing for PHP programming???


Yeah, I'm consulting though...but yes there are some other options...where
does it say $80/hour in the US?!

-Jonathan

> -Original Message-
> From: Philip Olson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 31, 2001 6:05 PM
> To: Josh G
> Cc: PHP User Group
> Subject: Re: [PHP] Pricing for PHP programming???
>
>
>
> One thing to keep in mind is we're mixing up contract jobs and "real" jobs
> with contract jobs usually being much higher rates.  Not sure on any
> specifics though but real jobs are pretty secure, eight hours a day ... so
> it's a tradeoff.  Most (if not all) quotes thus far are in regard to
> contract jobs.
>
> Philip
>
> On Thu, 1 Feb 2001, Josh G wrote:
>
> > I hear you. Another thing that's hard to find, is somebody who is a
> > good programmer, and a good graphic designer. I don't really know
> > any, apart from myself, and I've been just shy of being called a lying
> > scumbag by a few HR companies over the years when they look at
> > my resume ;-)
> >
> > This thread has really fired up my desire to go the states US$80
> > an hour for php dmn, that's a shitload more than I
> > make here, which is more like US$20/hr
> >
> > Gfunk -  http://www.gfunk007.com/
> >
> > I sense much beer in you. Beer leads to intoxication, intoxication to
> > hangovers, and hangovers to... suffering.
> >
> >
> > - Original Message -
> > From: "Jonathan Sharp" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, February 01, 2001 12:49 PM
> > Subject: RE: [PHP] Pricing for PHP programming???
> >
> >
> > > I find this an interesting topic...
> > >
> > > One thing that we've found when looking for additional PHP
> programmers to
> > > add is that since PHP has exploded there are a lot of people out there
> > > coding in PHP that don't have a background in programming or
> some of the
> > > design considerations. We've looked at various places from
> techies.com to
> > > guru.com and haven't found that many PHP gurus out there. So
> in terms of
> > > skill level, what do you all see the going rate? I know I'm currently
> > > underpaid at $25/hour and I do ALL the PHP programming, project
> > management,
> > > engineering, database theory etc...oh...and did I mention I do all the
> > > network support too? (I'm taking my CCNA in June...) so yeah...we're a
> > > starup what did you expect?! =)
> > >
> > > Comments?
> > >
> > > Disclaimer: I don't mean to offend anyone out there who codes
> in PHP. But
> > > from the experience that I've had trying to find someone who
> can really
> > code
> > > clean, effecient stuff that plugs into the whole picture has been
> > virtually
> > > non-existent...(if you do, please call! We have a few openings!)
> > >
> > > Thanks,
> > > -Jonathan Sharp
> > >
> > > Director of Technology - Imprev Inc.
> > > Renwick Development Group - Flyerware
> > > http://www.flyerware.com/
> > > Phone: (425)688-9200
> > > Cell: (425)766-1398
> > >
> > > -Original Message-
> > > From: Philip Olson [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, January 31, 2001 5:40 PM
> > > To: Shane McBride
> > > Cc: [EMAIL PROTECTED]
> > > Subject: Re: [PHP] Pricing for PHP programming???
> > >
> > >
> > >
> > > Hey Shane,
> > >
> > > This is a tricky issue, here's me (USD):
> > >
> > >   $60/hr
> > >   $30/hr if end result becomes open sourced (no strings)
> > >
> > > General discounts for features such as : fun,true
> non-profit,intelligent
> > > employer,learning curve and it all lives on a sliding scale
> depending on
> > > their ability to pay and my desire for work/money (time).
> Also, barter
> > > is usually an option.  Usually hovers between 30-50 and one
> day this will
> > > go up :-)  This is the most difficult part of the job, time estimates
> > > and pricing.  Bah.  "Just give me money and I'll do stuff."
> > >
> > > Regards,
> > >
> > > Philip Olson
> > > http://www.cornado.com/
> > >
> > >
> > > > On Wed, Jan 31, 2001 at 03:25:27PM -0500, Shane McBride wrote:
> > > > I know this is not really a PHP question, but it should
> make for a good
> > > > thread. :)
> > > >
> > > > I was wondering what other PHP people charge to write PHP?
> I have just
> > > > been given a project for a fairly large customer, much larger than I
> > > > normally do work for. So I am VERY confused.concerned about
> how to price
> > > > it. Most of my other PHP projects have been done for small
> single owners
> > > > businesses, and the PHP has been pretty basic.
> > > >
> > > > Now that I can actually do what I am being asked without
> have to learn
> > > > 

[PHP] Setting The Font In SENDMAIL

2001-02-01 Thread Jeff Gannaway

Since so many people are now using MS Outlook for their e-mail which
defaults to  a proportional-width font (and I think newer Eudoras do too),
I've found times that I need to specify a fixed-width font (IE Courier,
Courier New) in so that columns of financials line up.

How do I do this with dynamically created data generated and mailed out
with a PHP script?

Thanks,
Jeff Gannaway
___

 2001 Wall Calendars
   * Art, Jazz, Blues, Women's, African-American.
   * Everyday Discounts.
   * Excellent paper and reproductions.
 
 And as always, a great selection of abstract,
 contemporary and African-American art prints.

 PopStreet.com is your avenue to art.
 http://www.popstreet.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] Pricing for PHP programming???

2001-02-01 Thread Brian V Bonini

Ah, I see. Thanks for clarifying.

I only asked because the HTML lists @
the HTML Writers Guild strictly prohibit
this sort of discussion, their reason always
having been that they are concerned about
'price fixing' laws.
It always seemed a little overkill to me.

Thanks,
-Brian
*
> -Original Message-
> From: Joe Stump [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 01, 2001 9:52 AM
> To: Brian V Bonini
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Pricing for PHP programming???
>
>
> You are taking this WAY to seriously. What you are talking about
> is the Sherman
> Act that developed our current antitrust laws. Specifically you
> are talking
> about "price fixing", which is illegal in the US. If EVERY PHP
> coder in the US
> got together at a trade show and said "We will all demand $150.00
> an hour no
> matter what" then THAT would be illegal. Me mentioning to you how
> much I charge
> is totally legal.
>
> This mainly applies to big businesses and large manufacturers -
> OPEC for example
> would be TOTALLY illegal in the US.
>
> --Joe
>
> On Thu, Feb 01, 2001 at 08:49:00AM -0500, Brian V Bonini wrote:
> > Isn't it illegal in the US to discuss
> > rates in this manner?
> >
> > It's always been my understanding that
> > The U.S. law specifically makes discussion
> > of pricing between competitors (all or some)
> > a federal offense.
> >
> > Am I taking this too literally?
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
>
> --
> -
> Joe Stump, PHP Hacker, [EMAIL PROTECTED]
>   -o)
> http://www.miester.org http://www.care2.com
>   /\\
> "It's not enough to succeed. Everyone else must fail" -- Larry
> Ellison _\_V
> --
> -
>
>
> --
> PHP General Mailing List (http://www.php.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] upload_max_filesize

2001-02-01 Thread WreckRman2

Sure, it is a dedicated RaQ3 server, running Linux/Apache, in which I didn't
do the PHP install myself. I believe it not to be a dummy account because it
shows:

* NOTICE TO ROOT USER: Changes to system files may affect   *
* your warranty. Please consult your warranty card for details. *
*   *
* http://www.cobaltnet.com

at login... Below is my phpinfo script.

http://www.indywebdesign.com/phpinfo.php

Thanks...

- Original Message -
From: Jon Haworth <[EMAIL PROTECTED]>
To: 'WreckRman2' <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 11:23 AM
Subject: RE: [PHP] upload_max_filesize


> Where did you put it when you installed PHP?
>
> If you didn't install PHP, but you're telnetting into a remote server, are
> you sure it's not showing you a dummy shell? You may have to ask your
> hosting company nicely to make the change for you.
>
> Can we have some more details of your OS, configuration, and whether
you're
> responsible for the PHP installation?
>
> Cheers
> Jon
>
>
>
> -Original Message-
> From: WreckRman2 [mailto:[EMAIL PROTECTED]]
> Sent: 01 February 2001 16:07
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] upload_max_filesize
>
>
> Actually it isn't on a windows system. Looking at my phpinfp.php file it
> shows "Configuration File (php.ini) Path" as /usr/local/lib but I see no
> file called php.ini in there using ftp or telnet. Any ideas?
>
> David
>
> - Original Message -
> From: Jon Haworth <[EMAIL PROTECTED]>
> To: 'David Smith' <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
> Sent: Thursday, February 01, 2001 8:07 AM
> Subject: RE: [PHP] upload_max_filesize
>
>
> > It's usually in your system root, but you could have put it somewhere
else
> > when you installed PHP.
> >
> > If you're on Windows it's liable to be in \windows\system,
> > \windows\system32, \winnt\system, or \winnt\system32. Most OSes come
with
> a
> > Find Files command these days (just a thought).
> >
> > Once you have found it, open it in your favourite text editor. Search
for
> > "upload_max_filesize" and set it to whatever you like. Save it. Tell
your
> > boss you'll have to spend all afternoon fixing this bug, then spend the
> rest
> > of the day reading Dilbert cartoons.
> >
> >
> > HTH
> > Jon
> >
> >
> > -Original Message-
> > From: David Smith [mailto:[EMAIL PROTECTED]]
> > Sent: 01 February 2001 11:45
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: Re: [PHP] upload_max_filesize
> >
> >
> > Sorry, that isn't very detailed but I appreciate your help. Where can I
> find
> > php.ini?
> >
> >
> > - Original Message -
> > From: Jonatan Bagge <[EMAIL PROTECTED]>
> > To: David Smith <[EMAIL PROTECTED]>
> > Sent: Thursday, February 01, 2001 6:41 AM
> > Subject: Re: [PHP] upload_max_filesize
> >
> >
> > > David Smith wrote:
> > >
> > > > Can anyone explain in detail how I can increase the
> upload_max_filesize
> > to 5 meg instead of the default 2 meg?
> > > >
> > > > Thanks,
> > > >
> > > > David
> > >
> > > php.ini
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




Re: [PHP] Oracle failed to connect

2001-02-01 Thread Iván Sánchez Ortega \"MR\"

""kaab kaoutar"" ...
> Hi!
> I'm using orcale8 and as long as oracle8 ocilogon does not work, i tried
the
> oracle function and i always get:
> for  Ora_Logon("kaab@KKAnn", "kaab");
>   connection failed could not resolve service name

Just try to reinstall PHP, and the Oracle 8 libraries for PHP - some
packages don't include them - i had to reinstall my web server 3 or 4 times
until PHP was able to locate the library and use OciLogon()...



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




[PHP] Cant get this one

2001-02-01 Thread Mike

Im trying to create  an edit page for database records on the fly.I get all
the fieldnames and all the textboxes but only the first textbox has data.the
rest are always empty.any suggestions?

for ($i =0;$i$name";
}


Thanks
Mike P
[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] Tab character

2001-02-01 Thread Alexander Skwar

So sprach Karl J. Stubsjoen am Thu, Feb 01, 2001 at 08:17:44AM -0700:
> Is this a tab character \t

yes

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

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




[PHP] Help needed tsrm_error

2001-02-01 Thread Tony Brown

Hello all,

I have an issue that I can not seem to resolve.  Scenario:

Solaris 2.7
Netscape Enterprise Server 4.1
PHP 4.0.4
Oracle 8i

Configured as:
--enable-debug
--enable-pic
--enable-inline-optimization
--with-regex=system
--with-gettext=/usr/bin
--enable-safe-mode
--enable-sysvmem
--enable-sysvshm
--enable-track-vars
--enable-ftp
--with-xml
--with-nsapi=/usr/netscape/server4
--with-oracle=/vol01/app/oracle/product/8.1.6
--enable-libgcc

The problem occurs when I issue ./start to netscape, I get the following
error:

conf_init:  Error running init function load-modules: dlopen of
/usr/netscape/server4/bin/libphp4.so failed (ld.so.1: ns-httpd: fatal:
relocation error: file /usr/netscape/server4/bin/libphp4.so: symbol
tsrm_error referenced symbol not found)

I have tried configuring --with-tsrm-pthreads and I did not get an error
when I issue ./start for netscape, however the page with xml code shows up
blank in my browser after this happens.

I have played around with LD_LIBRARY_PATH trying to find where tsrm_error
resides (multiple net searches also) and can not seem to find any useful
information.

I researched a similar problem and the person that resolved it says that he
had to 'add a patch for ZTS and use the --enable-experimental-zts flag'.  I
tried the --enable-experimental-zts flag with no success.  I searched the
net for ZTS and could not find a download.

Can anyone help?  What is tsrm?

Thanks in advance,

Tony




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




[PHP] test, please ignore.

2001-02-01 Thread Zhu George-CZZ010

eom

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

2001-02-01 Thread Alexander Skwar

So sprach Martin A. Marques am Thu, Feb 01, 2001 at 12:20:54PM -0300:
> yes (depending)

On what?

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

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




[PHP-CVS] cvs: php4 /ext/pcre php_pcre.c

2001-02-01 Thread Andrei Zmievski

andrei  Thu Feb  1 07:25:53 2001 EDT

  Modified files:  
/php4/ext/pcre  php_pcre.c 
  Log:
  No need for CLS_FETCH().
  
  
Index: php4/ext/pcre/php_pcre.c
diff -u php4/ext/pcre/php_pcre.c:1.83 php4/ext/pcre/php_pcre.c:1.84
--- php4/ext/pcre/php_pcre.c:1.83   Thu Feb  1 07:24:17 2001
+++ php4/ext/pcre/php_pcre.cThu Feb  1 07:25:53 2001
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: php_pcre.c,v 1.83 2001/02/01 15:24:17 sas Exp $ */
+/* $Id: php_pcre.c,v 1.84 2001/02/01 15:25:53 andrei Exp $ */
 
 /*
TODO:
@@ -568,7 +568,6 @@
zval*subpats;   /* Captured subpatterns */ 
int  result_len;/* Return value length */
int  i;
-   CLS_FETCH();
ELS_FETCH();
 
MAKE_STD_ZVAL(subpats);



-- 
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 /ext/zlib zlib.c

2001-02-01 Thread Sascha Schumann

sas Thu Feb  1 08:29:07 2001 EDT

  Modified files:  
/php4/ext/zlib  zlib.c 
  Log:
  Fix a huge memory leak in the ob_gzhandler.
  
  
Index: php4/ext/zlib/zlib.c
diff -u php4/ext/zlib/zlib.c:1.68 php4/ext/zlib/zlib.c:1.69
--- php4/ext/zlib/zlib.c:1.68   Mon Nov 20 16:40:12 2000
+++ php4/ext/zlib/zlib.cThu Feb  1 08:29:07 2001
@@ -16,7 +16,7 @@
|  Stefan Röhrich <[EMAIL PROTECTED]>|
+--+
  */
-/* $Id: zlib.c,v 1.68 2000/11/21 00:40:12 hholzgra Exp $ */
+/* $Id: zlib.c,v 1.69 2001/02/01 16:29:07 sas Exp $ */
 #define IS_EXT_MODULE
 
 #include "php.h"
@@ -1032,6 +1032,7 @@
 
*new_length = buf_used + 10 + 8;
*newstr = buffer;
+   deflateEnd(&ZLIBG(stream));
 
return SUCCESS;
 }



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

2001-02-01 Thread WreckRman2

Actually it isn't on a windows system. Looking at my phpinfp.php file it
shows "Configuration File (php.ini) Path" as /usr/local/lib but I see no
file called php.ini in there using ftp or telnet. Any ideas?

David

- Original Message -
From: Jon Haworth <[EMAIL PROTECTED]>
To: 'David Smith' <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 8:07 AM
Subject: RE: [PHP] upload_max_filesize


> It's usually in your system root, but you could have put it somewhere else
> when you installed PHP.
>
> If you're on Windows it's liable to be in \windows\system,
> \windows\system32, \winnt\system, or \winnt\system32. Most OSes come with
a
> Find Files command these days (just a thought).
>
> Once you have found it, open it in your favourite text editor. Search for
> "upload_max_filesize" and set it to whatever you like. Save it. Tell your
> boss you'll have to spend all afternoon fixing this bug, then spend the
rest
> of the day reading Dilbert cartoons.
>
>
> HTH
> Jon
>
>
> -Original Message-
> From: David Smith [mailto:[EMAIL PROTECTED]]
> Sent: 01 February 2001 11:45
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP] upload_max_filesize
>
>
> Sorry, that isn't very detailed but I appreciate your help. Where can I
find
> php.ini?
>
>
> - Original Message -
> From: Jonatan Bagge <[EMAIL PROTECTED]>
> To: David Smith <[EMAIL PROTECTED]>
> Sent: Thursday, February 01, 2001 6:41 AM
> Subject: Re: [PHP] upload_max_filesize
>
>
> > David Smith wrote:
> >
> > > Can anyone explain in detail how I can increase the
upload_max_filesize
> to 5 meg instead of the default 2 meg?
> > >
> > > Thanks,
> > >
> > > David
> >
> > php.ini
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




[PHP] Email Attachment

2001-02-01 Thread Website4S

Hi,

I know how to send a standard email, but I`m having a bit of trouble adding 
an attachment, can anyone put me right?

this is my code which works fine...

$subject="Hi";
$email="[EMAIL PROTECTED]";
$from="[EMAIL PROTECTED]";
$message="Hi this is me testing my PHP mail script";

mail($email, $subject, $message, $from);

TIA
Ade

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




[PHP] Transitioning from php3 to php4

2001-02-01 Thread Chana Black

Hi,

I'm not sure if this is the proper forum for this question, if it is not, 
please let me know!

I have several sites that need to be upgraded from php3 to php4. In order 
to test compliance of the php3 code on php4, I need to know exactly which 
functions have different usage / results on php4.

I know that include() and rand() work differently, any others?

Does anyone know of an article / page in docs that explains this? There was 
a page like this on php.net when php4 was first released, but I can't find 
it anymore. The faq on this does not have any useful info.

Thanks,
Chana Black


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




[PHP] php4 - MS SQL7 connection problem

2001-02-01 Thread Martin Tiscornia

Hello!
I'm running: WinNT4, IIS4, php 4.03pl1, and I'm trying to connect to MS SQL
7.
Well, I configured the php.ini (extension=php_mssql70.dll), and I copy that
.dll to the windows folder. Now I want to connect to the SQL and it doesn't
work, it makes a time out. If I do the same things with php 3.0.17 it works
fine.
The code:

   
   
   Untitled
   
   
   
   

Any solution?
Thank you in advance . . .


  - @n Angel -
_
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] Cant get this one

2001-02-01 Thread Chris Lee

works and alot simpler



--



Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]



""Mike"" <[EMAIL PROTECTED]> wrote in message
95c33h$5a3$[EMAIL PROTECTED]">news:95c33h$5a3$[EMAIL PROTECTED]...
> Im trying to create  an edit page for database records on the fly.I get
all
> the fieldnames and all the textboxes but only the first textbox has
data.the
> rest are always empty.any suggestions?
>
> for ($i =0;$i {
>
>  $row = mysql_fetch_row($result);
>  $name=mysql_field_name($result,$i);
>   echo "$name size='20'>";
> }
>
>
> Thanks
> Mike P
> [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] Pricing for PHP programming???

2001-02-01 Thread thor

Yes, you are taking this too literally.
Our first amendment right superecedes any law.

What you may be referring to is when competitors in a small market (or in a market 
with limited competition) compare their prices behind the scenes in order to keep the 
prices high.  Which is what the oil companies are often accused of doing (ever wonder 
why gas prices are usually within a few cents or even identical between stations even 
though they're supposed competitors?).


-- Original Message --
From: "Brian V Bonini" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
Date: Thu, 1 Feb 2001 08:49:00 -0500

>Isn't it illegal in the US to discuss
>rates in this manner?
>
>It's always been my understanding that
>The U.S. law specifically makes discussion
>of pricing between competitors (all or some)
>a federal offense. 
>
>Am I taking this too literally?
>
>-- 
>PHP General Mailing List (http://www.php.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] php4 - MS SQL7 connection problem

2001-02-01 Thread Jason Bouwmeester

Not sure if this helps but when I used PHP and SQL 7 I used odbc set of
commands, not mmssql commands (i.e. odbc_pconnect and odbc_close etc).

HTH,
Jason

-Original Message-
From: Martin Tiscornia [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 10:27 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php4 - MS SQL7 connection problem


Hello!
I'm running: WinNT4, IIS4, php 4.03pl1, and I'm trying to connect to MS SQL
7.
Well, I configured the php.ini (extension=php_mssql70.dll), and I copy that
.dll to the windows folder. Now I want to connect to the SQL and it doesn't
work, it makes a time out. If I do the same things with php 3.0.17 it works
fine.
The code:

   
   
   Untitled
   
   
   
   

Any solution?
Thank you in advance . . .


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


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

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




[PHP] Open a new window

2001-02-01 Thread Francisco Aguilera

Hi,

I have a peace of code PHP like this:

http://www.php.net");
print ("Wait .");
?>

But the word 'Wait' doesn't appear.

I'm looking for a function that open a new window and write in the
sentece "Wait "

I'm sure you could help me.

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] Suggest for List

2001-02-01 Thread Jon Jacob

This list is very active, but I find that I am deleting about 70% of the
messages about reading the first line.  Mostly, this is because so many
of the users are new that their questions are very basic.

It might be a good idea to have a beginners and an advanced list.

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

2001-02-01 Thread Jon Haworth

Of course, this might also be something to do with the fact that if one
place is charging 80p/litre and one is charging 90p/litre, where are you
going to spend your cash, given there's no difference between the petrol?


-Original Message-
From: thor [mailto:[EMAIL PROTECTED]]
Sent: 01 February 2001 17:30
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Pricing for PHP programming???


What you may be referring to is when competitors in a small market (or in a
market with limited competition) compare their prices behind the scenes in
order to keep the prices high.  Which is what the oil companies are often
accused of doing (ever wonder why gas prices are usually within a few cents
or even identical between stations even though they're supposed
competitors?).



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




[PHP] trouble with odbc

2001-02-01 Thread Michael Geier

I am running php4.04pl1 on RedHat6.2 with --esoob (EasySoft) connecting to
MSSQL 7.0 on WinNT 4.
The connection to this db works from another program on same machine.



$count is returning -1.

When running SQL Server Enterprise Mgr. on NT box, this query reurns 3 dummy
records.  Does anyone see the error?  All help appreciated.

Michael Geier
CDMSports Systems Administration
 EMail: [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] Is there a 'redo' loop control function?

2001-02-01 Thread Jason Murray

John Luxford wrote:
> 
> Hello
> 
> Is there a 'redo' loop control function?  All I can find are 'break' and
> 'continue'.
> 
> Thanks
> 
> Lux
> 

Hi,

Here's one way:

for ($nr = 0; $nr < 5; $nr++) {
if ($arr[$nr] == "foo") {
$arr[$nr] = "bar";  /* otherwise it's infinite */
--$nr;
continue;
}
}

By the way, This is not considered a Good Thing by anyone I know. Mostly
it is just a waste of time--is it really necessary to do this? Not in
this case, but it's just an illustration. Otherwise, if you are not
careful, you'll get infinite loops or some other wierdness.

Regards,
Jason

-- 
Jason Murray
Developer
http://www.jwebmedia.com/
1 877 525 jWEB

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

2001-02-01 Thread Thies C. Arntzen

thies   Thu Feb  1 09:14:19 2001 EDT

  Modified files:  
/php4/ext/zlib  zlib.c 
  Log:
  @- When using the ob_gzhandler() PHP now automagically also sets the 
  @  Content-Lengh correctly which enables browsers to use the HTTP 
  @  Keep-Alive feature. (Thies)
  
  
Index: php4/ext/zlib/zlib.c
diff -u php4/ext/zlib/zlib.c:1.69 php4/ext/zlib/zlib.c:1.70
--- php4/ext/zlib/zlib.c:1.69   Thu Feb  1 08:29:07 2001
+++ php4/ext/zlib/zlib.cThu Feb  1 09:14:18 2001
@@ -16,7 +16,7 @@
|  Stefan Röhrich <[EMAIL PROTECTED]>|
+--+
  */
-/* $Id: zlib.c,v 1.69 2001/02/01 16:29:07 sas Exp $ */
+/* $Id: zlib.c,v 1.70 2001/02/01 17:14:18 thies Exp $ */
 #define IS_EXT_MODULE
 
 #include "php.h"
@@ -1115,8 +1115,14 @@
return_original = 1;
break;
}
+
if (return_original) {
zval_dtor(return_value);
+   } else {
+   char lenbuf[ 64 ];
+   
+   sprintf(lenbuf,"Content-Length: %d",Z_STRLEN_P(return_value));
+   sapi_add_header(lenbuf,strlen(lenbuf), 1);
}
} else {
return_original = 1;



-- 
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] Setting The Font In SENDMAIL

2001-02-01 Thread Chris Lee

You mean, 'how do I send an HTML email' right? I dont see how you can set a
font unless its HTML or RichText.

hello? \n";

 mail($email_address, $email_subject, $email_body, $email_header);
?>

This should work...

--



Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]





"Jeff Gannaway" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Since so many people are now using MS Outlook for their e-mail which
> defaults to  a proportional-width font (and I think newer Eudoras do too),
> I've found times that I need to specify a fixed-width font (IE Courier,
> Courier New) in so that columns of financials line up.
>
> How do I do this with dynamically created data generated and mailed out
> with a PHP script?
>
> Thanks,
> Jeff Gannaway
> ___
>
>  2001 Wall Calendars
>* Art, Jazz, Blues, Women's, African-American.
>* Everyday Discounts.
>* Excellent paper and reproductions.
>
>  And as always, a great selection of abstract,
>  contemporary and African-American art prints.
>
>  PopStreet.com is your avenue to art.
>  http://www.popstreet.com
> ___
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



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




Re: [PHP] NEWBIE QUESTION

2001-02-01 Thread Johannes Janson

Hi,

first of all being desperate for help is okay but please don't write in
cabs.

try this:
while ($row = mysql_fetch_array($result) ) {
echo "http://tias.kub.nl/programs/$row[opleiding_afkorting]/
$row[leergang_afkorting/
virtuele.klas/programma/blok$row[module_nummer/$row[leergang_afkorting]_blok
0
$orw[module_nummer].html>$row[module_nummer]";
}
this lists the links. If "blok0" should increment you'll need to put
something like
$i = 0 before the while loop and $i++ after the "echo"

good luck
Johannes


"Stinie Steinbach" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> DOES ANYONE KNOW WHAT'S WRONG WITH THIS CODE
> IK WANT TO GENERATE A CODE THAT SELECTS A COUPELE OF PARAMETERS FROM TWO
> TABLES IN A MYSQL DATABASE...
> THE QUERY THAT I USE WORKS CORRECTLY BUT I HAVE A PROBLEM WITH THE LINKS
> I WANT TO GENERATE WITH PHP...
> I NEED TO CREATE AN ARRAY OF LINKS THAT LOOK LIKE THIS...
>
> BLOK 0 | BLOK 1 | BLOK 2 | BLOK 3 | BLOK 4 | BLOK 5 | BLOK 6 | BLOK 7 |
> BLOK 8 | BLOK 9
>
> PLEASE HELP!!!
>
> 
>  $result = mysql_query ("select m.module_id, m.leergang_afkorting,
> m.module_nummer, l.opleiding_afkorting
>from module m, leergang l where m.leergang_afkorting =
> l.leergang_afkorting
>and m.leergang_afkorting = 'EDP16' order by m.module_nummer");
> while (list
> ($module_id,$leergang_afkorting,$module_nummer,$opleiding_afkorting) =
> mysql_fetch_row ($result)) {
>  echo "
href=\"http://tias.kub.nl/programs/\"opleiding_afkorting=$opleiding_afkortin
g\"/
>
>\"leergang_afkorting=$leergang_afkorting\"/
>
\"virtuele.klas/programma/blok\"module_nummer=$module_nummer\"/\"leergang_af
korting=$leergang_afkorting\"_blok0\"
>
>module_nummer=$module_nummer.html\">$module_nummer
> }
> ?>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



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




[PHP] RE: test

2001-02-01 Thread Jon Haworth

No, I didn't get it 

-Original Message-
From: ybcat [mailto:[EMAIL PROTECTED]]
Sent: 01 February 2001 15:47
To: [EMAIL PROTECTED]
Subject: test


OK?

-- 
PHP General Mailing List (http://www.php.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 " quotes inside textbox

2001-02-01 Thread Karl J. Stubsjoen

Hello,

I'm trying to pass back a link to the user in a textbox (so they can copy
and paste it elsewhere), however my textbox is being parsed incorrectly by
the browser because of the " quotes which happen in the link I'm passing -
basically the HTML for the text box is getting parsed together with the HTML
for the passed link and  the results are messed up.

How do you pass quotes to a textbox?

Thanks!


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




RE: [PHP] Pricing for PHP programming???

2001-02-01 Thread Jerry Lake

Yep, ain't it grand...
I got hired on as a designer
and somebody got the bright idea
that I must be a programmer as well
funny I don't remember that on my resume.

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


-Original Message-
From: Robin Vickery [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 3:43 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Pricing for PHP programming???


> "JG" == "Josh G" <[EMAIL PROTECTED]> writes:

 > I hear you. Another thing that's hard to find, is somebody who is a
 > good programmer, and a good graphic designer. 

I've never quite understood why employers seem to expect that a
php/perl programmer should also be doing graphic design. They're
quite unrelated activities using completely different skills. It's
not something that's generally expected from other professions
(when was the last time you saw an advert for an accountant that
required they be proficient with Photoshop?) so why programmers?


-robin (who can't draw for toffee)


-- 
Robin Vickery.
BlueCarrots, 14th Floor, 20 Eastbourne Terrace, London, W2 6LE

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

2001-02-01 Thread Institute for Social Ecology

Jason, 

Thanks for the pointer. Worked like a charm, well almost.  I had to tweak
my .htaccess file as it was messing up some global variables cause i was
using absolute URLS to point to my error script.  

Someone else ask to see the script.  You can check it
at:  http://www.social-ecology.org/404.txt  The top part of the script
actually does all the funky passing of error info to a selected email, and
the bottom part is the page that is displayed upon a 404 error.  You'll
have to mess with your .htaccess so it looks something like this:

ErrorDocument 404 /404.php

Thanks again!

Michael

On Thu, 1 Feb 2001, Jason Murray wrote:

> > I am writing a script that will send me an email every time a 404 
> > error is returned for an http request.  So far I have the script 
> > working so that it will email me and inform me of the URL of the 
> > page that has the offending link by using the HTTP_REFERER environment 
> > variable.  I would also like to find out what the requested page URL is. 
> > I have checked phpinfo() for info on other Apache enviro variables, 
> > but can't seem to find anything that would work. How can I do this? 
> > Is it possible?
> 
> Sure - $REQUEST_URI is what you're looking for.
> 
> Example of its use: http://www.inww.com/typesomecrapinhere :)
> 
> Jason
> 
> -- 
> PHP General Mailing List (http://www.php.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/zlib zlib.c

2001-02-01 Thread Thies C. Arntzen

thies   Thu Feb  1 09:16:35 2001 EDT

  Modified files:  
/php4/ext/zlib  zlib.c 
  Log:
  ws-only
  
  
Index: php4/ext/zlib/zlib.c
diff -u php4/ext/zlib/zlib.c:1.70 php4/ext/zlib/zlib.c:1.71
--- php4/ext/zlib/zlib.c:1.70   Thu Feb  1 09:14:18 2001
+++ php4/ext/zlib/zlib.cThu Feb  1 09:16:35 2001
@@ -16,7 +16,7 @@
|  Stefan Röhrich <[EMAIL PROTECTED]>|
+--+
  */
-/* $Id: zlib.c,v 1.70 2001/02/01 17:14:18 thies Exp $ */
+/* $Id: zlib.c,v 1.71 2001/02/01 17:16:35 thies Exp $ */
 #define IS_EXT_MODULE
 
 #include "php.h"
@@ -1119,7 +1119,7 @@
if (return_original) {
zval_dtor(return_value);
} else {
-   char lenbuf[ 64 ];
+   char lenbuf[64];

sprintf(lenbuf,"Content-Length: %d",Z_STRLEN_P(return_value));
sapi_add_header(lenbuf,strlen(lenbuf), 1);



-- 
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 / php.ini-dist

2001-02-01 Thread Colin Viebrock

cmv Thu Feb  1 07:41:04 2001 EDT

  Modified files:  
/php4   php.ini-dist 
  Log:
  While we're fixing the ini files, change these to web-safe colours 
  ... this always bugged me :)
  
  
  
Index: php4/php.ini-dist
diff -u php4/php.ini-dist:1.67 php4/php.ini-dist:1.68
--- php4/php.ini-dist:1.67  Wed Jan 31 22:29:41 2001
+++ php4/php.ini-dist   Thu Feb  1 07:41:02 2001
@@ -1,5 +1,5 @@
 [PHP]
-; $Id: php.ini-dist,v 1.67 2001/02/01 06:29:41 jon Exp $
+; $Id: php.ini-dist,v 1.68 2001/02/01 15:41:02 cmv Exp $
 
 ;;;
 ; About this file ;
@@ -130,11 +130,11 @@
 
 ; Colors for Syntax Highlighting mode.  Anything that's acceptable in
 ;  would work.
-highlight.string   =   #DD
-highlight.comment  =   #FF8000
-highlight.keyword  =   #007700
+highlight.string   =   #CC
+highlight.comment  =   #FF9900
+highlight.keyword  =   #006600
 highlight.bg   =   #FF
-highlight.default  =   #BB
+highlight.default  =   #CC
 highlight.html =   #00
 
 



-- 
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] Include " quotes inside textbox

2001-02-01 Thread Chana Black

If you want to put a " in an echo statement, you need to escape it first by 
putting the / before it, like /"

The function addslashes does this for you.

CB

At 11:07 AM 2/1/01 -0700, Karl J. Stubsjoen wrote:
>Hello,
>
>I'm trying to pass back a link to the user in a textbox (so they can copy
>and paste it elsewhere), however my textbox is being parsed incorrectly by
>the browser because of the " quotes which happen in the link I'm passing -
>basically the HTML for the text box is getting parsed together with the HTML
>for the passed link and  the results are messed up.
>
>How do you pass quotes to a textbox?
>
>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-CVS] cvs: php4 /ext/gd gd.c gd_ctx.c php_gd.h

2001-02-01 Thread Stanislav Malyshev

stasThu Feb  1 07:40:35 2001 EDT

  Added files: 
/php4/ext/gdgd_ctx.c 

  Modified files:  
/php4/ext/gdgd.c php_gd.h 
  Log:
  Allow usage of GD contexts and not tempfiles in output functions
  
  

Index: php4/ext/gd/gd.c
diff -u php4/ext/gd/gd.c:1.111 php4/ext/gd/gd.c:1.112
--- php4/ext/gd/gd.c:1.111  Sat Jan 27 06:20:06 2001
+++ php4/ext/gd/gd.cThu Feb  1 07:40:34 2001
@@ -18,7 +18,7 @@
+--+
  */
 
-/* $Id: gd.c,v 1.111 2001/01/27 14:20:06 eschmid Exp $ */
+/* $Id: gd.c,v 1.112 2001/02/01 15:40:34 stas Exp $ */
 
 /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, 
Cold Spring Harbor Labs. */
@@ -30,7 +30,6 @@
 #include 
 #include "SAPI.h"
 #include "php_gd.h"
-#include "ext/standard/fsock.h"
 #include "ext/standard/info.h"
 
 #if HAVE_SYS_WAIT_H
@@ -69,20 +68,26 @@
 static void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int);
 #endif
 
-#ifdef GD2_VERS
+#if HAVE_LIBGD15
 /* it's >= 1.5, i.e. has IOCtx */
 #define USE_GD_IOCTX 1
 #else
 #undef USE_GD_IOCTX
 #endif
 
-#ifndef USE_GD_IOCTX
+#ifdef USE_GD_IOCTX
+#include "gd_ctx.c"
+#else
 #define gdImageCreateFromGifCtx NULL
 #define gdImageCreateFromJpegCtx NULL
 #define gdImageCreateFromPngCtx  NULL
 #define gdImageCreateFromWBMPCtx NULL
+typedef FILE gdIOCtx;
+#define CTX_PUTC(c,fp) fputc(c, fp)
 #endif
 
+static void _php_image_output_wbmp(gdImagePtr im, gdIOCtx *fp);
+
 #ifdef THREAD_SAFE
 DWORD GDlibTls;
 static int numthreads=0;
@@ -662,26 +667,24 @@
if(issock && socketd) {
 #ifdef USE_GD_IOCTX
gdIOCtx* io_ctx;
-#define  CHUNK_SIZE 8192
-   int read_len=0,buff_len=0,buff_size=5*CHUNK_SIZE;
-   char *buff,*buff_cur;
+   int buff_size;
+   char *buff,*buff_em;
 
-   buff = malloc(buff_size); /* Should be malloc! GD uses free */
-   buff_cur = buff;
+   buff_size = php_fread_all(&buff_em, socketd, fp, issock);
 
-   do {
-   if(buff_len > buff_size - CHUNK_SIZE) {
-   buff_size += CHUNK_SIZE;
-   buff = realloc(buff, buff_size);
-   }
-   read_len = SOCK_FREAD(buff_cur, CHUNK_SIZE, socketd);
-   buff_len += read_len;
-   buff_cur += read_len;
-   } while(read_len>0);
+   if(!buff_size) {
+   php_error(E_WARNING,"%s: Cannot read image 
+data",get_active_function_name());
+   RETURN_FALSE;
+   }
+   
+   buff = malloc(buff_size); /* Should be malloc! GD uses free */
+   memcpy(buff, buff_em, buff_size);
+   efree(buff_em);
 
-   io_ctx = gdNewDynamicCtx(buff_len,buff);
+   io_ctx = gdNewDynamicCtx(buff_size,buff);
if(!io_ctx) {
php_error(E_WARNING,"%s: Cannot allocate GD IO 
context",get_active_function_name());
+   RETURN_FALSE;
}
im = (*ioctx_func_p)(io_ctx);
io_ctx->free(io_ctx);
@@ -888,7 +891,11 @@
 PHP_FUNCTION(imagegif)
 {
 #ifdef HAVE_GD_GIF
+#ifdef USE_GD_IOCTX
+   _php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GIF, 
+"GIF", gdImageGifCtx);
+#else
_php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GIF, "GIF", 
gdImageGif);
+#endif
 #else /* HAVE_GD_GIF */
php_error(E_WARNING, "ImageGif: No GIF support in this PHP build");
RETURN_FALSE;
@@ -901,7 +908,11 @@
 PHP_FUNCTION(imagepng)
 {
 #ifdef HAVE_GD_PNG
+#ifdef USE_GD_IOCTX
+   _php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_PNG, 
+"PNG", gdImagePngCtx);
+#else
_php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_PNG, "PNG", 
gdImagePng);
+#endif
 #else /* HAVE_GD_PNG */
php_error(E_WARNING, "ImagePng: No PNG support in this PHP build");
RETURN_FALSE;
@@ -915,7 +926,11 @@
 PHP_FUNCTION(imagejpeg)
 {
 #ifdef HAVE_GD_JPG
+#ifdef USE_GD_IOCTX
+   _php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_JPG, 
+"JPEG", gdImageJpegCtx);
+#else
_php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_JPG, 
"JPEG", gdImageJpeg);
+#endif
 #else /* HAVE_GD_JPG */
php_error(E_WARNING, "ImageJpeg: No JPG support in this PHP build");
RETURN_FALSE;
@@ -927,29 +942,33 @@
Output WBMP image to browser or file */
 PHP_FUNCTION(imagewbmp)
 {
+#ifdef USE_GD_IOCTX
+   _php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_WBM, 
+"WBMP", _php_image_output_wbmp);
+#else
_php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_WBM, 
"WBMP", _php_image_output_wbmp);
+#endif
 }
 /* }}} */
 
 /* {{{ _php

  1   2   3   >