RE: [PHP] php.ini and .htaccess not working for php parameters

2006-11-09 Thread Ford, Mike
On 08 November 2006 23:04, James Tu wrote:

> Sorry...it was my own sillyness.  After confirming that the .htaccess
> file was indeed setting the include_path directory, it turns
> out that
> the class file was renamed and PHP could not find it.
> 
> I'm surprised that PHP doesn't complain that it couldn't find the
> file...then I started to comment out stuff in my .htaccess and it
> turns out that the culprit for now displaying errors was:
> 
> php_value error_reporting E_ALL
> When I commented that out, PHP reported the errors.  ugh!
> 
> Can I set that parameter in .htaccess?

Yes, of course -- but you need to take heed of the following CAUTION at 
http://uk.php.net/manual/en/configuration.changes.php:

+-+
| PHP constants do not exist outside of PHP. For example, in  |
| httpd.conf you can not use PHP constants such as E_ALL or   |
| E_NOTICE to set the error_reporting directive as they will have |
| no meaning and will evaluate to 0. Use the associated bitmask   |
| values instead. These constants can be used in php.ini  |
+-+

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 


To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm

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



[PHP] problem with imagestring()

2006-11-09 Thread Piotr Sulecki
Ave!

I have a problem with imagestring() function. It is supposed to put a
string onto an image. The problem is, it's working has been silently
changed, and I don't know when or why, or how I can get the old
behaviour back.

I'm trying to put an ISO 8859-2 string onto the image, but I get an ISO
8859-1 string instead. There is no way of using other encodings in
imagestring().

THERE IS NO MENTION OF A CHARSET, OR AN ENCODING, OR A CODE PAGE IN THE
IMAGESTRING() DOCUMENTATION.

I have lots of image-manipulating scripts which I have to move from an
old server to newer one. The old server is running PHP 4.4.2, the new
one - PHP 5.2.0, both with GD 2.0 or higher. On the old server the
strings are put in ISO 8859-2, on the new one the same code puts ISO
8859-1 strings.

You can see the problem at the following URLs:

old server: http://www.traxelektronik.pl/gdtest.php3
new server: http://neptun.traxelektronik.pl/~psulecki/gdtest.php3

You can see the source of the scripts if you change the extension above
to .phps.

I know I can use TrueType fonts. Fixing all my scripts to work with
TrueType would require quite a lot of work, however. I'd rather add some
config parameters to the server.

Regards,

Piotr Sulecki.

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



[PHP] Re: DLL error

2006-11-09 Thread Robert Hicks
"Windows users will need libraries with version at least 10 to use the 
php_oci8.dll."


I cannot install that client.

João Cândido de Souza Neto wrote:

It isn´t a problem.

Take a look at this link and you will see that you must have more than the 
php_oci8.dll.


http://www.php.net/manual/en/ref.oci8.php


"Robert Hicks" <[EMAIL PROTECTED]> escreveu na mensagem 
news:[EMAIL PROTECTED]

Possible problem. I am getting this error as well:

"The procedure entry point OCILobRead2 could not bel located in the 
dynamic link library OCI.dll"


I am using Oracle9i and OCILobRead2 is not available in my version. So 
what the heck do I do now?


So with PHP 5.2 you pretty much have to use the Oracle instant client. I 
am exploring options.


Robert 


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



Re: [PHP] Time-Zone juggling

2006-11-09 Thread David Giragosian

On 11/8/06, Travis Doherty <[EMAIL PROTECTED]> wrote:


David Giragosian wrote:

> Does Daylight Savings alter Zulu time? (I'm guessing "yes"). How did the
> military deal with that?
>
> I use a date-time field as a primary key in db tables that get an
> insert a
> minute. I had to jump through a number of hoops to turn off DST on the
> (RH
> Linux) server.
>
> David
>
UTC (or GMT, or Zulu, or Z) does not observe Daylight Savings Time.  In
any database that you store timestamps and need to know exactly what
that timestamp means you should use UTC, then use application logic to
translate to the users time zone.

Another option would be to store epoch time (seconds since the OS's
epoch) and work the same result from that, I prefer storing
human-readable timestamps even if you have to do the datemath in your
head to read them in your own timezone.  Epoch does not count
leap-seconds like UTC so it can be off by a tiny bit at any given time.
Epoch time also differs on different operating systems - Unix is
1970-01-01 at 00:00:00 UTC, Windows seems to use 1601-01-01 at 00:00:00
UTC... I don't know if that would ever matter though - I imagine the
database server would mask this and the application would port to
windows without problems (no idea.)

UTC has no DST from: http://en.wikipedia.org/wiki/Time_zone
>>
Due to daylight saving time, UTC is local time at the Royal Observatory,
Greenwich 
only between 01:00 UTC on the last Sunday in October and 01:00 UTC on
the last Sunday in March. For the rest of the year, local time there is
UTC+1 , known in the United
Kingdom  as British Summer
Time  (BST). Similar
circumstances apply in many places.
<<
**
Travis Doherty
TixTime



We are using now() in the MySQL db to insert current time. Database version
is 4.0.24.

I see that in 4.1.* there is utc_timestamp().
Anybody know if this function avoids DST? Might be worth the hassle of
upgrade and possible code changes in the PHP scripts to obtain this feature.
<< Shudder >>

Thanks,

David


[PHP] Zend

2006-11-09 Thread Alain Roger

Hi,

For my work, i bought Zend studio 5.2 and for sure when i installed it, it
modified the path for the PHP.INI file to its local version.
after checking the content of the php.ini file from Zend distribution, it
seems to be a different version than the one from official PHP.

I would like to switch to the previous location of php.ini (in original php
folder) but i would like to know if someone experiment some issues by not
replacing all data from php.ini (version of zend) inside the original
php.ini file (from PHP distribution) ?

I would be glad to be sure that i still can code and debug php code via Zend
tool/

thanks a lot,
Alain


RE: [PHP] Zend

2006-11-09 Thread Ray Hauge
It sounds more like you installed the Zend Platform with the developer's
license that comes with Zend Studio.  If you're on linux it creates a
symlink and it always backs up your current INI file, but when you
install Zend Platform, it adds the sections needed for debugging, etc.
at the end of your current .ini file.  I'm not sure what it does on
Windows.  

In any case, I'd check with Zend.  They'd be a lot more knowledgeable
about their own applications than we are... not to mention that you have
a support contract with the Studio license.

HTH
Ray

-Original Message-
From: Alain Roger [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 09, 2006 9:51 AM
To: PHP General List
Subject: [PHP] Zend

Hi,

For my work, i bought Zend studio 5.2 and for sure when i installed it,
it
modified the path for the PHP.INI file to its local version.
after checking the content of the php.ini file from Zend distribution,
it
seems to be a different version than the one from official PHP.

I would like to switch to the previous location of php.ini (in original
php
folder) but i would like to know if someone experiment some issues by
not
replacing all data from php.ini (version of zend) inside the original
php.ini file (from PHP distribution) ?

I would be glad to be sure that i still can code and debug php code via
Zend
tool/

thanks a lot,
Alain

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



Re: [PHP] Time-Zone juggling

2006-11-09 Thread M.Sokolewicz

David Giragosian wrote:

On 11/8/06, Travis Doherty <[EMAIL PROTECTED]> wrote:


David Giragosian wrote:

> Does Daylight Savings alter Zulu time? (I'm guessing "yes"). How did 
the

> military deal with that?
>
> I use a date-time field as a primary key in db tables that get an
> insert a
> minute. I had to jump through a number of hoops to turn off DST on the
> (RH
> Linux) server.
>
> David
>
UTC (or GMT, or Zulu, or Z) does not observe Daylight Savings Time.  In
any database that you store timestamps and need to know exactly what
that timestamp means you should use UTC, then use application logic to
translate to the users time zone.

Another option would be to store epoch time (seconds since the OS's
epoch) and work the same result from that, I prefer storing
human-readable timestamps even if you have to do the datemath in your
head to read them in your own timezone.  Epoch does not count
leap-seconds like UTC so it can be off by a tiny bit at any given time.
Epoch time also differs on different operating systems - Unix is
1970-01-01 at 00:00:00 UTC, Windows seems to use 1601-01-01 at 00:00:00
UTC... I don't know if that would ever matter though - I imagine the
database server would mask this and the application would port to
windows without problems (no idea.)

UTC has no DST from: http://en.wikipedia.org/wiki/Time_zone
>>
Due to daylight saving time, UTC is local time at the Royal Observatory,
Greenwich 
only between 01:00 UTC on the last Sunday in October and 01:00 UTC on
the last Sunday in March. For the rest of the year, local time there is
UTC+1 , known in the United
Kingdom  as British Summer
Time  (BST). Similar
circumstances apply in many places.
<<
**
Travis Doherty
TixTime



We are using now() in the MySQL db to insert current time. Database version
is 4.0.24.

I see that in 4.1.* there is utc_timestamp().
Anybody know if this function avoids DST? Might be worth the hassle of
upgrade and possible code changes in the PHP scripts to obtain this 
feature.

<< Shudder >>

Thanks,

David



you don't quite understand what UTC is, do you :)
UTC doesn't have DST. It just doesn't, at all.
If it returns a timestamp in UTC offset, it will "avoid" DST for you...

- tul

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



[PHP] http_build_query ... argh

2006-11-09 Thread Jochem Maas
hi guys,

long story ahead - the question at the end concerns whether
the solution to my problem is obviously flawed (as far as anyone can see)
and whether there might be a better/faster solution

apparently http_build_query() has been 'fixed' so that it now
urlencodes square brackets (and if you have never used square brackets in
a url pointing a php script then your obviously new here ;-)

this is fine - apart from the fact that I have a rather complex generic thingy
that not only uses http_build_query() to build actual URLs but
also to generate the input names of hidden form fields (sometimes
one needs/wants to place a stack of request arguments as hidden inputs
instead of as GET parameters of a URL.

urlencoded sqaurebrackets in a POST variable's name will not be deencoded,
and as a result php won't see the POST vars as 'arrays' (which the
square brackets signify). upshot being that my app is borked.

so now I'm trying to fix the issue - the only real remedy being to
perform some kind of string replacement on the output of http_build_query()
in situations where it is relevant (i.e. situations where I'm not using the
result of http_build_query() [directly] in an actual URL)

so I wrote a function which is supposed to take a string and decode every
urlencoded opening and closing square bracket that occurs between a question 
mark/ampersand
and an equals sign (I don't want to decode urlencoded square brackets that might
exist in the values of params), I tested it and it seems to work but someone
might feel the urge to tell me I'm forgeting something or merely that my 
solution
is slow as molasses and that there is a better way...

here is the function:

function inputPostQueryUnBorker($s)
{
return preg_replace('#(\?|&(?:amp;)?)([^=]*)=#eU',
"'\\1'.str_replace(array('%5B','%5D'), 
array('[',']'), '\\2').'='",
$s);
}

so how bad is it?

tia.

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



Re: [PHP] Time-Zone juggling

2006-11-09 Thread David Giragosian

On 11/9/06, M.Sokolewicz <[EMAIL PROTECTED]> wrote:


David Giragosian wrote:
> On 11/8/06, Travis Doherty <[EMAIL PROTECTED]> wrote:
>>
>> David Giragosian wrote:
>>
>> > Does Daylight Savings alter Zulu time? (I'm guessing "yes"). How did
>> the
>> > military deal with that?
>> >
>> > I use a date-time field as a primary key in db tables that get an
>> > insert a
>> > minute. I had to jump through a number of hoops to turn off DST on
the
>> > (RH
>> > Linux) server.
>> >
>> > David
>> >
>> UTC (or GMT, or Zulu, or Z) does not observe Daylight Savings Time.  In
>> any database that you store timestamps and need to know exactly what
>> that timestamp means you should use UTC, then use application logic to
>> translate to the users time zone.
>>
>> Another option would be to store epoch time (seconds since the OS's
>> epoch) and work the same result from that, I prefer storing
>> human-readable timestamps even if you have to do the datemath in your
>> head to read them in your own timezone.  Epoch does not count
>> leap-seconds like UTC so it can be off by a tiny bit at any given time.
>> Epoch time also differs on different operating systems - Unix is
>> 1970-01-01 at 00:00:00 UTC, Windows seems to use 1601-01-01 at 00:00:00
>> UTC... I don't know if that would ever matter though - I imagine the
>> database server would mask this and the application would port to
>> windows without problems (no idea.)
>>
>> UTC has no DST from: http://en.wikipedia.org/wiki/Time_zone
>> >>
>> Due to daylight saving time, UTC is local time at the Royal
Observatory,
>> Greenwich 
>> only between 01:00 UTC on the last Sunday in October and 01:00 UTC on
>> the last Sunday in March. For the rest of the year, local time there is
>> UTC+1 , known in the United
>> Kingdom  as British Summer
>> Time  (BST). Similar
>> circumstances apply in many places.
>> <<
>> **
>> Travis Doherty
>> TixTime
>>
>
> We are using now() in the MySQL db to insert current time. Database
version
> is 4.0.24.
>
> I see that in 4.1.* there is utc_timestamp().
> Anybody know if this function avoids DST? Might be worth the hassle of
> upgrade and possible code changes in the PHP scripts to obtain this
> feature.
> << Shudder >>
>
> Thanks,
>
> David
>

you don't quite understand what UTC is, do you :)
UTC doesn't have DST. It just doesn't, at all.
If it returns a timestamp in UTC offset, it will "avoid" DST for you...

- tul




We use now() to do timestamp inserts in the MySQL db. "now()" in MySQL is
based upon the OS time, which is obviously affected by timezone setting as
an offset from UTC. When I've set the RH server to use UTC, the OS time was
still affected by the "rule" which altered UTC to the timezone setting (I'm
in the process of moving my office or else I'd be able to find the document
describing how to alter the RH OS to not obey DST changes). My question is
based upon this experience.

If "select utc_timestamp() in MySQL truly returns the UTC with timezone
offset and without any adjustments for DST, that would be just peachy.

Thanks,

David


Re: [PHP] http_build_query ... argh

2006-11-09 Thread Arpad Ray

Jochem Maas wrote:

function inputPostQueryUnBorker($s)
{
return preg_replace('#(\?|&(?:amp;)?)([^=]*)=#eU',
"'\\1'.str_replace(array('%5B','%5D'), array('[',']'), 
'\\2').'='",
$s);
}

so how bad is it
This is a bit more concise. I doubt there'd be a noticable difference in 
speed though:


return preg_replace('#%5[bd](?=[^&]*=)#ei', 'urldecode("\0")', $s);

Arpad

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



[PHP] Re: Simple logic but can't get it right

2006-11-09 Thread Myron Turner

You are testing unset variables.  This will work as you expect:

"; //Output is "b"...WHY?? It should be "outside"...

?>


Choy, Wai Yew wrote:

Hi gurus,

 


I've the following piece of PHP codeIt is a simple logic but I can't
get it rightThe output result of $id is "b"!!...It should be
"outside", right??

 


I think it is the variable $bCoz' it depend on the previous check (
if ($a == 0) ) for the value... If this is the case, how can I get this
logic works??

 


Thanks a million,

Choy

 

 

 

 


 


$a = 1;

$id = "outside";




if ($a == 0) {

  


$b = 1;

$id = "a";

  


}

 

 


elseif ($b == 0) {

  


$c = 1;

$id = "b";

  


}

 

 


elseif ($c == 0){

  


$d = 1;

$id = "c";

  


}

 




 echo "ID = $id"; //Output is "b"...WHY?? It should be "outside"...

 

 

 


?>





--

_
Myron Turner
http://www.room535.org
http://www.bstatzero.org
http://www.mturner.org/XML_PullParser/

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



[PHP] Determining what's installed

2006-11-09 Thread tedd

Hi gang:

I'm sure this is an obvious question to most, but how does one 
determine what software is installed on a virtual host?


You see, I want to know if ImageMagick (MagicWand for PHP) is 
installed on my host or not. I've tried using cPannel and phpinfo, 
but neither mention it -- however --  I don't know for sure if either 
would anyway.


So, how do you find out -- other than asking the host (who in my 
case, is very slow to respond)?


Thanks,

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



[PHP] php.ini

2006-11-09 Thread Alain Roger

Hi,

everytime i install PHP, my "php.ini" must be installed in "C:\windows\"
folder.

How can i do to force system to read "php.ini" file from "C:\PHP\" folder
only ?
thanks.

Alain


Re: [PHP] Determining what's installed

2006-11-09 Thread Darrell Brogdon
phpinfo() should mention it if its installed.  Also, just try calling  
one of the ImageMagick functions in a test script.  If its not  
installed PHP will complain accordingly.


-D

On Nov 9, 2006, at 11:02 AM, tedd wrote:


Hi gang:

I'm sure this is an obvious question to most, but how does one  
determine what software is installed on a virtual host?


You see, I want to know if ImageMagick (MagicWand for PHP) is  
installed on my host or not. I've tried using cPannel and phpinfo,  
but neither mention it -- however --  I don't know for sure if  
either would anyway.


So, how do you find out -- other than asking the host (who in my  
case, is very slow to respond)?


Thanks,

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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




Darrell Brogdon
[EMAIL PROTECTED]
http://darrell.brogdon.net

*
** Prepare for PHP Certication!**
** http://phpflashcards.com**
*




[PHP] Staff log-in

2006-11-09 Thread Brynjar Guðnason

Hi,

I need a little php script. Staff log in by entering username and password
and then the next time they enter their username and password they log out.
The script has to take down the time they log in and log out. Then I should
be able to read old log-ins and log-outs.

I unfortunately can't make it myself because I don't have the knowledge, can
anyone of you do this for me? It's for a small non-profit orginisation.

Thanks in advance,
Brynjar Gudnason.


[PHP] Re: php.ini

2006-11-09 Thread zerof

Alain Roger escreveu:

Hi,

everytime i install PHP, my "php.ini" must be installed in "C:\windows\"
folder.

How can i do to force system to read "php.ini" file from "C:\PHP\" folder
only ?
thanks.

Alain



You need to put the c:\php folder in the path of the system.

Control Panel >

OPEN System >

> Tab Advanced > Environment Variables >

> Select the variable Path > Click Edit >

> Add at the end, the term: ;C:\php;

+ Click OK, OK, . . . to conclude.

ex-corde,
zerof
http://www.educar.pro.br/

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



Re: [PHP] Staff log-in

2006-11-09 Thread John Nichel

Brynjar Guðnason wrote:

Hi,

I need a little php script. Staff log in by entering username and password
and then the next time they enter their username and password they log out.
The script has to take down the time they log in and log out. Then I should
be able to read old log-ins and log-outs.

I unfortunately can't make it myself because I don't have the knowledge, 
can

anyone of you do this for me? It's for a small non-profit orginisation.



$80.00 an hour.  8 hour minimum.  I am a *for-profit* individual.

--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

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



Re: [PHP] Staff log-in

2006-11-09 Thread Robert Cummings
On Thu, 2006-11-09 at 14:28 -0500, John Nichel wrote:
> Brynjar Guðnason wrote:
> > Hi,
> > 
> > I need a little php script. Staff log in by entering username and password
> > and then the next time they enter their username and password they log out.
> > The script has to take down the time they log in and log out. Then I should
> > be able to read old log-ins and log-outs.
> > 
> > I unfortunately can't make it myself because I don't have the knowledge, 
> > can
> > anyone of you do this for me? It's for a small non-profit orginisation.
> > 
> 
> $80.00 an hour.  8 hour minimum.  I am a *for-profit* individual.

Didn't you charge $100 an hour previously?? Slow year?  ;)

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] Staff log-in

2006-11-09 Thread John Nichel

Brynjar Guðnason wrote:

Why did you bother to answer me ?


Please send all your replies to the list.

1)  You asked if anyone could do this.
2)  I gave you my rates.
3)  Non-profit companies pay for services.
4)  If you didn't want to pay, you should have specified that
a)  If you want someone on this list to do it for you out of the
goodness of their heart because you *claim* it is for a non-
profit organization, then you're going to need to pony up
some proof to collaborate your word.
b)  The people on this list donate their time to the list to help
answer questions.  I think it is safe to say that all of us
have bills to pay, and don't want to give our services away
for free.  So, try not to get your panties in a knot when we
want to be paid for our work.
5)  $80.00 is my *reduced* rate.


2006/11/9, John Nichel <[EMAIL PROTECTED] >:

Brynjar Guðnason wrote:
 > Hi,
 >
 > I need a little php script. Staff log in by entering username and
password
 > and then the next time they enter their username and password
they log out.
 > The script has to take down the time they log in and log out.
Then I should
 > be able to read old log-ins and log-outs.
 >
 > I unfortunately can't make it myself because I don't have the
knowledge,
 > can
 > anyone of you do this for me? It's for a small non-profit
orginisation.
 >

$80.00 an hour.  8 hour minimum.  I am a *for-profit* individual.



--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

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



[PHP] Re: [SOAP] problems with SOAP-PHP5 and heritage

2006-11-09 Thread Ronaldo Reis Junior
Em Quarta 08 Novembro 2006 00:48, Adam Ashley escreveu:
> On Tue, 7 Nov 2006 10:06:28 -0200, Ronaldo Reis Junior
>
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I'm making a webservice using SOAP-PHP5. It working fine. But when I use
> > a method in a class that use a heritage, it fails. The class wrok fine
> > out of the webservice, but dont work on webservice.
>
>  From the look of the files you attached they appear to be part of the
> client yes?
>
> If so you're looking in the wrong spot according to that error message
> the server did not generate a response. if you are using PHP5 SOAP it
> often means a parse or fatal error server side.
>
> Also what php version you using?
>
> Adam Ashley

Hi,

I try to make a more detailed example of the problem.

In attached file has a complete simple example.

./ServerTeste
./ServerTeste/classes
./ServerTeste/classes/Personnel.php
./ServerTeste/classes/User.php
./ServerTeste/wsdl
./ServerTeste/wsdl/WSDL_Gen.php
./ServerTeste/wsdl/generate.php
./ServerTeste/wsdl/User.wsdl
./ServerTeste/personnel.php
./ServerTeste/user.php
./teste.php
./User.wsdl

To make it work just copy to /var/www or other path. Change the permission of 
files to apache users write files. Change the line 10 from 
file ./ServerTeste/wsdl/generate.php to point to your webserver and path. 
Execute this file and copy the new ./ServerTeste/wsdl/User.wsdl 
to ./User.wsdl. Now point yout browser to 
http://youraddress/yourpath/teste.php.

You see the OK, the soap work. 

The problem is with this file: ./ServerTeste/classes/User.php

This is the code that work (without inheritance):



But, when I active the inheritance:



I received this error:

SoapFault exception: [Client] looks like we got no XML document 
in /var/www/bioma/WSTest/teste.php:5 Stack trace: #0 [internal function]: 
SoapClient->__call('checklogin', Array) 
#1 /var/www/bioma/WSTest/teste.php(5): SoapClient->checklogin('c', 'c') #2 
{main}

I dont find what is the problem? It is with inheritance?

Thanks for all explanations.

Inte
Ronaldo
ps. my attach file is blocked by server, I can send it in private
pss. my e-mail is going do the list? Please, reply if yes.
--
> Prof. Ronaldo Reis Júnior
|  .''`. UNIMONTES/Depto. Biologia Geral/Lab. Ecologia Evolutiva
| : :'  : Campus Universitário Prof. Darcy Ribeiro, Vila Mauricéia
| `. `'` CP: 126, CEP: 39401-089, Montes Claros - MG - Brasil
|   `- Fone: (38) 3229-8190 | [EMAIL PROTECTED]
| ICQ#: 5692561 | LinuxUser#: 205366

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



[PHP] gethostbyname failing?

2006-11-09 Thread Henrik Hudson
Hey List-

running: apache 2.2, freebsd 6.2 and php 4.4.4

I've got a wierd issue. I've got a script that does this:

$domain = "www.google.com";
$ip = gethostbyname($domain);
echo $ip;

$hostname = gethostbyaddr("72.14.205.99");
echo $hostname;


Using dig, ping, etc... to confirm name resolution is working works fine. 
Running that script from the CLI is fine (ie: php test.php). However, when 
running from the web it doesn't work.

I tried it on a php 5.1.x box and it works fine there. 

Thoughts?


Henrik
-- 
Henrik Hudson
[EMAIL PROTECTED]
--
"God, root, what is difference?" Pitr; UF (http://www.userfriendly.org/)

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



Re: [PHP] gethostbyname failing?

2006-11-09 Thread Jürgen Wind



Henrik Hudson wrote:
> 
> Hey List-
> 
> running: apache 2.2, freebsd 6.2 and php 4.4.4
> 
> I've got a wierd issue. I've got a script that does this:
> 
> $domain = "www.google.com";
> $ip = gethostbyname($domain);
> echo $ip;
> 
> $hostname = gethostbyaddr("72.14.205.99");
> echo $hostname;
> 
> 
> Using dig, ping, etc... to confirm name resolution is working works fine. 
> Running that script from the CLI is fine (ie: php test.php). However, when 
> running from the web it doesn't work.
> 
> I tried it on a php 5.1.x box and it works fine there. 
> 
> Thoughts?
> 
> 
> Henrik
> 
> 
';
print_r( gethostbynamel('www.google.com') );
?>
Array
(
[0] => 209.85.135.103
[1] => 209.85.135.104
[2] => 209.85.135.147
[3] => 209.85.135.99
)

Jürgen
-- 
View this message in context: 
http://www.nabble.com/gethostbyname-failing--tf2604272.html#a7267120
Sent from the PHP - General mailing list archive at Nabble.com.

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



Re: [PHP] gethostbyname failing?

2006-11-09 Thread Henrik Hudson
On Thursday 09 November 2006 15:56, Jürgen Wind <[EMAIL PROTECTED]> sent a 
missive 
stating: 
> Henrik Hudson wrote:
> > Hey List-
> >
> > running: apache 2.2, freebsd 6.2 and php 4.4.4
> >
> > I've got a wierd issue. I've got a script that does this:
> >
> > $domain = "www.google.com";
> > $ip = gethostbyname($domain);
> > echo $ip;
> >
> > $hostname = gethostbyaddr("72.14.205.99");
> > echo $hostname;
> >
> >
> > Using dig, ping, etc... to confirm name resolution is working works fine.
> > Running that script from the CLI is fine (ie: php test.php). However,
> > when running from the web it doesn't work.
> >
> > I tried it on a php 5.1.x box and it works fine there.
> >
> > Thoughts?
> >
> >
> > Henrik
>
> ';
> print_r( gethostbynamel('www.google.com') );
> ?>
> Array
> (
> [0] => 209.85.135.103
> [1] => 209.85.135.104
> [2] => 209.85.135.147
> [3] => 209.85.135.99
> )

Yes, I get nothing when running inside Apache. I get no errors in my logs 
either. However, again when I do it from the CLI I get:

Array
(
[0] => 72.14.205.99
[1] => 72.14.205.104
)

So, is this a bug in the php module? a setting in Apache? a setting in my 
php.ini?  or ???

I also tried a perl script which works fine both from the CLI and inside 
Apache.

Henrik
-- 
Henrik Hudson
[EMAIL PROTECTED]
--
"God, root, what is difference?" Pitr; UF (http://www.userfriendly.org/)

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



Re: [PHP] Re: php.ini

2006-11-09 Thread Matt

Adding the line:

PHPINIDir "c:/php/"

to my Apache configuration file has worked for me on Windows installs,
assuming that you are using Apache.

On 11/9/06, zerof <[EMAIL PROTECTED]> wrote:

Alain Roger escreveu:
> Hi,
>
> everytime i install PHP, my "php.ini" must be installed in "C:\windows\"
> folder.
>
> How can i do to force system to read "php.ini" file from "C:\PHP\" folder
> only ?
> thanks.
>
> Alain
>

You need to put the c:\php folder in the path of the system.

Control Panel >

OPEN System >

> Tab Advanced > Environment Variables >

> Select the variable Path > Click Edit >

> Add at the end, the term: ;C:\php;

+ Click OK, OK, . . . to conclude.

ex-corde,
zerof
http://www.educar.pro.br/

--
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] gethostbyname failing?

2006-11-09 Thread Google Kreme

On 09 Nov 2006, at 15:09 , Henrik Hudson wrote:
On Thursday 09 November 2006 15:56, Jürgen Wind <[EMAIL PROTECTED]> sent  
a missive

stating:

';
print_r( gethostbynamel('www.google.com') );
?>



Yes, I get nothing when running inside Apache.





Works fine here...

--
I want to get hurt!

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



Re: [PHP] Staff log-in

2006-11-09 Thread Google Kreme

On 09 Nov 2006, at 12:51 , Robert Cummings wrote:

On Thu, 2006-11-09 at 14:28 -0500, John Nichel wrote:

Brynjar Guðnason wrote:
can anyone of you do this for me? It's for a small non-profit  
orginisation.


$80.00 an hour.  8 hour minimum.  I am a *for-profit* individual.


Didn't you charge $100 an hour previously?? Slow year?  ;)


You don't have a reduced rate for non-profits?

I do...

To answer the original question though, you need a database backend.   
It can be as simple as a text file, but that would be silly.  Log  
each 'session' by login and logout times.  The trouble comes when you  
need to time-out a session because someone never logged out  
properly.  That can be hairy.



--
Otto: Apes don't read philosophy.
Wanda: Yes, they do Otto, they just don't understand it.

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



Re: [PHP] gethostbyname failing?

2006-11-09 Thread Jürgen Wind

maybe this is related:
from http://de3.php.net/manual/en/function.gethostbyname.php (user comments)
>>>
 christian at SPAM at IS at DEAD at MEAT at karg dot org
01-Apr-2003 02:12
I had difficulty getting gethostbyname to work under OpenBSD 3.2 and Apache,
until I discovered that the default Apache chroot caused the problem.

To get PHP's gethostbyname to work, you need resolv.conf (and possibly
hosts) in /var/www/etc (assuming default install dirs).
<<<
-- 
View this message in context: 
http://www.nabble.com/gethostbyname-failing--tf2604272.html#a7268131
Sent from the PHP - General mailing list archive at Nabble.com.

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



Re: [PHP] Re: php.ini

2006-11-09 Thread zerof

Matt escreveu:

Adding the line:

PHPINIDir "c:/php/"

to my Apache configuration file has worked for me on Windows installs,
assuming that you are using Apache.


--
OH yes, in Apache 2.x this is also necessary.
-
zerof

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



Re: [PHP] php.ini

2006-11-09 Thread Jürgen Wind

PHP is not supposed to look for php.ini in PATH.
(from http://bugs.php.net/bug.php?id=39432)


zerof wrote:
> 
> Alain Roger escreveu:
>> Hi,
>> 
>> everytime i install PHP, my "php.ini" must be installed in "C:\windows\"
>> folder.
>> 
>> How can i do to force system to read "php.ini" file from "C:\PHP\" folder
>> only ?
>> thanks.
>> 
>> Alain
>> 
> 
> You need to put the c:\php folder in the path of the system.
> 
> Control Panel >
> 
> OPEN System >
> 
> > Tab Advanced > Environment Variables >
> 
> > Select the variable Path > Click Edit >
> 
> > Add at the end, the term: ;C:\php;
> 
> + Click OK, OK, . . . to conclude.
> 
> ex-corde,
> zerof
> http://www.educar.pro.br/
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/php.ini-tf2603259.html#a7268994
Sent from the PHP - General mailing list archive at Nabble.com.

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



Re: [PHP] gethostbyname failing?

2006-11-09 Thread Henrik Hudson
Thanks for the input everyone. It seems it Apache itself can't do lookups 
either (ie: Hostnamelookups On  ..doesn't actually do anything..so, going to 
hunt down the issues inside Apache...)

funny thing is I've got a test server with the same exact port versions and 
almost identical config files, so..I don't know...perl scripts and php from 
the CLI work fine..so my actual DNS resolution is working okay..just Apache 
is losing it somewhere...if anyone has some thoughts..let me know :)

On Thursday 09 November 2006 15:27, Henrik Hudson <[EMAIL PROTECTED]> sent a 
missive stating: 
> Hey List-
>
> running: apache 2.2, freebsd 6.2 and php 4.4.4
>
> I've got a wierd issue. I've got a script that does this:
>
> $domain = "www.google.com";
> $ip = gethostbyname($domain);
> echo $ip;
>
> $hostname = gethostbyaddr("72.14.205.99");
> echo $hostname;
>
>
> Using dig, ping, etc... to confirm name resolution is working works fine.
> Running that script from the CLI is fine (ie: php test.php). However, when
> running from the web it doesn't work.
>
> I tried it on a php 5.1.x box and it works fine there.
>
> Thoughts?
>
>
> Henrik
> --
> Henrik Hudson
> [EMAIL PROTECTED]
> --
> "God, root, what is difference?" Pitr; UF (http://www.userfriendly.org/)

-- 
Henrik Hudson
[EMAIL PROTECTED]
--
"God, root, what is difference?" Pitr; UF (http://www.userfriendly.org/)

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



Re: [PHP] Staff log-in

2006-11-09 Thread benifactor

give us (the list) the website address.
- Original Message - 
From: "Brynjar Guðnason" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, November 09, 2006 11:16 AM
Subject: [PHP] Staff log-in



Hi,

I need a little php script. Staff log in by entering username and password
and then the next time they enter their username and password they log 
out.
The script has to take down the time they log in and log out. Then I 
should

be able to read old log-ins and log-outs.

I unfortunately can't make it myself because I don't have the knowledge, 
can

anyone of you do this for me? It's for a small non-profit orginisation.

Thanks in advance,
Brynjar Gudnason.



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



Re: [PHP] http_build_query ... argh

2006-11-09 Thread Larry Garfield
On Thursday 09 November 2006 10:22, Jochem Maas wrote:

> apparently http_build_query() has been 'fixed' so that it now
> urlencodes square brackets (and if you have never used square brackets in
> a url pointing a php script then your obviously new here ;-)
>
> this is fine - apart from the fact that I have a rather complex generic
> thingy that not only uses http_build_query() to build actual URLs but
> also to generate the input names of hidden form fields (sometimes
> one needs/wants to place a stack of request arguments as hidden inputs
> instead of as GET parameters of a URL.

Er, wouldn't the better solution be to fix http_build_query to not break when 
handling fairly typical PHP URLs?

-- 
Larry Garfield  AIM: LOLG42
[EMAIL PROTECTED]   ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson

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



[PHP] PHP, MySQL- Interested?

2006-11-09 Thread John Sladek
Hello,

I'm looking for people that like messing around with PHP and MySql.  I've 
started a project to help myself learn more about PHP, MySql.  The program 
basically takes database infomation (username, password, database name and 
location) as input and then uses that info to create php scripts to handle the 
basic functions of Create, Remove, Update & Display for each table. Basically 1 
script per table in the database.  Also the program builds a little Application 
framework too.   The script function both inside the Application and also stand 
alone.

Keep in mind I am a beginner @ this stuff and this project is in it's beginning 
stages... I'm just looking for feedback.  I think it rocks but I am Biased
http://www.iobe.net/proj/


Regards,
John Sladek

Re: [PHP] gethostbyname failing?

2006-11-09 Thread Chris

Henrik Hudson wrote:
Thanks for the input everyone. It seems it Apache itself can't do lookups 
either (ie: Hostnamelookups On  ..doesn't actually do anything..so, going to 
hunt down the issues inside Apache...)


funny thing is I've got a test server with the same exact port versions and 
almost identical config files, so..I don't know...perl scripts and php from 
the CLI work fine..so my actual DNS resolution is working okay..just Apache 
is losing it somewhere...if anyone has some thoughts..let me know :)


Hostname lookups has *nothing* to do with this issue. It only affects 
apache.

http://httpd.apache.org/docs/1.3/mod/core.html#hostnamelookups

As someone else mentioned, freebsd has issues with this stuff when it's 
running inside a chroot'ed environment.


Are you running in a chroot'ed or selinux or anything like that?

--
Postgresql & php tutorials
http://www.designmagick.com/

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