php-general Digest 9 Nov 2006 23:26:58 -0000 Issue 4450
Topics (messages 244425 through 244452):
problem with imagestring()
244425 by: Piotr Sulecki
Re: DLL error
244426 by: Robert Hicks
Re: Time-Zone juggling
244427 by: David Giragosian
244430 by: M.Sokolewicz
244431 by: M.Sokolewicz
244433 by: David Giragosian
Zend
244428 by: Alain Roger
244429 by: Ray Hauge
http_build_query ... argh
244432 by: Jochem Maas
244434 by: Arpad Ray
Re: Simple logic but can't get it right
244435 by: Myron Turner
Determining what's installed
244436 by: tedd
244438 by: Darrell Brogdon
php.ini
244437 by: Alain Roger
244440 by: zerof
244448 by: Matt
244452 by: zerof
Staff log-in
244439 by: Brynjar Guðnason
244441 by: John Nichel
244442 by: Robert Cummings
244443 by: John Nichel
244450 by: Google Kreme
Re: [SOAP] problems with SOAP-PHP5 and heritage
244444 by: Ronaldo Reis Junior
gethostbyname failing?
244445 by: Henrik Hudson
244446 by: Jürgen Wind
244447 by: Henrik Hudson
244449 by: Google Kreme
244451 by: Jürgen Wind
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
php-general@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
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.
--- End Message ---
--- Begin Message ---
"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
--- End Message ---
--- Begin Message ---
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 <http://en.wikipedia.org/wiki/Royal_Observatory%2C_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 <http://en.wikipedia.org/wiki/UTC%2B1>, known in the United
Kingdom <http://en.wikipedia.org/wiki/United_Kingdom> as British Summer
Time <http://en.wikipedia.org/wiki/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
--- End Message ---
--- Begin Message ---
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 <http://en.wikipedia.org/wiki/Royal_Observatory%2C_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 <http://en.wikipedia.org/wiki/UTC%2B1>, known in the United
Kingdom <http://en.wikipedia.org/wiki/United_Kingdom> as British Summer
Time <http://en.wikipedia.org/wiki/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
--- End Message ---
--- Begin Message ---
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 <http://en.wikipedia.org/wiki/Royal_Observatory%2C_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 <http://en.wikipedia.org/wiki/UTC%2B1>, known in the United
Kingdom <http://en.wikipedia.org/wiki/United_Kingdom> as British Summer
Time <http://en.wikipedia.org/wiki/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
--- End Message ---
--- Begin Message ---
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 <http://en.wikipedia.org/wiki/Royal_Observatory%2C_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 <http://en.wikipedia.org/wiki/UTC%2B1>, known in the United
>> Kingdom <http://en.wikipedia.org/wiki/United_Kingdom> as British Summer
>> Time <http://en.wikipedia.org/wiki/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
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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.
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
You are testing unset variables. This will work as you expect:
<?php
$a = 1;
$id = "outside";
if ($a == 0) {
$b = 1;
$id = "a";
}
elseif (isset($b) && $b == 0) {
$c = 1;
$id = "b";
}
elseif (isset($c) && $c == 0){
$d = 1;
$id = "c";
}
echo "ID = $id<br>"; //Output is "b"...WHY?? It should be "outside"...
?>
Choy, Wai Yew wrote:
Hi gurus,
I've the following piece of PHP code....It is a simple logic but I can't
get it right....The output result of $id is "b"!!...It should be
"outside", right??
I think it is the variable $b....Coz' 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
<?php
$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<br>"; //Output is "b"...WHY?? It should be "outside"...
?>
--
_____________________
Myron Turner
http://www.room535.org
http://www.bstatzero.org
http://www.mturner.org/XML_PullParser/
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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 **
*************************************
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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/
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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.
--- End Message ---
--- Begin Message ---
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]
--- End Message ---
--- Begin Message ---
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. |
`------------------------------------------------------------'
--- End Message ---
--- Begin Message ---
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] <mailto:[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]
--- End Message ---
--- Begin Message ---
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.
--- End Message ---
--- Begin Message ---
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):
<?php
//require("../classes/Personnel.php");
// class User extends Personnel{
class User {
private $login;
public function User() {
// parent::Personnel();
}
/** Validate login
* @param string $login
* @param string $password
* @return int
*/
function checkLogin($login, $password){
return 1;
}
}
?>
But, when I active the inheritance:
<?php
require("../classes/Personnel.php");
class User extends Personnel{
//class User {
private $login;
public function User() {
parent::Personnel();
}
/** Validate login
* @param string $login
* @param string $password
* @return int
*/
function checkLogin($login, $password){
return 1;
}
}
?>
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
--- End Message ---
--- Begin Message ---
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/)
--- End Message ---
--- Begin Message ---
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
>
>
<?php echo '<pre>';
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.
--- End Message ---
--- Begin Message ---
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
>
> <?php echo '<pre>';
> 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:
<pre>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/)
--- End Message ---
--- Begin Message ---
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:
<?php echo '<pre>';
print_r( gethostbynamel('www.google.com') );
?>
Yes, I get nothing when running inside Apache.
<http://akane.covisp.net/~kreme/test.php>
<http://akane.covisp.net/~kreme/test.phps>
Works fine here...
--
I want to get hurt!
--- End Message ---
--- Begin Message ---
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.
--- End Message ---