Re: [PHP] Php and Apache

2002-07-24 Thread S.Murali Krishna

On Wed, 24 Jul 2002, Varsha Agarwal wrote:

Hi,
I have istalled php from the red hat cd at the time i
installed red hat itself. I downloaded apache and
installed it. Can anyone tell me how to configure php
on apache server? I mean what do I do next to run php
scripts? I am totally new to all this. Please help.
-Varsha

If you installed php from redhat CD, then why not apache.
The Apache rpm in redhat 7.3 comes as precompiled 
support for Dynamic shared object so there is no need for doing
anything except install your Apache and Php from rpms as it is.

Then keep your php files in /var/www/html/ or whatever 
you configured for DocumentRoot Directive in Apache.

If you don't have apache you can download it from redhat site.
---
  S.Murali Krishnan
  Internet: [EMAIL PROTECTED]
---



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




[PHP] Weird Session headers

2002-04-09 Thread S.Murali Krishna


Hi!

In short the problem Iam facing is this.

When I send a excel file to IE browser using php, Iam using the following
header info.
header ( Content-Type: application/x-msexcel );
Its all ok.

but when I send this header along with SESSION HANDLING HEADERS, IE was
unable download the file and saying unable to locate the file 

Is anything to be done on php side. ?

Any Help would be appreciated.

[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




Re: [PHP] I am new

2002-03-27 Thread S.Murali Krishna

This is not really PHP stuff anyway see here..

This is possible with Javascript which can be placed in your link to
refresh the frames

a href=javascript:some_js_function(); ...

inside the function you can change source of one or more frames if you
know javascript

parent.frame1.src =  .. 
parent.frame2.src = 




On Wed, 27 Mar 2002, Hironoshin Tanaka wrote:

Hi, my question is how to change two pages in different frames in one click.
I am not sure if this is related to more like HTML.  But, here is my case.
I have two frames, frame1 and frame2.
In frame1, I have href tag targeted to frame1.
When I click it, I want my frame2 to be changes some other page also.  Would
this be possible?
If anyone knows how to do it, please let me know.  Thanks for your
consideration.

Hiro




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


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


[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




[PHP] assert in php.ini setting.

2002-03-22 Thread S.Murali Krishna


can any one tell me what is this 

;assert.active= On  ; assert(expr); active by default
;assert.warning   = On  ; issue a PHP warning for each failed
;assert.bail= Off ; don't bail out by default.
;assert.callback  = 0 ; user-function to be called if an assertion
;assert.quiet_eval  = 0 ; eval the expression with current


setting in my php.ini file, I don't know what it is for, and it has been
commented. 

Help would be appreciated.



[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




[PHP] Compile problem

2002-03-13 Thread S.Murali Krishna


could anybody help me out, while compiling and Making PHP
its going fine, but I couldn't get any php binary file instead a
file named 'libphp4.la' was created. 
I want to compile it as a standalone binary as a normal
user.

Thanks in Advance.

[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




[PHP] Problem with ErrorHandler

2002-03-12 Thread S.Murali Krishna


Hi PHPzers

How can I capture Error thrown by php for Non existent or 
undefined function. I used set_error_handler() but its returning its
returning false.
Anyway it gets called for NON-existent CONSTANT but not for
Non-existent function.

Can any one tell me what is going on here and solution to the above
problem.


Here is the code.

Iam using PHP 4.1.1

?php

function ErrorHandler($Errcode, $Errmsg )
{
if(!($Errcode  error_reporting())) { 
print Returning from ErrorHandler\n ;
return  ;
}
print ErrorCode:  . $Errcode  . \n ;
print ErrorMsg :  . $Errmsg   . \n ;

return false ;
}

error_reporting(E_ALL);
if(!set_error_handler(ErrorHandler))
{
print Unable to set error handler\n ;
}
print SOME_CONSTANT ;
Some_Non_Existing_func();


?


Hope some light on this.

Thanks.
[EMAIL PROTECTED]


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




[PHP] Help in PHPDoc

2002-03-12 Thread S.Murali Krishna


Is anybody using PHPDoc for creating documentation, if yes could
you tell me how to create documentation for a single php file which 
has enough comments needed by PHPDoc.


[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




Re: [PHP] PHP regular expression

2002-03-12 Thread S.Murali Krishna


Here is it

$html = preg_replace('/?Email:\s+\w.*\.[\w.]*?/',,$html);

I tested it and its working.

On Tue, 12 Mar 2002, Rodrigo Peres wrote:

 Hi list,
 
 I have a huge text file with many text on it. I'd like to know if someone
 can help in construct a regular expression to delete everything that not
 have this pattern Email: [EMAIL PROTECTED]. The part Email:  is fixed
 and the email adress changes. I've tried many time to make the replace with
 PHP, but I'm very new to regular expression.
 
 Thank's
 
 Rodrigo
 -- 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




Re: [PHP] Help in PHPDoc

2002-03-12 Thread S.Murali Krishna


Hi Andrey
Thanks for your kind response first. I did the way you told
but still after executing index.php, there is nothing in my doc directory
just see the following snap of my code. I want to create documentation for

./xPage/xPagedoc.inc file and want the documentation to be in ./xPagedoc/
directory. I think the following code is right for this.

 $doc-setApplication(xPage Repository);

// directory where your source files reside:
$doc-setSourceDirectory(./xPage);

// save the generated docs here:
$doc-setTarget(./xPagedoc);

even I tried with absolute pathname for the above.


Thanks  


On Tue, 12 Mar 2002, Andrey Hristov wrote:

 I used it few times. You have to make modifications to index.php, so the engine will 
know where to look to for .php scripts that
 have to be documented.
 I've attached my index.php
 
 - Original Message -
 From: S.Murali Krishna [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, March 12, 2002 4:35 PM
 Subject: [PHP] Help in PHPDoc
 
 
 
  Is anybody using PHPDoc for creating documentation, if yes could
  you tell me how to create documentation for a single php file which
  has enough comments needed by PHPDoc.
 
 
  [EMAIL PROTECTED]
  ---
  We must use time wisely and forever realize that the time is
  always ripe to do right.
 
  -- Nelson Mandela
  ---
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 

[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




RE: [PHP] Error Handler Problem

2002-03-10 Thread S.Murali Krishna


I think I can get something from you..
Here just in short I want to Capture Error of the following, just tell 
me what I have to do for that.

PHP: Fatal Error: Undefined function 'some_non_exi_func()'

Thanks for your reply.


On Sat, 9 Mar 2002, Dan Vande More wrote:

 I'm not understanding completely, but could this have something to do with
 it?
 [quote]
 error_reporting() has no effect if you have defined your own error handler
 with set_error_handler()
 
 [Editor's Note: This is not quite accurate.
 
 E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR and
 E_COMPILE_WARNING error levels will be handled as per the error_reporting
 settings.
 
 All other levels of errors will be passed to the custom error handler
 defined by set_error_handler().
 
 Zeev Suraski suggests that a simple way to use the defined levels of error
 reporting with your custom error handlers is to add the following line to
 the top of your error handling function:
 
 if (!($type  error_reporting())) return;
 
  [EMAIL PROTECTED]]
 [/quote]
 Read:
 http://www.php.net/manual/en/function.error-reporting.php
 
 Dan
 
 -Original Message-
 From: S.Murali Krishna [mailto:[EMAIL PROTECTED]] 
 Sent: Saturday, March 09, 2002 6:43 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Error Handler Problem
 
 
 Hi All,
   I tell my requierment first. Just in short I want to capture a
 error of Undefined Function .so and so... .
   I set Error Handler to
 
   E_ALL  ~E_ERROR and I set my own Error Handler to capture errors
 then I called a Non-Existent Function intentionally.
 
 in this case its not at all capturing the error and silently executing
 the program. 
 
 Can anyone tell me what is the workaround this.
 For clarification here is the code.
 
 ?php
 
 function ErrorHandler($Errcode, $Errmsg )
 {
 print ErrorCode:  . $Errcode  . \n ;
 print ErrorMsg :  . $Errmsg   . \n ;
 
 return false ;
 }
 
 
 error_reporting(E_ALL  ~E_ERROR);
 
 $prev_hand = set_error_handler(ErrorHandler);
 
 // It's always executing if section instead of else.
 
 if(!$prev_hand) {
 print Unable to set error handler\n ;
 } else {
 print Previous Handler . $prev_hand ;
 }
 
 
 ?
 
 
 
 
 [EMAIL PROTECTED]
 ---
 We must use time wisely and forever realize that the time is 
 always ripe to do right.
 
   -- Nelson Mandela
 ---
 
 
 -- 
 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
 

[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




[PHP] HTML Writer library functions

2002-03-09 Thread S.Murali Krishna


Hi All,
Lets have a look at the following link to library functions
to write HTML tags in easy way. Its very easy to use interface including
documentation and Algorithm.

http://phpBuilder.com/snippet/download.php?type=snippetid=948


[EMAIL PROTECTED] APU (A Php User)
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




[PHP] Error Handler Problem

2002-03-09 Thread S.Murali Krishna


Hi All,
I tell my requierment first. Just in short I want to capture a
error of Undefined Function .so and so... .
I set Error Handler to

E_ALL  ~E_ERROR and I set my own Error Handler to capture errors
then I called a Non-Existent Function intentionally.

in this case its not at all capturing the error and silently executing
the program. 

Can anyone tell me what is the workaround this.
For clarification here is the code.

?php

function ErrorHandler($Errcode, $Errmsg )
{
print ErrorCode:  . $Errcode  . \n ;
print ErrorMsg :  . $Errmsg   . \n ;

return false ;
}


error_reporting(E_ALL  ~E_ERROR);

$prev_hand = set_error_handler(ErrorHandler);

// It's always executing if section instead of else.

if(!$prev_hand) {
print Unable to set error handler\n ;
} else {
print Previous Handler . $prev_hand ;
}


?




[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




[PHP] overload() not working

2002-03-07 Thread S.Murali Krishna


is any compile time configuration needed to make 'overload()' function
to work ?. when I use the below code it's saying 
'undefined function overload'.  

Hope some light on this.

Thanks in advance.

 ?php
 class OO
 {
 var $a = 111;
 var $elem = array('b' = 9, 'c' = 42);
 
 function __get($prop_name, $prop_value)
 {
 if (isset($this-elem[$prop_name])) {
 $prop_value = $this-elem[$prop_name];
 return true;
 } else {
 return false;
 }
 }
 
 // Callback method for setting a property
 function __set($prop_name, $prop_value)
 {
 $this-elem[$prop_name] = $prop_value;
 return true;
 }
 }
 
 overload('OO');
 
 $o = new OO;
 print \$o-a: $o-a\n; // print: $o-a:
 print \$o-b: $o-b\n; // print: $o-b: 9
 print \$o-c: $o-c\n; // print: $o-c: 42
 print \$o-d: $o-d\n; // print: $o-d:
 
 // add a new item to the $elem array in OO
 $o-x = 56;
 
 $val = new stdclass;
 $val-prop = 555;
 
 $o-a = array($val);
 var_dump($o-a[0]-prop);
 
 ?

[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




RE: [PHP] What is - mean in php?

2002-03-07 Thread S.Murali Krishna


Hi
  In search of the definition for your question, I've came across an
intersting Doc. Iam just giving  here the snapshot of that.

   In PHP terms, the toplevel directory would be the global
   namespace, and the pathname separator would be -. Thus, the names
   $cart-items and $another_cart-items name two different variables.
   Note that the variable is named $cart-items, not $cart-$items, that
   is, a variable name in PHP has only a single dollar sign.

The above para is stated in PHP Manual

I done many tests on this operator, atlast I found that, its not only a
dereferencing operator to access a variable or method, rather its a
namespace seperator. We can create any hierarchy of name spaces with
this op., on an object after creating it with 'new'. 

I'm still not clear about this.




On Fri, 8 Mar 2002, Kearns, Terry wrote:

 Because I'm not a hacker on the PHP engine, I don't really know but I also
 saw this symbol when learning C++ recently. It is used in C++ as a shortcut
 to dereferencing and accessing an objects properties/methods on objects
 which are on the free store (heap). Normally C++ uses the dot operator to
 access methods/properties (eg. foo.do()), but when the object needs to
 first be dereferenced, then foo-do() can be used as a shortcut to
 (*foo).do().
 
 Of course, this doesn't help you at all does it :) But I thought it was an
 interesting connection to C++ and maybe hints at how PHP internally manages
 objects. Perhaps it's just a coincidence.
 
 [TK] 
 
  -Original Message-
  From: S.Murali Krishna [mailto:[EMAIL PROTECTED]] 
  Sent: Monday, 4 March 2002 9:48 PM
  To: Jack
  Cc: [EMAIL PROTECTED]
  Subject: Re: [PHP] What is - mean in php?
  
  
  
  If you have any Object Oriented Programming experience, then 
  you may not had asked this. Its a operator to access methods, 
  and variables inside a instance of a class , in which the 
  variable before - is the instance of the  class and the 
  latter is a method or variable of that class. This is what I 
  know, if you have any explanatory docs, pls let me know.
  
  
  
  On Mon, 4 Mar 2002, Jack wrote:
  
   Dear all
   There is one symbol in PHP that i always see is -, could 
  anyone pls 
   tell me what is this, and what does that do? Here is the 
  statement i 
   saw could some pls explain what it means?
   
   if (!empty($row-usd_period)
   
   Thx a lot
   Jack
   [EMAIL PROTECTED]
   
   
   
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
   
  
  [EMAIL PROTECTED]
  ---
  We must use time wisely and forever realize that the time is 
  always ripe to do right.
  
  -- Nelson Mandela
  ---
  
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
  
 

[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




Re: [PHP] Re: Crontab

2002-03-07 Thread S.Murali Krishna


Why don't you call the script as command line one and redirect output
to /dev/null.


On Fri, 8 Mar 2002, Uma Shankari T. wrote:

 
 
 I have given like that you have mentioned below.again it is giving the
 same error.pls tell me how i will solve that..
 
  Your terminal lacks the ability to clear the screen or position the
  cursor.
 
 -Uma
 
 
 On Wed, 6 Mar 2002, Philip Hallstrom wrote:
 
 PHTry...
 PH
 PHlynx -dump 
 PH
 PH-philip
 PH
 PHOn Thu, 7 Mar 2002, Uma Shankari T. wrote:
 PH
 PH
 PH
 PH  Hello,
 PH
 PH I am facing some problem in the crontab...Can anyone tell me how to
 PH solve this
 PH
 PH  Actually i have written the php script to send mail to the users after a
 PH week.In the crontab i have made a entry so that it will trigger after
 PH 12.05.
 PH
 PH  5 0 * * *   lynx http://info/php/MailForm.php
 PH
 PH I have received a mail like this.And also it didn't send the mail to
 PH the userswhy it is so
 PH
 PH
 PH  Your terminal lacks the ability to clear the screen or position the
 PH cursor.
 PH
 PH
 PH
 PH -Uma
 PH
 PH
 PH
 PH
 PH
 PH
 PH --
 PH PHP General Mailing List (http://www.php.net/)
 PH To unsubscribe, visit: http://www.php.net/unsub.php
 PH
 PH
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




Re: [PHP] data from service into array

2002-03-05 Thread S.Murali Krishna


Is anything hindering you from using XML expat? You can use that to do it.
I already post a mail on this, search in the archive for xml related
posts.

On Tue, 5 Mar 2002, Craig Westerman wrote:

 I'm retrieving data from a data service. 
 This is the ENTIRE source code of the URL they let me receive:
 
 
 symbolRHAT/symbol
 price6.82/price
 date3/4/2002/date
 time3:59pm/time
 change0.32/change
 change_percent/change_percent
 open6.59/open
 high6.99/high
 low6.53/low
 volume932400/volume
 
 
 How can I insert the data values into an array ?
 
 Thanks
 
 Craig 
 [EMAIL PROTECTED]
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




[PHP] OOP .. overload not working

2002-03-05 Thread S.Murali Krishna


Hi PHPzers

Is php have to compile with anything to get 'overload' function to work,
bcoz its not working on mine, by saying 'undefined function'. In manual
,there is no restriction in using this. 


[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




RE: [PHP] OOP .. overload not working

2002-03-05 Thread S.Murali Krishna


There is nothing of me. I just cut and pasted the example from manual.
Anyway Iam including here.

Thanks for Reply, 

?php
class OO
{
var $a = 111;
var $elem = array('b' = 9, 'c' = 42);

function __get($prop_name, $prop_value)
{
if (isset($this-elem[$prop_name])) {
$prop_value = $this-elem[$prop_name];
return true;
} else {
return false;
}
}

// Callback method for setting a property
function __set($prop_name, $prop_value)
{
$this-elem[$prop_name] = $prop_value;
return true;
}
}

overload('OO');

$o = new OO;
print \$o-a: $o-a\n; // print: $o-a:
print \$o-b: $o-b\n; // print: $o-b: 9
print \$o-c: $o-c\n; // print: $o-c: 42
print \$o-d: $o-d\n; // print: $o-d:

// add a new item to the $elem array in OO
$o-x = 56;

$val = new stdclass;
$val-prop = 555;

$o-a = array($val);
var_dump($o-a[0]-prop);

?








On Wed, 6 Mar 2002, Martin Towell wrote:

 can you provide a code snippet so we can see what you're doing?
 
 -Original Message-
 From: S.Murali Krishna [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 06, 2002 4:38 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] OOP .. overload not working
 
 
 
 Hi PHPzers
 
 Is php have to compile with anything to get 'overload' function to work,
 bcoz its not working on mine, by saying 'undefined function'. In manual
 ,there is no restriction in using this. 
 
 
 [EMAIL PROTECTED]
 ---
 We must use time wisely and forever realize that the time is 
 always ripe to do right.
 
   -- Nelson Mandela
 ---
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




Re: [PHP] What is - mean in php?

2002-03-04 Thread S.Murali Krishna


If you have any Object Oriented Programming experience, then you may not
had asked this. Its a operator to access methods, and variables inside a
instance of a class , in which the variable before - is the
instance of the  class and the latter is a method or variable of that
class. This is what I know, if you have any
explanatory docs, pls let me know.



On Mon, 4 Mar 2002, Jack wrote:

 Dear all
 There is one symbol in PHP that i always see is -, could anyone pls tell
 me what is this, and what does that do?
 Here is the statement i saw could some pls explain what it means?
 
 if (!empty($row-usd_period)
 
 Thx a lot
 Jack
 [EMAIL PROTECTED]
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




Re: [PHP] Hi

2002-02-28 Thread S.Murali Krishna


Hi dharma
Better go about PHP manual ( since I started with that ). 
when you finish that, you would have some idea on where to go further.

On Thu, 28 Feb 2002, dharmavatar wrote:

 Hi everybody,
 I am new in this group,so could any one tell me how to start learn PHP?
 I had install PHP in IIS so where is good place to start.
 Thanks in advance.
 Regards
 Dharmavatar
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




Re: [PHP] class effeciency

2002-02-28 Thread S.Murali Krishna


Hi 
I too suggested a way for your previous problem.  
What you are doing is right here, but some corrections are there.

You cannot use 'var' to declare variables inside constructors
rather you could use them only before constructor, and intialize
them inside constructor, look out the below code.

?php
class form
{
var $lang ;
function constructor($language)
{   
  $lang = $language
//.. other stuffs
}
}

In addition you can't intialize them too before constructor.

I hope it will work for you.



On Thu, 28 Feb 2002, Nick Wilson wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi all,
 I have an application that spits out a contact form in either English or
 Danish. Someone suggested I use a 'class factory' like the PEAR db
 abstraction layer and that is what I'm doing.
 
 So I choose the language like this:
 
 $form = Form::GetFormObject($lang); //different class for each lang
 
 No problem.
 
 My question is related to the efficiency of this. 
 
 It is only the *properties* that are different in each language class
 not the methods so I'm including all the same methods twice! That
 doesn't seem terribly efficient.
 
 I thought maybe I could init properties with a constructor in a single
 class like this:
 
 ?
 function test($lang) {
 if($lang==en) {
 var $lang=English;
 } else if($lang=dk) {
 var $lang=Danish;
 }
 }
 }
 ?
 
 But it fails.
 
 Is there a better way? It just seems like overkill to include 6-700
 lines of methods /twice/
 
 Many thanks
 
 - -- 
 - ---
  www.explodingnet.com   |Projects, Forums and
 +Articles for website owners 
 - -- Nick Wilson -- |and designers.
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (GNU/Linux)
 
 iD8DBQE8fe0UHpvrrTa6L5oRAgh5AJ9oXAQ4kMwj/neprZOQx1KZmpOWXACdFTiP
 WAFmmGoE60Y079p39i+pCnQ=
 =290x
 -END PGP SIGNATURE-
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




Re: [PHP] XML

2002-02-27 Thread S.Murali Krishna


I can't really get you, but I have done similar programs in php/xml
I think if I could see the code or if I know the ultimate goal of you, I
could able to solve the problem.


On Tue, 26 Feb 2002, Tom Holton wrote:

 
 Hello,
 I have come across a strange error when using the XML parsing functions.
 Instead of printing the xml to the screen, like the functions do, I
 decided to put these into arrays. It all seems to be working normally,
 except for the data part (this is the non-xml data).
 I can verify that the data is being stored in an array when the XML is
 being printed to my browser window.
 But when i then print this array out AFTER the xml has been printed, the
 array is empty! (yet it contains the same number of array elements as it
 should, they are all just blank now)
 
 I cannot find anything related to this nor can I determine why. I am
 perfectly willing to send the PHP code to anyone who would like to see
 this strange behavior.
 you know, i am just trying to put XML into variables rather than printing
 to the screen... perhaps someone knows of a better way?
 Anyone have any ideaS?
 thanks in advance!
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




Re: [PHP] extending a class?

2002-02-26 Thread S.Murali Krishna


Hi
Instead of extending the class you can create a language object
inside 'form' class and refer it for all your stuffs regardless of
language.

class form
{
  function form($lang)
  {
if($lang == dk) { $this-lang = new dk(); }
else if ($lang == en) { $this-lang = new  en(); }
  }

do what ever language stuff with

$form-lang-somefunc();

Is it Ok...? 





On Tue, 26 Feb 2002, Nick Wilson wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi all
 Is it possible to extend a class based on a value passed to the
 constructor?
 
 Here's the scenario: I'm going to build a class to help me knock out
 contanct forms for clients and I want to be able to run certain routines
 with either Danish or English msg's. So I was thinking:
 
 $form=new form('dk')
 
 Would extend the class to include all the dk language routines and
 
 $form=new form('en')
 
 Would do likewise for english.
 
 Do you see what I mean?
 
 
 Many thanks.
 - -- 
 - ---
  www.explodingnet.com   |Projects, Forums and
 +Articles for website owners 
 - -- Nick Wilson -- |and designers.
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (GNU/Linux)
 
 iD8DBQE8e252HpvrrTa6L5oRAnKFAJ9+bWkCFst5Y1YB/y0E8bbgqMnUUgCfVwQN
 +IB7iaz5lgzE7EkE/OfqmqE=
 =kfok
 -END PGP SIGNATURE-
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




Re: [PHP] call stack

2002-02-08 Thread S.Murali Krishna


I had a similar requierment. When I searched for it, came to know about
APD ( Advanced PHP Debugger ) its a extension. We need to do some confs in
php.ini for this. APD is somewhat better in tracing stacks.

Try your best.
[EMAIL PROTECTED]

On Fri, 8 Feb 2002, Martin Towell wrote:

 I know this comes up again, and again, and I'm bringing it up again now :)
 There's been requests for a function that displays the current heirachy of
 calls
 I was just thinking about this - php must maintain a stack so that it knows
 what function to return to when another function exits, why can't something
 display this stack - or doesn't this stack contain that type of information?
 
 Is this the right mailing list - maybe I should have sent it to php-dev ???
 
 Martin
 


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




Re: [PHP] Can this be done in PHP?

2002-02-02 Thread S.Murali Krishna


Based on the GET_VARS you can identify the image and do some 
mapping stuffs to get the sitename. Then you can construct your header
accordingly with 'Location:' parameter to view that site.


On Fri, 1 Feb 2002, Lazor, Ed wrote:

 I'm trying to understand how this banner exchange works and whether it can
 be done in PHP.  Here's the HTML you put on your web page:
 
 a
 href=http://rpgx.rpgconsortium.com/xchange/engage.cgi?advert=NonSSIpage=XX
 img
 src=http://rpgx.rpgconsortium.com/xchange/engage.cgi?id=atfantasypage=01;
 border=0 width=468 height=60/a
 
 
 It...
 - displays a random banner image
 - takes you to the site relating to the displayed image
 
 How does it do that?  Any ideas on how to do this in PHP?
 
 -Ed
 
  
 
 This message is intended for the sole use of the individual and entity to
 whom it is addressed, and may contain information that is privileged,
 confidential and exempt from disclosure under applicable law.  If you are
 not the intended addressee, nor authorized to receive for the intended
 addressee, you are hereby notified that you may not use, copy, disclose or
 distribute to anyone the message or any information contained in the
 message.  If you have received this message in error, please immediately
 advise the sender by reply email and delete the message.  Thank you very
 much.   
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

S.Murali Krishna
[EMAIL PROTECTED]  
= 
We grow slow trying to be great

   - E. Stanley Jones
-


-- 
PHP General Mailing List (http://www.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] A function that executes php code in a string?

2002-01-31 Thread S.Murali Krishna

You can create function on the fly using 
'create_function'  function 
and you can  call the same with 'call_user_func' function

$k = create_function('args','code')
call_user_func($k)  OR  eval($k())



On Wed, 30 Jan 2002, Mike Maltese wrote:

 eval()?
 
 - Original Message -
 From: Leif K-Brooks [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, January 30, 2002 10:25 PM
 Subject: [PHP] A function that executes php code in a string?
 
 
  I want to execute code in a mysql datrabase, but is this possible?  I want
  it to run exactly as if I had tyyped it in to the php file.
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

S.Murali Krishna
[EMAIL PROTECTED]  
= 
We grow slow trying to be great

   - E. Stanley Jones
-


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




[PHP] Is there any Jabber Client in PHP

2002-01-28 Thread S.Murali Krishna


Hi all
Is there any jabber client in PHP available ?. I have
searched the net and got some information on how to write jabber client,
but ( to learn ) i need an existing one if any.


S.Murali Krishna
[EMAIL PROTECTED]  
= 
We grow slow trying to be great

   - E. Stanley Jones
-


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