[PHP] Re: Redirect Function?!!

2001-12-07 Thread Roko Roic


I don't like header('Location: page.php'); so I use a HTTP request class to
call another script/page. This does fork another httpd, but that's life :)

Roko



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




Re: [PHP] Re: Redirect Function?!!

2001-12-07 Thread Roko Roic


Brian Clark [EMAIL PROTECTED] wrote in message
20011207082759.GB8750@ganymede">news:20011207082759.GB8750@ganymede...
 * Roko Roic [EMAIL PROTECTED] [Dec 07. 2001 03:26]:

  I don't like header('Location: page.php'); so I use a HTTP request class
to
  call another script/page. This does fork another httpd, but that's life
:)

 Just out of curiosity, what's wrong with header('Location ... ');?

I may be wrong, but I thing Header(Location) sends a Location header back to
the client informing him that he will be redirected. Therefore, you must
expect your client to be aware of that HTTP header, and some WAP client
performed strangely with this. Also some proprietary HTTP clients could act
the same.

I, too, would like to know if this is the case?

Roko



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




[PHP] Re: please don't flame : it's an editor-question

2001-12-06 Thread Roko Roic

I can't afford 299$ for an Texteditor,so :
Does anyone know of a free/cheap Edtor that has this feature?

On windows - PHPEdit (maybe even PHPCoder).
On linux - I, too would like to know, mabe emacs?.

Roko



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




Re: [PHP] Re: please don't flame : it's an editor-question

2001-12-06 Thread Roko Roic

Attila Strauss [EMAIL PROTECTED] wrote in message
003301c17e52$69c94260$[EMAIL PROTECTED]">news:003301c17e52$69c94260$[EMAIL PROTECTED]...
 hi
 http://www.itworks.demon.co.uk/phpeditors.htm

This list does not contain the best among Windows editors:
PHPEdit, PHPCoder (Maguma PHP4EE studio), PHPEd...

What about Latte for Linux?

Roko



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




[PHP] Re: PHP and wml problem

2001-12-05 Thread Roko Roic

 Does anybody have a solution?

Send wnl heades before displaying results

header('Content-type: text/vnd.wap.wml');

Cheers
Roko



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




[PHP] Re: Class in PHP

2001-12-05 Thread Roko Roic


Wee Chua [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi all,
 How many extension of subclass can PHP have? Can I extend subclass to more
 different subclass?

I didn't really understand the question, but maybe this is it.
PHP class can extend only one parent class. i.e.

class Foo extends Bar {
} file://is ok

whereas

class Foo extends Bar,Cafe {
} file://does not work but maybe will in Zend 2.0 engine

Roko



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




[PHP] Re: Classes and functions

2001-11-28 Thread Roko Roic

 I'm writing a class for POP3 access and I want some of the internal
 functions to be private, like the mime decoding stuff.

 Is there any way to do this? I found nothing in the docs :(

Unfortunately, PHP does not understand terms private, public, protected...
PHP coders adopted a coding standard to name all 'private' methdods like

_methodName()

i.e. Beginning with an underscore.

That's the best you can do, so live with it :)

Cheers
Roko



-- 
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] nested include_once()

2001-11-28 Thread Roko Roic

If I use include_once() to include these files in main.php:

main.php
-
include_once('lib.php');
include_once('service.php');
-

And file service.php also has a line in it:

service.php
--
include_once('lib.php');
--

Will lib.php get included twice or only _once() ?

I am wondering because get_included_files() acts kind of 'strange' and does
not display files included from included files. Damn recursion :)

[OT] Is there a way to tail files that get read from a Linux filesystem.
That could help me find out what gets included and when?

Cheers
Roko





-- 
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] nested include_once()

2001-11-28 Thread Roko Roic

 in lib.php
 define(__LIB_PHP__,1);
 in service.php:
 define(__SERVICE_PHP__',1);
 if (!__LIB_PHP__){
 require('lib.php');


I am not sure I was clear enough.

I _want_ those include_once('lib.php') statements to be in service.php,
because service.php could get included from a file other than main.php,
let's say non_main.php.
That file (non_main.php) does not contain a statement
include_once('lib.php'), but only include_once('service_php') and so in
order to use that library, service.php has to include it itself.

Clear? :)

So, I am trying to find out what happens in case of main.php which includes
lib.php and service.php (which also includes lib.php) when I use
include_once(). Does it get included TWICE?

Roko



-- 
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] nested include_once()

2001-11-28 Thread Roko Roic

 include_once(). Does it get included TWICE?

By it, I mean lib.php.

Sorry
Roko



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




[PHP] Re: call php with javascript

2001-11-27 Thread Roko Roic

 i have test.php:
 ?
 echo test;
 ?

 to call this in the html, i use
 SCRIPT LANGUAGE=Javascript SRC=test.php/script

 this works fine for IE, but is there an alternative for Netscape to do
this?

PHP is a server side programming language and it does not execute in the
browser.

What you are doing here is including php code fragment and telling the
broswer it is Javascript.
IE is forgiving about % and ignores it, but Netscape throws a Javascript
error (as it should).

Once again, PHP is executed on the server side.

http://www.php.net

Roko



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




[PHP] Re: header(Location:...) much faster then http-equiv=refresh? too fast?

2001-11-22 Thread Roko Roic

 When I use header(Location: ...) to redirect the user back to the record

Send a Header(pragma no-cache) before Header(Location) and it will work.

Roko



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




[PHP] Re: parent:: constructor

2001-11-22 Thread Roko Roic


$parent::constructor()?

Just guessing, I wasn't even aware of this functionality till now :)

Roko



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

2001-11-19 Thread Roko Roic

I don't know if this is the right place to ask this (there is no .news.admin
group on news.php.net), but where is the right place to look for support for
OOP PHP programming.

Any newsgroups, mailing lists?

Maybe opening a group in this hierarchy named php.oop?? Where is the right
place to ask for group opening?

I believe there are a lot of us OOProgrammers using PHP in an OOP manner who
would like to share ideas, solutions and troublshooting.


Roko



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