[PHP] Announcing open CVS for phpDocumentor project

2003-01-02 Thread Greg Beaver
:/opt/cvsroot co phpdoc Take care, Greg Beaver -- phpDocumentor 1.2.0beta due out this week! http://www.phpdoc.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: parse error

2003-01-03 Thread Greg Beaver
In addition to the other errors pointed out... I assume you want a loop. change while($row = mysql_fetch_array($response)); to while($row = mysql_fetch_array($response)) { Take care, Greg -- phpDocumentor http://www.phpdoc.org > while($row = mysql_fetch_array($response)); > > > echo("

[PHP] Re: [PEAR-DEV] Announcing open CVS for phpDocumentor project

2003-01-04 Thread Greg Beaver
Hi all, open cvs has been fixed. Use at will Take care, Greg "Jesus M. Castagnetto" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > It does not seem to be working at the moment. > > --- Greg Beaver <[EMAIL PROTECTED]

[PHP] Re: undocumented OOP feature/bug?

2003-01-05 Thread Greg Beaver
Use get_class($this) function Go() { if (!isset($this)) { echo 'Called Statically'; } switch(get_class($this)) { // note get_class is lowercase (which I think is a bug, but it hasn't changed, so oh well) 'a' : echo 'Called Dynamically'; 'b' : echo 'Called Statica

[PHP] Re: Pass Variables

2003-01-05 Thread Greg Beaver
Use sessions, you can save the result of the previous form in a server-side variable, and it will still be there even if the user has a modem disconnect. http://php.net/session Take care, Greg -- phpDocumentor http://www.phpdoc.org "Stephen" <[EMAIL PROTECTED]> wrote in message 000b01c2b518$d8e4

[PHP] Re: Parse source for braces

2003-01-06 Thread Greg Beaver
Hi Shawn, check out phpDocumentor, it has a class named Parser that does exactly what you need. You can get the latest release at http://sourceforge.net/projects/phpdocu nightly cvs builds are at http://developer.phpdoc.org/downloads In CVS, there are 2 parsers to choose from, and both are very

[PHP] Re: htmlspecialchars() or htmlentities without destroying tags?

2003-01-07 Thread Greg Beaver
Hi Justin, You have to specify the list of tags you want preserved in an array, but this function from phpDocumentor will do it: /** * smart htmlentities, doesn't entity the allowed tags list * Since version 1.1, this function uses htmlspecialchars instead of htmlentities, for international sup

Re: [PHP] How to detect a PHP script time-out?

2003-01-07 Thread Greg Beaver
Hi Jean-Christian, see: http://www.php.net/manual/en/features.connection-handling.php Take care, Greg -- phpDocumentor http://www.phpdoc.org "Jean-Christian Imbeault" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Timothy Hitchens ) wrote: > > > > Set up out

Re: [PHP] How to detect a PHP script time-out?

2003-01-07 Thread Greg Beaver
connection_aborted, there appear to be issues to take into account. Take care, Greg -- phpDocumentor http://www.phpdoc.org "Jean-Christian Imbeault" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Greg Beaver wrote: > >

[PHP] Re: Dynamic Regex

2003-01-08 Thread Greg Beaver
Hi Gerard, all the preg_* functions require delimiters surrounding regular expressions. $foo = '\[this\](.*?)that'; should be by default: $foo = '/\[this\](.*?)that/'; the code you tried uses # as the delimiter instead of /, an option preg_* allows Take care, Greg -- phpDocumentor http://www.

Re: [PHP] Re: Dynamic Regex

2003-01-08 Thread Greg Beaver
s closing information, and probably giving an odd error about "u" not being appropriate that's why # worked, because there were no other # in the string. Hope that answers the question (properly this time!) Take care, Greg - Original Message - From: "Gerard Sam

[PHP] aggregation users?

2003-01-08 Thread Greg Beaver
Is anyone out there using the new aggregation functions on objects? Greg -- phpDocumentor http://www.phpdoc.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: HEEELP...please

2003-01-09 Thread Greg Beaver
$DOCUMENT_ROOT is now $_SERVER['DOCUMENT_ROOT'] unless register_globals is on. You need include $_SERVER['DOCUMENT_ROOT'].'/../lib/somefile.conf'; take care, Greg -- phpDocumentor http://www.phpdoc.org <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I absolut

Re: [PHP] global to superglobal

2003-01-11 Thread Greg Beaver
<[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Most of the variables should be fairly obvious, I should think. So, it > should not be too difficult to do some search & replace of stuff like the > $_SERVER['DOCUMENT_ROOT'] stuff. I suppose I could then try to ru

Re: [PHP] OOP

2003-01-15 Thread Greg Beaver
Hi Jordan, If you are doing this to learn PHP, that is great, keep plugging. If you want to see working examples of the things you've described, there are a number of scripts out there, both in pear (pear.php.net) and at other repositories like phpbuilder.com and phpclasses.org. You would benefi

[PHP] Re: $object->function($parameter)->function();

2003-01-22 Thread Greg Beaver
Hi Chris, Zend Engine 2.0 supports this syntax, and will be included with PHP 5. You can read all about zend 2 and its other improvements at http://www.zend.com Greg -- phpDocumentor http://www.phpdoc.org "Chris McCluskey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROT

[PHP] Re: Rather complex regular expression for the preg_match_all function

2003-01-23 Thread Greg Beaver
Hi, it would be MUCH faster and easier to debug if you wrote a parser. See the example parsers in phpDocumentor, download available at http://www.phpdoc.org Greg "Andreas Sheriff" <[EMAIL PROTECTED]> wrote in message 000701c2c272$6b13b870$[EMAIL PROTECTED]">news:000701c2c272$6b13b870$[EMAIL PRO

Re: [PHP] Select value for driopdown box

2003-01-25 Thread Greg Beaver
This line: $selected = $state == $sel_state ? "selected=\"selected\"" : ""; should probably be: $selected = (($state == $sel_state) ? "selected=\"selected\"" : ""); I haven't tested this correction, but have had to use the parentheses in my code many times to fix problems with using ? : Greg -

Re: [PHP] Good way to organize code using classes???

2003-01-28 Thread Greg Beaver
Be careful with aggregation, it is REALLY unstable in PHP 4.3.0. I get crashes of PHP left and right, when changing the most random things (like adding a comment in another part of the code separate from aggregation!!) Greg -- phpDocumentor http://www.phpdoc.org "Jeff Warrington" <[EMAIL PROTECT

[PHP] Re: Calling other php scripts from inside a php script.

2003-02-01 Thread Greg Beaver
Hi Jason, Better is to use $_POST if your form's method="post" or $_GET if your form's method="get" As long as the user type is available to the new page through a form variable, or request string like newpage.php?username=student, you can access it using $_REQUEST/$_GET/$_POST Take care, Greg

[PHP] Re: Documentation Help

2003-02-05 Thread Greg Beaver
Hi Hardik, You will find phpDocumentor useful in this endeavor. Check out http://www.phpdoc.org Greg -- phpDocumentor 1.2.0beta3 is out http://www.phpdoc.org "Hardik Doshi" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi Everyone, > > I worked on educati

[PHP] Re: How can I link to all BUT $PHP_SELF

2003-02-05 Thread Greg Beaver
Try this out (untested) (basename ($file) == basename ($_SERVER['PATH_TRANSLATED']))) Greg -- phpDocumentor 1.2.0beta3 is out http://www.phpdoc.org "ØYstein HåLand" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I use the following function to create links to

[PHP] Re: function getting redeclared

2003-02-18 Thread Greg Beaver
Hi Erik, You may want to re-investigate using nested functions for this purpose, it seems a bit illogical. The main reason is that it clutters up the source. If you want a private function, use docblock tag @access private to let other users know that it should not be accessed directly, or wait f

Re: [PHP] upgrade to 4.3.0 nearly doubled execution time

2003-02-24 Thread Greg Beaver
Hi, phpDocumentor is fully 30% faster (version 1.0.0, 1.1.0, 1.2.0beta2, cvs head) in PHP 4.3.0 than in PHP 4.2.3 on both linux and windows. The backend for my website is not noticeably faster or slower in PHP 4.3.0/4.2.3 and contains a good deal of database access to mysql. Greg -- phpDocumento

[PHP] solution to bad phpDocumentor tarball in windows

2003-02-28 Thread Greg Beaver
Hi all, We have finally isolated the problem with bad tarballs of phpDocumentor releases in windows. The tarball is fine. A user who was getting files with cut off names was unzipping using PKzip, switched to Winzip and the tarball extraction worked! Here's the complete information: Thanks

[PHP] Re: 2 questions !

2003-03-01 Thread Greg Beaver
"Vincent M." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I didn't find in the doc how to: > - Know the full path of the current directory. Like /var/www/to/the/path try using dirname(__FILE__) or dirname($_SERVER['PATH_TRANSLATED']) > - Know under which user work a

Re: [PHP] deciperhing oop

2003-03-04 Thread Greg Beaver
PHP 5 will allow your assumption, i.e. $db will resolve to the $db in the class namespace. If you also have a global variable named $db, you can refer to it using main::$db, instead of using the global statement. Pretty slick, if you ask me. By the way, check out PEAR's DB and MDB classes, http:

[PHP] Re:

2003-03-04 Thread Greg Beaver
Hi, You will benefit from enclosing all of the attributes in quotes, as in In addition, make sure your a name tag has a closing tag like Regards, Greg -- phpDocumentor http://www.phpdoc.org "Beauford.2002" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Not sure if this is a PH

[PHP] Re: Getting error REG_EMPTY

2003-03-04 Thread Greg Beaver
Hi If $line is == '', you will get an error. Try @split('|', $line), or add a test for empty lines like if (empty($line)) continue; if you var_dump($line);, you'll probably see that there is an empty line in members.txt Regards, Greg -- phpDocumentor http://www.phpdoc.org "Richard Kurth" <[EMA

Re: [PHP] Making a true statement false.

2003-03-07 Thread Greg Beaver
Mincu Alexandru wrote: On Fri, 2003-03-07 at 18:16, [EMAIL PROTECTED] wrote: Whenever I query a database with php I've always used the following code as a result. this way: if (!$row = mysql_fetch_array($result)) { do something } else { do seomthing else } It is simpler to do this: if ($row =

php-general@lists.php.net

2003-03-07 Thread Greg Beaver
Hi James, & is a bit-wise AND. && is a logical AND. The bitwise AND will return a number, the logical AND will return true or false boolean values. It's a subtle distinction, but important. 4 & 4 == 4 4 && 4 == true == 1 Regards, Greg -- phpDocumentor http://www.phpdoc.org James Taylor wrot

Re: [PHP] php trouble

2003-03-08 Thread Greg Beaver
If register_globals is off echo $_GET['sort']; echo $_GET['var2']; Greg -- phpDocumentor http://www.phpdoc.org Ashley M. Kirchner wrote: Benny Pedersen wrote: how do i get var from a url like this one http://localhost/index.php?sort=name&var2=login In index.php: echo $sort; echo $va

Re: [PHP] More array syntax

2003-03-08 Thread Greg Beaver
Hi John, foreach ($var as $key => $value) { if (!$key) { $$key = filter_string($key.': ',$line); } } Regards, Greg -- phpDocumentor http://www.phpdoc.org John Taylor-Johnston wrote: I have an array $var (see structure below), which contains AN, AU, TI, PY ... etc. (28 in total - n

Re: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Greg Beaver
Hi Petre, Multipart forms are the solution you need. Here are the reasons why: 1) You can set the length of time that the session cookie will live (I've changed it to a week for the "Remember Me" feature of my website, works nicely) 2) if users are disconnecting, and not all information is be

[PHP] phpDocumentor 1.2.1 release is imminent

2003-07-02 Thread Greg Beaver
Hello, Those of you who found bugs in release 1.2.0 (or 1.2.0a for those who used pear install), please acquire a copy of anonymous cvs, branch RELEASE_1_2_0, and verify that the bug has been fixed, we will be releasing the new version tomorrow or the next day. Anonymous CVS instructions are a

Re: [PHP] include/require inside of function

2003-07-04 Thread Greg Beaver
Hi, If the file you are including is of your own authorage (I know that isn't a word, but whatever :), just refer to global variables always as an index of the $GLOBALS array. This is good practice anyways for any file that might be included by another user, for exactly this issue. I have a f

[PHP] instanceof on class (not objects) php 5

2003-07-05 Thread Greg Beaver
Hi, Is it possible to determine whether a class implements an interface without instantiating an object of that class? class MyClass implements tester { function doesStuff(){} } $var = 'MyClass'; if ($var instanceof_equiv tester) { ... } ?> I really need this kind of capability to dete

Re: [PHP] instanceof on class (not objects) php 5

2003-07-07 Thread Greg Beaver
Hi, I can't instantiate the class, as there is no way to guarantee that the constructor doesn't require arguments, and I don't want to halt program execution if it doesn't implement tester Greg Marek Kilimajer wrote: Maybe if (new MyClass instanceof_equiv tester) { ... } ?> -- PHP

[PHP] Re: php5 methode + num parameters

2003-07-07 Thread Greg Beaver
Hi Yann, In my experience, PHP 4 only complains if you pass in too few arguments, not too many. If you would like an exception, you could try class MyException extends Exception { private $_msg; function __construct($msg = '';) { $this->_msg = $msg; } public function

[PHP] Re: __get, __set, __clone

2003-07-08 Thread Greg Beaver
Hi Yann, What you are trying to do is possible in PHP 4, actually: var_name1 = "value1"; $this->var_name2 = "value2"; } } $test = new MyTester; var_dump($test); // shows two variables, $var_name1 and $var_name2 ?> Here is sample code that uses __set to allow you to transparently decl

Re: [PHP] Private and protected variables in PHP 5?

2003-07-11 Thread Greg Beaver
Hi to both of you, What is happening here is that there is a separate namespace for private elements in PHP 5. You can have both a private $Name and a public $Name if it is defined at runtime. I don't know if this is a feature or a bug, I'd call it a bug since redeclaration of a variable is

[PHP] Re: XML handlers in classes

2003-07-25 Thread Greg Beaver
Hi, Use xml_set_object, and away you go. Perhaps you would benefit from using PEAR's XML_Parser or XML_Transformer, or even PEAR's HTTP_Request class. http://php.net/xml_set_object http://pear.php.net/xml_parser http://pear.php.net/xml_transformer http://pear.php.net/http_request Regards, Greg

[PHP] Re: XML handlers in classes

2003-07-25 Thread Greg Beaver
Hi Robert, Yes there is a very stupid reason: no one has written any. Go to http://phpdorks.net/docs/api/pear/HTTP/HTTP_Request.html http://phpdorks.net/docs/api/pear/PEAR/XML_Parser.html for documentation generated from the source by phpDocumentor Regards, Greg -- phpDocumentor http://www.php

[PHP] Re: Parsing PHP

2003-07-26 Thread Greg Beaver
Hi Nikhil, There are a number of choices already out there. In phpDocumentor (http://www.phpdoc.org) is a parser that is based on the tokenizer. Also available in PEAR CVS is the PHP_Parser, which is a generated parser based on PHP's own zend_language_parser.y (http://cvs.php.net/cvs.php/pear

[PHP] Re: OOP, PHP4 & PHP5

2003-07-26 Thread Greg Beaver
Hi Mike, The short answer: Yes. The long answer: PHP 5 only adds functionality to PHP 4, it is backwards compatible, so start with PHP 4, and PHP 5 will be easy. Greg Mike Brum wrote: I've been using PHP for a few years now and I'm quite familiar and comfortable with it. I'd like to start

[PHP] standardize @throws for phpdocumentor 2.0?

2003-07-31 Thread Greg Beaver
Hi, We are thinking of standardizing the format of @throws for phpDocumentor 2.0. The possible format we'd like to use is: @throws constant|classname [description] This will allow us to link to the docs for the class or constant from the tag. Any objections/new ideas? Greg -- phpDocumentor h

[PHP] Re: Globals

2003-08-01 Thread Greg Beaver
Hi Chris, Chris Boget wrote: function blah() { //global $GLOBALS; echo 'Globals: '; print_r( $GLOBALS ); echo ''; } As it is shown above, with the 'global $GLOBALS' line commented out, the print_r() works and shows all the currently defined variables and their corresponding values. However, if

Re: [PHP] Re: Globals

2003-08-01 Thread Greg Beaver
Try this code: } blah(); ?> It appears that in a function scope, it doesn't. This is definitely a bug, I'll post it if it hasn't already been noticed. Greg Leif K-Brooks wrote: Greg Beaver wrote: $GLOBALS does not contain a reference to itself Yes it does. I just ran

Re: [PHP] Re: Globals

2003-08-01 Thread Greg Beaver
n entry for GLOBALS mine is located at #13 Jim Lucas - Original Message - From: "Greg Beaver" <[EMAIL PROTECTED]> To: "Leif K-Brooks" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, August 01, 2003 12:45 PM Subject: Re: [PHP] Re: Globals

Re: [PHP] Re: Globals

2003-08-01 Thread Greg Beaver
$key."=>(".$value.")\n"; } ?> Jim Lucas - Original Message - From: "Greg Beaver" <[EMAIL PROTECTED]> To: "Jim Lucas" <[EMAIL PROTECTED]> Cc: "Leif K-Brooks" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Frida

Re: [PHP] Re: Globals

2003-08-01 Thread Greg Beaver
this code. here is mine bool(true) bool(true) What is wrong about this? Read my notes below What results are you expecting to get from this??? And why??? Jim - Original Message ----- From: "Greg Beaver" <[EMAIL PROTECTED]> To: "Jim Lucas" <[EMAIL PROTECTED]> Cc

[PHP] Re: attach

2003-08-04 Thread Greg Beaver
http://pear.php.net/package-info.php?package=Mail_Mime Regards, Greg -- phpDocumentor http://www.phpdoc.org Diana Castillo wrote: Hi, Can you tell me how to attach files when using the php mail function? Thanks, Diaan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: PHP5 Prototyping

2003-08-04 Thread Greg Beaver
http://www.php.net/zend-engine-2.php Regards, Greg -- phpDocumentor http://www.phpdoc.org Andrew Johnstone wrote: Are there any plans to implement prototyping in PHP5? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OO function overloading?

2003-08-05 Thread Greg Beaver
Hi, This statement isn't entirely correct, overloading is possible with the overload extension. http://www.php.net/overload Regards, Greg -- phpDocumentor http://www.phpdoc.org Curt Zirzow wrote: * Thus wrote Jean-Christian IMbeault ([EMAIL PROTECTED]): Is it possible to overload a function is

[PHP] Re: Building an XML Parser Class

2003-08-07 Thread Greg Beaver
http://pear.php.net/XML_Parser :) Greg -- phpDocumentor http://www.phpdoc.org Donald Tyler wrote: Hi, I am trying to create a Class that will parse an XML document. It all works fine as individual functions but I cant get it to work as a class. For example, when I do the following in my class: x

Re: [PHP] OO function overloading?

2003-08-08 Thread Greg Beaver
Indeed it is a hack, but not for PHP 5, the extension has become part of the core, and does not require that odd little "overload()" call :) Greg Jean-Christian Imbeault wrote: Greg Beaver wrote: This statement isn't entirely correct, overloading is possible with the ove

[PHP] Re: Question on class syntax

2003-08-10 Thread Greg Beaver
Hi Luis, http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php Basically, if this is global code, you are calling the method cleanup of class htmlcleaner as if it were simply a function. Within a class, the $this variable is set, and calling htmlcleaner::cleanup() will work as if clea

Re: [PHP] Class Design Question...

2003-08-14 Thread Greg Beaver
Dan Joseph on Wednesday, August 06, 2003 10:18 AM said: Are there any performance differences that are noticable in a 300-400 line PHP script if you overuse classes rather than straight functions? This is a loaded question. If you overuse classes, there will be

[PHP] Re: checking the return value of member function with empty

2003-08-14 Thread Greg Beaver
Hi, empty() is confusing, because it is not a function, but a language construct, like isset(). As such, you can only use it on variables, and not on expressions or function return values. See the very small print Note at the bottom of: http://www.php.net/empty Note: Because this is a langua

Re: [PHP] Screen Resoultion

2003-08-14 Thread Greg Beaver
Use JS to set the value of a hidden form-field and then have it immediately submit the form and it can be passed to php. Not impossible. Greg -- phpDocumentor http://www.phpdoc.org [EMAIL PROTECTED] wrote: how is it possible to send a jscript variable to php thats impossible You can do so with

Re: [PHP] Class Design Question...

2003-08-14 Thread Greg Beaver
Dan Joseph wrote: Hi, Are there any performance differences that are noticable in a 300-400 line PHP script if you overuse classes rather than straight functions? This is a loaded question. If you overuse classes, there will be a performance hit :). However, in a 300-400 line script,

[PHP] Re: [PEAR-DOC] standardize @throws for phpdocumentor 2.0?

2003-08-14 Thread Greg Beaver
::NOT_FOUND it can be expanded to: @throws package_error::PACKAGE_ERROR_NOT_FOUND Does that sound reasonable? Greg Alexander Merz wrote: Greg Beaver wrote: We are thinking of standardizing the format of @throws for phpDocumentor 2.0. The possible format we'd like to use is: @throws con

[PHP] Re: [PEAR-DOC] standardize @throws for phpdocumentor 2.0?

2003-08-14 Thread Greg Beaver
Alexander Merz wrote: Greg Beaver wrote: We are thinking of standardizing the format of @throws for phpDocumentor 2.0. The possible format we'd like to use is: @throws constant|classname [description] @throws error_class::constant description ie @throws PEAR_Error::NOT_FOUND

[PHP] Re: Associative to Numeric

2003-08-14 Thread Greg Beaver
$num = array_values($assoc); Regards, Greg -- phpDocumentor http://www.phpdoc.org Gerard Samuel wrote: What would be the quickest, most reliable means to convert an associative array to a numeric array. Running an implode()/explode() combination comes to mind, but reliablity can be questioned wh

[PHP] Re: mystical parse error message

2003-08-17 Thread Greg Beaver
Hi Ohmer, T_PAAMAYIM_NEKUDOTAYIM is the incomprehensible name given to the :: operator. However, if you use the tokenizer extension like so: '; $b = token_get_all($a); echo(token_name($b[3][0])); ?> You'll see T_DOUBLE_COLON - a much more descriptive name :). So, look for an accidental double

Re: [PHP] Discussion: do you consider null a value or strictly atype?

2003-08-17 Thread Greg Beaver
Curt Zirzow wrote: This also leads me to believe that the statement: if ($var === null) {} would be considered illegal or fail no matter what since null is not a value and has no type associated with it. Of course, it doesn't fail, because null is a value: Try that. you get "true" null

[PHP] Re: $GLOBAL question

2003-08-18 Thread Greg Beaver
$GLOBALS not $GLOBAL Greg -- phpDocumentor http://www.phpdoc.org Robin Kopetzky wrote: Good Morning!! I'm trying to print $GLOBALs this way and it doesn't work: $aTest = "This is a test"; function GlobalCheck() { print "{$GLOBAL['aTest']}"; } GlobalCheck();

[PHP] Re: Q: How to get the value of a checkbox of which name without '[]'?

2003-08-18 Thread Greg Beaver
You can try using $HTTP_RAW_POST_DATA and parsing it yourself - or grab the get value directly from $_SERVER['QUERY_STRING'] Regards, Greg Dallas Thunder wrote: > Consider the following form in a HTML file: > > ... > > > > > ... > > Now I'm posting this form into a PHP script. The problem

[PHP] RELEASE ANNOUNCEMENT: phpDocumentor 1.2.2

2003-08-19 Thread Greg Beaver
is in Release-1.2.2 in the archive and at the website Download from http://www.phpdoc.org, and pear install from http://phpdoc.org/releases/PhpDocumentor-1.2.2.tgz Greg Beaver -- phpDocumentor 1.2.2 http://www.phpdoc.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: php and var statics

2003-08-26 Thread Greg Beaver
Alvaro Martinez wrote: I have written this code: class db{ var $_miInstancia; function db (){ // funcion que se conecta con la BBDD static $miInstancia; $this->_miInstancia=&$miInstancia; $result = @mysql_pconnect("inforalv", "discot

Re: [PHP] Calculating the difference between two dates

2003-03-23 Thread Greg Beaver
Hi, Ask them who the president of the United States was before Britney Spears, that should work pretty well :) Otherwise, check out the Date package in PEAR at http://pear.php.net/package-info.php?pacid=57 Greg -- phpDocumentor http://www.phpdoc.org Don Read wrote: On 24-Mar-1998 Beauford.2002

[PHP] Re: Q. Adding line numbers to highlighted source

2003-04-04 Thread Greg Beaver
Hi Alan, Another solution is to use the HighlightParser that comes with phpDocumentor (http://www.phpdoc.org) Regards, Greg -- phpDocumentor http://www.phpdoc.org Alan McFarlane wrote: I've been trying to add line-numbers to my source code, but can't seem to work out how to do it. As an example,

[PHP] redhat 9 compile of PHP

2003-06-02 Thread Greg Beaver
Hi, I'm trying to get an installation of PHP 4.3.2 with Apache 1.3.27 (SAPI), and mysql/zlib/xml-rpc support working with redhat 9's standard MySQL distribution 3.23.56-1.9 I have successfully compiled Apache and PHP so that normal programs work in both cases. However, I get an error when I u

[PHP] RELEASE ANNOUNCEMENT phpDocumentor 1.2.0

2003-06-05 Thread Greg Beaver
June 4, 2003 RELEASE ANNOUNCEMENT phpDocumentor 1.2.0 STABLE is released at http://www.phpdoc.org the phpDocumentor development team is pleased to announce the release of version 1.2.0 STABLE. This is a stable released and is ready for use in production systems. phpDocumentor is an automatic do

[PHP] RELEASE: phpDocumentor 1.1.0 FINAL

2002-11-12 Thread Greg Beaver
November 12, 2002 RELEASE ANNOUNCEMENT phpDocumentor version 1.1.0 http://www.phpdoc.org Download: http://phpdocu.sourceforge.net/downloads.php The phpDocumentor Development team would like to announce the release of phpDocumentor version 1.1.0. This exciting release is a stable release of phpDoc

[PHP] phpDocumentor version 1.1.0rc1 RELEASE ANNOUNCEMENT

2002-06-09 Thread Greg Beaver
June 9, 2002 RELEASE ANNOUNCEMENT phpDocumentor version 1.1.0rc1 http://www.phpdoc.org Download: http://phpdocu.sourceforge.net/downloads.php The phpDocumentor Development team would like to announce the release of phpDocumentor version 1.1.0rc1. This is a release candidate for 1.1.0 to ensure t

Re: [PHP] phpDocumentor website issues

2002-06-10 Thread Greg Beaver
day's work making the page work with all browsers he had access to, including IE 5 for PC, IE 6 for PC, Mozilla 1, Netscape 6.2, and Netscape 4.7. As I said, I've notified him of the issues involved, and he plans to take care of them in his free time. Thank you, Greg Beaver phpDocumentor

[PHP] phpDocumentor 1.1.0rc2 RELEASE ANNOUNCEMENT

2002-06-18 Thread Greg Beaver
June 18, 2002 RELEASE ANNOUNCEMENT phpDocumentor version 1.1.0rc2 http://www.phpdoc.org Download: http://phpdocu.sourceforge.net/downloads.php The phpDocumentor Development team would like to announce the release of phpDocumentor version 1.1.0rc2. This is a release candidate for 1.1.0 to ensure

[PHP] Re: [PEAR-DEV] phpDocumentor 1.1.0rc2 RELEASE ANNOUNCEMENT

2002-06-18 Thread Greg Beaver
in all browsers Both urls were in the release announcement. Take care, Greg - Original Message - From: "Markus Fischer" <[EMAIL PROTECTED]> To: "Greg Beaver" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, J

[PHP] Re: Including classes inside functions vs outside - scope/global

2003-08-28 Thread Greg Beaver
Hi Verdon, Be sure that $connobj is declared as a global variable in the mysql_connection.php file. You can do this in two ways: 1) instead of $connobj = blah, use $GLOBALS['connobj'] = blah 2) global $connobj; $connobj = blah Regards, Greg -- phpDocumentor http://www.phpdoc.org Verdon Vaillanc

[PHP] Re: Control Structure problem

2003-09-16 Thread Greg Beaver
Hi Dan, if ($var == "TEST ONE" || $var == "TEST TWO" || $var == "TEST THREE") { do something } Regards, Greg -- phpDocumentor http://www.phpdoc.org Dan J. Rychlik wrote: This doesnt work as expected. if ( $var === "TEST ONE" || "TEST TWO" || "TEST THREE") { do something; } It return

[PHP] Re: oop problems code

2003-09-18 Thread Greg Beaver
Orlando, Displayer also inherits the constructor from Employee, so you must define function Displayer() to prevent the notices. I don't think you want to extend from Employee with Displayer - it should accept an Employee object, and display the information, perhaps. Regards, Greg Orlando Pozo

[PHP] Re: Help! the Error_Reporting doesn't work

2003-09-25 Thread Greg Beaver
Um, E_ALL & ~E_NOTICE disables notices. Try E_ALL Greg Luckyeagle wrote: I write some PHP files including some errors When it runs on another server,it will display "notice",but on my computer,it won't. "Luckyeagle" <[EMAIL PROTECTED]> дÈëÓʼþ news:[EMAIL PROTECTED] I have set the PHP.INI a

[PHP] Re: static class call..

2003-09-26 Thread Greg Beaver
Hi Walter, Not until PHP 5 Class Foo { static $_TintBaz = 9; } echo Foo::$_TintBaz; in PHP 4, you can kludge this: Class Foo { function getBaz($set = null) { static $_TintBaz = 9; if (!is_null($set)) { $_TintBaz = $set; } return $_TintBaz;

[PHP] Re: register_globals won't turn off!

2003-09-27 Thread Greg Beaver
Hi Damon, Do you have an auto_prepend_file? Also, check the contents of .htaccess, make sure register_globals is not set to on there. Greg Damon Kohler wrote: Well, it does turn off. At least phpinfo() says that it's off. However, PHP is acting as though it's still turned on. The source code f

[PHP] Re: register_globals won't turn off!

2003-09-27 Thread Greg Beaver
o says register_globals is off both globaly and localy. Damon "Greg Beaver" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi Damon, Do you have an auto_prepend_file? Also, check the contents of .htaccess, make sure register_globals is not set to on there. Greg Da

[PHP] Re: register_globals won't turn off!

2003-09-27 Thread Greg Beaver
anges don't show up, it's reading a different php.ini, which can be a bit loopy. Greg Damon Kohler wrote: I added the error_reporting line and it doesn't seem to make any difference actually. No warnings or notices. Yes, I can recompile PHP. Damon "Greg Beaver" <[E

Re: [PHP] embedding code

2003-10-02 Thread Greg Beaver
John Taylor-Johnston wrote: Can I stop tags? I could javascript embed them to: