Re: [PHP] non-php issue

2003-09-22 Thread Curt Zirzow
* Thus wrote John Nichel ([EMAIL PROTECTED]):
> Peter James wrote:
> >You guys running Linux sure are cocky about these sorts of things.  I have
> >no doubt that Linux' time will come, and then it will be the MacOS X users,
> >or FreeBSD users, or [insert random-os-that-still-remains-under-the-radar
> >here] users that think they are "untouchable".
> >
> >If Linux enjoyed the same type of (often less-than-computer-literate) user
> >base that Windows does, there'd be plenty for virus writers and
> >vulnerability exploiters to do.  Linux is not necessarily more secure...
> >just not a honeypot of large numbers of gullible users.
> 
> Not as cut and dry as that.  By design, Linux IS more secure.  Great 
> deal of that security lies in the fact that it IS a true multi-user 
> system (like just about every other non-MS OS out there), with a real 
> permission / user / group mindset.

There is a lot lacking in the permission/user/group in *nix. Just
because it works hardly makes it right. Try managing 20 servers
with 100 users within 30 separate groups across a network. NT has
far more flexible and manageable permissions mindset.

> 
> >But that's just my 2 cents (for which I will almost certainly earn the 
> >title
> >of troll).
> 
> Not a troll, just misinformed.

hmm, i guess he didn't snag you with his troll bate :)

But I think you missed his point.  virus/trojans/worms do exist for
*nix and linux, the reason why you don't see them widespread is the
literacy of the user base is much higher than you find on most
windows machines. And, not to mention, the linux virus's come with
GNU uninstallers :)

If and when linux becomes as 'mainstream' as windows, you will find
more virus's written for linux and more linux computers getting
infected with them.

Thats why *BSD is better, it doesn't demand the attention linux
does :)

hm.. is this a bad time to mention vi?

cheers,
Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

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



Re: [PHP] non-php issue

2003-09-22 Thread Robert Cummings
On Mon, 2003-09-22 at 03:10, Curt Zirzow wrote:
> 
> hm.. is this a bad time to mention vi?
> 

What would you mention about it? Everyone knows joe is the best editor
in the world -- *cough* back on topic -- the best editor for PHP source
and everything else *GRIN*.

Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



Re: [PHP] non-php issue

2003-09-22 Thread Jason Wong
On Monday 22 September 2003 13:08, Robert Cummings wrote:

> All security advantages aside, I prefer linux because everytime I
> install a new program or service I don't need to reboot :)

Or as some wag put it:

"Your mouse has moved, you need to restart Windows for the changes to take 
effect."

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
"Whom are you?" said he, for he had been to night school.
-- George Ade
*/

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



Re: [PHP] PHP Shell doesn't run on a system

2003-09-22 Thread Curt Zirzow
* Thus wrote Weston Cann ([EMAIL PROTECTED]):
> A while back I wrote a small script that was designed to work as an 
> interactive interpreter for PHP code, a la Python. The script itself is 
> written in PHP, and is pretty basic:
> 
> 
>  
> function readln()
> {
>   $fp=fopen("/dev/stdin", "r");

use fopen('php://stdin', 'r') instead.

http://php.net/manual/en/wrappers.php.php

(no, that isn't a typo with .php.php)

> $input=fgets($fp, 255);
> 
> 
> And while we're at it, has anyone written a tool that will tell you 
> what's different between server setups?

I use diff on unix.


Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

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



Re: [PHP] PHP Shell doesn't run on a system

2003-09-22 Thread Jason Wong
On Monday 22 September 2003 14:44, Weston Cann wrote:
> And while we're at it, has anyone written a tool that will tell you
> what's different between server setups?

  phpinfo()

or

  /path/to/php -i

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
We are now enjoying total mutual interaction in an imaginary hot tub ...
*/

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



[PHP] Redirect URL

2003-09-22 Thread Yury B .
Hi 

I have form in file register.php. The action of this form is the same 
- register.php the form validation script is included in this file 
like include("mail.php") In mail.php there is two sections - one is 
working if user didn't complete form properly another if everything 
okay. So, I need form to show the different page (let's say 
success.htm) if everything was filled right. I include the following 
in the mail.php file if everything is okay: header("Location: 
http://test.my/success.htm";); But it doesn't work even though all the 
files are in 
the same directory. 
it shows:
Warning: Cannot modify header information - headers already sent by 
(output started at z:\home\test.my\www\register.php:5) in 
z:\home\test.my\www\mail.php on line 41

What is wrong?

Yury

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



[PHP] How can i enable SSL support?

2003-09-22 Thread Astron of BrOnX
Hi all, i need to enable ssl support for windows version of php but when i
have enabled ssl support from php.ini like;

extension=extensions/php_openssl.dll

php says PHP Warning: Unknown(): Unable to load dynamic library
'./extensions/php_openssl.dll' - The specified module could not be found. in
Unknown on line 0

It is very strange.. Because when i have enabled GD lib like;

extension=extensions/php_gd2.dll

there isnt any error. php_openssl.dll is in c:\php\extensions directory.
Seems to be everything is okay. But still given error.   I have been using
php4.3.3 + IIS5.1

Do you have any idea?

Thanks,
Astron

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



Re: [PHP] PHP Shell doesn't run on a system

2003-09-22 Thread Christophe Chisogne

And while we're at it, has anyone written a tool that will tell you 
what's different between server setups?
I use diff on unix.

You may like tkdiff, with its additional GUI to diff

Christophe

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


Re: [PHP] advise on new class of mine

2003-09-22 Thread Curt Zirzow
* Thus wrote jsWalter ([EMAIL PROTECTED]):
> I'm in the process of building my first "real" class.
> 
> 43 methods, 23 properties, nearly 1000 lines of codes.

hmm. that is large.

> 
> What I would like to know...
> 
> Is it better to keep al this in a single file? Or break it up into
> sub-classes?

yes. 

> 
> This does have logical sections, so a breakup would be possible, but then
> I'm not sure how I would piece it back together.

Now comes the hard part. its most likely going to take much
thought and probably some research as to how to seperate them.
Putting them back together is the easy part.

Here is a small simple example 

class Person {
  var $hand = array(2 hands);
  var $foot = array(2 feet);

  function drink($hand, $obj) { }
  function step($foot) { }
}

class beermug {
  var $amt = !< 0; // 
}

class car {
  var $seats = array(2 seats); // its a sports car.
  function gaspeddle($action, $amt) { };
}

// now the tying together...

$me = new Person();
$ipa = new beermug(100% full);
$me->drink(right, $ipa);

wait(1 hour);

$porche = new car('red'); // i wish it was that easy

// somehow magically get in the car

$car->gaspeddle($me->step(right), 100%);

There are proably better ways to approach my person/beerbug/car
relation ship, but I just put this quickly together to show how
items could be tied together.  OO programming can get very complex
and all depends on how detailed and isolated you want your objects.

> 
> Also...
> 
> Many properties are not required at object instantiation, but I define them
> none-the-less. Many are derived from multiple others.
> 
> It is better to define all properties, many may never be used, or simply
> define them as they are called?
> 
> I define them all now, so there is a (ever so) slight hit on cycles for
> this.

when you seperate the code this may not be a big issue.

> 
> If I define them as they are called, then each needs a conditional to
> process to run each time that GETTER is called.
> 
> Or is this "6 of one and half-dozen of another"?
> 
> Now, this gets broken up, many of the properties correspond the different
> sections. then he properties should be defined as called, because their
> package would only be loaded when called.
> 
> Am I talking in circles here?

well sorta, i got kinda confuse with these last few items. 


HTH,

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

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



Re: [PHP] non-php issue

2003-09-22 Thread John Nichel
Curt Zirzow wrote:
* Thus wrote John Nichel ([EMAIL PROTECTED]):
Not as cut and dry as that.  By design, Linux IS more secure.  Great 
deal of that security lies in the fact that it IS a true multi-user 
system (like just about every other non-MS OS out there), with a real 
permission / user / group mindset.


There is a lot lacking in the permission/user/group in *nix. Just
because it works hardly makes it right. Try managing 20 servers
with 100 users within 30 separate groups across a network. NT has
far more flexible and manageable permissions mindset.
Hell, my last place of employment, we surpassed that number of servers 
just with our webservers alone (24).  Managed 6000+ users at 3 different 
locations in Phoenix, 1 location in Canada, 1 in the U.K., and 1 in 
Germanyall in all, comprising of more than 100 groups.  No Windows 
servers.  Our system administration team?  5 guys.  Network 
administration team?  Another 7 people.  Compare that to the Desktop 
support team for all the Windows based workstations60+ people.

We can argue semantics all day long, but when the sun sets, MS OS' will 
still be near, if not at the bottom of all OS' in terms of security. 
And it will stay there as long as script kiddies can write crap which 
allows them Admin access to Windows on a daily basis.

But that's just my 2 cents (for which I will almost certainly earn the 
title
of troll).
Not a troll, just misinformed.


hmm, i guess he didn't snag you with his troll bate :)

But I think you missed his point.  virus/trojans/worms do exist for
*nix and linux, the reason why you don't see them widespread is the
literacy of the user base is much higher than you find on most
windows machines. And, not to mention, the linux virus's come with
GNU uninstallers :)
If and when linux becomes as 'mainstream' as windows, you will find
more virus's written for linux and more linux computers getting
infected with them.
Possibly, but not likely, for two reasons.  One, script kiddies are lost 
in the *nix world, and all their VB tools won't help them one bit.  Two, 
most people capable of writing viri for Linux wouldn't out of loyality 
(love, devotion, obsession, etc).

Thats why *BSD is better, it doesn't demand the attention linux
does :)
I do like the devil slightly better than the penguin as a mascot.

hm.. is this a bad time to mention vi?
vi rocks!!  Okay, maybe it doesn't rock all the time, but when I'm at a 
remote location, without access to some sort of SFTP client, it rocks. :)

cheers,
Curt
Course, we're way off topic, so I'm going to close my mouth now in hope 
that the PHP gods don't blast me.

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Q on class failure...

2003-09-22 Thread Curt Zirzow
* Thus wrote jsWalter ([EMAIL PROTECTED]):
> I found this in the docs...
> 
>If you want your constructor to possibly not create the object
> 
>class A
>{
>  function A()
>  {
>  // ...
>  // some error occurred
>  $this = null;
>  return;
>  }
>}
> 
> I tested it, it works great.
> 
> Then I read on...
> 
>Setting $this to null isn't available in PHP 4.3.3R3 anymore. Maybe in
> version below also.
> 
> Great! :/
> 
> I have 4.3.2, so I guess it would work for me.
> 
> If this "feature" has been removed, can someone show me a good way to
> indicate a failure on object instantiation?

The constructor should be as quick as possible and have as little
logic as possible.  What kind of failure are you trying to catch?

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

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



Re: [PHP] How can i enable SSL support?

2003-09-22 Thread Marek Kilimajer
Do you have libeay32.dll in your windows system directory?

Astron of BrOnX wrote:
Hi all, i need to enable ssl support for windows version of php but when i
have enabled ssl support from php.ini like;
extension=extensions/php_openssl.dll

php says PHP Warning: Unknown(): Unable to load dynamic library
'./extensions/php_openssl.dll' - The specified module could not be found. in
Unknown on line 0
It is very strange.. Because when i have enabled GD lib like;

extension=extensions/php_gd2.dll

there isnt any error. php_openssl.dll is in c:\php\extensions directory.
Seems to be everything is okay. But still given error.   I have been using
php4.3.3 + IIS5.1
Do you have any idea?

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


Re: [PHP] Redirect URL

2003-09-22 Thread Marek Kilimajer
Search the archives or google.

Yury B. wrote:

Hi 

I have form in file register.php. The action of this form is the same 
- register.php the form validation script is included in this file 
like include("mail.php") In mail.php there is two sections - one is 
working if user didn't complete form properly another if everything 
okay. So, I need form to show the different page (let's say 
success.htm) if everything was filled right. I include the following 
in the mail.php file if everything is okay: header("Location: 
http://test.my/success.htm";); But it doesn't work even though all the 
files are in 
the same directory. 
it shows:
Warning: Cannot modify header information - headers already sent by 
(output started at z:\home\test.my\www\register.php:5) in 
z:\home\test.my\www\mail.php on line 41

What is wrong?

Yury

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


Re: [PHP] Problem's addign a script to my web page.

2003-09-22 Thread Marek Kilimajer
Optionaly you can use ftp functions to create files and directories.

Stratis Aftousmis wrote:

--- Marek Kilimajer <[EMAIL PROTECTED]> wrote:

Do you have shell access(ssh)? You can use that.
Other way is to ask 
your ISP to change the parmissions or to enable
chmod command.


I had a feeling i might have to ask my ISP, they seem
cool they might do it, 
unless there is a security concern about changing the
permisson's of said 
directory. I seriously doubt they will enable the
'chmod' command, i think that 
would be a security concern. No i don't have ssh
access. I will ask them to 
change the permission's, if that doesn't work, i will
keep working on it.
Thank's for the reply marek, your a life saver, and a
*time saver*.

stratis.

__
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] How can i enable SSL support?

2003-09-22 Thread Astron of BrOnX
Hi all, i need to enable ssl support for windows version of php but when i
have enabled ssl support from php.ini like;

extension=extensions/php_openssl.dll

php says PHP Warning: Unknown(): Unable to load dynamic library
'./extensions/php_openssl.dll' - The specified module could not be found. in
Unknown on line 0

It is very strange.. Because when i have enabled GD lib like;

extension=extensions/php_gd2.dll

there isnt any error. php_openssl.dll is in c:\php\extensions directory.
Seems to be everything is okay. But still given error.   I have been using
php4.3.3 + IIS5.1

Do you have any idea?

Thanks,
Astron

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



Re: [PHP] Clear ALL Cookies previously set

2003-09-22 Thread Marek Kilimajer
Eugene Lee wrote:

But I don't know what might happen if you use setcookie() to expire a
cookie and then use setcookie() later on to set the same cookie.
www.php.net/set_cookie :

 In PHP 3, multiple calls to setcookie() in the same script will be 
performed in reverse order. If you are trying to delete one cookie 
before inserting another you should put the insert before the delete. In 
PHP 4, multiple calls to setcookie() are performed in the order called.

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


[PHP] How can i enable SSL support?

2003-09-22 Thread Astron of BrOnX
Hi all, i need to enable ssl support for windows version of php but when i
have enabled ssl support from php.ini like;

extension=extensions/php_openssl.dll

php says PHP Warning: Unknown(): Unable to load dynamic library
'./extensions/php_openssl.dll' - The specified module could not be found. in
Unknown on line 0

It is very strange.. Because when i have enabled GD lib like;

extension=extensions/php_gd2.dll

there isnt any error. php_openssl.dll is in c:\php\extensions directory.
Seems to be everything is okay. But still given error.   I have been using
php4.3.3 + IIS5.1

Do you have any idea?

Thanks,
Astron

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



[PHP] undefined function recode_string()

2003-09-22 Thread Justin French
Hi all,

PHP 4.3.2 on OS X 10.2.6, and I'm attempting to use the recode() or 
recode_string() function... both functions (one is an alias to the 
other) come back with:

Fatal error:  Call to undefined function: recode() in .../recode.php on 
line 12

I can't see any notes about compiles, extra requirements, 
installations, etc etc -- it just says "(PHP 3>= 3.0.13, PHP 4)".

Can anyone shed any light on this?

Thanks,

Justin French

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


Re: [PHP] Fwd: confirm subscribe to php-general@lists.php.net

2003-09-22 Thread Marek Kilimajer
Good joke ;)

Lisa M. White wrote:

HI YES IM SERIOUS,LISA WHITE



Subject:
confirm subscribe to [EMAIL PROTECTED]
From:
[EMAIL PROTECTED]
Date:
19 Sep 2003 20:17:52 -
To:
[EMAIL PROTECTED]
Hi! This is the ezmlm program. I'm managing the
[EMAIL PROTECTED] mailing list.
I'm working for my owner, who can be reached
at [EMAIL PROTECTED]
To confirm that you would like

   [EMAIL PROTECTED]

added to the php-general mailing list, please send
an empty reply to this address:
   [EMAIL PROTECTED]

Usually, this happens when you just hit the "reply" button.
If this does not work, simply copy the address and paste it into
the "To:" field of a new message.
or click here:
mailto:[EMAIL PROTECTED]
This confirmation serves two purposes. First, it verifies that I am able
to get mail through to you. Second, it protects you in case someone
forges a subscription request in your name.
Some mail programs are broken and cannot handle long addresses. If you
cannot reply to this request, instead send a message to
<[EMAIL PROTECTED]> and put the
entire address listed above into the "Subject:" line.
--- Administrative commands for the php-general list ---

I can handle administrative requests automatically. Please
do not send them to the list address! Instead, send
your message to the correct command address:
For help and a description of available commands, send a message to:
   <[EMAIL PROTECTED]>
To subscribe to the list, send a message to:
   <[EMAIL PROTECTED]>
To remove your address from the list, just send a message to
the address in the ``List-Unsubscribe'' header of any list
message. If you haven't changed addresses since subscribing,
you can also send a message to:
   <[EMAIL PROTECTED]>
or for the digest to:
   <[EMAIL PROTECTED]>
For addition or removal of addresses, I'll send a confirmation
message to that address. When you receive it, simply reply to it
to complete the transaction.
If you need to get in touch with the human owner of this list,
please send a message to:
<[EMAIL PROTECTED]>

Please include a FORWARDED list message with ALL HEADERS intact
to make it easier to help you.
--- Enclosed is a copy of the request I received.

Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 81126 invoked by uid 1010); 19 Sep 2003 20:17:52 -
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 81102 invoked from network); 19 Sep 2003 20:17:51 -
Received: from unknown (HELO rn2.php.net) (67.72.78.18)
  by pb1.pair.com with SMTP; 19 Sep 2003 20:17:51 -
Received: (qmail 7557 invoked by uid 522); 19 Sep 2003 20:15:49 -
Date: 19 Sep 2003 20:15:49 -
Message-ID: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: PHP Mailing List Website Subscription
From: [EMAIL PROTECTED]
This was a request generated from the form at http://us2.php.net/mailing-lists.php by 65.241.90.162.


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


Re: [PHP] How can i enable SSL support?

2003-09-22 Thread Astron of BrOnX
Ohh god thank you.. It is okay now.. I have looked up info and i have seen
OpenSSL is enable.. But still i have problem,  when i try to connect with
this code,

$sock = fsockopen("ssl://$host", 443, $errno, $errstr, 30);

and it says,
Warning: fsockopen(): no SSL support in this build in


but seems to be SSL is enable in the phpinfo();

thanks
Astron


"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Do you have libeay32.dll in your windows system directory?
>
> Astron of BrOnX wrote:
> > Hi all, i need to enable ssl support for windows version of php but when
i
> > have enabled ssl support from php.ini like;
> >
> > extension=extensions/php_openssl.dll
> >
> > php says PHP Warning: Unknown(): Unable to load dynamic library
> > './extensions/php_openssl.dll' - The specified module could not be
found. in
> > Unknown on line 0
> >
> > It is very strange.. Because when i have enabled GD lib like;
> >
> > extension=extensions/php_gd2.dll
> >
> > there isnt any error. php_openssl.dll is in c:\php\extensions directory.
> > Seems to be everything is okay. But still given error.   I have been
using
> > php4.3.3 + IIS5.1
> >
> > Do you have any idea?
> >
> > Thanks,
> > Astron
> >

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



Re: [PHP] undefined function recode_string()

2003-09-22 Thread Marek Kilimajer
www.php.net/recode - Installation section

Justin French wrote:

Hi all,

PHP 4.3.2 on OS X 10.2.6, and I'm attempting to use the recode() or 
recode_string() function... both functions (one is an alias to the 
other) come back with:

Fatal error:  Call to undefined function: recode() in .../recode.php on 
line 12

I can't see any notes about compiles, extra requirements, installations, 
etc etc -- it just says "(PHP 3>= 3.0.13, PHP 4)".

Can anyone shed any light on this?

Thanks,

Justin French

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


Re: [PHP] undefined function recode_string()

2003-09-22 Thread Justin French
On Monday, September 22, 2003, at 06:28  PM, Marek Kilimajer wrote:

www.php.net/recode - Installation section
Thanks, I should have looked up the tree a little further :)

Justin

--
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-22 Thread Eugene Lee
On Sun, Sep 21, 2003 at 09:10:16AM -0700, Raquel Rice wrote:
: 
: On Wed, 17 Sep 2003 21:22:36 +1000
: Justin French <[EMAIL PROTECTED]> wrote:
: 
: > I posted a similar topic a few months back.  I guess the answer is
: > that the collaborative nature of open source, and the fact that
: > PHP has grown from very humble beginnings has meant that naming
: > standards and conventions are a little lacking.
: > 
: > It would've been nice if these issues were rectified in PHP5 with 
: > deprecated aliases to the old names left in for backwards 
: > compatibility, but it'd be a HUGE job :)
: 
: I suppose that if this really bothers someone, they could create
: their own aliases.
: 
: function decodehtmlentities($string, $quote_style, $charset) {
: return html_entity_decode($string, $quote_style, $charset);
: }

That's simply an additional function call, which slows things down just
a little more.  But it's probably still faster than object methods.  :-)

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



Re: [PHP] Re: forcing variable expansion

2003-09-22 Thread Eugene Lee
On Sun, Sep 21, 2003 at 03:01:41PM -0400, Rich Fox wrote:
: "Eugene Lee" <[EMAIL PROTECTED]> wrote:
: >
: > If I have a block of text saved in an external text file, e.g.:
: >
: > All {$badstuff} and no {$goodstuff} makes {$name} a dull {$type}.
: >
: > after reading the text into a string, is there a way to force variable
: > expansion?  In a sense, it's like having a heredoc for multiline strings
: > with variable expansion while not having the heredoc embedded in PHP code.

Question already answered by another helpful soul: use eval().

: That's not Eugene from the dojo is it?

Hmmm?  What dojo?

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



Re: [PHP] Clear ALL Cookies previously set

2003-09-22 Thread Eugene Lee
On Mon, Sep 22, 2003 at 10:18:21AM +0200, Marek Kilimajer wrote:
: 
: Eugene Lee wrote:
: >
: >But I don't know what might happen if you use setcookie() to expire a
: >cookie and then use setcookie() later on to set the same cookie.
: 
: www.php.net/set_cookie :
: 
:  In PHP 3, multiple calls to setcookie() in the same script will be 
: performed in reverse order. If you are trying to delete one cookie 
: before inserting another you should put the insert before the delete. In 
: PHP 4, multiple calls to setcookie() are performed in the order called.

This only explains how cookies are sent from a PHP script.  My question
(sorry, should've been clearer) deals with how the browser handles such
multiple cookies.

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



[PHP] PHP Editor - which to use?

2003-09-22 Thread Binay
Hi everybody!

Please suggest me  a good PHP editor like ( Microsoft's Interdev for ASP) to write my 
php programs/scripts and get a visual feel.


Thanks 
Binay


Re: [PHP] search result

2003-09-22 Thread Marek Kilimajer
As a newbie you should read some tutorials. Check out 
http://www.php.net/links.php sections "Complex PHP Related Sites" and 
"PHP Tutorials".

phpu wrote:

Finally I got it.
Thanks a lot
- Original Message -
From: "phpu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 22, 2003 1:36 AM
Subject: Re: [PHP] search result


I have tried but didn't work. I think i'm going crazy. I don't know how to
do it...


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


RE: [PHP] PHP Editor - which to use?

2003-09-22 Thread Ruessel, Jan
well, i like to use dreamweaver mx or textpad with the syntax highlighting file you 
additionally have to download. i dunno if there are special "php-must-have-editors".
grtz
jan

-Original Message-
From: Binay [mailto:[EMAIL PROTECTED]
Sent: Montag, 22. September 2003 10:58
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Editor - which to use?


Hi everybody!

Please suggest me  a good PHP editor like ( Microsoft's Interdev for ASP) to write my 
php programs/scripts and get a visual feel.


Thanks 
Binay

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



Re: [PHP] PHP Editor - which to use?

2003-09-22 Thread Ryan A
Hey
Personally I dont think any 1 is good for all purposes...I use a combination
of Dreamweaver MX, Zend and PHPEdit.

HTH.
Cheers,
-Ryan


We will slaughter you all! - The Iraqi (Dis)information ministers site
http://MrSahaf.com


- Original Message - 
From: "Ruessel, Jan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 22, 2003 11:00 AM
Subject: RE: [PHP] PHP Editor - which to use?


well, i like to use dreamweaver mx or textpad with the syntax highlighting
file you additionally have to download. i dunno if there are special
"php-must-have-editors".
grtz
jan

-Original Message-
From: Binay [mailto:[EMAIL PROTECTED]
Sent: Montag, 22. September 2003 10:58
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Editor - which to use?


Hi everybody!

Please suggest me  a good PHP editor like ( Microsoft's Interdev for ASP) to
write my php programs/scripts and get a visual feel.


Thanks
Binay

-- 
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] Recursive class trouble

2003-09-22 Thread Christoffer Enedahl
I'm trying to do some recursive work with classes. And I run in to problems
executing the recursive actions outside the constructor.
I've narrowed it down to this, its simply returning levelnumbers as of know,
but the problem still exists.

this does not work, it only goes to level 2, where is should go to level 5:

class Recurse {
 var $level;
 var $children;

 function Recurse($ParentLevel = 0){
  $this->children = array();
  $this->level = $ParentLevel+1;
  //$this->parse();
 }

 function parse(){
  if ($this->level < 5){
   for ($i = 0; $i<= $this->level;$i++){
array_push( $this->children, new Recurse( $this->level ) );
   }
  }
 }

 function getHtml(){
  $text = "$this->level";
  foreach ($this->children as $child){
   if (is_object($child)) $text .= $child->getHtml();
  }
  $text .= "";

  return $text;
 }

}

$n = new Recurse();
$n->parse();
echo $n->getHtml();

However. If i do
$this->parse();
within the constructor function, it works like a charm. (remember to
outcomment $n->parse();)
This is really not what I want to do in my real class.
Is there any way to fix this without moving the parse execution within the
contructor?

/Christoffer
PHP Version 4.2.3



[PHP] need something like recode() that works on base PHP4.x install

2003-09-22 Thread Justin French
Hi all,

I wish to take advantage of something like recode(), but my main ISP 
doesn't support the function.

I'm only concerned with one or two character sets (like ISO-8859-1), so 
full support of what recode() is capable of is not so important.

htmlspecialchars() mentions that it deals with character sets, but I 
think it references the INPUT charset, not the OUTPUT charset -- 
correct?  I thought maybe I could use it as a cheats way in, then just 
convert the chars back :)

Justin

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


[PHP] Working with PHP Class Within Javascript

2003-09-22 Thread Harry Yau
Hi all,
I am writing a HTML page to gather whole bunch of information
provided by user and pass it to the PHP script to generate a report base
on these information. Namely, user inputs data in textfields of a HTML
FORM. Since, there is a lot of fields in the field, when the form
submitted, the URL to the PHP script become very long.
I am wondering two way to solve this problem.
First, I create a PHP Class to store all Infomation and using
JavaScript function in the HTML page to "PUT" those value of fields into
my PHP Class Object. Then pass the PHP Class Object to the PHP script.
However, I wondering is it possible for the JaveScript function to
manipulate the PHP Class Object, and How? How could I Call the PHP Class
Constructor inside the JavaScript function?? Moreover, How could I pass
the PHP Class Object from the HTML page to the PHP Script?? Is it
possible to do so??

Second solution I've thought of was writing another PHP function
inside the  HTML page and doing the job as the JavaScript function.
However, I have no I idea how could the HTML page call the PHP function
when the user submitted the HTML FORM. Once again, How could I pass the
PHP Class Object from the HTML page to the PHP Script at the end??

Thank You Very Much!

Best Regards,
Harry yau

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



[PHP] How to achieve bi-directional communication between two servers?

2003-09-22 Thread Daevid Vincent
I have a script on all my client machines that checks into a master server
to dump statistical information into a mysql database. That works great
(using $_GET and an encrypted string). However, now I'd like to have the
client check in to the master and see if it needs any updates. If so, it
will set flags in its own database. How do I establish the link back without
the client running a webserver of it's own?

Scenario:

Client checks into master Update server and blindly dumps it's statistics
into the master database.

Master database wants to give the client more data to process or update a
field in the client's own database.

Client accepts the data from the master, changes it's own database, and
reports back an ACK that it was successful.

Master marks it's own database that the handshake happened and both are in
synch.


Now, I've seen this NuSOAP thing that that seems to do this concept, however
it's a bit overkill for my needs and I also don't want to be dependant upon
a 'third party' software for this task. Also, my XML is not so good ;-)

Is http://us3.php.net/function.fsockopen what I need? Whatever the solution,
it is mission critical that it works. I'll be tunneling through SSL too, but
that should be transparent I'd think.

Daevid Vincent
http://daevid.com
 

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



Re: [PHP] PHP "Smart Refresh" for looping server lookups

2003-09-22 Thread Marek Kilimajer
You can use a hidden iframe that would regularly refresh and if new 
messages are waiting send some javascript. In this javascript use DOM 
functions to insert the new message into the page.

[EMAIL PROTECTED] wrote:

This may sound a bit long and drawn out, but I'll try my best to summarize 
what I'm having trouble with. Roughly 2 weeks ago I began writing scripts to run 
a free TagBoard service. (Examples: Tag-Board.com and [mine] MyTagBoard.com) 
- my 2-week-long goal was to compile a list of features (based on 3 or 4 
tagboard sites) and add those to this set of scripts.

I was successful in pretty much all the features and more, except for one: 
"Smart Refresh". The tagboards currently refresh at a rate of xx seconds, set by 
the tagboard owner. Other sites have managed to design the tagboard to 
refresh ONLY when a new tag exists on the server, simulating a "live chat". My 
question is, how is this "Smart Refresh" done? How does a page that's loaded, just 
"sit there" and still be able to take a peek at the server without just 
refreshing the whole page? It's mind-boggling, even for me. :-D

I'm not looking for actual code; that part I can do; I'm just looking for a 
basic "what does what" procedure on how it's done. Any thoughts on this would 
be very greatful! Thanks in advance =)

 ~ Tim

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


[PHP] RE : [PHP] PHP Editor - which to use?

2003-09-22 Thread BENARD Jean-philippe
Not a "php-must-have-editors" but useful ones, for example, are phpEd
and Zend Studio (text completion, functions library, ...). I found that
Zend Studio is a good one because of internal CVS connexions, work on
UNIX & Windows systems, Project managements, ... I think it's a good
choice for a professional use.

Cordialement,
Jean-Philippe BENARD
Consultant STERIA Infogérance
([EMAIL PROTECTED])
-Message d'origine-
De : Ruessel, Jan [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 22 septembre 2003 11:00
À : [EMAIL PROTECTED]
Objet : RE: [PHP] PHP Editor - which to use?

well, i like to use dreamweaver mx or textpad with the syntax
highlighting file you additionally have to download. i dunno if there
are special "php-must-have-editors".
grtz
jan

-Original Message-
From: Binay [mailto:[EMAIL PROTECTED]
Sent: Montag, 22. September 2003 10:58
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Editor - which to use?


Hi everybody!

Please suggest me  a good PHP editor like ( Microsoft's Interdev for
ASP) to write my php programs/scripts and get a visual feel.


Thanks 
Binay

-- 
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] RE : [PHP] PHP Editor - which to use?

2003-09-22 Thread Duncan Hill
On Monday 22 Sep 2003 11:35, BENARD Jean-philippe wrote:
> Not a "php-must-have-editors" but useful ones, for example, are phpEd
> and Zend Studio (text completion, functions library, ...). I found that
> Zend Studio is a good one because of internal CVS connexions, work on
> UNIX & Windows systems, Project managements, ... I think it's a good
> choice for a professional use.

Another vote for Zend.  I tend to use vi, but I'm loving the CVS integration 
and code completion capabilities of Zend.  Now to get my manager to buy me 
the full copy :)  Now, if only I could find out how to tell it that it 
doesn't need DB.php in the project, but to reference it as an external 
library!  (Where DB.php is the PEAR code.)

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



[PHP] XHTML / CSS

2003-09-22 Thread Decapode Azur
First, excuse-me for this out of topic message.

I am searching a good mailling-list for people trying to write standard 
XHTML and CSS.



thanks

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



[PHP] fileowner function and Windows OS

2003-09-22 Thread ermelir
Hello list,

I try to use fileower function on php 4.3.2 + Apache 2.047+ Xp pro system.
this function doesn't seem to work : for each existing files, function 
always returns 0.
documentation doesn't notice some  bugs  on Windows OS, and I would 
share your experience about your use on these OS.
thanks in advance for yours answers
best regards

Ermelir

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


RE: [PHP] php|cruise

2003-09-22 Thread Jay Blanchard
[snip]
Is anyone planning on going to this?

http://www.phparch.com/cruise/

I'm trying to go. It would be nice to put a face to the name with a few 
people out there. Let me know.
[/snip]

I am trying to get the company to pay for it. The problem is I have
added 2 more developers to the staff, so I may have short-circuited my
budget, but the request is in.

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



[PHP] Start php-script with exec()?

2003-09-22 Thread Victor Spång Arthursson
Is it possible?

I have a file that takes 5 minutes to run, and I would like to be able 
to start it when loading a page. But I can't include it because it 
forces the browser to timeout…

exec("script.php") doesn't seem to work…

Sincerely

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


[PHP] Re: fileowner function and Windows OS

2003-09-22 Thread Simon Thurtle
I use WINSyntax married with Dreamweaver MX. WINsyntax is free and superb I
recommend that you have a quick look at before you look any where else!

"ermelir" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello list,
>
> I try to use fileower function on php 4.3.2 + Apache 2.047+ Xp pro system.
> this function doesn't seem to work : for each existing files, function
> always returns 0.
> documentation doesn't notice some  bugs  on Windows OS, and I would
> share your experience about your use on these OS.
> thanks in advance for yours answers
> best regards
>
> Ermelir
>
> -- 
> 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] Start php-script with exec()?

2003-09-22 Thread Jay Blanchard
[snip]
Is it possible?

I have a file that takes 5 minutes to run, and I would like to be able 
to start it when loading a page. But I can't include it because it 
forces the browser to timeout...

exec("script.php") doesn't seem to work...
[/snip]

exec needs a little more information, and will the exec'd script need to return 
information to the browser?

exec("php script.php"); will run the script.

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



Re: [PHP] Start php-script with exec()?

2003-09-22 Thread Victor Spång Arthursson
måndagen den 22 september 2003 kl 14.31 skrev Jay Blanchard:

exec("php script.php"); will run the script.
How does this look on a OSX/UNIX system? Can the path to php be found 
in a system variable, for convinience and portability of the script?

Sincerely

Victor

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


RE: [PHP] Start php-script with exec()?

2003-09-22 Thread Jay Blanchard
[snip]
måndagen den 22 september 2003 kl 14.31 skrev Jay Blanchard:

> exec("php script.php"); will run the script.

How does this look on a OSX/UNIX system? Can the path to php be found 
in a system variable, for convinience and portability of the script?
[/snip]

As usual for *nix type 'which php' which will return the path to the PHP executable. 
For portability you could then do something to the effect of (not tested)

$pathPHP = exec("which php");
exec("$pathPHP script.php");

If you know the path to PHP you can include a bash line at the top of the script and 
remove the php call from the exec.

#!/usr/local/bin/php //(top line of script)

exec("script.php");

See http://www.php.net/manual/en/features.commandline.php for more details

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



Re: [PHP] Start php-script with exec()?

2003-09-22 Thread Victor Spång Arthursson
måndagen den 22 september 2003 kl 14.52 skrev Jay Blanchard:

As usual for *nix type 'which php' which will return the path to the 
PHP executable. For portability you could then do something to the 
effect of (not tested)
which() doesn't resolve the path, but I found out it was 
/usr/local/php/bin/php.

But how do I make the call

		exec("/usr/local/php/bin/php process1.php");

so that the page from which the call is made doesnt wait for the result 
but instead just continues?

Sincerely,

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


RE: [PHP] Session and Server variable problem

2003-09-22 Thread Stephen Schneider
Thanks, but no.  On the page not setting the cookie and the php.ini
isn't setting it to either.  But the .ini isn't setting it at all.
Could I put in there the .net address or .com address?  Better yet, can
I put 2 addresses, probably not.

Stephen

-Original Message-
From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 3:23 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] Session and Server variable problem


From: "Stephen Schneider" <[EMAIL PROTECTED]>

> Have an interesting problem.  Worked on a web site for a client.  They

> have the server (IIS) set up and we are using php.  Have been working 
> with their domain with a .net extension.  To go live, they repointed 
> their .com domain to the web folder.  Same spot the .net points to.  
> But now server and session variables aren't working.  They still work 
> if we use .net but not .com.  Can't set or read them.  Anyone run into

> this before?

Sessions, by default, rely on cookies to propogate the session ID. You
are somehow setting the "domain" of the cookie to the .net address, more
than likely.

There are a multitude of ways you can do it, though. Check your
session.cookie_domain in php.ini. Check if it's being set with
session_set_cookie_params() or ini_set() or if the cookie is being
created manually with setcookie().

---John Holmes...

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



RE: [PHP] Start php-script with exec()?

2003-09-22 Thread Jay Blanchard
[snip]
> As usual for *nix type 'which php' which will return the path to the 
> PHP executable. For portability you could then do something to the 
> effect of (not tested)

which() doesn't resolve the path, but I found out it was 
/usr/local/php/bin/php.

But how do I make the call

exec("/usr/local/php/bin/php process1.php");

so that the page from which the call is made doesnt wait for the result 
but instead just continues?
[/snip]

use & (not tested, but runs other processes as background processes)

exec("/usr/local/php/bin/php process1.php &");

>From http://www.php.net/exec : If you start a program using this function and want to 
>leave it running in the background, you have to make sure that the output of that 
>program is redirected to a file or some other output stream or else PHP will hang 
>until the execution of the program ends. 

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



Re: [PHP] Start php-script with exec()?

2003-09-22 Thread Marek Kilimajer
exec("/usr/local/php/bin/php process1.php & ");

process executes in the background

Victor Spång Arthursson wrote:
måndagen den 22 september 2003 kl 14.52 skrev Jay Blanchard:

As usual for *nix type 'which php' which will return the path to the 
PHP executable. For portability you could then do something to the 
effect of (not tested)


which() doesn't resolve the path, but I found out it was 
/usr/local/php/bin/php.

But how do I make the call

exec("/usr/local/php/bin/php process1.php");

so that the page from which the call is made doesnt wait for the result 
but instead just continues?

Sincerely,

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


Re: [PHP] XHTML / CSS

2003-09-22 Thread Lowell Allen
> First, excuse-me for this out of topic message.
> 
> I am searching a good mailling-list for people trying to write standard
> XHTML and CSS.

css-discuss 

--
Lowell Allen

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



Re: [PHP] PHP Editor - which to use?

2003-09-22 Thread Becoming Digital
I'm a big fan of ActiveState Komodo, largely because it handles PHP, Perl, Python, and 
others.  While most of my work is done in PHP, it's nice not having to switch editors 
when trying to port code to or from another language.  

I must agree with Ryan that there is no 1 app to use.  Dreamweaver MX is a staple in 
anyone's software library, especially for visual development, and Zend Studio is 
another great app.  However, what I like about either, you may not so you'll really 
just have to try out the numerous demos and find what works for you.

Edward Dudlik
Becoming Digital
www.becomingdigital.com


wishes | www.amazon.com/o/registry/EGDXEBBWTYUU


- Original Message - 
From: "Ryan A" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, 22 September, 2003 05:07
Subject: Re: [PHP] PHP Editor - which to use?


Hey
Personally I dont think any 1 is good for all purposes...I use a combination
of Dreamweaver MX, Zend and PHPEdit.

HTH.
Cheers,
-Ryan


We will slaughter you all! - The Iraqi (Dis)information ministers site
http://MrSahaf.com


- Original Message - 
From: "Ruessel, Jan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 22, 2003 11:00 AM
Subject: RE: [PHP] PHP Editor - which to use?


well, i like to use dreamweaver mx or textpad with the syntax highlighting
file you additionally have to download. i dunno if there are special
"php-must-have-editors".
grtz
jan

-Original Message-
From: Binay [mailto:[EMAIL PROTECTED]
Sent: Montag, 22. September 2003 10:58
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Editor - which to use?


Hi everybody!

Please suggest me  a good PHP editor like ( Microsoft's Interdev for ASP) to
write my php programs/scripts and get a visual feel.


Thanks
Binay

-- 
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] Re: forcing variable expansion

2003-09-22 Thread Rich Fox
Sorry, we have a Eugene Lee at my aikido school and it's such an unusual
name I thought you might be him.

"Eugene Lee" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Sun, Sep 21, 2003 at 03:01:41PM -0400, Rich Fox wrote:
> : "Eugene Lee" <[EMAIL PROTECTED]> wrote:
> : >
> : > If I have a block of text saved in an external text file, e.g.:
> : >
> : > All {$badstuff} and no {$goodstuff} makes {$name} a dull {$type}.
> : >
> : > after reading the text into a string, is there a way to force variable
> : > expansion?  In a sense, it's like having a heredoc for multiline
strings
> : > with variable expansion while not having the heredoc embedded in PHP
code.
>
> Question already answered by another helpful soul: use eval().
>
> : That's not Eugene from the dojo is it?
>
> Hmmm?  What dojo?

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



Re: [PHP] non-php issue

2003-09-22 Thread Becoming Digital
> All security advantages aside, I prefer linux because everytime I
> install a new program or service I don't need to reboot :)

Yeah, but in the time you spend resolving RPM package dependencies, re-compiling the 
application, checking in and out of CVS, etc, all trying to install the damn thing 
once, you could have rebooted WinBlows 1,000 times. ;)

Edward Dudlik
Becoming Digital, a Tri-OS company.
www.becomingdigital.com


wishes | www.amazon.com/o/registry/EGDXEBBWTYUU


- Original Message - 
From: "Robert Cummings" <[EMAIL PROTECTED]>
To: "Raditha Dissanayake" <[EMAIL PROTECTED]>
Cc: "Peter James" <[EMAIL PROTECTED]>; "PHP-General" <[EMAIL PROTECTED]>
Sent: Monday, 22 September, 2003 01:08
Subject: Re: [PHP] non-php issue


On Mon, 2003-09-22 at 01:09, Raditha Dissanayake wrote:
> relax guys,
> 
> I have been dying to say  "You can fix all of your problems by 
> formatting your computer and installing a linux distribution."  On this 
> list for ages :-)
> 
> but the fact remains that an out of the box installation of any of the 
> linux distros are far more secure than anything putout by that redmond 
> company.

All security advantages aside, I prefer linux because everytime I
install a new program or service I don't need to reboot :)

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
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] Start php-script with exec()?

2003-09-22 Thread Victor Spång Arthursson
måndagen den 22 september 2003 kl 15.04 skrev Jay Blanchard:

use & (not tested, but runs other processes as background processes)

		exec("/usr/local/php/bin/php process1.php &");
Think that works as well; my solution was "> /dev/null &"…

Now the big question is if I will get it to work on a windows-server 
using exec("php script.php args >NUL") ;)

Sincerely

Victor

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


[PHP] There is an error with SSL support.

2003-09-22 Thread Astron of BrOnX
Hi all, i have been trying to connect a server which has SSL support.. I
have enabled SSL support from php.ini which lines,

extensition=extensitions/php_openssl.dll;

When i looked up phpinfo() for information, It says, OpenSSL support is
enable and seems to be okay.. But tyring to use this code;

$sock = fsockopen("ssl://$host", 443, $errno, $errstr, 30);

i have still an error which is;

Warning: fsockopen(): no SSL support in this build in
c:\inetpub\wwwroot\cenebaz\test.php on line 4

Warning: fsockopen(): unable to connect to www.a1.net:443 in
c:\inetpub\wwwroot\cenebaz\test.php on line 4
The operation completed successfully. (0)

The same code running on linux system correctly. But on windows not..

If you have any idea to share with me i will be pleased to all of you.

Thanks,
Astron

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



Re: [PHP] There is an error with SSL support.

2003-09-22 Thread Marek Kilimajer
What version of php do you have. ssl:// is available only since 4.3.0

Astron of BrOnX wrote:

Hi all, i have been trying to connect a server which has SSL support.. I
have enabled SSL support from php.ini which lines,
extensition=extensitions/php_openssl.dll;

When i looked up phpinfo() for information, It says, OpenSSL support is
enable and seems to be okay.. But tyring to use this code;
$sock = fsockopen("ssl://$host", 443, $errno, $errstr, 30);

i have still an error which is;

Warning: fsockopen(): no SSL support in this build in
c:\inetpub\wwwroot\cenebaz\test.php on line 4
Warning: fsockopen(): unable to connect to www.a1.net:443 in
c:\inetpub\wwwroot\cenebaz\test.php on line 4
The operation completed successfully. (0)
The same code running on linux system correctly. But on windows not..

If you have any idea to share with me i will be pleased to all of you.

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


Re: [PHP] Start php-script with exec()?

2003-09-22 Thread Victor Spång Arthursson
Ok, it works fine on my development server with Mac OS X. But the 
hosting server seems to be WinNT, and on this it doesnt work.

Anyone who can help me with some standard paths to php.exe? "c:\php\" 
Doesnt work ;)

Sincerely

Victor

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


Re: [PHP] Start php-script with exec()?

2003-09-22 Thread Marek Kilimajer
Ask your hosting company. Are you sure they will allow you to execute 
commands? Check phpinfo - safe mode and disabled functions.

Victor Spång Arthursson wrote:

Ok, it works fine on my development server with Mac OS X. But the 
hosting server seems to be WinNT, and on this it doesnt work.

Anyone who can help me with some standard paths to php.exe? "c:\php\" 
Doesnt work ;)

Sincerely

Victor

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


Re: [PHP] non-php issue

2003-09-22 Thread Robert Cummings
Time to shutdown, reboot, and log into admin account on windows on an
AMD 2400+: 6 minutes 37 seconds

Time to ./configure AND compile apache 1.3.28 under linux: 30 seconds

Time to ./configure AND compile php 4.3.3 under linux: 2 minutes 16
seconds

Time to ./configure AND compile mysql 4.0.15a under linux: 7 minutes 34
seconds

--

Availability of computer during windows reboot: 0%

Availability of linux computer during compilations: anywhere from 50% to
90%

I think your math with respect to 1,000 times is off by a little. maybe
999 >:)

Cheers,
Rob.


On Mon, 2003-09-22 at 09:34, Becoming Digital wrote:
> > All security advantages aside, I prefer linux because everytime I
> > install a new program or service I don't need to reboot :)
> 
> Yeah, but in the time you spend resolving RPM package dependencies, re-compiling the 
> application, checking in and out of CVS, etc, all trying to install the damn thing 
> once, you could have rebooted WinBlows 1,000 times. ;)
> 
> Edward Dudlik
> Becoming Digital, a Tri-OS company.
> www.becomingdigital.com
> 
> 
> wishes | www.amazon.com/o/registry/EGDXEBBWTYUU
> 
> 
> - Original Message - 
> From: "Robert Cummings" <[EMAIL PROTECTED]>
> To: "Raditha Dissanayake" <[EMAIL PROTECTED]>
> Cc: "Peter James" <[EMAIL PROTECTED]>; "PHP-General" <[EMAIL PROTECTED]>
> Sent: Monday, 22 September, 2003 01:08
> Subject: Re: [PHP] non-php issue
> 
> 
> On Mon, 2003-09-22 at 01:09, Raditha Dissanayake wrote:
> > relax guys,
> > 
> > I have been dying to say  "You can fix all of your problems by 
> > formatting your computer and installing a linux distribution."  On this 
> > list for ages :-)
> > 
> > but the fact remains that an out of the box installation of any of the 
> > linux distros are far more secure than anything putout by that redmond 
> > company.
> 
> All security advantages aside, I prefer linux because everytime I
> install a new program or service I don't need to reboot :)
> 
> Cheers,
> Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



[PHP] using submit button and PHP-HELP

2003-09-22 Thread Angelo Zanetti
Hi,

I have a form that has a submit button in it, when the button is pressed I
want it to reload the same page, with the same URL, however when I click on
the submit button, the URL that it produces is http://whatever.php? then the
name of my submit button = value for example:





Request this abstract!



this gives a URL of:

http://localhost/ebLatest/indpaper.php?reqPaper=Request

instead of the previous URL that was .php?ID=110

What I want to know is why the name and value of the submit button are being
displayed in the URL?
also why doesnt the ?php echo($PHP_SELF); work???

thanx in advance.
Angelo

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



Re: [PHP] There is an error with SSL support.

2003-09-22 Thread Astron of BrOnX
himm 4.3.3 it is new version.?

Thanks,
Astron

"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> What version of php do you have. ssl:// is available only since 4.3.0
>
> Astron of BrOnX wrote:
>
> > Hi all, i have been trying to connect a server which has SSL support.. I
> > have enabled SSL support from php.ini which lines,
> >
> > extensition=extensitions/php_openssl.dll;
> >
> > When i looked up phpinfo() for information, It says, OpenSSL support is
> > enable and seems to be okay.. But tyring to use this code;
> >
> > $sock = fsockopen("ssl://$host", 443, $errno, $errstr, 30);
> >
> > i have still an error which is;
> >
> > Warning: fsockopen(): no SSL support in this build in
> > c:\inetpub\wwwroot\cenebaz\test.php on line 4
> >
> > Warning: fsockopen(): unable to connect to www.a1.net:443 in
> > c:\inetpub\wwwroot\cenebaz\test.php on line 4
> > The operation completed successfully. (0)
> >
> > The same code running on linux system correctly. But on windows not..
> >
> > If you have any idea to share with me i will be pleased to all of you.
> >
> > Thanks,
> > Astron
> >

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



Re: [PHP] Start php-script with exec()?

2003-09-22 Thread Victor Spång Arthursson
måndagen den 22 september 2003 kl 16.11 skrev Marek Kilimajer:

Ask your hosting company. Are you sure they will allow you to execute 
commands? Check phpinfo - safe mode and disabled functions.
Asked them and they told it was a mistake we had php on the server - 
according to them it was either php OR asp. I quickly thanked and hung 
up.

So now the question stands to you folks on this list ;)

Sincerely

Victor

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


Re: [PHP] using submit button and PHP-HELP

2003-09-22 Thread Marek Kilimajer
Angelo Zanetti wrote:

Hi,

I have a form that has a submit button in it, when the button is pressed I
want it to reload the same page, with the same URL, however when I click on
the submit button, the URL that it produces is http://whatever.php? then the
name of my submit button = value for example:

   ^   
register_globals --+   |
use $_SERVER['PHP_SELF'] instead   |
   |
should be "method" +



^^^  ^^
where is this variable set? +|
 |
empty name --+
Request this abstract!


this gives a URL of:

http://localhost/ebLatest/indpaper.php?reqPaper=Request

instead of the previous URL that was .php?ID=110

What I want to know is why the name and value of the submit button are being
displayed in the URL?
Because when the submit button is clicked, the button becomes 
"succesfull" (official term) and the name/value pair is sent in the request.

also why doesnt the ?php echo($PHP_SELF); work???

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


Re: [PHP] There is an error with SSL support.

2003-09-22 Thread Astron of BrOnX
So that, what can i do to connect SSL server in this version (4.3.3)

Astron

"Astron Of Bronx" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> himm 4.3.3 it is new version.?
>
> Thanks,
> Astron
>
> "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > What version of php do you have. ssl:// is available only since 4.3.0
> >
> > Astron of BrOnX wrote:
> >
> > > Hi all, i have been trying to connect a server which has SSL support..
I
> > > have enabled SSL support from php.ini which lines,
> > >
> > > extensition=extensitions/php_openssl.dll;
> > >
> > > When i looked up phpinfo() for information, It says, OpenSSL support
is
> > > enable and seems to be okay.. But tyring to use this code;
> > >
> > > $sock = fsockopen("ssl://$host", 443, $errno, $errstr, 30);
> > >
> > > i have still an error which is;
> > >
> > > Warning: fsockopen(): no SSL support in this build in
> > > c:\inetpub\wwwroot\cenebaz\test.php on line 4
> > >
> > > Warning: fsockopen(): unable to connect to www.a1.net:443 in
> > > c:\inetpub\wwwroot\cenebaz\test.php on line 4
> > > The operation completed successfully. (0)
> > >
> > > The same code running on linux system correctly. But on windows not..
> > >
> > > If you have any idea to share with me i will be pleased to all of you.
> > >
> > > Thanks,
> > > Astron
> > >

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



Re: [PHP] There is an error with SSL support.

2003-09-22 Thread Marek Kilimajer
Pretty new ;)
Manuzhai suggested to use php4ts.dll from 
http://ftp.proventum.net/pub/php/win32/misc/openssl/

Astron of BrOnX wrote:

himm 4.3.3 it is new version.?

Thanks,
Astron
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
What version of php do you have. ssl:// is available only since 4.3.0

Astron of BrOnX wrote:


Hi all, i have been trying to connect a server which has SSL support.. I
have enabled SSL support from php.ini which lines,
extensition=extensitions/php_openssl.dll;

When i looked up phpinfo() for information, It says, OpenSSL support is
enable and seems to be okay.. But tyring to use this code;
$sock = fsockopen("ssl://$host", 443, $errno, $errstr, 30);

i have still an error which is;

Warning: fsockopen(): no SSL support in this build in
c:\inetpub\wwwroot\cenebaz\test.php on line 4
Warning: fsockopen(): unable to connect to www.a1.net:443 in
c:\inetpub\wwwroot\cenebaz\test.php on line 4
The operation completed successfully. (0)
The same code running on linux system correctly. But on windows not..

If you have any idea to share with me i will be pleased to all of you.

Thanks,
Astron


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


Re: [PHP] There is an error with SSL support.

2003-09-22 Thread Astron of BrOnX
Thank you for helping me Marek, but it is like puzzle :) Now i got this
errors :)

Function registration failed - duplicate name - openssl_seal in Unknown on
line 0
PHP Warning:  Function registration failed - duplicate name - openssl_open
in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name -
openssl_pkcs7_verify in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name -
openssl_pkcs7_decrypt in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name -
openssl_pkcs7_sign in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name -
openssl_pkcs7_encrypt in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name -
openssl_private_encrypt in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name -
openssl_private_decrypt in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name -
openssl_public_encrypt in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name -
openssl_public_decrypt in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name -
openssl_error_string in Unknown on line 0
PHP Warning:  openssl:  Unable to register functions, unable to load in
Unknown on line 0

Of course, i have to click all Alert Boxes on windows :) What can i do now
:(

Thanks,
Astron


"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Pretty new ;)
> Manuzhai suggested to use php4ts.dll from
> http://ftp.proventum.net/pub/php/win32/misc/openssl/
>
> Astron of BrOnX wrote:
>
> > himm 4.3.3 it is new version.?
> >
> > Thanks,
> > Astron
> >
> > "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >
> >>What version of php do you have. ssl:// is available only since 4.3.0
> >>
> >>Astron of BrOnX wrote:
> >>
> >>
> >>>Hi all, i have been trying to connect a server which has SSL support..
I
> >>>have enabled SSL support from php.ini which lines,
> >>>
> >>>extensition=extensitions/php_openssl.dll;
> >>>
> >>>When i looked up phpinfo() for information, It says, OpenSSL support is
> >>>enable and seems to be okay.. But tyring to use this code;
> >>>
> >>>$sock = fsockopen("ssl://$host", 443, $errno, $errstr, 30);
> >>>
> >>>i have still an error which is;
> >>>
> >>>Warning: fsockopen(): no SSL support in this build in
> >>>c:\inetpub\wwwroot\cenebaz\test.php on line 4
> >>>
> >>>Warning: fsockopen(): unable to connect to www.a1.net:443 in
> >>>c:\inetpub\wwwroot\cenebaz\test.php on line 4
> >>>The operation completed successfully. (0)
> >>>
> >>>The same code running on linux system correctly. But on windows not..
> >>>
> >>>If you have any idea to share with me i will be pleased to all of you.
> >>>
> >>>Thanks,
> >>>Astron
> >>>
> >
> >

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



Re: [PHP] There is an error with SSL support.

2003-09-22 Thread Marek Kilimajer
I should have mention it. ssl support is compiled directly into the dll, 
so you must comment out extension=php_openssl.dll in php.ini

Astron of BrOnX wrote:

Thank you for helping me Marek, but it is like puzzle :) Now i got this
errors :)
Function registration failed - duplicate name - openssl_seal in Unknown on
line 0
PHP Warning:  Function registration failed - duplicate name - openssl_open
in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name -
openssl_pkcs7_verify in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name -
openssl_pkcs7_decrypt in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name -
openssl_pkcs7_sign in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name -
openssl_pkcs7_encrypt in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name -
openssl_private_encrypt in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name -
openssl_private_decrypt in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name -
openssl_public_encrypt in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name -
openssl_public_decrypt in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name -
openssl_error_string in Unknown on line 0
PHP Warning:  openssl:  Unable to register functions, unable to load in
Unknown on line 0
Of course, i have to click all Alert Boxes on windows :) What can i do now
:(
Thanks,
Astron
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Pretty new ;)
Manuzhai suggested to use php4ts.dll from
http://ftp.proventum.net/pub/php/win32/misc/openssl/
Astron of BrOnX wrote:


himm 4.3.3 it is new version.?

Thanks,
Astron
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

What version of php do you have. ssl:// is available only since 4.3.0

Astron of BrOnX wrote:



Hi all, i have been trying to connect a server which has SSL support..
I

have enabled SSL support from php.ini which lines,

extensition=extensitions/php_openssl.dll;

When i looked up phpinfo() for information, It says, OpenSSL support is
enable and seems to be okay.. But tyring to use this code;
$sock = fsockopen("ssl://$host", 443, $errno, $errstr, 30);

i have still an error which is;

Warning: fsockopen(): no SSL support in this build in
c:\inetpub\wwwroot\cenebaz\test.php on line 4
Warning: fsockopen(): unable to connect to www.a1.net:443 in
c:\inetpub\wwwroot\cenebaz\test.php on line 4
The operation completed successfully. (0)
The same code running on linux system correctly. But on windows not..

If you have any idea to share with me i will be pleased to all of you.

Thanks,
Astron



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


RE: [PHP] using submit button and PHP-HELP

2003-09-22 Thread Angelo Zanetti
thanx for your help, Ive got flu and all these small things seem to be
escaping my eyes. I just want to ask you a small question:

If i want this page to submit to itself and I want to test for it, would I
go about it like this:



if my submit button code looks like this:



or is there a better way of testing this?

-Original Message-
From: Mark Walker [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 4:54 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] using submit button and PHP-HELP


Hi

You might like to try something like $REQUEST_URI rather than $PHP_SELF, if
you want to keep the existing parameters.  However, in forms, it's better to
redeclare them, so in your case, you'd want to add an 

HTH

Mark

- Original Message -
From: "Angelo Zanetti" <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Sent: Monday, September 22, 2003 4:18 PM
Subject: [PHP] using submit button and PHP-HELP


> Hi,
>
> I have a form that has a submit button in it, when the button is pressed I
> want it to reload the same page, with the same URL, however when I click
on
> the submit button, the URL that it produces is http://whatever.php? then
the
> name of my submit button = value for example:
>
> 
>
>
> 
> Request this abstract!
> 
> 
>
> this gives a URL of:
>
> http://localhost/ebLatest/indpaper.php?reqPaper=Request
>
> instead of the previous URL that was .php?ID=110
>
> What I want to know is why the name and value of the submit button are
being
> displayed in the URL?
> also why doesnt the ?php echo($PHP_SELF); work???
>
> thanx in advance.
> Angelo
>
> --
> 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] There is an error with SSL support.

2003-09-22 Thread Astron of BrOnX
Bravooo..

Thanks mate.. I havent any problem because, i would be crayz..

Astron..

"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I should have mention it. ssl support is compiled directly into the dll,
> so you must comment out extension=php_openssl.dll in php.ini
>
> Astron of BrOnX wrote:
>
> > Thank you for helping me Marek, but it is like puzzle :) Now i got this
> > errors :)
> >
> > Function registration failed - duplicate name - openssl_seal in Unknown
on
> > line 0
> > PHP Warning:  Function registration failed - duplicate name -
openssl_open
> > in Unknown on line 0
> > PHP Warning:  Function registration failed - duplicate name -
> > openssl_pkcs7_verify in Unknown on line 0
> > PHP Warning:  Function registration failed - duplicate name -
> > openssl_pkcs7_decrypt in Unknown on line 0
> > PHP Warning:  Function registration failed - duplicate name -
> > openssl_pkcs7_sign in Unknown on line 0
> > PHP Warning:  Function registration failed - duplicate name -
> > openssl_pkcs7_encrypt in Unknown on line 0
> > PHP Warning:  Function registration failed - duplicate name -
> > openssl_private_encrypt in Unknown on line 0
> > PHP Warning:  Function registration failed - duplicate name -
> > openssl_private_decrypt in Unknown on line 0
> > PHP Warning:  Function registration failed - duplicate name -
> > openssl_public_encrypt in Unknown on line 0
> > PHP Warning:  Function registration failed - duplicate name -
> > openssl_public_decrypt in Unknown on line 0
> > PHP Warning:  Function registration failed - duplicate name -
> > openssl_error_string in Unknown on line 0
> > PHP Warning:  openssl:  Unable to register functions, unable to load in
> > Unknown on line 0
> >
> > Of course, i have to click all Alert Boxes on windows :) What can i do
now
> > :(
> >
> > Thanks,
> > Astron
> >
> >
> > "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >
> >>Pretty new ;)
> >>Manuzhai suggested to use php4ts.dll from
> >>http://ftp.proventum.net/pub/php/win32/misc/openssl/
> >>
> >>Astron of BrOnX wrote:
> >>
> >>
> >>>himm 4.3.3 it is new version.?
> >>>
> >>>Thanks,
> >>>Astron
> >>>
> >>>"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
> >>>news:[EMAIL PROTECTED]
> >>>
> >>>
> What version of php do you have. ssl:// is available only since 4.3.0
> 
> Astron of BrOnX wrote:
> 
> 
> 
> >Hi all, i have been trying to connect a server which has SSL
support..
> >
> > I
> >
> >have enabled SSL support from php.ini which lines,
> >
> >extensition=extensitions/php_openssl.dll;
> >
> >When i looked up phpinfo() for information, It says, OpenSSL support
is
> >enable and seems to be okay.. But tyring to use this code;
> >
> >$sock = fsockopen("ssl://$host", 443, $errno, $errstr, 30);
> >
> >i have still an error which is;
> >
> >Warning: fsockopen(): no SSL support in this build in
> >c:\inetpub\wwwroot\cenebaz\test.php on line 4
> >
> >Warning: fsockopen(): unable to connect to www.a1.net:443 in
> >c:\inetpub\wwwroot\cenebaz\test.php on line 4
> >The operation completed successfully. (0)
> >
> >The same code running on linux system correctly. But on windows not..
> >
> >If you have any idea to share with me i will be pleased to all of
you.
> >
> >Thanks,
> >Astron
> >
> >>>
> >>>
> >

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



Re: [PHP] non-php issue

2003-09-22 Thread Pete James
Hey, look... yours IS bigger than mine. :-)

Seriously, though, I think it's safe to say that "your mileage may 
vary".  It certainly doesn't take 2 minutes to compile and install all 
of the dependencies along with PHP.  It also doesn't take me 6 minutes 
to restart my version of Windows (2 minutes, tops).  Besides, this 
particular comparison is fundamentally flawed anyway... you don't have 
to restart windows to install PHP, Apache, or MySQL.

But now I'm just splitting hairs, so I'll stop. :-)

Cheers,
Pete.
Robert Cummings wrote:

Time to shutdown, reboot, and log into admin account on windows on an
AMD 2400+: 6 minutes 37 seconds
Time to ./configure AND compile apache 1.3.28 under linux: 30 seconds

Time to ./configure AND compile php 4.3.3 under linux: 2 minutes 16
seconds
Time to ./configure AND compile mysql 4.0.15a under linux: 7 minutes 34
seconds
--

Availability of computer during windows reboot: 0%

Availability of linux computer during compilations: anywhere from 50% to
90%
I think your math with respect to 1,000 times is off by a little. maybe
999 >:)
Cheers,
Rob.
On Mon, 2003-09-22 at 09:34, Becoming Digital wrote:

All security advantages aside, I prefer linux because everytime I
install a new program or service I don't need to reboot :)
Yeah, but in the time you spend resolving RPM package dependencies, re-compiling the application, checking in and out of CVS, etc, all trying to install the damn thing once, you could have rebooted WinBlows 1,000 times. ;)

Edward Dudlik
Becoming Digital, a Tri-OS company.
www.becomingdigital.com
wishes | www.amazon.com/o/registry/EGDXEBBWTYUU

- Original Message - 
From: "Robert Cummings" <[EMAIL PROTECTED]>
To: "Raditha Dissanayake" <[EMAIL PROTECTED]>
Cc: "Peter James" <[EMAIL PROTECTED]>; "PHP-General" <[EMAIL PROTECTED]>
Sent: Monday, 22 September, 2003 01:08
Subject: Re: [PHP] non-php issue

On Mon, 2003-09-22 at 01:09, Raditha Dissanayake wrote:

relax guys,

I have been dying to say  "You can fix all of your problems by 
formatting your computer and installing a linux distribution."  On this 
list for ages :-)

but the fact remains that an out of the box installation of any of the 
linux distros are far more secure than anything putout by that redmond 
company.
All security advantages aside, I prefer linux because everytime I
install a new program or service I don't need to reboot :)
Cheers,
Rob.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] non-php issue

2003-09-22 Thread Chris Shiflett
--- Peter James <[EMAIL PROTECTED]> wrote:
> If Linux enjoyed the same type of (often less-than-computer-literate)
> user base that Windows does, there'd be plenty for virus writers and
> vulnerability exploiters to do.

Those who are "less-than-computer-literate" are not protecting anything
important. Thus, those who attack these peoples' computers are the
"less-than-computer-literate" script kiddies and such, not the intelligent
attackers. The best people go after the most important data.

There has been research to support that Linux is attacked more than three times
as much as Windows (http://www.internetnews.com/dev-news/article.php/3076701).
This makes sense, too, because Linux is more likely to be protecting important
data. The argument that those who chose Windows are the less intelligent users
and systems administrators is a poor defense of the OS.

> Linux is not necessarily more secure...

I am not aware of a single security expert who would agree with this assertion.
Of course, I am not aware of a single security expert who would consider Linux
more secure than OpenBSD, but the difference is at least less severe. I
generally trust the experts until I feel that I am an expert myself.

> But that's just my 2 cents (for which I will almost certainly earn
> the title of troll).

I wouldn't say you're a troll. You're probably just tired of seeing Windows
bashed at every opportunity and are having your doubts as to whether it is
deserved (and feeling like someone needs to play devil's advocate anyway, just
so that people at least consider another perspective). Most people who bash
Windows likely have no idea whether their comments have any merit, but don't
discount their comments based on that alone. There is likely some truth to
their rhetoric.

Chris

=
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/

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



Re: [PHP] non-php issue

2003-09-22 Thread Robert Cummings
On Mon, 2003-09-22 at 11:22, Pete James wrote:
>
> Hey, look... yours IS bigger than mine. :-)

And smaller than a lot of others, but I don't have the cash to go and
get a new one or an enlargement. Besides, everyone tells me this one is
perfect for my needs ;)

Cheers,
Rob.

> 
> Seriously, though, I think it's safe to say that "your mileage may 
> vary".  It certainly doesn't take 2 minutes to compile and install all 
> of the dependencies along with PHP.  It also doesn't take me 6 minutes 
> to restart my version of Windows (2 minutes, tops).  Besides, this 
> particular comparison is fundamentally flawed anyway... you don't have 
> to restart windows to install PHP, Apache, or MySQL.
> 
> But now I'm just splitting hairs, so I'll stop. :-)
> 
> Cheers,
> Pete.
> 
> Robert Cummings wrote:
> 
> > Time to shutdown, reboot, and log into admin account on windows on an
> > AMD 2400+: 6 minutes 37 seconds
> > 
> > Time to ./configure AND compile apache 1.3.28 under linux: 30 seconds
> > 
> > Time to ./configure AND compile php 4.3.3 under linux: 2 minutes 16
> > seconds
> > 
> > Time to ./configure AND compile mysql 4.0.15a under linux: 7 minutes 34
> > seconds
> > 
> > --
> > 
> > Availability of computer during windows reboot: 0%
> > 
> > Availability of linux computer during compilations: anywhere from 50% to
> > 90%
> > 
> > I think your math with respect to 1,000 times is off by a little. maybe
> > 999 >:)
> > 
> > Cheers,
> > Rob.
> > 
> > 
> > On Mon, 2003-09-22 at 09:34, Becoming Digital wrote:
> > 
> >>>All security advantages aside, I prefer linux because everytime I
> >>>install a new program or service I don't need to reboot :)
> >>
> >>Yeah, but in the time you spend resolving RPM package dependencies, re-compiling 
> >>the application, checking in and out of CVS, etc, all trying to install the damn 
> >>thing once, you could have rebooted WinBlows 1,000 times. ;)
> >>
> >>Edward Dudlik
> >>Becoming Digital, a Tri-OS company.
> >>www.becomingdigital.com
> >>
> >>
> >>wishes | www.amazon.com/o/registry/EGDXEBBWTYUU
> >>
> >>
> >>- Original Message - 
> >>From: "Robert Cummings" <[EMAIL PROTECTED]>
> >>To: "Raditha Dissanayake" <[EMAIL PROTECTED]>
> >>Cc: "Peter James" <[EMAIL PROTECTED]>; "PHP-General" <[EMAIL PROTECTED]>
> >>Sent: Monday, 22 September, 2003 01:08
> >>Subject: Re: [PHP] non-php issue
> >>
> >>
> >>On Mon, 2003-09-22 at 01:09, Raditha Dissanayake wrote:
> >>
> >>>relax guys,
> >>>
> >>>I have been dying to say  "You can fix all of your problems by 
> >>>formatting your computer and installing a linux distribution."  On this 
> >>>list for ages :-)
> >>>
> >>>but the fact remains that an out of the box installation of any of the 
> >>>linux distros are far more secure than anything putout by that redmond 
> >>>company.
> >>
> >>All security advantages aside, I prefer linux because everytime I
> >>install a new program or service I don't need to reboot :)
> >>
> >>Cheers,
> >>Rob.
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



RE: [PHP] non-php issue

2003-09-22 Thread Dan Anderson
Yes, it is possible to secure anything if you know what you are doing. 
But the average user doesn't know what he or she is doing.  So they run
their computer as the superuser because they don't want to have to log
off and back on to install a program, and all of a sudden any virus that
comes along has access to anything and everything on the system.[0]

That's why I think all of the computer weenies should move off to OS
X.  When a program is run that requires root access, you are asked for
your password and you just supply it.  (Of course, there are probably
still computer weenies who enter their password when a virus asks
nicely.  (Hmmm... I'm not installing or configuring anything.  The
computer must just be smart enough to install things on its own.)).

So, I suppose, the only real way to a secure computers is to educate
users.  In this way the fact that a new *nix user is basically told RTFM
may be a very good thing.  Also, the fact that it is so different may be
a good thing.

[0] Most of the Linux installations, and *BSD installations I have done
have asked for a root password and a username and password combination. 
When I tried installing Windows XP for my parents it just installed a
super user.  I suppose I could have gone out of my way to create an
underpriviliged user (which I did) and try to show my parents how to use
it (didn't work).  But they just decided it was too much trouble and
used the root account all the time.  

-Dan

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



Re: [PHP] non-php issue

2003-09-22 Thread Pete James
Chris Shiflett wrote:

There has been research to support that Linux is attacked more than three times
as much as Windows (http://www.internetnews.com/dev-news/article.php/3076701).
This makes sense, too, because Linux is more likely to be protecting important
data. The argument that those who chose Windows are the less intelligent users
and systems administrators is a poor defense of the OS.
Agreed, but this particular research is against "servers".  Considering 
that the majority of the world's servers run on some form of Unix, this 
makes sense.  The situation spawning this discussion appeared to be a 
desktop problem, which is what we hear about most often, and is where MS 
has earned its "reputation" for insecurity and vulnerability.

I wouldn't say you're a troll. You're probably just tired of seeing Windows
bashed at every opportunity and are having your doubts as to whether it is
deserved (and feeling like someone needs to play devil's advocate anyway, just
so that people at least consider another perspective).
I couldn't have said it better.

Cheers,

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


[PHP] is it possible to have the following URL?

2003-09-22 Thread Susan Ator
I am passing 3 pieces of information on every URL. For example:

https://url_location.org/page.php?SID=$SID&uid=$uid&ELEM_ID=$id


I need to be able to return to a previous page using an anchor tag like so:

https://url_locaion.org/prev_page.php#tag?SID=$SID&uid=$uid&ELEM_ID=$id

So far it doesn't work at all. Is this even possible? Just using the
javascript:history.go(-1) doesn't work in every browser.

susan

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



[PHP] Re: PHP Editor - which to use?

2003-09-22 Thread John Taylor-Johnston
I don't know if such an animal exists?
I use Windows Wordpad as a text editor. Then I use Microweb from:
http://www.indigostar.com/microweb.htm
You might want to download a newer copy of PHP from http://www.php.net/downloads.php
This is lilkely not what you are looking for, but will do a very nice job working 
offline.
John

Binay wrote:

> Please suggest me  a good PHP editor like ( Microsoft's Interdev for ASP) to write 
> my php programs/scripts and get a visual feel.

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



Re: [PHP] is it possible to have the following URL?

2003-09-22 Thread Erwin Kerk
This should work:

https://url_locaion.org/prev_page.php?SID=$SID&uid=$uid&ELEM_ID=$id#tag

Erwin

Susan Ator wrote:

I am passing 3 pieces of information on every URL. For example:

https://url_location.org/page.php?SID=$SID&uid=$uid&ELEM_ID=$id

I need to be able to return to a previous page using an anchor tag like so:

https://url_locaion.org/prev_page.php#tag?SID=$SID&uid=$uid&ELEM_ID=$id

So far it doesn't work at all. Is this even possible? Just using the
javascript:history.go(-1) doesn't work in every browser.
susan

 

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


Re: [PHP] Re: PHP Editor - which to use?

2003-09-22 Thread Robert Cummings
I find having a virtual host for development to be best when viewing
your handiwork as you develop it. It provides the convenience of
actually running the PHP code, and makes it simple to preview the
content in the most popular browsers to check for incompatibility
issues. Then you can use any text/code editor you please.

Cheers,
Rob.


On Mon, 2003-09-22 at 11:46, John Taylor-Johnston wrote:
> I don't know if such an animal exists?
> I use Windows Wordpad as a text editor. Then I use Microweb from:
> http://www.indigostar.com/microweb.htm
> You might want to download a newer copy of PHP from http://www.php.net/downloads.php
> This is lilkely not what you are looking for, but will do a very nice job working 
> offline.
> John
> 
> Binay wrote:
> 
> > Please suggest me  a good PHP editor like ( Microsoft's Interdev for ASP) to write 
> > my php programs/scripts and get a visual feel.
> 
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



RE: [PHP] is it possible to have the following URL?

2003-09-22 Thread Susan Ator
Thank you so much. That worked perfectly. Don't know why I didn't think of
trying the anchor tag there.

susan

-Original Message-
From: Erwin Kerk [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 11:48 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] is it possible to have the following URL?


This should work:

https://url_locaion.org/prev_page.php?SID=$SID&uid=$uid&ELEM_ID=$id#tag


Erwin

Susan Ator wrote:

>I am passing 3 pieces of information on every URL. For example:
>
>https://url_location.org/page.php?SID=$SID&uid=$uid&ELEM_ID=$id
>
>
>I need to be able to return to a previous page using an anchor tag like so:
>
>https://url_locaion.org/prev_page.php#tag?SID=$SID&uid=$uid&ELEM_ID=$id
>
>So far it doesn't work at all. Is this even possible? Just using the
>javascript:history.go(-1) doesn't work in every browser.
>
>susan
>
>  
>

-- 
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] PHP setup differences (was: PHP Shell doesn't run on a system)

2003-09-22 Thread weston
> 
> 
> >>And while we're at it, has anyone written a tool that will tell you 
> >>what's different between server setups?
> > 
> > I use diff on unix.
> > 
> 
> You may like tkdiff, with its additional GUI to diff

Hmmm. Diff on what? I suppose the INI files are prime candidates, as well as whatever 
phpinfo spits out. Except that while I expect the HTML output of PHP info remains 
pretty consistent, I have my doubts that a line-by-line diff of two HTML files will 
yield the desired information in a 
readable format... 

Is there a way (without parsing the HTML of phpinfo()) to get the information 
phpinfo() puts out in a line by line plain text format?

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



Re: [PHP] PHP Shell doesn't run on a system

2003-09-22 Thread weston
Curt Zirzow wrote:

> * Thus wrote Weston Cann ([EMAIL PROTECTED]):
> > A while back I wrote a small script that was designed to work as an 
> > interactive interpreter for PHP code, a la Python. The script itself is 
> > written in PHP, and is pretty basic:
> >
> >  
> > function readln()
> > {
> > $fp=fopen("/dev/stdin", "r");

> use fopen('php://stdin', 'r') instead.
>
> http://php.net/manual/en/wrappers.php.php

Muchas Gracias! That solves the problem -- now I just wish I understood why. 
/dev/stdin is present on both the system the original script ran on and the problem 
system 

-W

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



[PHP] using a php variable in javascript

2003-09-22 Thread Rich Fox
I have a page with the following code:










I have 'CompanyEdit' hardcoded, but what I want instead is something like:

so = window.open('','$callerWin');

This does not work, of course, but you get the idea: I want to use the value
of the $callerWin php variable in my javascript. Can someone tell me the
syntax for this? My reading of the documentation and trial-and-error have
not met with success.

thanks,

Rich

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



[PHP] php with MsSql

2003-09-22 Thread João Cândido de Souza Neto
I'm creating a site using php with Mssql and i have a problem.

When i test im my in my conputer using Win XP with php 4.3.2RC4 it's all ok,
but when i use in server running linux and php 4.3.3 i can't save accented
words data in MsSql database.

When i try, i receive this message:

Warning: mssql_query(): message: Unclosed quotation mark before the
character string 'B뿿㺤ä?~.+.ê<"à ä¦,ä?~î¦"ä?¢ìS?ä?¢î<¸à¡^ì>?à
"[EMAIL PROTECTED] (severity 15) in /home/iphosting/saladamix/www/admin/planos.php
on line 161

Warning: mssql_query(): message: Line 1: Incorrect syntax near
'B뿿㺤ä?~.+.ê<"à ä¦,ä?~î¦"ä?¢ìS?ä?¢î<¸à¡^ì>?à "[EMAIL PROTECTED] (severity 15)
in /home/iphosting/saladamix/www/admin/planos.php on line 161

Warning: mssql_query(): Query failed in
/home/iphosting/saladamix/www/admin/planos.php on line 161

Fatal error: Call to undefined function: mssql_error() in
/home/iphosting/saladamix/www/admin/planos.php on line 161

Anybody know what's de problem ?

Thanks for all...

-- 
João Cândido de Souza Neto - [EMAIL PROTECTED]
Mr. Mídia Propaganda e Marketing - www.mrmidia.com.br
Farol Sul de Minas - www.farolsuldeminas.com.br
Farol News - www.farolnews.com.br
(35) 3212-4291

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



Re: [PHP] using a php variable in javascript

2003-09-22 Thread Erwin Kerk
have you tried:

so = window.open('',''); ??

Erwin Kerk
Web Developer




Rich Fox wrote:

I have a page with the following code:









I have 'CompanyEdit' hardcoded, but what I want instead is something like:

so = window.open('','$callerWin');

This does not work, of course, but you get the idea: I want to use the value
of the $callerWin php variable in my javascript. Can someone tell me the
syntax for this? My reading of the documentation and trial-and-error have
not met with success.
thanks,

Rich

 

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


[PHP] Mail problem

2003-09-22 Thread Trevor Dowling
PHP Version 4.3.2
I am having problems sending a large number of emails from a mail list held
in a database. I don't belive that the database has anything to do with the
problem.

I have about 9000 addresses and can only successfully send about 2000 mails
before the page say complete/done.

Below is the code that I am running, no error messages are returned from the
mail function, it just stops. About 2000 mails are sent OK.

Anyone know what the problem is?

Trevor


 $query_string = "SELECT DISTINCT email FROM [user]";
 $result = odbc_exec ($odbc_connection, $query_string);

 $Message = "Mail Text";

 $Index = 0;

 while (odbc_fetch_row ($result))
 {

  $EmailAddress = trim (odbc_result ($result, 'email'));

flush();
@mail ($EmailAddress, "Support", $Message);

  $Index++;

  echo ("Email Address: $EmailAddress");  // DEBUG
  echo ("ErrorCode: ${ErrorCode}");  // DEBUG
  echo (".${Index}"); // DEBUG
 }

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



RE: [PHP] Mail problem

2003-09-22 Thread Jay Blanchard
[snip]
I have about 9000 addresses and can only successfully send about 2000
mails
before the page say complete/done.
[/snip]

What is your PHP script execution time set to in the php.ini? Are you
running this from the browser? If so you will also need to modify your
browser timeout? Place this

set_time_limit(0);

at the top of your mail script if you are running from the command line.

http://www.php.net/set_time_limit

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



RE: [PHP] Mail problem

2003-09-22 Thread chris . neale
Have you timed it? You might want to check it doesn't take longer than the
max_execution_time directive in php.ini allows (you'll have to check if
that's the correct name for it). I've also used set_time_limit(0) at the top
of my scripts when I know it's going to take a while...

Regards


Chris

-Original Message-
From: Trevor Dowling [mailto:[EMAIL PROTECTED]
Sent: 22 September 2003 16:46
To: [EMAIL PROTECTED]
Subject: [PHP] Mail problem


PHP Version 4.3.2
I am having problems sending a large number of emails from a mail list held
in a database. I don't belive that the database has anything to do with the
problem.

I have about 9000 addresses and can only successfully send about 2000 mails
before the page say complete/done.

Below is the code that I am running, no error messages are returned from the
mail function, it just stops. About 2000 mails are sent OK.

Anyone know what the problem is?

Trevor


 $query_string = "SELECT DISTINCT email FROM [user]";
 $result = odbc_exec ($odbc_connection, $query_string);

 $Message = "Mail Text";

 $Index = 0;

 while (odbc_fetch_row ($result))
 {

  $EmailAddress = trim (odbc_result ($result, 'email'));

flush();
@mail ($EmailAddress, "Support", $Message);

  $Index++;

  echo ("Email Address: $EmailAddress");  // DEBUG
  echo ("ErrorCode: ${ErrorCode}");  // DEBUG
  echo (".${Index}"); // DEBUG
 }

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
 
If you are not the intended recipient of this e-mail, please preserve the
confidentiality of it and advise the sender immediately of any error in
transmission. Any disclosure, copying, distribution or action taken, or
omitted to be taken, by an unauthorised recipient in reliance upon the
contents of this e-mail is prohibited. Somerfield cannot accept liability
for any damage which you may sustain as a result of software viruses so
please carry out your own virus checks before opening an attachment. In
replying to this e-mail you are granting the right for that reply to be
forwarded to any other individual within the business and also to be read by
others. Any views expressed by an individual within this message do not
necessarily reflect the views of Somerfield.  Somerfield reserves the right
to intercept, monitor and record communications for lawful business
purposes.

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



Re: [PHP] php with MsSql

2003-09-22 Thread Curt Zirzow
* Thus wrote João Cândido de Souza Neto ([EMAIL PROTECTED]):
> I'm creating a site using php with Mssql and i have a problem.
> 
> When i test im my in my conputer using Win XP with php 4.3.2RC4 it's all ok,
> but when i use in server running linux and php 4.3.3 i can't save accented
> words data in MsSql database.
> 
> When i try, i receive this message:
> 
> Warning: mssql_query(): message: Unclosed quotation mark before the
> character string 'B뿿㺤ä?~.+.ê<"à ä¦,ä?~î¦"ä?¢ìS?ä?¢î<¸à¡^ì>?à
> "[EMAIL PROTECTED] (severity 15) in /home/iphosting/saladamix/www/admin/planos.php
> on line 161

it sounds like there might be a translation problem with the
chars. or somehow you lost the terminating '

The rest of the errors should disappear when you fix that.

> 
> Warning: mssql_query(): message: Line 1: Incorrect syntax near
> 'B뿿㺤ä?~.+.ê<"à ä¦,ä?~î¦"ä?¢ìS?ä?¢î<¸à¡^ì>?à "[EMAIL PROTECTED] (severity 15)
> in /home/iphosting/saladamix/www/admin/planos.php on line 161
> 
> Warning: mssql_query(): Query failed in
> /home/iphosting/saladamix/www/admin/planos.php on line 161
> 
> Fatal error: Call to undefined function: mssql_error() in
> /home/iphosting/saladamix/www/admin/planos.php on line 161

There isn't a mssql_error() in either versions, you dont get the
error on your win32 box because your query works there.



Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

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



Re: [PHP] Problem's addign a script to my web page.

2003-09-22 Thread Stratis Aftousmis

--- Marek Kilimajer <[EMAIL PROTECTED]> wrote:
> Optionaly you can use ftp functions to create files
> and directories.

Will that get rid of the parmission's problem? Can you
explain a little?





__
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



Re: [PHP] Mail problem

2003-09-22 Thread Rob Adams
[snip]
I have about 9000 addresses and can only successfully send about 2000
mails
before the page say complete/done.
[/snip]

Depending on your error reporting level, instead of ending normally you
should get a script timed out message.  If you're not getting that message,
it may be that your script is really only trying to send out 2000 emails.
Are you using some kind of database query to get the email addresses?  If
so, check how many rows are being returned.

  -- Rob

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



Re: [PHP] Mail problem

2003-09-22 Thread Curt Zirzow
* Thus wrote Trevor Dowling ([EMAIL PROTECTED]):
> PHP Version 4.3.2
> I am having problems sending a large number of emails from a mail list held
> in a database. I don't belive that the database has anything to do with the
> problem.
> 
> I have about 9000 addresses and can only successfully send about 2000 mails
> before the page say complete/done.

see set_time_limit().
http://php.net/set_time_limit

Also the webserver will disconnect after a certain amount of time,
you can search the archives to see how people resolved this in the
past.

> 
>  while (odbc_fetch_row ($result))
>  {
> 
>   $EmailAddress = trim (odbc_result ($result, 'email'));
> 
> flush();

flush isn't necessary here, doesn't have anything to do with your
issue though.

oh, and also add a few lines that say:
  if(preg_match('[EMAIL PROTECTED]', $EmailAddress) ) {
continue;
  }
> @mail ($EmailAddress, "Support", $Message);
> 

HTH,

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

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



Re: [PHP] advise on new class of mine

2003-09-22 Thread jsWalter
Thanks Curt for your reply.

It helped my head a bit.

Walter

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



[PHP] problem with external command.

2003-09-22 Thread Jeremy Russell
Hello list... Im fighting a losing battle here..

I'm needing help!

Everything seems to work fine with this function except that when the
command runs and is to populate the "$scan_result" field.  It doesn't Im
not sure why either.  I also get an "End of file unexepected" error in
my apache logs as well.  

Anybody have any advice.

On top of the exec() function I've also tried shell_exec(), system(),
and even backtic's ``.  I'm stumped...  I'm not sure where to go with
this.


$nmap = "/usr/local/bin/nmap"; /* path to nmap program */
$nmap_opt = "-sT -sU -sR -O ";/* Nmap command line options */
$scan_log = "/usr/local/pub/tftp/scan.log";   /* scanner log file */



if( $attempts == 4 )
scanner($nmap,$nmap_opt,$ipaddr,$scan_log,$echo,$mail);


function scanner($scan,$opt,$ip,$log,$echo,$mail) {

$cmd = "$scan  $opt $ip ";
print "This is the command:  $cmd\n";
$scan_result =  exec("$cmd");
print "This should be the scan :  $scan_result";

$filename = "$log";
$fileid = fopen("$filename","a");

fputs($fileid,"$scan_result\n");
fclose($fileid);

//$mail_result =`$echo $scan_result | $mail -s "Hostile Node"
$admin`;

 } /* end scanner() */





Jeremy Russell
Network Administrator, CNI
580.235.2377

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



Re: [PHP] problem with external command.

2003-09-22 Thread Robert Cummings
On Mon, 2003-09-22 at 13:14, Jeremy Russell wrote:
> Hello list... Im fighting a losing battle here..
> 
> I'm needing help!
> 
> Everything seems to work fine with this function except that when the
> command runs and is to populate the "$scan_result" field.  It doesn't Im
> not sure why either.  I also get an "End of file unexepected" error in
> my apache logs as well.  
> 
> Anybody have any advice.
> 
> On top of the exec() function I've also tried shell_exec(), system(),
> and even backtic's ``.  I'm stumped...  I'm not sure where to go with
> this.
> 
> 
> $nmap = "/usr/local/bin/nmap"; /* path to nmap program */
> $nmap_opt = "-sT -sU -sR -O ";/* Nmap command line options */
> $scan_log = "/usr/local/pub/tftp/scan.log";   /* scanner log file */
> 
> 
> 
> if( $attempts == 4 )
> scanner($nmap,$nmap_opt,$ipaddr,$scan_log,$echo,$mail);
> 
> 
> function scanner($scan,$opt,$ip,$log,$echo,$mail) {
> 
> $cmd = "$scan  $opt $ip ";

I think you problem is here   
When the command is executed the < and > brackets will be interpretted
as input and output redirection operators. This would explain the EOF
issue you are getting.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



Re: [PHP] problem with external command.

2003-09-22 Thread Brad Pauly
Jeremy Russell wrote:
Everything seems to work fine with this function except that when the
command runs and is to populate the "$scan_result" field.  It doesn't Im
not sure why either.  I also get an "End of file unexepected" error in
my apache logs as well.  

Anybody have any advice.
Have you tried running this command as the user your web server is 
running as? You need root privileges for some of the options you want.

[snip]

function scanner($scan,$opt,$ip,$log,$echo,$mail) {

$cmd = "$scan  $opt $ip ";
print "This is the command:  $cmd\n";
$scan_result =  exec("$cmd");
print "This should be the scan :  $scan_result";
$filename = "$log";
$fileid = fopen("$filename","a");
fputs($fileid,"$scan_result\n");
fclose($fileid);
//$mail_result =`$echo $scan_result | $mail -s "Hostile Node"
$admin`;
 } /* end scanner() */
You have a  in $cmd. That will likely cause problems.

- Brad

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


Re: [PHP] Q on class failure...

2003-09-22 Thread jsWalter

"Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> hi,
>
> It's generaly considered that constructors are supposed return an
> instance of that class. Use a factory instead if you want to return nulls;


A Factory?

OK, I'll look that up, do some readng and try that route.

So, if I understand you, using this 'factory' I can either return a new
class instance (if it passes all the tests) or a NULL value (no instance) if
it fails?

Thanks for the pointer.

Walter

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



Re: [PHP] Q on class failure...

2003-09-22 Thread jsWalter
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]


> The constructor should be as quick as possible and have as little
> logic as possible.  What kind of failure are you trying to catch?

not really trying to 'catch' a failure.

I have to parse the given string format and determine if that format is
valid.

If yes, then I can do more work and return an instance.

If no, I wanted to return a NULL. That way I know it failed.

Maybe I should be looking at PEAR::Error istead of a NULL on faliure.

Thanks

Walter

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



Re: [PHP] Classes Tutorials

2003-09-22 Thread jsWalter

<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Although i dont code for pear standards, i must recommend learning the
pear
> code, its how i taught myself classes.

I concur.

It is how I am learning this stuff.

That and my stupid questions to this list (see previous posts just
yesterday)

Walter

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



Re: [PHP] Q on class failure...

2003-09-22 Thread Robert Cummings
On Mon, 2003-09-22 at 13:25, jsWalter wrote:
> 
> "Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > hi,
> >
> > It's generaly considered that constructors are supposed return an
> > instance of that class. Use a factory instead if you want to return nulls;
> 
> 
> A Factory?
> 
> OK, I'll look that up, do some readng and try that route.

In brief -- a factory is a function or object that returns instances of
some object for which it is a factory. It is based on the analogy, for
instance, whereby a car factory outputs cars. A logical example of a
factory might be an object that returns user objects. The interface
might be something like follows:

$userFactory = &new UserFactory();
$userObj = &$userFactory->getUser( $userId );

In the above example if the user ID was not valid then $userFactory
might very well return null. A special case of a factory, a singleton
factory, is where the factory ALWAYS returns the same object. Such a
factory might be used for a session object so that there is only ever
one interface object to the session data.

HTH,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



[PHP] Re: Working with PHP Class Within Javascript

2003-09-22 Thread jsWalter
"Harry Yau" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
> I am writing a HTML page to gather whole bunch of information
> provided by user and pass it to the PHP script to generate a report base
> on these information. Namely, user inputs data in textfields of a HTML
> FORM. Since, there is a lot of fields in the field, when the form
> submitted, the URL to the PHP script become very long.

That is because you sent the data as a GET.

Use a POST and the URL will not change.


> I am wondering two way to solve this problem.
> First, I create a PHP Class to store all Infomation and using
> JavaScript function in the HTML page to "PUT" those value of fields into
> my PHP Class Object. Then pass the PHP Class Object to the PHP script.
> However, I wondering is it possible for the JaveScript function to
> manipulate the PHP Class Object, and How? How could I Call the PHP Class
> Constructor inside the JavaScript function?? Moreover, How could I pass
> the PHP Class Object from the HTML page to the PHP Script?? Is it
> possible to do so??

In a Word, No.

you are mixing apples and oranges.

Javascript is all client-side (Yes,  I knowm just ignore server-side for
now, that is not what he is asking) and PHP is all server-side, not
client-side at all.

You use our JS to do what ever you want to do on the client machine.

Then POST your name/value pairs to your server, which in turn calls your PHP
to retrieve thosse name/value pairs and process them as needed.


> Second solution I've thought of was writing another PHP function
> inside the  HTML page and doing the job as the JavaScript function.
> However, I have no I idea how could the HTML page call the PHP function
> when the user submitted the HTML FORM. Once again, How could I pass the
> PHP Class Object from the HTML page to the PHP Script at the end??

Agagin, same issue. You can't do anything PHP on the clinte side.

Yes think of this as 2 sides to the same coin.

The JS will handle all client-side stuff, formatting, validation,
calculations, etc and the HTML wraps it all up into name/value pairs to be
sent to the server-side process to handle.

Your server-side process, in this case PHP, will retrieve these name/value
pairs from the server, process them as needed and return back a page that
tells the user whatever you want to tell the user.

Does that help?

Walter

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



[PHP] Re: PHP Editor - which to use?

2003-09-22 Thread jsWalter
I use Homesite.

It has plug-ins for PHP so you have tps and cose completion.

I just modified another plug it has so I can see then entire list of methods
a script has in a window, which can then jump to, scroll to, insert here.

And I can hit F-12 and it will talk to my apache server and run the script
right there!

All in one!

Thee is CVS integration for Homesite, I just never got around to it.

I just use WinCVS, I'm just lazy.

Walter

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



  1   2   >