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

2001-01-25 Thread Rasmus Lerdorf

rasmus  Thu Jan 25 17:42:59 2001 EDT

  Modified files:  
/CVSROOTavail cvsusers gen_acl_file.m4 
  Log:
  doc account for Clemens Gutweiler
  
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.55 CVSROOT/avail:1.56
--- CVSROOT/avail:1.55  Wed Jan 24 11:54:47 2001
+++ CVSROOT/avail   Thu Jan 25 17:42:59 2001
@@ -6,7 +6,7 @@
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave|php4,php3,php31,phpfi
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,hholzgra|functable
 avail|rasmus,sterling,jimw|pres
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron|phpdoc
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg|phpdoc
 avail|rasmus|php4/ext/aspell
 avail|andi|php4/ext/bcmath
 avail|NOBODY|php4/ext/calendar
Index: CVSROOT/cvsusers
diff -u CVSROOT/cvsusers:1.193 CVSROOT/cvsusers:1.194
--- CVSROOT/cvsusers:1.193  Wed Jan 24 11:54:47 2001
+++ CVSROOT/cvsusersThu Jan 25 17:42:59 2001
@@ -240,3 +240,4 @@
 malo  J.Anton, Lee[EMAIL PROTECTED]   Korean 
translation
 afortalezaAnderson da Silveira Fortaleza [EMAIL PROTECTED] 
Brazilian Portuguese translation
 opaquedaveDave Hayden [EMAIL PROTECTED] ming 
extension
+cgClemens Gutweiler   [EMAIL PROTECTED]   German 
+translation
Index: CVSROOT/gen_acl_file.m4
diff -u CVSROOT/gen_acl_file.m4:1.55 CVSROOT/gen_acl_file.m4:1.56
--- CVSROOT/gen_acl_file.m4:1.55Wed Jan 24 11:54:47 2001
+++ CVSROOT/gen_acl_file.m4 Thu Jan 25 17:42:59 2001
@@ -3,7 +3,7 @@
 dnl PHP Developers (full access to the source trees)
 define(`php_dev', 
`php_group,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave')
 dnl PHP Documentation Group
-define(`php_doc', 
`chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron')dnl
+define(`php_doc', 
+`chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamor

RE: [PHP] password protection

2001-01-25 Thread James Atkinson

The only way to keep a password secure between the client and server is to
use a Secure Socket Layer (SSL) to create an encrypted channel of
communication between the client and server. You can see this in practice
over at Sourceforge.net. They use PHP over an SSL connection to handle user
logins.

Do a seach on Google for 'SSL' and start reading :)

- James

> -Original Message-
> From: Bill Rausch [mailto:[EMAIL PROTECTED]]
> Sent: January 25, 2001 4:54 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] password protection
>
>
> Hi all,
>
> This isn't strictly a PHP issue but is quite related.  Given that you have
> a PHP-driven web site with user authorization and session
> identifiers etc.,
> what can you do to prevent electronic "snooping" of the clear
> text password
> that is passed from the browser to the server?  When filling out a form,
> for example:
>
> Enter your user name and password:
> ...
> 
> User Name:
> 
> 
> Password:
>  MAXLENGTH="15">
> 
> 
> 
> ...
>
> the TYPE="password" makes sure the browser doesn't echo the password as it
> is typed but it is still sent to the web server as clear text.  How do
> folks deal with this issue?
>
> Thanks,
> Bill
> ---
>  Bill Rausch, Software Development, Unix, Mac, Windows
>  Numerical Applications, Inc.  509-943-0861   [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] Search for the documentation

2001-01-25 Thread Brian Clark


Hello Philip, 

(PO == "Philip Olson") [EMAIL PROTECTED] forecasted:

PO> http://www.php.net/tips.php

PO> it will turn your browser into a search machine.

Even better, for people who use EditPlus (sorry, unsure about other
editors) you can do this with just one shortcut from within EditPlus
itself.

Since IE 5 is my primary browser:

Follow the instructions on http://www.php.net/tips.php for adding the
Quick Search add-on. (I named my shortcut php, but you could use
anything you wanted.)

Then in EditPlus, go to:

 Tools -> Configure User Tools
 Click on the 'Add Tool >>' button.
 Choose 'Program' from the pop-out.
 I named mine 'PHP Search'
 Command: C:\Program Files\Internet Explorer\Iexplore.exe
 Argument: php $(CurWord)

 (Where 'php' in the above is the same shortcut name you entered in IE
 Quicksearch)
 
 Initial Directory: leave it blank or you'll get the the 'Launch
 Window' MS-DOS box along with the browser.

 Click 'Apply' then 'OK'

Now, when you need to consult the manual for a specific function (or
heck, any term), just hit Ctrl+[number] where [number] is the shortcut
displayed beside 'PHP Search' in the Tools menu.

For example, if I placed my cursor right before the 'm' in:

 @mysql_pconnect($host, $username, $password)

And hit Ctrl+6, it opens IE and takes me straight to:

http://www.php.net/manual/en/function.mysql-pconnect.php

For the 'Argument' line in 'Configure User Tools' you could also use
php $(CurSel) but you'll have to highlight a word before you hit
Ctrl+[number].

If you're not using IE, this should still be pretty easy to configure.

If anyone can't get this to work, let me know off-list. I'll be glad
to help.

-Brian



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




[PHP] password protection

2001-01-25 Thread Bill Rausch

Hi all,

This isn't strictly a PHP issue but is quite related.  Given that you have
a PHP-driven web site with user authorization and session identifiers etc.,
what can you do to prevent electronic "snooping" of the clear text password
that is passed from the browser to the server?  When filling out a form,
for example:

Enter your user name and password:
...

User Name:


Password:




...

the TYPE="password" makes sure the browser doesn't echo the password as it
is typed but it is still sent to the web server as clear text.  How do
folks deal with this issue?

Thanks,
Bill
---
 Bill Rausch, Software Development, Unix, Mac, Windows
 Numerical Applications, Inc.  509-943-0861   [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] session without cookies

2001-01-25 Thread tassilo

hi..

i use the session-functions with php4 and everything works fine.
but if a visitor turns off cookies nothing seems to work..

is there a way to support a sessionid with cookies and thru the url ?

thanks 

markus


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




[PHP] APC patch (PHPLIB support?)

2001-01-25 Thread Daniel Cowgill

George and I have identified and fixed a bug involving class member data
initialization. This seems to fix session support in PHPLIB, and
possibly other related problems as well.

A simple example of offending code:

class Foo {
var $x = array("b" => "c");
var $y = array("a");
}

'$x' was correctly serialized, but '$y' was not.

The patch is up on our cvs repository (via ssh to
apc.communityconnect.com:/cvs, port 23, user:anoncvs, pwd:cvs).

Dan


-- 
PHP General Mailing List (http://www.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] Ver 3 vs. Ver 4

2001-01-25 Thread Zeev Suraski

At 01:36 26/1/2001, Karl J. Stubsjoen wrote:
>Hello,
>
>Does Version 4 support either { } "squiglees" or [ ] "brackets" in this
>code:
>
>if($retrn{strlen($retrn)-1} == '&')
>-or-
>if($retrn[strlen($retrn)-1] == '&')

Yes.  This is a 4.x feature only.  The idea is that in the long run, [] 
will no longer be supported for string offsets, only {} will.

Zeev

--

Zeev Suraski <[EMAIL PROTECTED]>
CTO &  co-founder, Zend Technologies Ltd. http://www.zend.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] Greek PHP mailing list

2001-01-25 Thread Stephan Ahonen

> Ah now, but who would use a HP, when you've got your trusty TI? :-)

Yup, especially since all the games are on the TI, though they're pretty
scarce for the 89, my personal preference, since they're more expensive, so
fewer people have them.

The options: Get a graph-link cable (which I can't find ANYWHERE), or make
your own during study hall, making them sufficiently stupid that the code
can be compressed down to a screenful:

kyk():Prgm:Local a,b,c:13->a:"|+|"->b:ClrIO:Output
0,-1,left(b,a)&"¥"&right(b,a):While abs(13-a)<13:getKey()->c:If abs(50-c)=1
Then:a+c-50->a:Output
0,-1,left(b,a)&"¥"&right(b,26-a):EndIf:EndWhile:EndPrgm

Play with the 1 and 3 keys. Guess what it does by just looking at the code,
and win a free donut (should arrive within 6-8 weeks, and shouldn't be too
stale by then). 1 and 3 have character codes 49 and 51, respectively, if you
want to take this on...


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

2001-01-25 Thread John Meredith

One of exec, system or backtick (ie. `) functions will do it for you.

  - John

On Fri, Jan 26, 2001 at 12:14:47PM +1300, Dave Stewart wrote:
> Hi,
> 
> I have this line in my shtml pages...
> 
> 
> 
> How do I write this as a function to include in my .php files.
> 
> (I've looked up virtual () in the manual but can't make head nor tail
> of it).
> 
> Many thanks,
> 
> Dave Stewart
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
John "Neutiquam erro" Meredith <[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] Ver 3 vs. Ver 4

2001-01-25 Thread Karl J. Stubsjoen

Hello,

Does Version 4 support either { } "squiglees" or [ ] "brackets" in this
code:

if($retrn{strlen($retrn)-1} == '&')
-or-
if($retrn[strlen($retrn)-1] == '&')

I am developing on ver 3.0 and the { } don't work in the above, but the
brackets do.

Karl


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




[PHP] exec() bug?

2001-01-25 Thread Dustin Butler

Hi,
Can someone confirm this behavior on their system.  I've tried it on 4.0.2
and 4.03pl1, both on Linux boxes, both with the same results.

echo "One Character: " . exec("echo 't'",$tmp) . "\n";
echo "One Character: " . $tmp[0] . "\n";
echo "Two Characters: " . exec("echo 'te'",$tmp) . "\n";

My output is:

One Character: 
One Character: t
Two Characters: te

It seems if the output of exec is one character it gets discarded somewhere.
The ouput is correct in the array argument, but the "last line of output" is
not returned by the function if the length of the "last line of output" is
1.

Thanks,
Dustin  


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

2001-01-25 Thread Remco Chang

there is some code at the PHP code exchange that allows you to do http post
with only PHP (not using java script)...  it might not do exactly what you
have in mind, but it's an interesting alternative.

remco chang
www.bountyquest.com


- Original Message -
From: "Richard S. Crawford" <[EMAIL PROTECTED]>
To: "Chris" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]>
Sent: Thursday, January 25, 2001 6:24 PM
Subject: Re: [PHP] Post without submit?


> Sorry, just to be a bit clearer...  Suppose you wanted to associate it
with
> a link, you could do something like the following:
>
> click here to submit
>
> Hope that helps.
>
>
>
> At 03:22 PM 1/25/01 -0800, Richard S. Crawford wrote:
> >Without knowing exactly what you want to do, I would try something like
> >the following in JavaScript:
> >
> >function doSubmit() {
> > document.form.submit()
> >}
> >
> >Then associate the function with any sort of desired event.  In a project
> >of mine, I have it attached to a keypress function so that the form is
> >submitted when the user presses the enter key from the last form field.
I
> >suppose you could also put it in the BODY tag if you're feeling
especially
> >adventurous.
>
>
> --
> PHP General Mailing List (http://www.php.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] Post without submit?

2001-01-25 Thread Richard S. Crawford

Sorry, just to be a bit clearer...  Suppose you wanted to associate it with 
a link, you could do something like the following:

click here to submit

Hope that helps.



At 03:22 PM 1/25/01 -0800, Richard S. Crawford wrote:
>Without knowing exactly what you want to do, I would try something like 
>the following in JavaScript:
>
>function doSubmit() {
> document.form.submit()
>}
>
>Then associate the function with any sort of desired event.  In a project 
>of mine, I have it attached to a keypress function so that the form is 
>submitted when the user presses the enter key from the last form field.  I 
>suppose you could also put it in the BODY tag if you're feeling especially 
>adventurous.


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

2001-01-25 Thread DanO


yes, with javascript:


function sendIt(form) {
form.submit();
return true;
}

function startIt() {
setTimeout('sendIt(document.formName)',3000);
}






timeout is in milliseconds.

you could alternately pass document.formName directly to sendIt.

HTH,
DanO


> -Original Message-
> From: Chris [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 25, 2001 9:23 PM
> To: PHP
> Subject: [PHP] Post without submit?
> 
> 
> is there anyway to post without clicking a submit button?
> 

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

2001-01-25 Thread Richard S. Crawford

Without knowing exactly what you want to do, I would try something like the 
following in JavaScript:

function doSubmit() {
 document.form.submit()
}

Then associate the function with any sort of desired event.  In a project 
of mine, I have it attached to a keypress function so that the form is 
submitted when the user presses the enter key from the last form field.  I 
suppose you could also put it in the BODY tag if you're feeling especially 
adventurous.


At 12:23 AM 1/26/01 -0500, Chris wrote:
>is there anyway to post without clicking a submit button?


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




[PHP] Post without submit?

2001-01-25 Thread Chris

is there anyway to post without clicking a submit button?



Re: [PHP] Question about dopping zeros

2001-01-25 Thread Randy

Oops! Copied the numbers wrong. Here's are the numbers I meant
to type:

R> $onum output
R> 4.166 4.12
  4.1166 4.12
  
R> 4.135 4.11
  4.1135 4.11
  
R> 4.000 4
R> 4.30004.3

R> Is that what you wanted? To me, it's much easier to code and use
R> than reg expressions and replaces.

R> Best regards,
R>  Randy   


R> Thursday, January 25, 2001, 1:10:18 PM, you wrote:

EN>> I need to format decimals that are percise to the second place in the
EN>> following format:

EN>> 4.00 to 4
EN>> 4.50 to 4.5
EN>> 4.25 to 4.25

EN>> As you can see, I just want to drop the trailing zeros, and if necessary the
EN>> decimal.

EN>> Thanks

EN>> ___
EN>> Ethan Nelson, Systems Administrator
EN>> Net Solutions, LLC
EN>> 840 Lawrence Street
EN>> Eugene, OR 97401
EN>> [EMAIL PROTECTED]
EN>> http://www.netsolutionsllc.com
EN>> Voice +1 541 345-7087
EN>> Fax   +1 541 485-5519



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

2001-01-25 Thread Dell Coleman

Hi
Going to http://www.editplus.com/files/ will give you the index of all the
available files.

HTH

D. Coleman

Pat Hanna wrote:

> Anyone who uses Edit Plus. Can you send me the php function files and auto
> complete file. The edit plus web page has the links but none of them work.
> Thanks
> Pat


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




[PHP] memory leak with mcrypt 2.4.5

2001-01-25 Thread Remco Chang

i found out that the mcrypt functions/library leak memory (libmcrypt 2.4.5)
with PHP 4.0.2 (on Solaris 2.6) and Apache 1.3.12 (actually, it's Stronghold
3.0).

the function that leaks is mcrypt_generic_init().

the PHP manual states that if you call mcrypt_generic_end (), it will clear
up the buffer and close the library.  however, i found out that the function
unfortunately does not dealloc the memory.

if someone could confirm this, i'll submit it into the bugs report.

remco chang
www.bountyquest.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] file_exists search the include_path?

2001-01-25 Thread John Donagher


It doesn't. Some of the file-related functions have that capability and some don't. 
This may be what you're looking for:

function file_exists_in_path($file) {
foreach(split(':', ini_get('include_path')) as $dir) {
if ($dir[sizeof($dir)-1] != '/') { 
$dir.='/';
}
if (file_exists($dir.$file)) {
return TRUE;
}
}
return FALSE;
}

On Thu, 25 Jan 2001, Dean Hall wrote:

> I thought I saw in one of the older manuals that there is an optional second 
>parameter to 'file_exists' that will tell it too search the 'include_path' for a file 
>instead of using an absolute path. However, I can't seem to find this documentation 
>any more.
> 
> Does anyone know if this still works? How it works? If it's just a second boolean 
>parameter or what?
> 
> In other words, instead of:
> 
> if (file_exists("/www/inc/my_script.php")) {...}
> 
> I'd like to say:
> 
> if (file_exists("my_script.php", TRUE)) {...} // or something like this
> 
> assuming "/www/inc" is part of my include_path.
> 
> Thanks.
> Dean.
> 

-- 

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

-BEGIN PGP PUBLIC KEY BLOCK-
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

mQGiBDnCZ1oRBACFgkFCV6p3dWic1qm1FLhip5beIyzZSt+ccTDYQQdPZA/t5H+k
PZ7ZFBIUrXz/oEqwQwlEKlg8JQqg7hgtcL+xrIJ0BInLeSJG4lvvB551g59Thr7/
OsdxNVxKci775+K+GkdAz4xcULMuB+QE7t665Ri46EAS8ALos5UG6DGmhwCguD0v
1cxwy/KlKr+oi4sWM9caueED/RmjiSD3vmBZQt6PMisVe1AmkEf6cJoemduCSJxu
0eMz/LIeu+CqfpuJH2N/dZ3hRj9xMSHF4l71wKqV99zhm58kDGwG1u3yVzULPDqz
0yL+8nunlkoOUyn3zOnh3Zmz4POFVMZQ5oian3QkLllUwly5JCi5tWULxZ2vOkb0
zzjuA/4jigNxYV4NAyCl+wAbnyzk9/Iz8EHv4/0Ex8ytlcMtvBJKa9HjJxlyIl74
yOILHk3+GSAdM0b3ZmbavpoCpebinOMBhqEVBwCI4VUIAqf86gx+2dKBGxfKPnU4
Xxvqs/BOl/EbeJjyd4uieYndGRaWg+kYXqZ7SxrlFN24fohnd7QgSm9obiBEb25h
Z2hlciA8am9obkB3ZWJtZXRhLmNvbT6IVgQTEQIAFgUCOcJnWgQLCgQDAxUDAgMW
AgECF4AACgkQIt6tVu6+jd3SHwCgjssFktMXf8NjE9JBR+sJ2gDIsW8An0CFNdFd
dU+DJYC6ogYP9AsVfM27uQENBDnCZ2MQBAD8E0qe1gBKjtoRmyiyORtwhOz/2XZE
mqiZN2NouAUWRRZd4dHggFAA1jUsp2MVIZZQyY9ajNVy3Oaxj5kYz8LR5GItxxcD
jC8RFXKM40ZfTJeR7fH6eJa689w+le71Tt4ALyN4xcjSWuksr8795AhHFjonDi8D
rgGIq6GtWvi/KwADBgQAmeBbcjPzhqR2M8TdvEyNfVTQSSp/RNoTjNNWpHui8V0p
kiQ49tbsqeMjXGToGgMugfmrX77JidXyuVjgYjT9xUdaaA25qKAR75M9izDliT7Y
h5L+QZTAw0/5X9go7XK3WI3LYfFrp4TP0veXgSWxDqccqsRzWKW7IoXsliTCbVqI
RgQYEQIABgUCOcJnYwAKCRAi3q1W7r6N3YIcAKCkJMTPLu6tOPnXPl2s3xmnSawy
BACeOx83WlBhVScYWo+BUzntJ6ks4T0=
=OkJU
-END PGP PUBLIC KEY BLOCK-


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




[PHP] CGI and PHP

2001-01-25 Thread Dave Stewart

Hi,

I have this line in my shtml pages...



How do I write this as a function to include in my .php files.

(I've looked up virtual () in the manual but can't make head nor tail
of it).

Many thanks,

Dave Stewart


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

2001-01-25 Thread Randy

Hello Kristi,

Sure, I'm sending them now...

Best regards,
 Randy   


Thursday, January 25, 2001, 4:56:03 PM, you wrote:

KR> Could you email them to me too? :)

KR> - Original Message -
KR> From: "Randy" <[EMAIL PROTECTED]>
KR> To: <[EMAIL PROTECTED]>
KR> Sent: Thursday, January 25, 2001 5:20 PM
KR> Subject: Re: [PHP] edit plus


>> Hello Pat,
>>
>> I've emailed you the files that I use. I've customized them a bit
>> since I downloaded them from editplus.com.
>>
>> Best regards,
>>  Randy
>>
>>
>> Thursday, January 25, 2001, 4:02:45 PM, you wrote:
>>
>> PH> Anyone who uses Edit Plus. Can you send me the php function files and
KR> auto
>> PH> complete file. The edit plus web page has the links but none of them
KR> work.
>> PH> Thanks
>> PH> Pat
>>
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>



-- 
PHP General Mailing List (http://www.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] Question about dopping zeros

2001-01-25 Thread Randy

Hello Ethan,

$onum=4.11440;
$onum =number_format($onum,2)+0;
echo $onum;

With this technique, you get the following:

$onum output
4.166 4.12
4.135 4.11
4.000 4
4.30004.3

Is that what you wanted? To me, it's much easier to code and use
than reg expressions and replaces.

Best regards,
 Randy   


Thursday, January 25, 2001, 1:10:18 PM, you wrote:

EN> I need to format decimals that are percise to the second place in the
EN> following format:

EN> 4.00 to 4
EN> 4.50 to 4.5
EN> 4.25 to 4.25

EN> As you can see, I just want to drop the trailing zeros, and if necessary the
EN> decimal.

EN> Thanks

EN> ___
EN> Ethan Nelson, Systems Administrator
EN> Net Solutions, LLC
EN> 840 Lawrence Street
EN> Eugene, OR 97401
EN> [EMAIL PROTECTED]
EN> http://www.netsolutionsllc.com
EN> Voice +1 541 345-7087
EN> Fax   +1 541 485-5519



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




[PHP-I18N] Web based Time Sheets for Professionals

2001-01-25 Thread Web Time Sheets

Announcing the eTech Online Time Sheet system for gathering Employee Time over the 
Internet. 
Online TimeSheets easily integrate with Payroll, Billing & Project Management. 

Simplified Time Tracking and Project Management is a click away. 
http://www.solutioncorp.com/timesheet.shtml

Please call us or visit our site.

Thank You

Gary P. Finley
eTech SolutionCorp

voice: 817-355-8883
http://www.SolutionCorp.com


If you have recieved the message in error, we apologize.
Please click below to send a remove request to us:
mailto:[EMAIL PROTECTED]?subject=RemoveName_TimeSheet


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




[PHP] Web based Time Sheets for Professionals

2001-01-25 Thread Web Time Sheets

Announcing the eTech Online Time Sheet system for gathering Employee Time over the 
Internet. 
Online TimeSheets easily integrate with Payroll, Billing & Project Management. 

Simplified Time Tracking and Project Management is a click away. 
http://www.solutioncorp.com/timesheet.shtml

Please call us or visit our site.

Thank You

Gary P. Finley
eTech SolutionCorp

voice: 817-355-8883
http://www.SolutionCorp.com


If you have recieved the message in error, we apologize.
Please click below to send a remove request to us:
mailto:[EMAIL PROTECTED]?subject=RemoveName_TimeSheet


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

2001-01-25 Thread Derick Rethans

derick  Thu Jan 25 14:57:50 2001 EDT

  Modified files:  
/php3/functions apache.c 
  Log:
  Fix for bug #8917
  
  
Index: php3/functions/apache.c
diff -u php3/functions/apache.c:1.53 php3/functions/apache.c:1.54
--- php3/functions/apache.c:1.53Sun Aug 20 09:22:45 2000
+++ php3/functions/apache.c Thu Jan 25 14:57:49 2001
@@ -29,7 +29,7 @@
+--+
  */
 
-/* $Id: apache.c,v 1.53 2000/08/20 16:22:45 martin Exp $ */
+/* $Id: apache.c,v 1.54 2001/01/25 22:57:49 derick Exp $ */
 #include "php.h"
 #include "internal_functions.h"
 #include "functions/head.h"
@@ -150,7 +150,7 @@
}
}
 #endif
-   PUTS("\n");
+   PUTS("\n");
 }
 
 /* This function is equivalent to 



-- 
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] html table

2001-01-25 Thread Randy

I use a slightly different technique...

Defined in database or global file:
  $tblbgcolor1="FF";
  $tblbgcolor2="CC";

Program Loop to create the table:

$altcolor=$tblbgcolor2;
while ($row = mysql_fetch_array($Query)) {
if ($altcolor==$tblbgcolor2)
$altcolor=$tblbgcolor1;
else
$altcolor=$tblbgcolor2;
echo "Text to
display on Row";
}

(this loops through rows fetched from a mysql table, but can be
any kind of loop)

Best regards,
 Randy   


Thursday, January 25, 2001, 3:57:47 PM, you wrote:

BVB> $color = "tan";
BVB> FOR ($i=0 ; $i < $numrows ; $i++) {
BVB> if ( ($i % 2) == 0 ) {
BVB>   ECHO ("\n");
BVB> } else {
BVB>   ECHO ("\n");
BVB> }
BVB> }

>> -Original Message-
>> From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
>> Sent: Thursday, January 25, 2001 4:19 PM
>> To: Mike
>> Cc: [EMAIL PROTECTED]
>> Subject: Re: [PHP] html table
>> 
>> 
>> > How do I get every other column to be a different color (or 
>> font ect.)when
>> > I'm populating a table from a db(different field counts all the time)
>> 
>> If $i is a counter then $i%2 will alternate between 0 and 1
>> 
>> $i%3 would cycles through 0,1 and 2
>> 
>> -Rasmus
>> 
>> 
>> -- 
>> PHP General Mailing List (http://www.php.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] Get rid of da Zero's

2001-01-25 Thread Ethan Nelson

Almost there... actually this creates one problem...

It turns 40.00 into 4

It needs to quit shaving zero's when it hits the decimal point.

40.00 into 40
45.50 into 45.5
40.25 into 40.25

Thanks

-Original Message-
From: Philip Hallstrom [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 12:43 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Question about dopping zeros


ereg_replace("[0\.]*$", "", $number)

should do it.  I'm not sure you need the slash in front of the dot or
not. try it and see.

In article
<[EMAIL PROTECTED]> you
write:
>I need to format decimals that are percise to the second place in the
>following format:
>
>4.00 to 4
>4.50 to 4.5
>4.25 to 4.25
>
>As you can see, I just want to drop the trailing zeros, and if necessary
the
>decimal.
>
>Thanks
>
>___
>Ethan Nelson, Systems Administrator
>Net Solutions, LLC
>840 Lawrence Street
>Eugene, OR 97401
>[EMAIL PROTECTED]
>http://www.netsolutionsllc.com
>Voice +1 541 345-7087
>Fax   +1 541 485-5519
>
>
>-- 
>PHP General Mailing List (http://www.php.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] Persistent connections and transactions

2001-01-25 Thread Frank Joerdens

On Thu, Jan 25, 2001 at 05:10:54PM -0300, Martin A. Marques wrote:
[ . . . ]
> OK, lets see if we can understand what each other is saying (maybe I'm not 
> getting your point here).
> Lets say browser A connects to the apache server, to a page using php code. 
> Lets say the code is OK (no bugs). Apache opens a persistent connection to 
> the database and starts executing the queries. Now the connection between the 
> apache server and the web browser doesn't close until the queries are all 
> finished and the output is send back to the browser.
> Now, how about if browser B connects to the apache server just in the middle 
> of the execution of the queries that browser A asked for?
> Well, the connection between Browser A and the web server is still opened, so 
> another httpd child process answers the request.

I thought one of the points being raised (can't find the mail/thread I'm
referring to now) was that somehow confusion might ensue from a mix-up,
on the Apache/PHP level, regarding the client identity, thus corrupting a
transaction in progress. It seemed to make sense but now that we've
discussed it, I can't see anymore how it might happen.

 . . . [ goes away to search mail archives ] . . .

Ah, here we go. A post from Rod Taylor on pgsql-hackers on Dec 27:

-- begin quote --
The *real* problem with persistent connections is:

Script1:  BEGIN;
Script1:  UPDATE table set row = 'things';
Script2:  Insert into table (id) values ('bad data');
Script1: COMMIT;

Since script2 managed to do a BAD insert in the middle of script1's
transaction, the transaction in script1 fails.  Obvious solution?  Don't
do
connection sharing when a transaction is enabled.  The whole persistent
connection thing is only valid for mysql as it's the only thing that
doesn't
really support transactions (and even thats partially changed).

They need to look for stuff going through (keywords like BEGIN) and
'lock'
that connection to the single entity that opened it.

It's much easier to write your own.  I wrote a few functions like:

get_connection('DB PARMS');
begin_transaction();

commit_transaction();
close_connection();
-- end quote --

[ . . . ]
> My question would be, and seeing Adams thoughts, wouldn't it be the best 
> optimization configuration of php.ini to have only one persistent conection? 
> Wouldn't there be one per-child? Any way, you can't have two connections to 
> the same httpd child.

Those where my thoughts too (or, rather, Adams thoughts ;)), and this is
what I am trying at the moment.

Regards, Frank

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

2001-01-25 Thread Randy

Hello Pat,

I've emailed you the files that I use. I've customized them a bit
since I downloaded them from editplus.com.

Best regards,
 Randy   


Thursday, January 25, 2001, 4:02:45 PM, you wrote:

PH> Anyone who uses Edit Plus. Can you send me the php function files and auto
PH> complete file. The edit plus web page has the links but none of them work.
PH> Thanks
PH> Pat



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




Re: [PHP] Ideas?? (OT- MySQL)

2001-01-25 Thread Randy

You will probably be much happier in the future if you make a
one-to-many setup rather than a many-to-many.

As Mathew said, create your tables with:

BID table:
bidid, projectid, OtherFields

PROJECT table:
projectid, OtherFields

If you are at a project and want to look at bids, just "select *
from bid where projectid =''"

Even if you have multiple projects per bid, you might try to
create one bid record for each project in that bid which would
maintain the above methodology.

But having fields such as Bid1, Bid2, etc, is a VERY bad idea. At
various client's sites, I've had to maintain/fix other
programmer's programs who used that technique and it will
strangle the program.

Best regards,
 Randy   


Thursday, January 25, 2001, 1:17:37 AM, you wrote:

MK> <[EMAIL PROTECTED]> wrote ...
>> I am creating a web site which allows users to post projects and then
>> others to place bids. I am setting up two tables in MySQL 'Projects'
>> & 'Bids' my problem is how best to cross reference. What I was
>> thinking of doing is creating a number of fields in the Projects table...
>>
>> and then inserting the BidID from the bids table into Bid1, and if
>> that is already used then it will go into Bid2. But how many Bid#
>> shall I create?? I`m sure there must be a faster method than this,
>> anyone have any suggestions??

MK> This is a standard question where you have two tables that need to be linked
MK> in a many-to-many relationship. The answer is that you need a third table,
MK> called for example ProjectBids. It has two columns, one for Bid ID and one
MK> for Project ID. Each row links one bid to one project. You can enter as many
MK> rows as you like, so each bid can be linked to one or more projects, and
MK> each project can be linked to one or more bids.

MK> But are you sure you have a many-to-many relationship? It sounds like each
MK> bid might be associated with just one project. In that case you could just
MK> have a column in the Bid table that contains the Project ID.



-- 
PHP General Mailing List (http://www.php.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/msql msql.dsp php_msql.c php_msql.h /win32 php_modules.dsw

2001-01-25 Thread Daniel Beulshausen

dbeuThu Jan 25 14:07:31 2001 EDT

  Added files: 
/php4/ext/msql  msql.dsp 

  Modified files:  
/php4/ext/msql  php_msql.c php_msql.h 
/php4/win32 php_modules.dsw 
  Log:
  make msql build under win32
  

Index: php4/ext/msql/php_msql.c
diff -u php4/ext/msql/php_msql.c:1.28 php4/ext/msql/php_msql.c:1.29
--- php4/ext/msql/php_msql.c:1.28   Sat Nov  4 02:45:30 2000
+++ php4/ext/msql/php_msql.cThu Jan 25 14:07:30 2001
@@ -16,7 +16,7 @@
+--+
  */
  
-/* $Id: php_msql.c,v 1.28 2000/11/04 10:45:30 zeev Exp $ */
+/* $Id: php_msql.c,v 1.29 2001/01/25 22:07:30 dbeu Exp $ */
 
 #include "php.h"
 #include "php_msql.h"
@@ -150,7 +150,7 @@
msql_globals.num_links--;
 }
 
-DLEXPORT PHP_MINIT_FUNCTION(msql)
+PHP_MINIT_FUNCTION(msql)
 {
if 
(cfg_get_long("msql.allow_persistent",&msql_globals.allow_persistent)==FAILURE) {
msql_globals.allow_persistent=1;
@@ -175,7 +175,7 @@
return SUCCESS;
 }
 
-DLEXPORT PHP_RINIT_FUNCTION(msql)
+PHP_RINIT_FUNCTION(msql)
 {
msql_globals.default_link=-1;
msql_globals.num_links = msql_globals.num_persistent;
@@ -183,7 +183,7 @@
return SUCCESS;
 }
 
-DLEXPORT PHP_MINFO_FUNCTION(msql)
+PHP_MINFO_FUNCTION(msql)
 {
char maxp[32],maxl[32];
 
@@ -363,7 +363,7 @@
 
 /* {{{ proto int msql_connect([string hostname[:port]] [, string username] [, string 
password])
Open a connection to an mSQL Server */
-DLEXPORT PHP_FUNCTION(msql_connect)
+PHP_FUNCTION(msql_connect)
 {
php_msql_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,0);
 }
@@ -372,7 +372,7 @@
 
 /* {{{ proto int msql_pconnect([string hostname[:port]] [, string username] [, string 
password])
Open a persistent connection to an mSQL Server */
-DLEXPORT PHP_FUNCTION(msql_pconnect)
+PHP_FUNCTION(msql_pconnect)
 {
php_msql_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,1);
 }
@@ -381,7 +381,7 @@
 
 /* {{{ proto int msql_close([int link_identifier])
Close an mSQL connection */
-DLEXPORT PHP_FUNCTION(msql_close)
+PHP_FUNCTION(msql_close)
 {
pval *msql_link;
int id;
@@ -421,7 +421,7 @@
 
 /* {{{ proto int msql_select_db(string database_name [, int link_identifier])
Select an mSQL database */
-DLEXPORT PHP_FUNCTION(msql_select_db)
+PHP_FUNCTION(msql_select_db)
 {
pval *db,*msql_link;
int id;
@@ -461,7 +461,7 @@
 
 /* {{{ proto int msql_create_db(string database_name [, int link_identifier])
Create an mSQL database */
-DLEXPORT PHP_FUNCTION(msql_create_db)
+PHP_FUNCTION(msql_create_db)
 {
pval *db,*msql_link;
int id;
@@ -499,7 +499,7 @@
 
 /* {{{ proto int msql_drop_db(string database_name [, int link_identifier])
Drop (delete) an mSQL database */
-DLEXPORT PHP_FUNCTION(msql_drop_db)
+PHP_FUNCTION(msql_drop_db)
 {
pval *db,*msql_link;
int id;
@@ -537,7 +537,7 @@
 
 /* {{{ proto int msql_query(string query [, int link_identifier])
Send an SQL query to mSQL */
-DLEXPORT PHP_FUNCTION(msql_query)
+PHP_FUNCTION(msql_query)
 {
pval *query,*msql_link;
int id;
@@ -575,7 +575,7 @@
 
 /* {{{ proto int msql_db_query(string database_name, string query [, int 
link_identifier])
Send an SQL query to mSQL */
-DLEXPORT PHP_FUNCTION(msql_db_query)
+PHP_FUNCTION(msql_db_query)
 {
pval *db,*query,*msql_link;
int id;
@@ -618,7 +618,7 @@
 
 /* {{{ proto int msql_list_dbs([int link_identifier])
List databases available on an mSQL server */
-DLEXPORT PHP_FUNCTION(msql_list_dbs)
+PHP_FUNCTION(msql_list_dbs)
 {
pval *msql_link;
int id;
@@ -653,7 +653,7 @@
 
 /* {{{ proto int msql_list_tables(string database_name [, int link_identifier])
List tables in an mSQL database */
-DLEXPORT PHP_FUNCTION(msql_list_tables)
+PHP_FUNCTION(msql_list_tables)
 {
pval *db,*msql_link;
int id;
@@ -695,7 +695,7 @@
 
 /* {{{ proto int msql_list_fields(string database_name, string table_name [, int 
link_identifier])
List mSQL result fields */
-DLEXPORT PHP_FUNCTION(msql_list_fields)
+PHP_FUNCTION(msql_list_fields)
 {
pval *db,*table,*msql_link;
int id;
@@ -749,7 +749,7 @@
 
 /* {{{ proto int msql_result(int query, int row [, mixed field])
Get result data */
-DLEXPORT PHP_FUNCTION(msql_result)
+PHP_FUNCTION(msql_result)
 {
pval *result, *row, *field=NULL;
m_result *msql_result;
@@ -853,7 +853,7 @@
 
 /* {{{ proto int msql_num_rows(int query)
Get number of rows in a result */
-DLEXPORT PHP_FUNCTION(msql_num_rows)
+PHP_FUNCTION(msql_num_rows)
 {
pval *result;
m_result *msql_result;
@@ -871,7 +871,7 @@
 
 /* {{{ proto int msql_num_fields(int query)
Get number of fields in a result */
-DLEXPORT PHP_FUNCTION(msql_num_fields)
+PHP_FUNCTION(msql_num_fields)
 {
pval *result;
m_result *msql_result;
@@ -965,7 +965,7 @@
 
 /* {{{ proto array msql_fe

[PHP] edit plus

2001-01-25 Thread Pat Hanna

Anyone who uses Edit Plus. Can you send me the php function files and auto
complete file. The edit plus web page has the links but none of them work.
Thanks
Pat



[PHP] file_exists search the include_path?

2001-01-25 Thread Dean Hall

I thought I saw in one of the older manuals that there is an optional second parameter 
to 'file_exists' that will tell it too search the 'include_path' for a file instead of 
using an absolute path. However, I can't seem to find this documentation any more.

Does anyone know if this still works? How it works? If it's just a second boolean 
parameter or what?

In other words, instead of:

if (file_exists("/www/inc/my_script.php")) {...}

I'd like to say:

if (file_exists("my_script.php", TRUE)) {...} // or something like this

assuming "/www/inc" is part of my include_path.

Thanks.
Dean.



Re: [PHP] VAR and variables

2001-01-25 Thread Steve Edberg

At 3:00 PM -0600 1/25/01, Matt wrote:
>I have a question that may seem kind of silly, but I'm curious...
>
>When using PHP why would one use "var" to define a variable as 
>opposed to just regularly creating it?


Because that's the way it is ;).

The var is part of the syntax of a class definition; it isn't used 
anywhere else. I don't know the actual deep reason for having it, as 
far as the parser is concerned, but it does make it clear - at least 
to me - what the class variables are.

You can also initialize the variable here, too:

var $a = 5;


>For example, if I have a class defined as below:
>
>class Simple {
>   var $a;
>
>   function Simple() {
> $this->a = 5;
>   }
>
>   function first() {
> return $this->a;
>   }
>
>}
>
>
>This class, when created, sets the variable $a to 5, and the 
>function first returns the value in $a my question is could I 
>omit the var and still have it function in this fashion? What is the 
>purpose of it?
>
>Also, can I access this variable through the same -> convention, 
>i.e. would the following be allowed?
>
>$test = new Simple();
>echo $test->a;
>
>

Yep.

You can also _set_ $a this way:

$test = new simple;
$test->a = 77;
echo $test->first();

will display 77.

See
http://www.php.net/manual/en/language.oop.php

for more info.

- steve

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

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




RE: [PHP] html table

2001-01-25 Thread Brian V Bonini

$color = "tan";
FOR ($i=0 ; $i < $numrows ; $i++) {
if ( ($i % 2) == 0 ) {
  ECHO ("\n");
} else {
  ECHO ("\n");
}
}

> -Original Message-
> From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 25, 2001 4:19 PM
> To: Mike
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] html table
> 
> 
> > How do I get every other column to be a different color (or 
> font ect.)when
> > I'm populating a table from a db(different field counts all the time)
> 
> If $i is a counter then $i%2 will alternate between 0 and 1
> 
> $i%3 would cycles through 0,1 and 2
> 
> -Rasmus
> 
> 
> -- 
> PHP General Mailing List (http://www.php.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] Zend hit (Encoder price)

2001-01-25 Thread Rasmus Lerdorf

> Yes, but name me one way that will ensure your code in the manner that Zend
> does it, making your code unreadable just pisses the people off who wish to
> alter the parts which are intended to be altered. And with Zend, its
> possible to write readable code, encode the sensitive parts, and invite the
> open source market with open arms without risking anything Imagine a
> script which requires a license code to unlock the program, but yet wants to
> incorporate the OS Market to extend the script how long do you think it
> will take for someone to find your access keys?
>
>   Now this assumes that you will be using straight PHP, and while some small
> C++ app will accomplish this, only those with that experience can write
> those in and that places limits on what those companies can do. They are PHP
> Scripters, not C++ coders.

Write yourself a PHP extension and put whatever sensitive business logic
in that and distribute the .so alongside your userspace scripts.

I said nothing about license codes that unlock anything, nor code
obfuscation.  I know that's how you understood it, but your misunderstood.

-Rasmus


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

2001-01-25 Thread Dallas Kropka

Yes, but name me one way that will ensure your code in the manner that Zend
does it, making your code unreadable just pisses the people off who wish to
alter the parts which are intended to be altered. And with Zend, its
possible to write readable code, encode the sensitive parts, and invite the
open source market with open arms without risking anything Imagine a
script which requires a license code to unlock the program, but yet wants to
incorporate the OS Market to extend the script how long do you think it
will take for someone to find your access keys?

Now this assumes that you will be using straight PHP, and while some small
C++ app will accomplish this, only those with that experience can write
those in and that places limits on what those companies can do. They are PHP
Scripters, not C++ coders.


Just my thoughts,
Dallas K.

-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 2:57 PM
To: Jim Jagielski
Cc: [EMAIL PROTECTED]; Sander Pilon; Uioreanu Calin;
[EMAIL PROTECTED]
Subject: Re: [PHP] Zend hit (Encoder price)


> I never said that obfuscating the code is a requirement for all people.
> I'd like to know where I said that. It's easy to make me sound like an
> idiot or worse when you put words in my mouth.  I said that for some
> people it is. BIG difference.

That was not how I understood what you wrote.

You wrote:
> without the Encoder the entire *possibility* of "seriously proprietary
> kickass scripts" that people distribute and sell is out of the question.

"out of the question" does not imply this "some people" idea.  The above
says that if you wish to seriously write proprietary php, you must buy the
Encoder.  My simple point is that there are other ways to approach the
problem.

-Rasmus


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

2001-01-25 Thread Rasmus Lerdorf

> How do I get every other column to be a different color (or font ect.)when
> I'm populating a table from a db(different field counts all the time)

If $i is a counter then $i%2 will alternate between 0 and 1

$i%3 would cycles through 0,1 and 2

-Rasmus


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

2001-01-25 Thread Dallas Kropka

I haven't read all the posts, but as you stated>

Charge $6000 to the big companies, I have no problem with that. I personally
would be willing to pay that if web applications was my business. But at the
same time, allow those who don't necessarily need to have the encoder but
just want some code encoded to have an affordable solution.

there is an alternative, Zend sells packages of 5 -20- and 100 uses of the
encoder, in license packs for allot less granted the largest is
still 1000 USD, but its less I'm sure that there are other alternatives
to using the Zend encoder, (Obstruficating  is Rasmus's argument) but
even using his method, there is a BIG possibility that anyone who wants to
will find that hidden security measure, or your DB code, and rip it, hack
it, slash it, and package it to profit from your work.

We are in the process of creating a large project for distribution, and the
encoder is paramount to the system we are designing without it, we don't
have a chance in hell of keeping our security keys secure from prying
eyes of course, we are one of those companies which can afford to drop
6G's at this program, but we weren't expecting it to run that high. I must
say that Zend did a lousy PR job at promoting the system, but we need to use
it.

Dallas K.



-Original Message-
From: Michael A. Peters [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 11:40 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Zend hit (Encoder price)


My question is-

Does the encoder license permit a company to purchase the license, and then
optionally encode php for third parties?

Can I, for example, encode purchase the encoder, and then make a deal with
John who can't afford the encoder to encode John's web application for $150
and give John the encoded version?

The answer, unfortunately, is no, at least as I read the commercial license.

This is really too bad, if you ask me- as there are a lot of really bright
kids out there who have seen that the Open Source model, while very noble
and absolutely loved, doesn't always pay. Why then, should they develop
using php if they are not capable of protecting their code if that's their
choice?

They'll be using Java or C/C++ or perl (which can be encoded for a lot
less).

There needs to be a solution where those who do not yet have big bucks can
take advantage of the encoder to protect what their mind has conceived.
Otherwise, they won't use php (or their code will be ripped off if its
really really good) and zend will lose future market as these brilliant
minds move towards affordable technology to protect what their intellectual
work.

Charge $6000 to the big companies, I have no problem with that. I personally
would be willing to pay that if web applications was my business. But at the
same time, allow those who don't necessarily need to have the encoder but
just want some code encoded to have an affordable solution.

On Thursday, January 25, 2001, at 05:26 AM, Sander Pilon wrote:

>
> >
> > Hello,
> >
> > What do you think about Zend position?
> > http://php.weblogs.com/
> > http://zend.com/phorum/read.php?num=3&id=6277&loc=0&thread=6277
> >
>
> I think that if Zend wants to sell it for $6000, then they have all right
> to. These guys have worked hard, and they deserve some cash for it.
>
> If people can't afford it at $6000, then that's their problem. Software is
> intellectual property, it shouldn't be free, and authors should be able to
> charge any price for it they want to charge for it.
>
> But, I don't think it's a wise decision to sell it at $6000, personally I
> think I would sell it between $1000 and $4000, but that's just me. ($6000
is
> a bit on the high side, considering what alternatives one haves for that
> price, and considering that anyone who paid $1000 a year back (I recall
> something about 'sponsoring') gets it all.)
>
> -S
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>

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

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


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




[PHP] html table

2001-01-25 Thread Mike

How do I get every other column to be a different color (or font ect.)when
I'm populating a table from a db(different field counts all the time)

Thanks Mike
[EMAIL PROTECTED]





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




Re: [PHP] Zend hit (Encoder price)

2001-01-25 Thread Jim Jagielski

Rasmus Lerdorf wrote:
> 
> You wrote:
> > without the Encoder the entire *possibility* of "seriously proprietary
> > kickass scripts" that people distribute and sell is out of the question.
> 
> "out of the question" does not imply this "some people" idea.  The above
> says that if you wish to seriously write proprietary php, you must buy the
> Encoder.  My simple point is that there are other ways to approach the
> problem.
> 

"seriously proprietary" sounds, well, serious. If someone has
something "seriously proprietary" I doubt, sincerely doubt, that
saying "You can tell them No in a Licence" will be accepted with
a happy and warm grin :)

That's why I quoted the exact line ;)

-- 
===
   Jim Jagielski   [|]   [EMAIL PROTECTED]   [|]   http://www.jaguNET.com/
  "Casanova will have many weapons; To beat him you will
  have to have more than forks and flatulence."

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




[PHP] VAR and variables

2001-01-25 Thread Matt

I have a question that may seem kind of silly, but I'm curious...

When using PHP why would one use "var" to define a variable as opposed to 
just regularly creating it?

For example, if I have a class defined as below:

class Simple {
   var $a;

   function Simple() {
 $this->a = 5;
   }

   function first() {
 return $this->a;
   }

}


This class, when created, sets the variable $a to 5, and the function first 
returns the value in $a my question is could I omit the var and still 
have it function in this fashion? What is the purpose of it?

Also, can I access this variable through the same -> convention, i.e. would 
the following be allowed?

$test = new Simple();
echo $test->a;


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] Zend hit (Encoder price)

2001-01-25 Thread Rasmus Lerdorf

> I never said that obfuscating the code is a requirement for all people.
> I'd like to know where I said that. It's easy to make me sound like an
> idiot or worse when you put words in my mouth.  I said that for some
> people it is. BIG difference.

That was not how I understood what you wrote.

You wrote:
> without the Encoder the entire *possibility* of "seriously proprietary
> kickass scripts" that people distribute and sell is out of the question.

"out of the question" does not imply this "some people" idea.  The above
says that if you wish to seriously write proprietary php, you must buy the
Encoder.  My simple point is that there are other ways to approach the
problem.

-Rasmus


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

2001-01-25 Thread Hartmut Holzgraefe

hholzgraThu Jan 25 12:52:53 2001 EDT

  Modified files:  
/php4/ext/gdgd.c 
  Log:
  gd didn't work if no WBMP was available after rev 1.107 -> fixed
  
  
Index: php4/ext/gd/gd.c
diff -u php4/ext/gd/gd.c:1.109 php4/ext/gd/gd.c:1.110
--- php4/ext/gd/gd.c:1.109  Thu Jan 25 06:35:36 2001
+++ php4/ext/gd/gd.cThu Jan 25 12:52:52 2001
@@ -18,7 +18,7 @@
+--+
  */
 
-/* $Id: gd.c,v 1.109 2001/01/25 14:35:36 stas Exp $ */
+/* $Id: gd.c,v 1.110 2001/01/25 20:52:52 hholzgra Exp $ */
 
 /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, 
Cold Spring Harbor Labs. */
@@ -2664,7 +2664,12 @@
 PHP_FUNCTION(jpeg2wbmp)
 {
 #ifdef HAVE_GD_JPG
+#ifdef HAVE_GD_WBMP
_php_image_convert (INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_JPG);
+#else /* HAVE_GD_WBMP */
+   php_error(E_WARNING, "jpeg2wbmp: No WBMP support in this PHP build");
+   RETURN_FALSE;
+#endif /* HAVE_GD_WBMP */
 #else /* HAVE_GD_JPG */
php_error(E_WARNING, "jpeg2wbmp: No JPG support in this PHP build");
RETURN_FALSE;
@@ -2677,7 +2682,12 @@
 PHP_FUNCTION(png2wbmp)
 {
 #ifdef HAVE_GD_PNG
+#ifdef HAVE_GD_WBMP
_php_image_convert (INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_PNG);
+#else /* HAVE_GD_WBMP */
+   php_error(E_WARNING, "png2wbmp: No WBMP support in this PHP build");
+   RETURN_FALSE;
+#endif /* HAVE_GD_WBMP */
 #else /* HAVE_GD_PNG */
php_error(E_WARNING, "png2wbmp: No PNG support in this PHP build");
RETURN_FALSE;
@@ -2686,6 +2696,8 @@
 /* }}} */
 
 
+
+#ifdef HAVE_GD_WBMP
 /* It converts a gd Image to bw using a threshold value */
 static void _php_image_bw_convert( gdImagePtr im_org, int threshold, FILE *out) {
gdImagePtr im_dest;
@@ -2907,6 +2919,8 @@
}
WRONG_PARAM_COUNT;
 }
+#endif /* HAVE_GD_WBMP */
+
 
 #endif /* HAVE_LIBGD */
 



-- 
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] regular expression help

2001-01-25 Thread Jeff Warrington

In article <005801c08668$e0459070$0201010a@shaggy>, "Jamie Burns"
<[EMAIL PROTECTED]> wrote:

I tried something like this and your examples worked:

$str = "";

if (eregi("=[[:space:]]*\"([^\"]+)|=[[:space:]]*([[:alnum:]]+)",$str,$regs)) {
   print("yes - ".$regs[1].":".$regs[2]."\n");
}

since the pattern has an 'or' (|), you have to look in either the second
or the third element of the array you use to store values from the ereg.

Jeff


> can anyone help me figure out a regular expression to find the value of
> a tag element?
> 
> for example:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> so in each of the above i need to find either "my value" or "value"...
> 
> i tried this but it wont work for every situation:
> 
> ereg("element[ ]*[=][ ]*[\"]?([^\">]*)[ |\"|>].*" ...
> 
> thanks for your help - regular expressions are not my best area!
> 
> jamie.

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




[PHP] number_format() buggy round when usind database resultset

2001-01-25 Thread Lucas Persona

Hi,

I'm finding some problems on using number_format($value, $decimal, ",",
".") when I have a value comming from a resultset (database query
results)...
If I had something like '123.45', using number_format it will return
'123,00'.
I think this happens because my value is a string and PHP rounds it
before using it on number_format. If I try to change the data type like
(double) $value, I will also have a '123.00' result.
I could do something on database like 'to_char(FIELD, '999G999D99') but
database default is '.' for decimal separator and ',' for thousand
separator...and I want the opposite.
Suggestions/Solutions? :)

Thanks,
-- 
Lucas Persona
[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] PostgreSQL + PHP + SQL warning messages

2001-01-25 Thread Martin A. Marques

El Jue 25 Ene 2001 16:36, Evelio Martinez escribió:
> Hi!
>
> Is there any way to get the equivalent sqlca.sqlcode value of informix
> in PostgreSQL from php ?
>
> I would like to use the sqlcode to print the messages in Spanish.

The problem is that informix puts in an array (sort of) all the info about 
the last query. What sort of information would you like? Last insert? You 
have an pg_getlastoid() function.
Hope it helps.

Saludos...:-)

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




Re: [PHP] Zend hit (Encoder price)

2001-01-25 Thread Jim Jagielski

Rasmus Lerdorf wrote:
> 
> > Well, without the Encoder the entire *possibility* of "seriously proprietary
> > kickass scripts" that people distribute and sell is out of the question.
> 
> Let's not go overboard here.  You can build and sell serious stuff without
> an encoder.  Obfuscating the code is not a requirement for all people.  A
> usage license attached to the code that specifies what the client can do
> with it is often all it should take.  If you really are building serious
> stuff that you sell to serious customers, then they are not likely to
> violate a license to save a few hundred dollars.
> 

If it requires too many hoops to jump through for people to
program in PHP with the intention to distribute, then no matter
how much better PHP is than other solutions, the decision will
be: bag it, it's too much trouble, find something else.

I never said that obfuscating the code is a requirement for all people.
I'd like to know where I said that. It's easy to make me sound like an
idiot or worse when you put words in my mouth.  I said that for some
people it is. BIG difference. To dismiss those people is kind of foolish.
Doesn't the existance of such a product help *promote* the use of PHP?
isn't that what we all want? If there are barriers that prevent people
from using PHP, then doesn't it make sense to address those? If
*they* want it (a obfuscation method) or need it, then they do. It's
not your right to tell people how to distribute their code, or in
what method to do it. 

And I could tell you stories about how much licenses and NDAs and
such other legal agreements mean to some... :)

-- 
===
   Jim Jagielski   [|]   [EMAIL PROTECTED]   [|]   http://www.jaguNET.com/
  "Casanova will have many weapons; To beat him you will
  have to have more than forks and flatulence."

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

2001-01-25 Thread Philip Olson

Here's a tutorial :

http://www.oreillynet.com/pub/a/php/2001/01/11/php_admin.html

Here's track_vars in the manual :

http://www.php.net/manual/en/configuration.php#ini.track-vars

So in .htaccess it would be something like :

php_flag track_vars 1

To have it off, it would be :

php_flag track_vars 0



Regards,
  be outside the box.

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

On Thu, 25 Jan 2001, April wrote:

> Is it possible to enable track_vars from a .htaccess doc, and does anyone
> have a link to a good basic (as in, insanely beginner) tutorial to do it?
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 




-- 
PHP General Mailing List (http://www.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] Persistent connections and transactions

2001-01-25 Thread Martin A. Marques

El Jue 25 Ene 2001 16:49, Frank Joerdens escribió:
> On Thu, Jan 25, 2001 at 04:04:24PM -0300, Martin A. Marques wrote:
> [ . . . ]
>
> > Of course. But the persistent connection are not working as the manuals
> > say they should work.
>
> It appears this riddle has been solved: From a post by Adam Lang on
> pgsql-php on Dec 8:
>
> 
>   Well, there's a problem with PHP's [mis]documentation. First of all,
> it counts open DB connections not on per-webserver, but on
> per-process/thread basis.
>   The default PHP config file has the limits of persistent and
> non-persistent connections set to -1 (no limit)... Setting it to
> some (supposedly) reasonable value (like, 50) accomplishes nothing: you
> should multiply 50 by the number of webserver processes/threads. There
> can be lots of them... :[
>   And then there comes PHP's "logic": if I can just open the new
> connection, why bother reusing the old one? And thus Postgres backends
> start multiplying like rabbits, eventually reaching the limit... :[
>   You should set a reasonable limit on number of open persistent
> connections (like 1, maybe 2 or 3), only then PHP will actually reuse
> them. My webserver now works with such setup and there are no more
> problems with pg_pconnect().
> 

Yes, I got this mail from Adam, but I think it was on the IMP mailing list or 
the Postgres-devel mailing list. Well, that doesn't matter to much. ;-)
Any way, it speaks very bad about the logic that PHP has of what is a 
persistent connection (I think I had the same problem with informix).

> > That has nothing to do with apache. If the SQL statments are well
> > implemented, the second query wouldn't see any of the changes that the
> > first query executed until the work is commited, and it shouldn't be able
> > to modify the rows with which the first query is updating or deleting.
> > But thats Postgres that doesn't let it, not the apache server, not php.
>
> You are assuming that the Postgres backend has accurate information
> about the client's identity. The "client" for the backend is the Apache
> child, not the browser. The Postgres backend doesn't know anything about
> web browsers. So if Apache/PHP allows a 2nd browser to connect to a
> particular Apache process while it's waiting for a query to complete
> that would generate information to be sent back to the first browser,
> then you're in trouble. But I think it would be pretty silly for
> Apache/PHP to allow that.

OK, lets see if we can understand what each other is saying (maybe I'm not 
getting your point here).
Lets say browser A connects to the apache server, to a page using php code. 
Lets say the code is OK (no bugs). Apache opens a persistent connection to 
the database and starts executing the queries. Now the connection between the 
apache server and the web browser doesn't close until the queries are all 
finished and the output is send back to the browser.
Now, how about if browser B connects to the apache server just in the middle 
of the execution of the queries that browser A asked for?
Well, the connection between Browser A and the web server is still opened, so 
another httpd child process answers the request. If a persistent connection 
is needed (as Adam said) this child will open a new one, because the other 
one is still in use.
So now you have two web connections with two backend connections.

My question would be, and seeing Adams thoughts, wouldn't it be the best 
optimization configuration of php.ini to have only one persistent conection? 
Wouldn't there be one per-child? Any way, you can't have two connections to 
the same httpd child.

Saludos... :-)

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

2001-01-25 Thread Nate

Hi there,
I am trying to open remotely the file http://www.parentprofiles.com/clicker.php
and am useing the code:
http://www.parentprofiles.com/clicker.php?profile_id=" . 
$this->profile_id
. "&code=1","r");
echo $fp;
?>

to do it. however when I do all I get is a response that says:
Resource id #1
instead of giving me the page. Any ideas?
Alan

__
Is your life touched by adoption . . . or do you wish it were?
Visit www.Adoption.com.
Get FREE Adoption.com e-mail at www.AdoptionMail.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] Splitting at word count

2001-01-25 Thread H. Wade Minter

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm doing a page where the front page will show "news" stories.  What I'd
like is if the story is longer than X words/chars/etc, the index page will
show the first X words, then a link for the full story.

Does anyone have a good idea on how to split after a certain number of
words?

Thanks,
Wade
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6cIdgX5y4ZKLK2pMRAjOoAJ0RD43TCH7yVTLKhVjtsJ2mr/ZLMgCgmcz0
QHiQipt8ngHq7dnVdiQeHXY=
=PwwQ
-END PGP SIGNATURE-


-- 
PHP General Mailing List (http://www.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] Persistent connections and transactions

2001-01-25 Thread Frank Joerdens

On Thu, Jan 25, 2001 at 04:04:24PM -0300, Martin A. Marques wrote:
[ . . . ]
> Of course. But the persistent connection are not working as the manuals say 
> they should work.

It appears this riddle has been solved: From a post by Adam Lang on
pgsql-php on Dec 8:


  Well, there's a problem with PHP's [mis]documentation. First of all,
it counts open DB connections not on per-webserver, but on
per-process/thread basis.
  The default PHP config file has the limits of persistent and
non-persistent connections set to -1 (no limit)... Setting it to
some (supposedly) reasonable value (like, 50) accomplishes nothing: you
should multiply 50 by the number of webserver processes/threads. There
can be lots of them... :[
  And then there comes PHP's "logic": if I can just open the new
connection, why bother reusing the old one? And thus Postgres backends
start multiplying like rabbits, eventually reaching the limit... :[
  You should set a reasonable limit on number of open persistent
connections (like 1, maybe 2 or 3), only then PHP will actually reuse
them. My webserver now works with such setup and there are no more
problems with pg_pconnect().


[ . . . ]
> > Hmm. Say the Apache child is idle (under which cirumstances exactly does
> > it consider itself 'idle'?), receives a request for a page which
> > executes a query (because it contains php code that does). This takes a
> > while. In the meantime, while the SQL server is chugging away running
> > the query, will the Apache child not accept further http requests? How
> > does the Apache child know that it is waiting for the query to complete?
> > This is what I don't know about the mechanism.
> 
> That has nothing to do with apache. If the SQL statments are well 
> implemented, the second query wouldn't see any of the changes that the first 
> query executed until the work is commited, and it shouldn't be able to modify 
> the rows with which the first query is updating or deleting.
> But thats Postgres that doesn't let it, not the apache server, not php.

You are assuming that the Postgres backend has accurate information
about the client's identity. The "client" for the backend is the Apache
child, not the browser. The Postgres backend doesn't know anything about
web browsers. So if Apache/PHP allows a 2nd browser to connect to a
particular Apache process while it's waiting for a query to complete
that would generate information to be sent back to the first browser,
then you're in trouble. But I think it would be pretty silly for
Apache/PHP to allow that.

Regards, Frank

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




[PHP] Enabling track_vars.

2001-01-25 Thread April

Is it possible to enable track_vars from a .htaccess doc, and does anyone
have a link to a good basic (as in, insanely beginner) tutorial to do it?


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




[PHP] PostgreSQL + PHP + SQL warning messages

2001-01-25 Thread Evelio Martinez


Hi!

Is there any way to get the equivalent sqlca.sqlcode value of informix
in PostgreSQL from php ?

I would like to use the sqlcode to print the messages in Spanish.

Thanks in advance


--
Evelio Martínez
Testanet. Dept. desarrollo software.
Av. Reino de Valencia, 15 - 5
46005 Valencia (Spain)
Tel: +34 96 395 90 00
Fax: +34 96 316 23 19





Re: [PHP] mktime() not allowing dates before 1970

2001-01-25 Thread Monte Ohrt

use Date_Calc.

http://www.phpinsider.com/php/code/Date_Calc/

Diego Fulgueira wrote:
> 
> I know the UNIX epoch is 1/1/1970 and that mktime() returns the number of
> seconds between that date and the date specified by its parameters. If this
> date is before 1/1/1970, it always returns -1, not a large negative number,
> which would be more reasonable, i think.
> The question is: How can I know the number of seconds ellapsed between any
> date in the past and today?
> 
> Thanks in advance.
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
Monte Ohrt <[EMAIL PROTECTED]>
http://www.ispi.net/

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




[PHP] mktime() not allowing dates before 1970

2001-01-25 Thread Diego Fulgueira

I know the UNIX epoch is 1/1/1970 and that mktime() returns the number of
seconds between that date and the date specified by its parameters. If this
date is before 1/1/1970, it always returns -1, not a large negative number,
which would be more reasonable, i think.
The question is: How can I know the number of seconds ellapsed between any
date in the past and today?

Thanks in advance.


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




[PHP] Question about dopping zeros

2001-01-25 Thread Ethan Nelson

I need to format decimals that are percise to the second place in the
following format:

4.00 to 4
4.50 to 4.5
4.25 to 4.25

As you can see, I just want to drop the trailing zeros, and if necessary the
decimal.

Thanks

___
Ethan Nelson, Systems Administrator
Net Solutions, LLC
840 Lawrence Street
Eugene, OR 97401
[EMAIL PROTECTED]
http://www.netsolutionsllc.com
Voice +1 541 345-7087
Fax   +1 541 485-5519


-- 
PHP General Mailing List (http://www.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] Persistent connections and transactions

2001-01-25 Thread Martin A. Marques

El Jue 25 Ene 2001 14:34, Frank Joerdens escribió:
> On Thu, Jan 25, 2001 at 11:18:49AM -0300, Martin A. Marques wrote:
> [ . . . ]
>
> > No, and thats why in the postgres list we talked about persistent
> > connections not having much benefits. That is because the connection is
> > persistent to the httpd child that called it and not to all.
>
> Well, yes, but as long as the child lives, it'll be connected which
> means that every subsequent request to this child involving a database
> connection won't have to suffer the connection startup cost. If you have
> a rather inexpensive query, and a lot of web apps use simple,
> straightforward selects that are very inexpensive, then the connection
> startup overhead contributes more to the performance hit than the actual
> query.

Of course. But the persistent connection are not working as the manuals say 
they should work.

> [ . . . ]
>
> > Now be carefull. http connection open and close, they do not stay open,
> > so if you try to execute different SQL statments with different httpd
> > connections, your gonna have trouble (the sql server won't let you,
> > because there is another transaction been executed).
>
> Hmm. Say the Apache child is idle (under which cirumstances exactly does
> it consider itself 'idle'?), receives a request for a page which
> executes a query (because it contains php code that does). This takes a
> while. In the meantime, while the SQL server is chugging away running
> the query, will the Apache child not accept further http requests? How
> does the Apache child know that it is waiting for the query to complete?
> This is what I don't know about the mechanism.

That has nothing to do with apache. If the SQL statments are well 
implemented, the second query wouldn't see any of the changes that the first 
query executed until the work is commited, and it shouldn't be able to modify 
the rows with which the first query is updating or deleting.
But thats Postgres that doesn't let it, not the apache server, not php.

Saludos... :-)

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

-- 
PHP General Mailing List (http://www.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] SQL Server DB to mySQL DB

2001-01-25 Thread Jason Bouwmeester

Thanks for the tip. I actually read that the default for mySQL is TAB and LF
for delimiters, so I used those in SQL and exported a .txt file, imported it
into mySQL database and voila! A few code modifications and we be running on
mySQL.

Thanks again!
Jason

-Original Message-
From: Christopher Allen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 9:16 AM
To: Jason Bouwmeester; [EMAIL PROTECTED]
Subject: Re: [PHP] SQL Server DB to mySQL DB


Just did this to a 65mb fixed width file.
What I did was get it into a csv file via perl :)

Then I created the db table.
Then I used:
load data infile "/file.csv" into table blah fields terminated by ',' ;
then go ahead and create any indexes etc...

!works slick!

> Is there an easy way to do this? I know that SQL Server can export a comma
> delimited file, can mySQL import this? I imagine the PHP will be easy to
> modify as long as the field names are the same.


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




[PHP] Password security from PHP to MySQL

2001-01-25 Thread Egan

I know that ~.my.cnf with

  [client]
  password={mypass}

is the recommended method of securing your MySQL password when using a
shell command line to access MySQL.

But what is the recommended method for MySQL password security via
PHP?  Is there some way to make it use the ~.my.cnf file?

It seems to me that if you hardcode a MySQL password into your PHP
source code, it could become exposed inadvertently.  Forgive me if
this is already answered in the FAQ or manual.


Egan




-- 
PHP General Mailing List (http://www.php.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/MYSql equivalent to Hypermail/Monharc?

2001-01-25 Thread Greg Schnippel


Hi, 

I have been using Hypermail for archiving our mailing lists but I'm 
becoming and more frustrated with its limitations. 

Is there an equivalent PHP script to hypermail out there? Ideally,
I would like to maintain the incoming e-mail addresses in a mysql
database.

Thanks,

-Greg

-- 
PHP General Mailing List (http://www.php.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 25 Jan 2001 18:46:34 -0000 Issue 476

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


php-general Digest 25 Jan 2001 18:46:34 - Issue 476

Topics (messages 36575 through 36680):

Re: warning 1 is not mysql result index
36575 by: Jacky.lilst
36585 by: Christopher Allen

Re: Ideas?? (OT- MySQL)
36576 by: Matthew Kendall

mysql auto increment question
36577 by: David Banning
36578 by: Pavel Jartsev

finding the difference
36579 by: Website4S.aol.com
36599 by: Steve Edberg

How to make links?
36580 by: neXus

setting register_globals off
36581 by: Catalin Borcea
36589 by: Philip Olson

Which one is better?Session or Cookies?
36582 by: Hendry Sumilo
36584 by: Thomas Weber

Date -1
36583 by: David Smith

Re: Integration of PHP with MS Outlook?
36586 by: Jon Haworth
36627 by: Andrew Hill

Re: Funny php://stdout behaviour
36587 by: ARTEK
36588 by: ARTEK

Informix prep error
36590 by: Juraj Hasko

I have a problem with uploading files, can anybody help me!!!
36591 by: Securez
36593 by: Eric Dahnke
36603 by: Securez

html_mime_mail.class - - help
36592 by: Eric Dahnke

Zend hit
36594 by: Uioreanu Calin

Encoder price too high (was:  Zend hit)
36595 by: Adrian Teasdale
36596 by: Adam Wright
36604 by: Owen Leonard

Strange problem
36597 by: Jeroen Jochems
36614 by: Hardy Merrill
36619 by: Jeroen Jochems
36622 by: Jeroen Jochems

Re: multiple function returns
36598 by: Steve Edberg
36625 by: Hrishi

Sorry
36600 by: Thomas Wentzel

Compiler? (Was Re: [PHP] PHP site on CD-ROM)
36601 by: Angus Mann
36602 by: Adam Wright
36612 by: Zeev Suraski
36616 by: Jim Jagielski

Re: Extending PHP
36605 by: Thomas Wentzel

how display msg(5 secs) and then redirect?
36606 by: Hardy Merrill
36607 by: Jon Kjær Amundsen

Persistent connections and transactions
36608 by: Frank Joerdens
36621 by: Martin A. Marques
3 by: Frank Joerdens

Re: Zend hit (Encoder price)
36609 by: Sander Pilon
36613 by: Teodor Cimpoesu
36615 by: Jim Jagielski
36652 by: szii.sziisoft.com
36657 by: Jim Jagielski
36662 by: szii.sziisoft.com
36668 by: Michael A. Peters
36670 by: Jim Winstead
36674 by: Rasmus Lerdorf

Genuine Opportunity
36610 by: NEWS!!
36611 by: Ernest E Vogelsinger
36618 by: CC Zona

whois
36617 by: AJDIN BRANDIC
36620 by: Andy Woolley
36623 by: Ernest E Vogelsinger
36624 by: Stig Venaas
36649 by: AJDIN BRANDIC
36656 by: AJDIN BRANDIC

Re: Urgent help needed, sound scary when anyone did that on title :-)
36626 by: Shaun Thomas

Re: Zend hit (Encoder price) (Freelance Encoding?)
36628 by: Wandrer

Re: Cookie semi-security.
36629 by: April

Best way to describe Doc as HTML
36630 by: Karl J. Stubsjoen
36653 by: php3.developersdesk.com

MySQL email function
36631 by: Kenneth R Zink II
36636 by: Jon Haworth

How do I to declare a function or procedure in PHP???
36632 by: Bruno Freire
36634 by: Sam Masiello
36635 by: April

SQL Server DB to mySQL DB
36633 by: Jason Bouwmeester
36637 by: Pavel Kalian
36640 by: Christopher Allen

myODBC
36638 by: Jason Bouwmeester
36641 by: cmoewes.moewes.com
36642 by: cmoewes.moewes.com
36644 by: Jason Bouwmeester

undefined symbol...
36639 by: Thomas Wentzel

Zend Debuger
36643 by: Andrew Sitnikov
36645 by: Jim Jagielski

date
36646 by: Randy Johnson
36650 by: php3.developersdesk.com
36661 by: Hardy Merrill

Urgent answers needed for FILE UPLOAD problem
36647 by: Tim Meader

How do I see the data in list()?
36648 by: Scott Fletcher
36658 by: Pavel Jartsev
36667 by: Steve Edberg

can't upload files if extension has more than one dot.
36651 by: david klein

Outputting a 2 digit number < 10
36654 by: Jamie
36664 by: Pavel Jartsev

trouble with updating the id numbers
36655 by: Jason Jacobs

A second question about http File Upload...
36659 by: Tim Meader

Re: how to rename a database
36660 by: php3.developersdesk.com

[newbie]subtracting date
36663 by: Matthew Ley
36676 by: Hardy Merrill

Re: Greek PHP mailing list
36665 by: Carsten Gehling

I still don't get it
36669 by: Carsten Gehling

Search Engine...
36671 by: php4.mailbr.com.br
36672 by: Jason Jacobs
36677 by: Marko Perich

Re: pdflib: unable to generate on the fly, need to write to file
36673 by: Uwe Steinmann

Read Vs. Include
36675 by: Karl J. Stubsjoen

telnet timeout
36678 by: Pablo Martin De Natale

Anyone who can hel

php-general@lists.php.net

2001-01-25 Thread Ethan Nelson

Hello,

I've got 4.25, 4.50 and 4.00.

I want to format them so that they give back 4.24, 4.5 and 4

I've already seen a pattern replacement that looks close to what I want, but
not quite.

Thanks ahead of time

Ethan

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




[PHP] Anyone who can help me making a loop of this?

2001-01-25 Thread Christian Sakshaug

Anyone who can help me making a loop of this?
 http://www.sakshaug.net/phps/loop.txt

I have tried many things, but I can't get it perfect...





Best Regards, Christian Sakshaug
-- 
Email: [EMAIL PROTECTED]
Web:   www.sakshaug.net
Tel: +47 913 95 618



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




[PHP] telnet timeout

2001-01-25 Thread Pablo Martin De Natale

Hi, anybody knows where can i change the telnet timeout on a linux red
hat 6.2?

Thanks
Pablo



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




RE: [PHP] Search Engine...

2001-01-25 Thread Marko Perich

I am using htdig from htdig.org.
It is an external program that executes like a cgi.
It is simple, fast and configurable.
I recommend it.

Hope it helps
Marko.


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

2001-01-25 Thread Hardy Merrill

For PHP's data and time functions, see this page:
http://www.php.net/manual/en/html/ref.datetime.html

You didn't mention a database - are you going to be selecting
records in a database based on a date?

I haven't seen this anywhere in the documentation, but my
favorite way of doing date math, and the way I've seen other
people do it also, is to convert your dates to unix timestamps -
that is, convert each date to the number of seconds since 1970,
then subtract or add, then convert the result back into a date.

   $today_seconds = time(); // get current unix timestamp
   $num_days = 5;

   $num_days_seconds = (60*60*24*$num_days);
   $date_before_seconds = $today_seconds - $num_days_seconds;
   
   // now convert new date seconds back into a date
   $date_before = date("m-d-Y", $date_before_seconds);


Or use this that I found in the "date" documentation:

$five_days_ago_seconds = mktime (0,0,0,date("m"),date("d")-5,date("Y"));
$date_5_days_ago = date("m-d-Y", $five_days_ago_seconds);


HTH.

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

Matthew Ley [[EMAIL PROTECTED]] wrote:
> I am working on a project where I need a function that will take the current
> date and subtract however many days off of it a client specifies.  Would
> anybody know a way I can set this up?  I pretty new at this so my vocabulary
> is very basic.
> 
> 
> -- 
> PHP General Mailing List (http://www.php.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] Read Vs. Include

2001-01-25 Thread Karl J. Stubsjoen

Hello,

I want to *read* a file into a page and not process any PHP.  I'm just
reading an HTML file.  I though it was simple, I thought I had it figured
out, but now when I try, I get the following error:

Fatal error: Call to unsupported or undefined function read() in
/var/www/wherever.com/betastore/iscookies.php on line 41

Here is the code (line 41 is superceded by a +):

37: # display no cookies message
38: function NoCookies() {
39: global $DOCUMENT_ROOT;
40: $LocalScript = $DOCUMENT_ROOT . "/betastore";
41:  read ($LocalScript . "/thispage.html");
42: }

Thanks for any help.



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

2001-01-25 Thread Rasmus Lerdorf

> Well, without the Encoder the entire *possibility* of "seriously proprietary
> kickass scripts" that people distribute and sell is out of the question.

Let's not go overboard here.  You can build and sell serious stuff without
an encoder.  Obfuscating the code is not a requirement for all people.  A
usage license attached to the code that specifies what the client can do
with it is often all it should take.  If you really are building serious
stuff that you sell to serious customers, then they are not likely to
violate a license to save a few hundred dollars.

If there are some things you really need to hide, and perhaps also really
need to make fast, then write yourself a PHP extension in C that
implements this critical logic and load that.  This gives you a nice
performance boost and you can still let your customer modify the
look-and-feel part of the application.

And yes, the Zend encoder is another approach, but saying it is out of the
question to do anything like this without the encoder is a bit misleading
as far as I am concerned.

-Rasmus


-- 
PHP General Mailing List (http://www.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] pdflib: unable to generate on the fly, need to write to file

2001-01-25 Thread Uwe Steinmann

On Wed, Jan 24, 2001 at 11:21:28AM -0600, Dominic wrote:
> I have successfully installed pdflib with PHP4.0.4pl1 and all the
> necessary components. However, I don't know how to output a generated
> pdf to the browser without writing it to disk first and then reading it
> in. Below are the examples that I use.
> 
> This example tries to directly output the pdf to the browser and doesn't
> work. The browser says "An error has occured while trying to use this
> document."
In case you use pdflib 3.03 check the pdflib page for a patch.
There is a bug if you create documents in memory.

  Uwe

-- 
  [EMAIL PROTECTED]
  Tel: +2331 987 4528Fax: +2331 987 375

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




Re: [PHP] Search Engine...

2001-01-25 Thread Jason Jacobs

go to www.devshed.com
 Look in their PHP section, and there should be something there.

-j

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 25, 2001 3:47 PM
Subject: [PHP] Search Engine...


> Hello...
> I would like to code a search engine to use just inside my home
> page...Anyone has an idea where can I find informations about how is the
> process to code a search engine with PHP??
> Thank you
>
> Felipe Lopes
>
> MailBR - O e-mail do Brasil -- http://www.mailbr.com.br
> Faça já o seu. É gratuito!!!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




[PHP] Search Engine...

2001-01-25 Thread php4

Hello...
I would like to code a search engine to use just inside my home 
page...Anyone has an idea where can I find informations about how is the 
process to code a search engine with PHP??
Thank you

Felipe Lopes

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

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




Re: [PHP] Zend hit (Encoder price)

2001-01-25 Thread Jim Winstead

please, please take this discussion elsewhere.

if you have questions for the zend guys about their pricing and want to
lecture them on what you think the right pricing is, there are a number
of message boards on their site that are more suitable.

if you want to explore alternatives to the zend cache and encoder
products, take a look at the bware 'afterburner' cache and apc (whose
next release will have encoder-like functionality). search freshmeat for
more information on those projects. there is a mailing list set up for
the discussion of apc, at least.

jim

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




[PHP] I still don't get it

2001-01-25 Thread Carsten Gehling

I've brought this up in reference to other questions but haven't got a
straight answer.

Suppose I've created a session variable: session_register("foo") and receive
a posted form with the input field "bar".

If register_globals = off, I can only access the form-field like this:

$HTTP_POST_VARS["bar"]

and the session-variable like this:

$HTTP_SESSION_VARS["foo"]


If I set register_globals = on, the form-field can be accessed in two ways:

$bar

and the previous

$HTTP_POST_VARS["bar"]

but the session-variable only with:

$foo

and a new array $GLOBALS["foo"]

My question: What happened to $HTTP_SESSION_VARS? And why, since
$HTTP_POST_VARS is still accessible?

- Carsten



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

2001-01-25 Thread Michael A. Peters

My question is-

Does the encoder license permit a company to purchase the license, and then optionally 
encode php for third parties?

Can I, for example, encode purchase the encoder, and then make a deal with John who 
can't afford the encoder to encode John's web application for $150 and give John the 
encoded version?

The answer, unfortunately, is no, at least as I read the commercial license.

This is really too bad, if you ask me- as there are a lot of really bright kids out 
there who have seen that the Open Source model, while very noble and absolutely loved, 
doesn't always pay. Why then, should they develop using php if they are not capable of 
protecting their code if that's their choice?

They'll be using Java or C/C++ or perl (which can be encoded for a lot less).

There needs to be a solution where those who do not yet have big bucks can take 
advantage of the encoder to protect what their mind has conceived. Otherwise, they 
won't use php (or their code will be ripped off if its really really good) and zend 
will lose future market as these brilliant minds move towards affordable technology to 
protect what their intellectual work.

Charge $6000 to the big companies, I have no problem with that. I personally would be 
willing to pay that if web applications was my business. But at the same time, allow 
those who don't necessarily need to have the encoder but just want some code encoded 
to have an affordable solution.
 
On Thursday, January 25, 2001, at 05:26 AM, Sander Pilon wrote:

>  
> > 
> > Hello, 
> > 
> > What do you think about Zend position? 
> > http://php.weblogs.com/ 
> > http://zend.com/phorum/read.php?num=3&id=6277&loc=0&thread=6277 
> > 
>  
> I think that if Zend wants to sell it for $6000, then they have all right 
> to. These guys have worked hard, and they deserve some cash for it. 
>  
> If people can't afford it at $6000, then that's their problem. Software is 
> intellectual property, it shouldn't be free, and authors should be able to 
> charge any price for it they want to charge for it. 
>  
> But, I don't think it's a wise decision to sell it at $6000, personally I 
> think I would sell it between $1000 and $4000, but that's just me. ($6000 is 
> a bit on the high side, considering what alternatives one haves for that 
> price, and considering that anyone who paid $1000 a year back (I recall 
> something about 'sponsoring') gets it all.) 
>  
> -S 
>  
>  
> --  
> PHP General Mailing List (http://www.php.net/) 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> To contact the list administrators, e-mail: [EMAIL PROTECTED] 
>  
>  

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

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




Re: [PHP] How do I see the data in list()?

2001-01-25 Thread Steve Edberg

At 11:33 AM -0500 1/25/01, Scott Fletcher wrote:
>Hi!
>
> When I use the echo to see what is inside the list().  Instead I got the
>message on screen saying "ArrayArray".
>
> The array are being assigned first then then list come second.  ie.
>
> $test = array();
> $test1 = array()
>
> list($test,$test1);
>
>---
> When I do "echo list($test,$test1);", it doesn't work.
>
> What are the better way to see the data in the array?
>


Are these actual program snippets? If they are then

(1) '$test1 = array()' line is missing a trailing ';'

(2) The statement 'list($test,$test1);', to the best of my knowledge, 
does nothing in this context.

(3) From your echo statement, you should see the output 
'list(Array,Array)' - functions and language constructs aren't 
evaluated in double-quoted strings; only variables.

It would make more sense to me to have something like

$test = array('bean', 'noodle', 'wednesday');
$test1 = array('a'=>'apple', 'b'=>'banana', 'c'=>'carrot');

$foo = array($test, $test1);

Then you could display these values like so:

If you have PHP4, use print_r() or var_dump():

echo print_r($foo);

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

I haven't used either of these functions, so I don't know exactly 
what the output looks like. It says var_dump() was available in PHP 3 
after 3.0.5, but I'm not entirely sure that's true. If it is, it must 
have been undocumented for a while.

An alternative display method would be something like (a little more 
cumbersome, but works in PHP3 & 4):

for ($i=0; $i\n";
}
}

Also, instead of the

$test = array('bean', 'noodle', 'wednesday');
$test1 = array('a'=>'apple', 'b'=>'banana', 'c'=>'carrot');

$foo = array($test, $test1);

way of declaring the $foo array, you could also say

$foo = array(
array('bean', 'noodle', 'wednesday'),
array('a'=>'apple', 'b'=>'banana', 'c'=>'carrot')
)

or
$foo[0] = array('bean', 'noodle', 'wednesday');
$foo[1] = array('a'=>'apple', 'b'=>'banana', 'c'=>'carrot');

See

http://www.php.net/manual/en/language.types.array.php

for more information.

- steve


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

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




Re: [PHP] Persistent connections and transactions

2001-01-25 Thread Frank Joerdens

On Thu, Jan 25, 2001 at 11:18:49AM -0300, Martin A. Marques wrote:
[ . . . ]
> No, and thats why in the postgres list we talked about persistent connections 
> not having much benefits. That is because the connection is persistent to the 
> httpd child that called it and not to all.

Well, yes, but as long as the child lives, it'll be connected which
means that every subsequent request to this child involving a database
connection won't have to suffer the connection startup cost. If you have
a rather inexpensive query, and a lot of web apps use simple,
straightforward selects that are very inexpensive, then the connection
startup overhead contributes more to the performance hit than the actual
query.

[ . . . ]
> Now be carefull. http connection open and close, they do not stay open, so if 
> you try to execute different SQL statments with different httpd connections, 
> your gonna have trouble (the sql server won't let you, because there is 
> another transaction been executed).

Hmm. Say the Apache child is idle (under which cirumstances exactly does
it consider itself 'idle'?), receives a request for a page which
executes a query (because it contains php code that does). This takes a
while. In the meantime, while the SQL server is chugging away running
the query, will the Apache child not accept further http requests? How
does the Apache child know that it is waiting for the query to complete?
This is what I don't know about the mechanism.

Regards, Frank

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

2001-01-25 Thread Carsten Gehling

From: "Brian White" <[EMAIL PROTECTED]>
Sent: Thursday, January 25, 2001 4:55 AM


> >At least you're not sitting in high school calculus and actually
> >understanding everything on the board, but not being able to use any of
it
> >because Texas Instruments is the only company that's figured out how to
do
> >algebraic manipulation, and you can't exactly run a server on your
> >calculator. =)
>
> Are you sure - I thought HP calculators could do it as well?

Ah now, but who would use a HP, when you've got your trusty TI? :-)

(JUST a joke - I can already see the clouds of war in the horizon. A war
that is way older than VI/Emacs...)

- Carsten



-- 
PHP General Mailing List (http://www.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] Outputting a 2 digit number < 10

2001-01-25 Thread Pavel Jartsev

Jamie wrote:
> 
>  ...
> 
> ";
>   $day = (date ("d"));
>   $daysinmonth = (date("t"));
> for ($i=00;$i<$daysinmonth;$i++){
>   if ($i == $day) {
>echo("$i\n");
>   } else {
> echo("$i\n");
>}
>  }
>  echo""
>   ?>
> 
> ...

Maybe this for-cycle is doing what u want 
(if i didn't misunderstood your question).

$i2\n";
}
?>


Hope this helps.

-- 
Pavel a.k.a. Papi

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




[PHP] [newbie]subtracting date

2001-01-25 Thread Matthew Ley

I am working on a project where I need a function that will take the current
date and subtract however many days off of it a client specifies.  Would
anybody know a way I can set this up?  I pretty new at this so my vocabulary
is very basic.


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

2001-01-25 Thread szii

You are entirely correct.  However, I (personally) feel that by pricing it so
high you're targeting a very small niche market at a higher rate.  Pricing it
in the "$300.00" range would not cost you that niche - but it would gain you
the "x-million" users/freelance developers.  Sure, $6,000 is 20x $300, but
it's ONLY x20.  When you're talking about a userbase on the 'net, x20 is
NOTHING.  "Go big and expensive" seems the "old way" and "go small and
dominate the market" seems the new...um, paradigm.  (Yes, I just wanted 
to say that word.  For all it's overuse, I think it just looks neat.)

If it's available, what is Zend's sales projection for this thing?
And has Zend acknowledged the possibility that by pricing it
so high they're ENCOURAGING competition/extensions from
the Open crowd?  Price it lower and people who would otherwise
balk and write their own would just buy it.  Like me.  I don't have a viable
use for it atm, but the possibility's there.  So what're my options?  
Pay you 6k, or code one?  Encoding modules aren't rocket science,
but I'd have to learn the Zend plugin/module API.  Company 1 wants it,
pays 3k for a coder, and then releases it.  *blink*  Now Company 1 has
saved/invested 3k, and the Open community has the tool.  Maybe Company1
charges $50.00 for it to recover costs.  Now the vaunted Zend Encoder's
trying to compete and is still priced at $6,000.  Sure, you may get a few
sales before someone drops a replacement but you'd get a whole lot more
by lowering the price, claiming market share and then you'd be better
positioned when the (obviously in the works) Open community spits one
out.

Just some thoughts

-Szii



At 12:09 PM 1/25/2001 -0500, Jim Jagielski wrote:
>[EMAIL PROTECTED] wrote:
>> 
>> But I do know that for $6,000 I sure as hell am not buying it.
>> Maybe for a couple hundred...but $6,000?  No way.  I'd have to have
>> some seriously proprietary kickass scripts that cost me a huge investment
>> in time/money to develop to blow $6,000 just on keeping people from 
>> copying/tweaking them.  Even then, they're just scripts.  It'd be nice for
>> some encapsulated functionality, say, for database access, but
>> still, for $6,000 + runtime client?  Nah, PHP code's just not that complex
>> and for $6,000 I can set up a number of unique users in the database.
>> 
>> -Szii
>> 
>
>Well, without the Encoder the entire *possibility* of "seriously proprietary
>kickass scripts" that people distribute and sell is out of the question.
>Who said it was for the small developer? For them, there's the
>Commercial Subscription plan. The Encoder is for companies whose
>business is selling such PHP apps (among other good solutions
>as well).
>
>And the Encoder allows for better separation of business and
>presentation logic... hell, you could even implement a sort
>of business logic PHP "servlet".
>-- 
>===
>   Jim Jagielski   [|]   [EMAIL PROTECTED]   [|]   http://www.jaguNET.com/
>  "Casanova will have many weapons; To beat him you will
>  have to have more than forks and flatulence."
>

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

2001-01-25 Thread Hardy Merrill

[EMAIL PROTECTED] [[EMAIL PROTECTED]] wrote:
> Addressed to: "Randy Johnson" <[EMAIL PROTECTED]>
>   [EMAIL PROTECTED]
> 
> ** Reply to note from "Randy Johnson" <[EMAIL PROTECTED]> Thu, 25 Jan 2001 
>11:25:52 -0500
>
> > I am wondering if it would be more efficient to store the integer
> > value that the php function time() returns when a transaction is
> > inserted into the database and then when querying the database to get
> > certain transactions just use basic math functions to get the certain
> > transactions.
> >   
> > For example in I wanted to get all the transactions from the last 31
> > days
> >   
> > lets say there was 980026719 seconds since 1970 and the number of
> > seconds from the last 31 days is 2678400
> >   
> 
> 
> If you are going to the trouble of using a database, go with it all the
> way and use the date datatype it provides, along with the date
> functions in the database.

But when you start using database date functions, which are
definitely different between databases, you are making your
code dependent on the particular database you write it for -
then to migrate to another database would be a major rework.

If you use a method like unix timestamp for doing your date
math with just standard > or < SQL comparison operators, then
your code is much more database independent, and switching
to a different database becomes much easier.  This is just
my 2cents.

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

> 
> 
> >   
> > select from table where time_of_trans >(980026719-2678400)
> 
>SELECT whatever 
>FROM table 
>WHERE time_of_trans > SUBDATE( NOW(), INTERVAL 1 MONTH );
> 
> I can assure you considerable thought has been given to the storage of
> data in the database, and the optimization of queries.  The format you
> enter and display is not what gets stored in the tables for a date.
> 
> 
> One cool thing about this, it also works from the command line
> interpreter, and you don't have to figure out what the current time()
> is if you want to run a query by hand.
> 
> Take a look at this page if you are using MySQL.  
> 
> 
>http://www.mysql.com/doc/D/a/Date_and_time_functions.html
> 
> 
> Date_Format() is veryhandy!
> 
> 
> 
> 
> 
> Rick Widmer
> Internet Marketing Specialists
> http://www.developersdesk.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] how to rename a database

2001-01-25 Thread php3

Addressed to: "Chris Doyle" <[EMAIL PROTECTED]>
  "Fang Li" <[EMAIL PROTECTED]>
  <[EMAIL PROTECTED]>

** Reply to note from "Chris Doyle" <[EMAIL PROTECTED]> Thu, 25 Jan 2001 09:38:55 
+1000

To be completely safe:


cd /var/mysql#  or where ever your databases are stored.

mysqladmin -p shutdown   #  shut down database to make sure all
 #  tables are flushed, and closed

mv OldDbName NewDbName   #  rename the directory

safe_mysqld &#  restart mysqld


mysql -p #  Reassign the permissions

>REVOKE all users of the old table name
>GRANT all users of the new table name



>
> Prehaps you can rename the database file in mysql/bin  ie.
> database_name.sql to new_database_name.sql and that will work?
>
> - Original Message -  From: "Fang Li" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]> Sent: Thursday, January 25, 2001 7:20
> AM Subject: [PHP] how to rename a database
>
>
> >
> > Does anyone know how to rename a database in MySQL?
> > Thanks!
> >


Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.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] A second question about http File Upload...

2001-01-25 Thread Tim Meader

In my previous message I stated how some uploads were failing past a 
certain size. What I want to know is, is it possible to force PHP to write 
the uploaded contents as it receives them, or must they all be written at 
the end? In other words, does the file you are currently uploading have to 
completely fit into Memory (physical or virtual) before it can be written 
to disk? There is a perl script available that allows for file uploads that 
lets you write to disk as it's uploaded, instead of in one fell swoop at 
the end. Is this functionality available in PHP, and if so, where might I 
find it? I've never seen any mention of this ability in the documentation 
unfortunately.  


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




Re: [PHP] How do I see the data in list()?

2001-01-25 Thread Pavel Jartsev

Scott Fletcher wrote:
> 
> ...
> 
> What are the better way to see the data in the array?
> 

Maybe var_dump().

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


-- 
Pavel a.k.a. Papi

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




Re: [PHP] Zend hit (Encoder price)

2001-01-25 Thread Jim Jagielski

[EMAIL PROTECTED] wrote:
> 
> But I do know that for $6,000 I sure as hell am not buying it.
> Maybe for a couple hundred...but $6,000?  No way.  I'd have to have
> some seriously proprietary kickass scripts that cost me a huge investment
> in time/money to develop to blow $6,000 just on keeping people from 
> copying/tweaking them.  Even then, they're just scripts.  It'd be nice for
> some encapsulated functionality, say, for database access, but
> still, for $6,000 + runtime client?  Nah, PHP code's just not that complex
> and for $6,000 I can set up a number of unique users in the database.
> 
> -Szii
> 

Well, without the Encoder the entire *possibility* of "seriously proprietary
kickass scripts" that people distribute and sell is out of the question.
Who said it was for the small developer? For them, there's the
Commercial Subscription plan. The Encoder is for companies whose
business is selling such PHP apps (among other good solutions
as well).

And the Encoder allows for better separation of business and
presentation logic... hell, you could even implement a sort
of business logic PHP "servlet".
-- 
===
   Jim Jagielski   [|]   [EMAIL PROTECTED]   [|]   http://www.jaguNET.com/
  "Casanova will have many weapons; To beat him you will
  have to have more than forks and flatulence."

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

2001-01-25 Thread AJDIN BRANDIC

All of them servers give my error 111, not authorised :(.  Dead end again 
:). I have been trying to do sort this out but no luck.

Any way

Thanks


On Thu, 25 Jan 2001, Ernest E Vogelsinger wrote:

> At 15:13 25.01.2001, Andy Woolley said:
> [snip]
> >I know this is a little off topic but for your information 'whois.ripe.net'
> >provide information for the .ba TLD
> >
> >I too am looking for a database of Top Level Domains around the world so if
> >anyone knows of one I would be very much obliged If I could have a copy.
> [snip] 
> 
> http://www.cert.org/tech_tips/whois_by_domain.txt
> 
> # This document contains pointers to domain name registry databases
> # that can be used to locate point of contact information for Internet
> # sites.
> 
> Specifically this is registered for "ba":
> 
> Top-level domain : ba 
> Description : Bosnia and Herzegowina 
> NIC handle : ba6-dom 
> WHOIS server : 
> RWHOIS server : 
> Web-based query : 
> E-mail query : 
> Last updated : 21 Jun 2000 12:54:00 -0400 
> 
> 
> More about "ba": a query for "handle ba6-dom" at the network solutions
> whois server(funny enough it can be found there)
> 
> Registrant:
> Bosnia-Hercegovina top-level domain (BA6-DOM)
>University Teleinformatic centre - UTIC
>Skenderija 68
>Sarajevo, Bosnia-Hercegovina 71000
>BA
> 
>Domain Name: BA
> 
>Administrative Contact:
>   Delalic, Sedad  (SD13173)  [EMAIL PROTECTED]
>   UTIC
>   Skenderija 70
>   Sarajevo, Bosnia-Herzegovina 71000
>   BA
>   +387 71 667 830 (FAX) +387 71 213 773
>Technical Contact:
>   Okanovic, Vensada  (VO574)  [EMAIL PROTECTED]
>   UTIC
>   Skenderija 70
>   Sarajevo, Bosnia-Herzegovina 71000
>   BA
>   +387 71 667 830 (FAX) +387 71 213 773
> 
>Record last updated on 19-Oct-1999.
>Record expires on 04-Jun-2001.
>Record created on 14-Aug-1996.
>Database last updated on 24-Jan-2001 09:55:19 EST.
> 
>Domain servers in listed order:
> 
>NS.BA195.130.35.5
>SAVA.UTIC.NET.BA 195.130.35.3
>NS.EU.NET192.16.202.11
>NS.RIPE.NET  193.0.0.193
>AUTH03.NS.UU.NET 198.6.1.83
>MUNNARI.OZ.AU128.250.1.21
> 
> 
>  ...ebird
> 
>>O Ernest E. Vogelsinger
>(\)http://www.1-at-web.at/
> ^ ICQ#   13394035
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
PHP General Mailing List (http://www.php.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 updating the id numbers

2001-01-25 Thread Jason Jacobs

Hi all.  In the project I'm working on, I've got a table with ids that are
written based on how many records are in the table.  i.e., the first record
has an ID of 1, the 50th is 50, etc.  When a row gets deleted (I created a
web interface, I don't want all these members using phpMyAdmin), the ID's of
all the records after it are supposed to be decremented by one.  I thought
it was working, but yesterday it didn't.  Can anyone see what I'm doing
wrong?

***
if ($delete == 1){
 #delete the row
 $worked = mysql_query("delete from $tablename where
$fields[0]=\"$editval\" ", $database);
 if (!$worked){
  echo "couldn't delete anything";
 }//end if

 $connection = @mysql_connect("localhost",$PHP_AUTH_USER,$PHP_AUTH_PW);
 $database = @mysql_select_db($databasename, $connection);
 $del = mysql_query("select * from $tablename where RestID =
$restidval", $database);
 while ($Info_Array = mysql_fetch_array($del)){
   #update the ids of each record
   if($Info_Array[$v] > $editval){ #v is a fieldname (specifically
the id) defined above
 mysql_query("update $tablename set $fields[0] =
($fields[0]-1) where $fields[0] = \"$Info_Array[$v]\" ", $database);
   }//end if
  }//end while

  $delete=0; #reset the delete flag
}//end if

***

Assume that all the variables have the values they're supposed to (cuz last
I checked, they do. :))

Thanks for your help. Again.

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] Outputting a 2 digit number < 10

2001-01-25 Thread Jamie

I need to enable a user to insert an 'NEWS' item into a mySQL table one of
the definable limits for the user is to be the date that the news is to be
displayed. Currently the collum is in a 'date' format and should be stored
in a MMDD - being Australian we are used to the exact reverse of that so
I though it best to produce a series of three select options in html and
then joing the values before inserting them

 $form_date = $form_date_Year . $form_date_month . $form_date_day;

CRUX: the looping format I'm using to make the options needs to output a 2
digit number as a single digit like 1 as compared to 01 will invalidate the
date

Sample of a loop I use to output an option

";
  $day = (date ("d"));
  $daysinmonth = (date("t"));
for ($i=00;$i<$daysinmonth;$i++){
  if ($i == $day) {
   echo("$i\n");
  } else {
echo("$i\n");
   }
 }
 echo""
  ?>

Any help will be apreciated
Jamie



Re: [PHP] Best way to describe Doc as HTML

2001-01-25 Thread php3

Addressed to: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>
  [EMAIL PROTECTED]

** Reply to note from "Karl J. Stubsjoen" <[EMAIL PROTECTED]> Thu, 25 Jan 2001 
08:36:43 -0700
>
> Hello, So I think I've found 3 ways to describe the HTML Doc as
> "HTML". Which one is the best?
>
> 1) Via MetTag (this was generated in Dreamweaver):
>
>   
>
> 2) Print Statement at top of page:
>
> print "Content-type: text/html\n\n";
>
> 3) Using the PHP Header command:
>
> header( "Content-type: test/html" );
>
> What do you think?
>

4)  Do nothing.  text/html is the default content type for php.  A
Content-type: text/html header is sent for you unless you specify
something else.



Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.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] Zend hit (Encoder price)

2001-01-25 Thread szii

IMHO, if you want to sell it then it's your right.  You coded it, you own
it, you
get to sell it.  

But I do know that for $6,000 I sure as hell am not buying it.
Maybe for a couple hundred...but $6,000?  No way.  I'd have to have
some seriously proprietary kickass scripts that cost me a huge investment
in time/money to develop to blow $6,000 just on keeping people from 
copying/tweaking them.  Even then, they're just scripts.  It'd be nice for
some encapsulated functionality, say, for database access, but
still, for $6,000 + runtime client?  Nah, PHP code's just not that complex
and for $6,000 I can set up a number of unique users in the database.

-Szii





At 08:56 AM 1/25/2001 -0500, Jim Jagielski wrote:
>Sander Pilon wrote:
>> 
>> 
>> >
>> > Hello,
>> >
>> > What do you think about Zend position?
>> > http://php.weblogs.com/
>> > http://zend.com/phorum/read.php?num=3&id=6277&loc=0&thread=6277
>> >
>> 
>> I think that if Zend wants to sell it for $6000, then they have all right
>> to. These guys have worked hard, and they deserve some cash for it.
>> 
>> If people can't afford it at $6000, then that's their problem. Software is
>> intellectual property, it shouldn't be free, and authors should be able to
>> charge any price for it they want to charge for it.
>> 
>
>There is, of course, the Encoder SE available via the commercial
>subscription plan...
>
>The Encoder is designed for (mostly) companies who design, develop
>and sell PHP applications. Up to now, PHP has not been a viable
>solution for distributed web apps, instead relying on companies
>having to either become mini-ASPs, or taking the risk and
>distributing the actual PHP scripts. And the sad fact is that
>for many companies, they will disregard Licenses or NDAs or
>agreements at the drop of a hat. So there has been resistance
>to using PHP for apps designed for distro.
>
>The Enocoder solves that.
>
>If the solution that the Encoder provides isn't something you need,
>they you don't need to pay :) If you want to distribute your
>code for free, then most likely you'll be also sending the
>text script, so you don't need the Encoder. If you are a small
>shop, and want to dip your toes, the Commercial Subscription
>allows you to distributed and sell your encoded apps at a
>very reasonable price point... 
>
>By the by, my other hat is [EMAIL PROTECTED], in the interests of
>full disclosure. But feedback is always welcome!
>
>-- 
>===
>   Jim Jagielski   [|]   [EMAIL PROTECTED]   [|]   http://www.jaguNET.com/
>  "Casanova will have many weapons; To beat him you will
>  have to have more than forks and flatulence."
>
>-- 
>PHP General Mailing List (http://www.php.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] can't upload files if extension has more than one dot.

2001-01-25 Thread david klein

Hello!

I am trying to upload the files to the sever. For files that has only one 
dot such as abc.txt and 123.doc, it works fine. But when uploading files 
that have more than one dot such as 123.txt.pdf, there's problem, and I 
tried to echo the $userfile[i], and it is "none". Codes are attached as 
following:


 
   
   
   
   
   
   




Thank you very much 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] date

2001-01-25 Thread php3

Addressed to: "Randy Johnson" <[EMAIL PROTECTED]>
  [EMAIL PROTECTED]

** Reply to note from "Randy Johnson" <[EMAIL PROTECTED]> Thu, 25 Jan 2001 
11:25:52 -0500

> I am wondering if it would be more efficient to store the integer
> value that the php function time() returns when a transaction is
> inserted into the database and then when querying the database to get
> certain transactions just use basic math functions to get the certain
> transactions.
>
> For example in I wanted to get all the transactions from the last 31
> days
>
> lets say there was 980026719 seconds since 1970 and the number of
> seconds from the last 31 days is 2678400
>


If you are going to the trouble of using a database, go with it all the
way and use the date datatype it provides, along with the date
functions in the database.


>
> select from table where time_of_trans >(980026719-2678400)

   SELECT whatever
   FROM table
   WHERE time_of_trans > SUBDATE( NOW(), INTERVAL 1 MONTH );

I can assure you considerable thought has been given to the storage of
data in the database, and the optimization of queries.  The format you
enter and display is not what gets stored in the tables for a date.


One cool thing about this, it also works from the command line
interpreter, and you don't have to figure out what the current time()
is if you want to run a query by hand.

Take a look at this page if you are using MySQL.


   http://www.mysql.com/doc/D/a/Date_and_time_functions.html


Date_Format() is veryhandy!





Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.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] whois

2001-01-25 Thread AJDIN BRANDIC

On Thu, 25 Jan 2001, Andy Woolley wrote:

> Ajdin,
> 
> I know this is a little off topic but for your information 'whois.ripe.net'
> provide information for the .ba TLD

Ripe has only 10 .ba domains registred in their db :(.  It is not up to date.

Ajdin

> 
> I too am looking for a database of Top Level Domains around the world so if
> anyone knows of one I would be very much obliged If I could have a copy.
> 
> Kind Regards
> 
> Andy Woolley
> www.databasewatch.com
> 
> - Original Message -
> From: "AJDIN BRANDIC" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 25, 2001 2:08 PM
> Subject: [PHP] whois
> 
> 
> > Perhaps not 100% php but still!
> >
> > Is there any way I could ping all whois servers that exist.  Something
> > like whois.* ???  I am trying to ind a whois server that holds .ba domain
> > names information.  I found some research and found that it should be
> > held at whois.ripe.net but I have tried and nothing found.  I have tried
> > whois.nic.ba and no luck.  .ba is for Bosnia and Herzegovina?  Is there a
> > european server/db that holds all euro domain info??
> >
> > Thanks
> >
> > Ajdin
> >
> > --
> > PHP General Mailing List (http://www.php.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] How do I see the data in list()?

2001-01-25 Thread Scott Fletcher

Hi!

When I use the echo to see what is inside the list().  Instead I got the
message on screen saying "ArrayArray".

The array are being assigned first then then list come second.  ie.

$test = array();
$test1 = array()

list($test,$test1);

---
When I do "echo list($test,$test1);", it doesn't work.

What are the better way to see the data in the array?

Thanks,
 Scott



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




[PHP] Urgent answers needed for FILE UPLOAD problem....

2001-01-25 Thread Tim Meader

Hello all. I've spent the past month or two implementing a file upload 
utility for the web based on PHP's http upload method. It works fine for 
smaller files, and it's been working fine for files I've tried up to and 
including 400 megs at a time. The problem I'm having is that we want to 
roll this out on a center-wide scale, but that would most likely mean files 
up to 1Gig being uploaded at a time. Is this possible through the http 
upload process. I've been unsuccessful thus far to upload a file this large 
for some reason. Upon checking the Apache error_log, I found the following 
message:

FATAL: erealloc(): Unable to allocate 112568001 bytes
[error] PHP Warning: File Upload Error - No Mime boundary found after start 
of file header in unknown line 0

Now, am I correct in thinking that the second line is merely a result of 
the failed upload? If so, then I suppose that can be disregarded, but which 
program is generating the erealloc(), Apache or PHP?

I've been following threads on File Upload for quite a while now, and all 
relevent settings in the php.ini are set correctly to allow file uploads of 
this size (at least in theory). All settings having to do with upload 
limits are set at "20", however, no documentation states what value 
this setting stands for (kb, Mb, etc.), so this SHOULD roughly be equal to 
2Gigs, assuming that it defaults to bytes. Also the timeout has been set to 
86400 seconds, ie a 24hour period.

The current box this is running on is a Ultra 5 running Solaris 7, Apache 
1.3.14, with PHP 4.0.4. It has 256 megs of ram, and the partition being 
used for this test phase is 18 gigs, so size shouldn't be an issue. The 
temp upload directory in the php.ini has also been set to use a temp folder 
on this same partition.

PLEASE, any suggestions you have would be MUCH appreciated. Thank you in 
advance for any and all replies. Hope to hear something soon!


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




[PHP] date

2001-01-25 Thread Randy Johnson



I am wondering if it would be more efficient to store the integer value that
the php function time() returns when a transaction is inserted into the
database and then when querying the database to get certain transactions
just use basic math functions to get the certain transactions.

For example in I wanted to get all the transactions from the last 31 days

lets say there was 980026719 seconds since 1970 and the number of seconds
from the last 31 days is 2678400


select from   table where time_of_trans >(980026719-2678400)



I know that the syntax isn't correct, I am just curious if this would be the
most efficient way to do this?

thanks

Randy


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

2001-01-25 Thread Jim Jagielski

Andrew Sitnikov wrote:
> 
> Hello php-general,
> 
>   I have some problem with Zend debuger:
> 
>   debug.php
>   for ($i=0;$i<10;$i++){
>  echo $i."\n";
>}
>   ?>
>   

What happens if you modify it as:

   debug.php
   
   
   


>   Configuration:
> Server: Apache1.3.14_Linux2.2.17_PHP 4.0.4pl1+Zend Debuger
> From phpinfo()
> -|
> | This program makes use of the Zend scripting language engine:  |
> | Zend Engine v1.0.4, Copyright (c) 1998-2000 Zend Technologies  |
> | with Zend IDE Debug Server v1.0.0, Copyright (c) 1999-2001, by |
> | Zend Technologies  |
> -|
> 
> Client: Zend IDE on Win2000
> 
>  1.When i try debug local file:
>IDE error message: "connection failed Unexpected end of file from server"
> 
>  2.When i try start debuging with browser:
>
>http://host/~user/debug.php?start_debug=1&debug_port=1&debug_host=MY_IP&debug_start_session=1
> 
>Browser:
>The page cannot be displayed
> 
>  3.Remove start_debug=1 from url:
> 
>Browser:
>0 1 2 3 4 5 6 7 8 9
>
> 
> Best regards,
>  Andrew Sitnikov 
>  e-mail : [EMAIL PROTECTED]
>  GSM: (+372) 56491109
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
===
   Jim Jagielski   [|]   [EMAIL PROTECTED]   [|]   http://www.jaguNET.com/
  "Casanova will have many weapons; To beat him you will
  have to have more than forks and flatulence."

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




  1   2   >