php-general Digest 15 Aug 2007 05:36:19 -0000 Issue 4962
Topics (messages 260816 through 260831):
Re: php.ini of PHP 5.2.3
260816 by: Alain Roger
260819 by: Richard Lynch
Re: www.soongy.com
260817 by: Joker7
260829 by: Bastien Koert
260830 by: heavyccasey.gmail.com
open source for scripts directory
260818 by: Sanjeev N
Re: zip freezes - how to handle corrupt CRC in zip-file
260820 by: Richard Lynch
Re: problem in <tr>
260821 by: Richard Lynch
Re: About Buggy SQL Query
260822 by: Richard Lynch
HTTP 1.1 keep-alive support in ext/soap/php_http.c ? (fwd)
260823 by: Brian A. Seklecki
260826 by: Brian A. Seklecki
260828 by: Chris
Re: very strange behavior.... incomplete query performed
260824 by: Chris
Re: HTTP methods, Web Browsers and REST
260825 by: Chris
260827 by: Nathan Nobbe
About UTF-8 / ANSI
260831 by: Kelvin Park
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:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
So what should i do ?
On 8/13/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
>
> OpenSSL has a secondary dependency on libeay or whatever it is.
>
> PHP might *think* it has OpenSSL, but until OpenSSL can also load in
> the libeay thingie, it ain't gonna work.
>
> It can be confusing, especially when the error log shows something
> about openssl but doesn't say what openssl is missing, and folks think
> it's still missing openssl itself, when it's really missing libeay.
>
> On Sat, August 11, 2007 6:02 am, Alain Roger wrote:
> > I've discovered that when i type "php -m", openssl is already loaded
> > as
> > module.
> > It seems that PHP 5.2.3 was compiled with "--with-openssl" command.
> >
> > So, why modules with which ones PHP has been compiled do not appear in
> > the
> > phpinfo() report ?
> >
> > thanks a lot,
> >
> > Al.
> >
> > On 8/11/07, Stut <[EMAIL PROTECTED]> wrote:
> >>
> >> Alain Roger wrote:
> >> > I have a stupid problem.
> >> > At work i installed the PHP 5.2.1 and it works fine.
> >> > i uncomment extension = php_opensll and i see that extension is
> >> activated
> >> > because phpinfo show me information about such extension.
> >> >
> >> > However, at homw i've just installed PHP 5.2.3 and i did the same
> >> as at
> >> work
> >> > but i'm not able to get any table information about openssl via
> >> phpinfo();
> >> > function.
> >> >
> >> > could you help me please ?
> >>
> >> OpenSSL requires a DLL file to be in the path on Windows. From the
> >> manual page (http://php.net/openssl)...
> >>
> >> "Note to Win32 Users: In order for this extension to work, there
> >> are
> >> DLL files that must be available to the Windows system PATH. See the
> >> FAQ
> >> titled "How do I add my PHP directory to the PATH on Windows" for
> >> information on how to do this. Although copying DLL files from the
> >> PHP
> >> folder into the Windows system directory also works (because the
> >> system
> >> directory is by default in the systems PATH), it is not recommended.
> >> This extension requires the following files to be in the PATH:
> >> libeay32.dll"
> >>
> >> -Stut
> >>
> >> --
> >> http://stut.net/
> >>
> >
> >
> >
> > --
> > Alain
> > ------------------------------------
> > Windows XP SP2
> > PostgreSQL 8.2.3
> > Apache 2.2.4
> > PHP 5.2.3
> >
>
>
> --
> Some people have a "gift" link here.
> Know what I want?
> I want you to buy a CD from some indie artist.
> http://cdbaby.com/browse/from/lynch
> Yeah, I get a buck. So?
>
>
--
Alain
------------------------------------
Windows XP SP2
PostgreSQL 8.2.3
Apache 2.2.4
PHP 5.2.3
--- End Message ---
--- Begin Message ---
*IF* this is the actual problem, then find the libeay.ddl thingie and
put it next to the openssl.dll thingie.
On Tue, August 14, 2007 11:42 am, Alain Roger wrote:
> So what should i do ?
>
> On 8/13/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
>>
>> OpenSSL has a secondary dependency on libeay or whatever it is.
>>
>> PHP might *think* it has OpenSSL, but until OpenSSL can also load in
>> the libeay thingie, it ain't gonna work.
>>
>> It can be confusing, especially when the error log shows something
>> about openssl but doesn't say what openssl is missing, and folks
>> think
>> it's still missing openssl itself, when it's really missing libeay.
>>
>> On Sat, August 11, 2007 6:02 am, Alain Roger wrote:
>> > I've discovered that when i type "php -m", openssl is already
>> loaded
>> > as
>> > module.
>> > It seems that PHP 5.2.3 was compiled with "--with-openssl"
>> command.
>> >
>> > So, why modules with which ones PHP has been compiled do not
>> appear in
>> > the
>> > phpinfo() report ?
>> >
>> > thanks a lot,
>> >
>> > Al.
>> >
>> > On 8/11/07, Stut <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Alain Roger wrote:
>> >> > I have a stupid problem.
>> >> > At work i installed the PHP 5.2.1 and it works fine.
>> >> > i uncomment extension = php_opensll and i see that extension is
>> >> activated
>> >> > because phpinfo show me information about such extension.
>> >> >
>> >> > However, at homw i've just installed PHP 5.2.3 and i did the
>> same
>> >> as at
>> >> work
>> >> > but i'm not able to get any table information about openssl via
>> >> phpinfo();
>> >> > function.
>> >> >
>> >> > could you help me please ?
>> >>
>> >> OpenSSL requires a DLL file to be in the path on Windows. From
>> the
>> >> manual page (http://php.net/openssl)...
>> >>
>> >> "Note to Win32 Users: In order for this extension to work, there
>> >> are
>> >> DLL files that must be available to the Windows system PATH. See
>> the
>> >> FAQ
>> >> titled "How do I add my PHP directory to the PATH on Windows" for
>> >> information on how to do this. Although copying DLL files from
>> the
>> >> PHP
>> >> folder into the Windows system directory also works (because the
>> >> system
>> >> directory is by default in the systems PATH), it is not
>> recommended.
>> >> This extension requires the following files to be in the PATH:
>> >> libeay32.dll"
>> >>
>> >> -Stut
>> >>
>> >> --
>> >> http://stut.net/
>> >>
>> >
>> >
>> >
>> > --
>> > Alain
>> > ------------------------------------
>> > Windows XP SP2
>> > PostgreSQL 8.2.3
>> > Apache 2.2.4
>> > PHP 5.2.3
>> >
>>
>>
>> --
>> Some people have a "gift" link here.
>> Know what I want?
>> I want you to buy a CD from some indie artist.
>> http://cdbaby.com/browse/from/lynch
>> Yeah, I get a buck. So?
>>
>>
>
>
> --
> Alain
> ------------------------------------
> Windows XP SP2
> PostgreSQL 8.2.3
> Apache 2.2.4
> PHP 5.2.3
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--- End Message ---
--- Begin Message ---
In news: [EMAIL PROTECTED] - "Gevorg
Harutyunyan" wrote :
>> Hello,
>>
>>
>>
>> I am Gevorg.
>>
>> I just wanted to introduce you my new PHP based work here
>> www.soongy.com <http://www.soongy.com/> .
>>
>> It is working on PHP and MySQL and here is used DHTML, AJAX.
>>
>>
>>
>> Thank you very much.
>>
>>
>>
>> Waiting for your response
>>
>>
>>
>> Regards,
>>
>> Gevorg
You have a big monitor ? :)
Chris
--
Cheap As Chips Broadband http://yeah.kick-butt.co.uk
Superb hosting & domain name deals http://host.kick-butt.co.uk
--- End Message ---
--- Begin Message ---
Looks nice, but you need to have it adapt to screen resolutions...the fixed
size of the page doesn't allow for scrolling etc...does not fit well on a
1400x900 laptop screen
bastien> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]> Date: Tue, 14 Aug 2007
20:15:27 +0500> Subject: [PHP] www.soongy.com> > Hello,> > > > I am Gevorg. > >
I just wanted to introduce you my new PHP based work here www.soongy.com>
<http://www.soongy.com/> .> > It is working on PHP and MySQL and here is used
DHTML, AJAX.> > > > Thank you very much.> > > > Waiting for your response > > >
> Regards,> > Gevorg> > >
_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx
--- End Message ---
--- Begin Message ---
Yes, add a scroll-bar. Middle-click works, for those who wants to read.
On 8/14/07, Bastien Koert <[EMAIL PROTECTED]> wrote:
>
> Looks nice, but you need to have it adapt to screen resolutions...the fixed
> size of the page doesn't allow for scrolling etc...does not fit well on a
> 1400x900 laptop screen
>
> bastien> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]> Date: Tue, 14 Aug
> 2007 20:15:27 +0500> Subject: [PHP] www.soongy.com> > Hello,> > > > I am
> Gevorg. > > I just wanted to introduce you my new PHP based work here
> www.soongy.com> <http://www.soongy.com/> .> > It is working on PHP and MySQL
> and here is used DHTML, AJAX.> > > > Thank you very much.> > > > Waiting for
> your response > > > > Regards,> > Gevorg> > >
> _________________________________________________________________
> News, entertainment and everything you care about at Live.com. Get it now!
> http://www.live.com/getstarted.aspx
--- End Message ---
--- Begin Message ---
Hi,
I am searching for an open source to create scripts directory.
This scripts directory will have all the web scripts in different languages
Like hotscripts.com or scripts.com type scripts directory
Please suggest me if such open source is available.
Warm Regards,
Sanjeev
http://www.sanchanworld.com/
http://webdirectory.sanchanworld.com - Submit your website URL
http://webhosting.sanchanworld.com - Choose your best web hosting plan
--- End Message ---
--- Begin Message ---
On Tue, August 14, 2007 5:42 am, ecc wrote:
> i´m reading zip-files with the php zip-functions without a problem.
> Now i
> got and Zip containing an corrupt crc (If i open this file via winzip,
> the
> error is shown).
>
> It looks like the php functions for zip-handeling "zip_entry_read" and
> "ZipArchive::getFrom..." do not quit on a bad crc checksum.... so
> these
> functions read in the file and than are in an infinite loop. Because i
> use
> PHP-GTK2 my tool feezes and the process has to be killed. On an
> web-enviroment this could also a big problem ..... ok, user-zip
> handeling on
> web is not the best idea :-)
>
> I´ve found no way to find out, if an file in the zip file is an valid
> or
> corrupt entry. The output of "ZipArchive::statName" give me no info
> about
> the state of an entry.
>
> Is there any trick out there, how to manage this problem. Maybe this
> is an
> bug or missing feature in the zip extensions. Dont know!
Perhaps checking the consistency with this ZIPARCHIVE::CHECKCONS flag
would help.
This is just a wild guess.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--- End Message ---
--- Begin Message ---
On Mon, August 13, 2007 11:35 pm, shivendra wrote:
>
>
> Sir,u r not getting what i m trying to say,my problem is how can i
> send the
> values of <td>s in a perticuler row,by a function in onClick event of
> that
> row.actuallly the values are coming from database,and i what i want
> when i
> click a perticuler row the values are sent to some other page:
> <table>
> <tr name="t1" id="t1">
> <td>monu</td><td>23</td>
> </tr>
> <tr name="t2" id="t2">
> <td>suman</td><td>24</td>
> </tr>
> </table>
> like the values in <td>s of <tr name="t1"> is "monu" and "23" ,i want
> when i
> click on <tr name="t1"> ,"monu" and "23" is sent to some other
> page,similarly same procedure follows when i click the <tr name="t2">
> but
> this time the value would be "suman" and "24",i think u r getting
> what i m
> try to say.pls send the code for this:
<tr>
<td><a href="whatever.php?td1=monu&td2=23">monu</a></td>
<td><a href="whatever.php?td1=monu&td2=23">23</a></td>
</tr>
Trying to use the onClick of a TR is relying far too much on
Javascript and browser behaviour.
You can still have the onClick, I guess, for browsers that will "work"
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--- End Message ---
--- Begin Message ---
What is in $SD?
And are you using mysql_real_escape_string on all values?
On Mon, August 13, 2007 11:31 pm, Kelvin Park wrote:
> mySQL database becomes inaccessible after a buggy sql string gets
> queried.
> The SQL server runs fine, however it seems like just the database is
> being
> looped infinitely so to say.
> Here is an example:
>
> (PHP)
> $sql = "SELECT * FROM DB_TABLE WHERE PR_NUMBER = $whatever, DFLJJ =
> $SD;LOOE"; (<-- invalid sql query string)
> mysql_query($sql);
>
> When this query string is queried during the (webpage) loading
> process, the
> webpage just gets timed out without any error nor warning messages.
>
> Does anyone know if there is a certain way to prevent mysql database
> from
> stalling due to buggy sql strings?
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--- End Message ---
--- Begin Message ---
Re-send to php-general@ since soap@ is a ghost town.
Per the msg below, still trying to figure out why each client call to any
server results in a new TCP socket being built and closed (BAD!)
I finally got around to:
print "Request :\n" . $soapClient->__getLastRequestHeaders() . "\n";
print "Request :\n" . $soapClient->__getLastRequest() . "\n";
print "Response:\n" . $soapClient->__getLastResponseHeaders() . "\n";
print "Response:\n" . $soapClient->__getLastResponse() . "\n";
As well as checking tcpdump(8) --- my worst fears are confirmed.
The client headers says:
Connection: Keep-Alive
The server header response says:
Response:
HTTP/1.1 200 OK
Content-Type: application/soap+xml;charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 14 Aug 2007 22:35:07 GMT
Server: Apache-Coyote/1.1
And yet, the PHP client running from the CLI binary executing the same
function call to the server opens & closes two sockets to accomplish the
work!
~BAS
---------- Forwarded message ----------
Date: Wed, 8 Aug 2007 11:51:50 -0400 (EDT)
From: Brian A. Seklecki <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [SOAP] HTTP 1.1 keep-alive support in ext/soap/php_http.c ?
All:
Am I correct in reading ext/soap/php_http.c that the SoapClient / SoapServer
object will not transmit a "Connection: Close" line into the HTTP header
(either via the Client call itself or by modifying Apache's response?)
E.g., by default PHP SOAP client recycles HTTP connections to the server for
calls to methods using the same server object / instance?
l8*
-lava (Brian A. Seklecki - Pittsburgh, PA, USA)
http://www.spiritual-machines.org/
--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Found it:
http://cvs.php.net/viewvc.cgi/php-src/ext/soap/php_http.c?annotate=1.109
Lines 892->895 and 903->905 bring the violence.
Rev 1.28 commented it out:
http://cvs.php.net/viewvc.cgi/php-src/ext/soap/php_http.c?r1=1.27&r2=1.28
The bugs assocaited with it are:
http://bugs.php.net/bug.php?id=33164
http://bugs.php.net/bug.php?id=30329
Please advise on a course of action -- I will open another bug report if
requested.
http://wiki.apache.org/ws/FrontPage/Axis/AxisCommonsHTTP
Extract from [WWW] RFC 2616 : HTTP/1.1 - Persistent Connection :
"* An HTTP/1.1 server MAY assume that a HTTP/1.1 client intends to
maintain a persistent connection unless a Connection header including the
connection-token "close" was sent in the request."
Then presumably, unless the server explicitly closes the connection by
instructing the client to do so in headers, the client may simply check
for the presence of "HTTP/1.1" and continue to cane the connection/socket.
Cane one!
~BAS
On Tue, 14 Aug 2007, Brian A. Seklecki wrote:
Re-send to php-general@ since soap@ is a ghost town.
Per the msg below, still trying to figure out why each client call to any
server results in a new TCP socket being built and closed (BAD!)
I finally got around to:
print "Request :\n" . $soapClient->__getLastRequestHeaders() . "\n";
print "Request :\n" . $soapClient->__getLastRequest() . "\n";
print "Response:\n" . $soapClient->__getLastResponseHeaders() . "\n";
print "Response:\n" . $soapClient->__getLastResponse() . "\n";
As well as checking tcpdump(8) --- my worst fears are confirmed.
The client headers says:
Connection: Keep-Alive
The server header response says:
Response:
HTTP/1.1 200 OK
Content-Type: application/soap+xml;charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 14 Aug 2007 22:35:07 GMT
Server: Apache-Coyote/1.1
And yet, the PHP client running from the CLI binary executing the same
function call to the server opens & closes two sockets to accomplish the
work!
~BAS
---------- Forwarded message ----------
Date: Wed, 8 Aug 2007 11:51:50 -0400 (EDT)
From: Brian A. Seklecki <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [SOAP] HTTP 1.1 keep-alive support in ext/soap/php_http.c ?
All:
Am I correct in reading ext/soap/php_http.c that the SoapClient / SoapServer
object will not transmit a "Connection: Close" line into the HTTP header
(either via the Client call itself or by modifying Apache's response?)
E.g., by default PHP SOAP client recycles HTTP connections to the server for
calls to methods using the same server object / instance?
l8*
-lava (Brian A. Seklecki - Pittsburgh, PA, USA)
http://www.spiritual-machines.org/
--
PHP Soap 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
l8*
-lava (Brian A. Seklecki - Pittsburgh, PA, USA)
http://www.spiritual-machines.org/
"Guilty? Yeah. But he knows it. I mean, you're guilty.
You just don't know it. So who's really in jail?"
~Maynard James Keenan
--- End Message ---
--- Begin Message ---
Brian A. Seklecki wrote:
Found it:
http://cvs.php.net/viewvc.cgi/php-src/ext/soap/php_http.c?annotate=1.109
Lines 892->895 and 903->905 bring the violence.
Rev 1.28 commented it out:
http://cvs.php.net/viewvc.cgi/php-src/ext/soap/php_http.c?r1=1.27&r2=1.28
The bugs assocaited with it are:
http://bugs.php.net/bug.php?id=33164
http://bugs.php.net/bug.php?id=30329
Please advise on a course of action -- I will open another bug report if
requested.
Best to ask the -internals list me thinks - they handle the C code
behind php :)
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
Alain Roger wrote:
There was no error message...hust after few secunds it stop as normaly it
should do...
but i add -> set_time_limit(0); and it works.
adding around 20.000 records to database takes some time :-)
around 1:41 minutes.
I was thinking that i could be faster... :-(
After doing your iconv stuff, turn it back into a csv file and use \copy
like:
\copy table from '/path/to/file.csv'
Also see http://www.postgresql.org/docs/8.2/interactive/populate.html
for some ideas.
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
Nathan Nobbe wrote:
Chris,
thanks for your reply
it sounds like apache does allow the use of a script to handle PUT requests
If you install the module, yes.
from the sound of it; PUT and DELETE wont work well when using a browser
to interact w/ a server, it seems like they are mostly supplied for
programmatic interaction only, but that sounds odd to me.... i wonder
what the intended use of PUT and DELETE was when they were first created
and added to the HTTP.
http://www.webdav.org/specs/rfc2518.html#METHOD_PUT
What are you trying to do anyway where you need put/delete?
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
im imagining a system using the REST paradigm where a web browser is the
client.
rather than a REST paradigm simply for web services.
-nathan
On 8/14/07, Chris <[EMAIL PROTECTED]> wrote:
>
> Nathan Nobbe wrote:
> > Chris,
> >
> > thanks for your reply
> >
> > it sounds like apache does allow the use of a script to handle PUT
> requests
>
> If you install the module, yes.
>
> > from the sound of it; PUT and DELETE wont work well when using a browser
> > to interact w/ a server, it seems like they are mostly supplied for
> > programmatic interaction only, but that sounds odd to me.... i wonder
> > what the intended use of PUT and DELETE was when they were first created
> > and added to the HTTP.
>
> http://www.webdav.org/specs/rfc2518.html#METHOD_PUT
>
> What are you trying to do anyway where you need put/delete?
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
>
--- End Message ---
--- Begin Message ---
I heard from a person that he was having some problem with uploading and
displaying a web site on an ordinary web hosting server because the
files weren't saved as UTF-8 charset (instead they were saved in
iso-8859-1).
Could saving HTML files in a different charset (UTF-8 or iso-8859-1)
cause problem with the web hosting server making the website totally
inaccessible?
--- End Message ---