Re: [PHP] What does -> mean?

2003-08-14 Thread Marco Schuler
Hi James

Am Donnerstag, 14. August 2003 um 09:14 schrieb James Johnson:

> Hello,

> I've searched through Zend and php.net and can't find the answer.

> In the following code:

>  $this->vendor = $vendor; 

What does the ->> mean or do?

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

--
Cheers!
 Marco



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



Re: [PHP] Can Objects be passed to another page?

2003-09-03 Thread Marco Schuler
Hi there

MuToGeN wrote:

> No, arrays can be passed (,
> for example), but not objects.

And why does this work then?

=== SCRIPT ===
display();
}

function increment() {
$this->i++;
}

function display() {
printf('Current value of $i is:  %s', $this->i);
}
}

session_start();

if (!isset($_SESSION['AClass'])) {
$a = & new AClass();
$_SESSION['AClass'] = & $a;
}
else {
$a = & $_SESSION['AClass'];
}

$a->increment();
$a->display();

?>


=== /SCRIPT ===

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



Re: [PHP] Can Objects be passed to another page?

2003-09-03 Thread Marco Schuler
Hi

MuToGeN wrote:

> I was saying about GET and POST, not sessions

Could not see that out of your replay... sorry!

--
Cheers!
 Marco


> MS> Hi there
> 
> MS> MuToGeN wrote:
> 
> >> No, arrays can be passed (,
> >> for example), but not objects.
> 
> MS> And why does this work then?
> 
> MS> === SCRIPT ===
> MS>  
> MS> error_reporting(E_ALL);
> 
> MS> class AClass {
> 
> MS> var $i = 0;
> 
> MS> function AClass ($i = 0) {
> MS> //$this->display();
> MS> }
> 
> MS> function increment() {
> MS> $this->i++;
> MS> }
> 
> MS> function display() {
> MS> printf('Current value of $i is:  %s', $this->i);
> MS> }
> MS> }
> 
> MS> session_start();
> 
> MS> if (!isset($_SESSION['AClass'])) {
> MS> $a = & new AClass();
> MS> $_SESSION['AClass'] = & $a;
> MS> }
> MS> else {
> MS> $a = & $_SESSION['AClass'];
> MS> }
> 
> $a->>increment();
> $a->>display();
> 
> ?>>
> 
> 
> MS> === /SCRIPT ===
> 
> 
> 
> -- 
> Best regards,
>  MuToGeNmailto:[EMAIL PROTECTED]
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

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



Re: [PHP] Can Objects be passed to another page?

2003-09-03 Thread Marco Schuler
Radu Manole wrote:

> using "serialize" might work

The script works as it is quoted in my previous message.

P.S.: It is sufficient to post your replay to the list. Thank you!

--
 Marco

> 
> - Original Message ----- 
> From: "Marco Schuler" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, September 03, 2003 3:37 PM
> Subject: Re: [PHP] Can Objects be passed to another page?
> 
> 
> > Hi there
> > 
> > MuToGeN wrote:
> > 
> > > No, arrays can be passed (,
> > > for example), but not objects.
> > 
> > And why does this work then?
> > 
> > === SCRIPT ===
> >  > 
> > error_reporting(E_ALL);
> > 
> > class AClass {
> > 
> > var $i = 0;
> > 
> > function AClass ($i = 0) {
> > //$this->display();
> > }
> > 
> > function increment() {
> > $this->i++;
> > }
> > 
> > function display() {
> > printf('Current value of $i is:  %s', $this->i);
> > }
> > }
> > 
> > session_start();
> > 
> > if (!isset($_SESSION['AClass'])) {
> > $a = & new AClass();
> > $_SESSION['AClass'] = & $a;
> > }
> > else {
> > $a = & $_SESSION['AClass'];
> > }
> > 
> > $a->increment();
> > $a->display();
> > 
> > ?>
> > 
> > 
> > === /SCRIPT ===
> > 
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

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



Re: [PHP] suggestion: recursive calls

2003-09-04 Thread Marco Schuler
Hi

Am Don, 2003-09-04 um 12.40 schrieb Ronald van Raaphorst:
> I normally program in clarion (www.softvelocity.com) and an infinite
> recursive call will cause a heap overflow...
> 
> As I only got a "This page cannot be displayed" page, an error must have
> occurred, but it's not displayed...

A computer cannot decide when a recursion is to deep. Imagine traversing
a realy big tree. There a recursion can get realy deep.

I don't know about the internals of php. But as it is an interpreter
language, I would say that all variables or even the parsing tree are
located on the heap. So this heap will probably be quite big! Thus, to
produce a heap overflow will take a rather long time. (Correct me if I
am wrong with my tought)

A workaround could be that you have a counter (static variable!) in your
recursion procedure or methode respectively. You increment this counter
on every entry into the procedure and compare it to a limit that _you_
specifiy.

--
Cheers!
 Marco


> At first I thought I had lost contact with the site, but then, after a lot
> of tracing, I found the source of the error.
> 
> Ronald
> 
> 
> 
> "Marek Kilimajer" <[EMAIL PROTECTED]> schreef in bericht
> news:[EMAIL PROTECTED]
> > I don't think it is even possible, if the recursive calls don't seem
> > infinite to inteligent human being, how should a stupid computer program
> > find out.
> >
> > Ronald van Raaphorst wrote:
> >
> > > Hi all,
> > >
> > > Not a real bug, but a suggestion:
> > > It would be nice if inifite recursive calls would somehow give an error.
> > > I spend quite some time to find the error in my php script.
> > >
> > > Ronald
> > >
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

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



Re: [PHP] Session Variables in a Class

2003-09-09 Thread Marco Schuler
Am Die, 2003-09-09 um 10.19 schrieb micro brew:
> Hi everyone,
> 
> I've been experimenting with sessions.  I can make
> them work just fine in a normal PHP page.  But when I
> create a class and try to define a session variable
> within a method in the class it won't work.  I've
> tried setting the session variable directly
> ($_SESSION['name']='somevalue') but that didn't work. 
> The normal way of setting it -
> session_start();
> session_register('name'); 
> $name='somevalue';
> 
> - didn't work either (within the class).
> 
> Am I just missing something obvious?  Any suggestions?

You have to include the class-definition _before_ you start the session.
Read about it in the manual:

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

Hope that helps.

--
 Marco


>  TIA.
> 
> Mike
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

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



Re: [PHP] How do I get the result of a Division to 2 decimal places?

2003-09-09 Thread Marco Schuler
Hi

Am Die, 2003-09-09 um 16.06 schrieb Shaun:
> Hi,
> 
> I am dividing a number by another number and printing the result to the
> screen. How can I ensure that the number is rounded up to 2 decimal places?

Use printf with format strings like printf("Value: %.2f", $value);

http://php.net/manual/en/function.printf.php

--
 Marco

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



[PHP] Object in session and include

2003-09-17 Thread Marco Schuler
Hi

I have to serialize an object in a session. Generally there is no
problem with this if the class-definition file(s) are included _before_
starting the session, as explained in the php-manual:



 It is strongly recommended that you include the class definitions of
all such registered objects on all of your pages, even if you do not
actually use these classes on all of your pages. If you don't and an
object is being unserialized without its class definition being present,
it will lose its class association and become an object of class
stdClass without any functions available at all, that is, it will become
quite useless.



I am using PEAR classes for my project. If I want to store such an
object in a session, I would have to include all the class-definitions
that are included within the class that I am using. There can be a lot
of included classes or also dynamically incldued classes.

Has somebody got an idea or an acceptable solution to handle this
without including all the class-definitions?

--
Cheers!
 Marco

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



RE: [PHP] consistent PHP function names?

2003-09-17 Thread Marco Schuler
Am Mit, 2003-09-17 um 14.26 schrieb [EMAIL PROTECTED]:
 
> In practice, I find that all my code is wrapped up in custom functions and
> objects anyway - I name those quite carefully to avoid confusing myself and
> others, but don't need to worry too much about the naming conventions of the
> functions inside. When writing complicated scripts, I  often find choosing
> variable / function naming conventions takes a long time.

I am using the convention proposed by PEAR:

http://pear.php.net/manual/en/standards.naming.php

--
 Marco

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



Re: [PHP] Best way to approach object construction errors?

2003-09-20 Thread Marco Schuler
Am Don, 2003-09-18 um 20.36 schrieb Mike Zornek:
> I've created a class called university, it has a constructor which can
> accept an id. If the id is sent during construction the constructor will
> connect to a MySQL db to set all of the objects member variables to the
> MySQl counterparts.
> 
> I'd like to include some error notification so if I send it an id and let's
> say that record doesn't exist in the db I get some notification and can
> write a message out to log (or screen). But what is the best way to do this?
> Any recommendations? Tutorials? URLs?

Maybe you'd like to have a look at PEAR error-handling.

http://pear.php.net/manual/en/core.pear.php


--
Cheers!
 Marco

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



[PHP] Debugging using dbg and ddd on linux

2003-12-23 Thread Marco Schuler
Hello

I am looking for a way to debug my php scripts. On the web I found
Dmitri Dmitrienko's dbg. I'd like to use it with ddd on my linux
machine. Unfortunatly there is no howto on how to set up all that. I
read about a patch for ddd but could not find any further information.

As a nice to have feature would be, if I could integrate all this into
xemacs or vim.

Any comments or tips are welcome! Thanks

-- 
Cheers!
 Marco

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



Re: [PHP] Best practice for creating mysql database structure for menus navigation

2004-04-19 Thread Marco Schuler
Hi

Am Mo, 2004-04-19 um 15.22 schrieb dr. zoidberg:
> Hello,
> 
> What will be the best database structure for creating web site 
> navigation, menus with submenus (unlimited levels).

If you are fine with oop, than maybe 

http://pear.php.net/package/DB_NestedSet

would be worth a look. Renderers for different menu-types are also
included.

-- 
Regards
 Marco

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



[PHP] How to disable browser's back- and refresh-Button

2004-04-19 Thread Marco Schuler
Hi

I want to prevent the user to use the browser's back-/refresh-button in
my multipage registration form (as well as in other forms). How can I do
this?

Thanks for your help!

-- 
Regards
 Marco

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



Re: [PHP] How to disable browser's back- and refresh-Button

2004-04-19 Thread Marco Schuler
Hi

Am Mo, 2004-04-19 um 17.18 schrieb John Nichel:
> Marco Schuler wrote:
> > Hi
> > 
> > I want to prevent the user to use the browser's back-/refresh-button in
> > my multipage registration form (as well as in other forms). How can I do
> > this?
> > 
> > Thanks for your help!
> > 
> 
> You can't with PHP.

It's going OT in this case, sorry! But how to do it then? JavaScript?
And if yes: how?

-- 
Regards
 Marco

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



Re: [PHP] How to disable browser's back- and refresh-Button

2004-04-19 Thread Marco Schuler
Hi

Am Mo, 2004-04-19 um 17.25 schrieb John W. Holmes:
> From: "Marco Schuler" <[EMAIL PROTECTED]>
> 
> > I want to prevent the user to use the browser's back-/refresh-button in
> > my multipage registration form (as well as in other forms). How can I do
> > this?
> 
> You don't. I decide when I want to go back and/or refresh, not you. You need
> to program your application to handle the event when it occurs.

Ok. But what is the strategy then to determin this?

-- 
Regards
 Marco

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



Re: [PHP] How to disable browser's back button, refresh button and multiple clicks of submit buttons using PHP.

2004-04-19 Thread Marco Schuler
Hi James

Thanks for your realy constructive post! I'll try that out and maybe
come back with some questions (hopefully not) :-)

-- 
Regards
 Marco

Am Mo, 2004-04-19 um 19.42 schrieb James E Hicks III:
> This is the only way that I have been able to insure that the users can not 
> use any of the bad buttons (back,refresh,double-click submit). The 
> java-script solutions will only work for users that have java-script enabled.
> 
> I put the following in my authenticate.php which is included at the top of 
> every page.
> 
> authenticate.php
>  if ($_POST['form_id'] != ''){
> mysql_select_db("form_authentication");
> $query = "select count(*) as valid_form from form_id where form_id = 
> '".$_POST['form_id']."'";
> extract(mysql_fetch_array(mysql_query($query)));
> if ( $valid_form < 1 ){
> include("warn_doubleclick.php");
> exit;
> } else {
> mysql_select_db("form_authentication");
> $query = "delete from form_id where form_id = 
> '".$_POST['form_id']."'";
> mysql_query($query);
> }
> }
> /*
> MORE AUTHENTICATE STUFF HERE
> */
> function create_form_id(){
> mysql_select_db("form_authentication");
> $new_form_id = uniqid(rand(),1);
> $query = "insert into form_id values ( '$new_form_id' )";
> mysql_query($query);
> $form_field = " value=\"$new_form_id\">";
> return $form_field;
> }
> ?>
> 
> 
> Then inside every form that I want to protect from back button , refresh 
> button or double-clicking of the submit button I echo the results of 
> create_form_id inside the  tag. I also remember to include 
> authenticate.php which is going to actually stop the user from resubmitting 
> the same form.
> 
>  include("authenticate.php");
> include("header.php");
> echo "";
> echo "";
> echo create_form_id();
> echo "";
> include("footer.php");
> ?>
> 
> Here is an example warn_doubleclick.php that you can edit to your taste. This 
> is what the users will be redirected to if they break the button rules.
> 
>  include("header.php");
> echo ("You have double clicked the submit button titled");
> echo ($_POST['submit']." or attempted to process this form twice by using 
> the back button or the refresh button.");
> echo ("Return to Program");
> include("footer.php");
> ?>
> 
> Here is the SQL to create necessary DB and table.
> 
> CREATE DATABASE form_authentication;
> CREATE TABLE form_id (
>   form_id varchar(50) NOT NULL default ''
> ) TYPE=MyISAM;
> 
> James Hicks

-- 
Regards
 Marco

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



Re: [PHP] OR

2004-04-25 Thread Marco Schuler
Hi

Am So, 2004-04-25 um 16.00 schrieb -{ Rene Brehmer }-:
> According to historical records, on Sun, 25 Apr 2004 17:14:13 +1000 Aidan
> Lister wrote about "[PHP] OR":

[...]

> || && |! &! 
> ^ being OR, AND, NOR, and NAND (believe NOR is actually called XOR, can't
> remember ...)

Just to help your mind:

NOR:

 A | B | Y
---+---+---
 0 | 0 | 1
 0 | 1 | 0
 1 | 0 | 0
 1 | 1 | 0

XOR:

 A | B | Y
---+---+---
 0 | 0 | 0
 0 | 1 | 1
 1 | 0 | 1
 1 | 1 | 0

-- 
Regards
 Marco

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



Re: [PHP] PHP Debugger 4 Linux?

2004-06-04 Thread Marco Schuler
Am Fr, 2004-06-04 um 00.14 schrieb Nick Wilson:
> Hi everyone, 
> 
> Can anyone recommend a good debugger for *nix?

Zend Studio

> Many thx!
> -- 
> Nick W

-- 
Regards
 Marco

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



[PHP] Request for files

2004-01-30 Thread Marco Schuler
Hello

Sorry for bothering you with that 'question'. There was an article about
an authentication-system in the German version of the magazin 'php
solutions' issue October/November 2003. Unfortunately, my CD that was
provided with the magazin has got a lot of CRC-errors (scratches). Could
somebody that got this cd e-mail me the files concerning the mentioned
article, please?

Thanks a lot in advance!

-- 
Regards
 Marco

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



Re: [PHP] SWFShape HOW TO DRAW ELLIPSE????

2004-02-19 Thread Marco Schuler
Hi

Am Mi, 2004-02-18 um 20.37 schrieb Rostislav Kerey:
> Hi all,
>  How I can to draw ellipse with Ming functions?
>  I have found how to draw circle but not ellipse :(
>  Help me please!!!

Not tested and just pseudo-code (from a mathematical view):

for ($degree = 0; $degree <= 360; $degree++) {
putPixel(x*cos($degree*pi/180), y*sin($degree*pi/180) );
}

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



Re: [PHP] Linux tools for PHP

2004-03-08 Thread Marco Schuler
Am Mo, 2004-03-08 um 17.46 schrieb Thiago Silva:
> Hello All.
> For all of you working with PHP on a GNU/Linux machine:
> 
> What development tools (editors, debuggers, modeling tools, SGBDs) do 
> you or your team use?

Editor/debugger/profiler:
http://www.zend.com/store/products/zend-studio.php

DB-Design (with DB-syncing and reverse engineering):
http://www.fabforce.net/dbdesigner4/

UML (shouold support php-code generation -> never used):
http://uml.sourceforge.net/index.php

-- 
Regards
 Marco

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



Re: [PHP] Classes & Objects.

2004-03-14 Thread Marco Schuler
Hi

Am So, 2004-03-14 um 03.55 schrieb Elliot J. Balanza:
> Anybody knows a good on line tutorial for objects & classes on PHP.

Sure! Google is your friend or
http://www.phppatterns.com/index.php/link/category/1/ for example.

-- 
Regards
 Marco

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



Re: [PHP] Web based php development tool

2004-03-14 Thread Marco Schuler
Hi

Am So, 2004-03-14 um 00.34 schrieb Joseph Ross Lee:
> Anybody here who could recommend a web based php dev tool for editing php
> sources online? Thanks! I'm having a hard time finding a nice one. Thanks in
> advance guys!

I have seen such a tool some time ago. Just don't remember its name.
Maybe http://www.php-editors.com/ can offer some help.

-- 
Regards
 Marco

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



RE: [PHP] Anyway to access a class variable without using a return function?

2004-03-15 Thread Marco Schuler
Hi!

Am Mo, 2004-03-15 um 13.02 schrieb Dave Starling:
> I think you could also do something like this:
> 
> class MyClass {
>  function MyClass {
>  $this->var1="1";
>  $this->var2="2";
>  }
>  function GetVar($var) {
>  return $this->{$var};
>  } 
> }
> 
> $test = new MyClass();
> 
> echo $test->GetVar('var1').'';
> echo $test->GetVar('var2').'';

Better check first if property/var exists:

function getVar($var)
{
$that = null;
if (isset($this->$var)) {
$that = $this->$var;
}
return $that;
}


-- 
Regards
 Marco

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



Re: [PHP] Anyway to access a class variable without using a return function?

2004-03-15 Thread Marco Schuler
Hi

Am Mo, 2004-03-15 um 14.10 schrieb Tom Meinlschmidt:
> I mean using get_object_vars() is much better.
> 
> and in the example I've seen there:
> 
> you HAVE TO define all the variables you're using in a class scope. eg
> class myClass {
>   var $var1;
>   var $var2 = array();
> 
>   function myClass($var) {
>$vars =get_object_vars($this);
>if (isset($vars[$var])) return $vars[$var];
>return false;
>   }
> }

Somewhat more elegant, yes. But: your function above is called myClass
which is the classname and therefore this function is a _constructor_!
As a constructor does not allow to return values, the above example
would only work if you rename the function-name to something other than
myClass!

-- 
Regards
 Marco

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



[PHP] List of all defined constants

2004-03-15 Thread Marco Schuler
Hi

How can I get a list of all constants defined with define()?

-- 
GrĂ¼sse
 Marco

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



Re: [PHP] Anyway to access a class variable without using a return function?

2004-03-15 Thread Marco Schuler
Am Mo, 2004-03-15 um 15.21 schrieb Tom Meinlschmidt:
> thank, sure. function name should be myClassGetVar() :)

NoP!

-- 
Regards
 Marco

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



Re: [PHP] List of all defined constants

2004-03-15 Thread Marco Schuler
Hi

Am Mo, 2004-03-15 um 15.52 schrieb Filip de Waard:
> On Mar 15, 2004, at 3:23 PM, Marco Schuler wrote:
> > Hi
> >
> > How can I get a list of all constants defined with define()?
> 
> Marco,
> 
> Like the manual (http://nl2.php.net/constants) says: "Use 
> get_defined_constants() to get a list of all defined constants."

Sorry, seems like I got tomatoes on my eyes today!

Thanks!

-- 
Regards
 Marco

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



RE: [PHP] Advanced PHP Programming by George Schlossnagle

2004-03-17 Thread Marco Schuler
Hi

Am Mi, 2004-03-17 um 18.12 schrieb Chris W. Parker:
> Filip de Waard 
> on Wednesday, March 17, 2004 7:20 AM said:
> 
> > Hey guys.
> 
> hi.
> 
> > I instantly started to read and I'm very happy
> > with the quality and level of the book.
> > 
> > Of course I haven't read the complete book yet, but from what I've
> > read so far this was money well spent.
> 
> where can we get more information and what "online shop" did you buy it
> from?

google, or in this case amazon, is your friend:

http://www.amazon.com/exec/obidos/tg/detail/-/0672325616/qid=1079545591/sr=1-1/ref=sr_1_1/104-5140796-2114329?v=glance&s=books

-- 
Regards
 Marco

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



RE: [PHP] Advanced PHP Programming by George Schlossnagle

2004-03-17 Thread Marco Schuler
Am Mi, 2004-03-17 um 18.12 schrieb Chris W. Parker:
> Filip de Waard 
> on Wednesday, March 17, 2004 7:20 AM said:
> 
> > Hey guys.
> 
> hi.
> 
> > I instantly started to read and I'm very happy
> > with the quality and level of the book.
> > 
> > Of course I haven't read the complete book yet, but from what I've
> > read so far this was money well spent.
> 
> where can we get more information and what "online shop" did you buy it
> from?
> 

http://phpclasses.tmoby.com/reviews/id/0672325616.html

-- 
Regards
 Marco

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



RE: [PHP] Advanced PHP Programming by George Schlossnagle

2004-03-17 Thread Marco Schuler
Hi

Am Mi, 2004-03-17 um 19.14 schrieb Chris W. Parker:
> Marco Schuler <mailto:[EMAIL PROTECTED]>
> on Wednesday, March 17, 2004 9:18 AM said:
> 
> > google, or in this case amazon, is your friend:
> 
> yes i am well aware of google and amazon but i just wanted to get george
> some extra exposure by getting a link into an email. maybe to the
> publishers homepage or wherever.

I hope that the second link I posted was something you were looking for.

-- 
Regards
 Marco

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



Re: [PHP] Re: PHPED PHP IDE (wasRe: [PHP] php editor)

2005-01-18 Thread Marco Schuler
Am Dienstag, 18. Januar 2005 16:49 schrieb Lester Caine:
> http://www.zend.com/store/products/zend-studio.php
>
> That's not PhpED either and it's not free.
>
> The debugger is an element a number of people use. We use it in
> PHPEclipse as well. Versions of the DEBUGGER are free, but there
> are also 'improved' versions that are not, integrated into other
> IDE's

Which free debugger? afaik there is only an integrated debugger in 
php3 (http://www.zend.com/manual/debugger.php).

Are you using one of DBG APD or Xdebug? Are you using Eclipse with the 
debugger on linux?

--
Cheers!
 Marco

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



[PHP] function and interface in parameter list?

2005-02-01 Thread Marco Schuler
Hi

I found a function declaration in an open source project (in php5) and 
I could not find documantation for this. The function declaration is:

public function registerComp(IComp $comp)

Is it a kind of typecast?
 
--
Cheers!
 Marco

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



Re: [PHP] function and interface in parameter list?

2005-02-01 Thread Marco Schuler
Hi

Am Dienstag, 1. Februar 2005 15:50 schrieb Jochem Maas:
> Marco Schuler wrote:
> > Hi
> >
> > I found a function declaration in an open source project (in
> > php5) and I could not find documantation for this. The function
> > declaration is:
> >
> > public function registerComp(IComp $comp)
> >
> > Is it a kind of typecast?
>
> no its a type declaration (is that the correct term). it states
> that $comp must be an object of class IComp (or a subclass of it).
> if $comp is not anj IComp object you get a fatal error.

Where can I find this in the manual? IComp can also be an interface, 
right?

> this only works for classes. and it does not work in conjunction
> with optional params e.g:
>
> public function registerComp(IComp $comp = null) { /**/ }

With optional params you mean actually the variable initialisation 
within the declaration, right?

--
Cheers!
 Marco

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



Re: [PHP] function and interface in parameter list?

2005-02-01 Thread Marco Schuler
Am Dienstag, 1. Februar 2005 16:07 schrieb Marco Schuler:
> Am Dienstag, 1. Februar 2005 15:50 schrieb Jochem Maas:
> > Marco Schuler wrote:
> > > Hi
> > >
> > > I found a function declaration in an open source project (in
> > > php5) and I could not find documantation for this. The function
> > > declaration is:
> > >
> > > public function registerComp(IComp $comp)
> > >
> > > Is it a kind of typecast?
> >
> > no its a type declaration (is that the correct term). it states
> > that $comp must be an object of class IComp (or a subclass of
> > it). if $comp is not anj IComp object you get a fatal error.

Found it out: It is called "Type Hinting".

http://ch2.php.net/manual/en/language.oop5.typehinting.php

There is a user contributed note on that page:
"Type hinting allows not to specify a required interface to be 
supported for the object being passed. Beware, the interpreter will 
not give an error for that."

Is it a bug in php or what is the reason?

--
Cheers!

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