php-general Digest 6 Nov 2006 19:59:24 -0000 Issue 4444

2006-11-06 Thread php-general-digest-help
php-general Digest 6 Nov 2006 19:59:24 - Issue Topics (messages 244249 through 244266): Re: WAP? 244249 by: clive 244250 by: clive What is 'object class introspection '? 244251 by: John.H Re: PHP Zip Question 244252 by: Matt Street Help! PRINTF

[PHP] What is 'object class introspection '?

2006-11-06 Thread John . H
It is a shortage of PHP4?Right?

RE: [PHP] PHP Zip Question

2006-11-06 Thread Matt Street
Thanks for the response, I decided that it was easier to unpack the zip during the upload process and then delete the zip. I can then indicate which files I want to zip up and this works (opening the zip on the server), but, and it's a big but, when the zip is downloaded to the users machine

[PHP] Help! PRINTF Function

2006-11-06 Thread ngoc . truong-torche
Hello, The following examples don't work printf([%10s]\n,    $s); //

Re: [PHP] Help! PRINTF Function

2006-11-06 Thread Dotan Cohen
On 06/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, The following examples don't work printf([%10s]\n, $s); // justification à droite avec des espaces printf([%-10s]\n, $s); // justification à gauche avec des espaces but this one: printf([%'#10s]\n, $s); //

Re: [PHP] PHP in Kenya

2006-11-06 Thread tedd
At 4:27 PM +0300 11/5/06, Mark Steudel wrote: I'm currently serving in Peace Corps in Kenya and I was looking for other PHP web developers that are doing e-commerce that I could ping about what requirements/paperwork etc is involved in setting up e-commerce accounts in Kenya. Thanks, Mark

Re: [PHP] Sorting MySQL queries

2006-11-06 Thread tedd
At 3:13 PM +0200 11/5/06, Dotan Cohen wrote: I have a list of subjects, such as Linux, Open Source, and the World Wide Web. The subjects are stored in a database and being retrieved via php. I currently organize them alphabetically with SQL's ORDER BY ASC argument, however, if there is a

Re: [PHP] PHP in Kenya

2006-11-06 Thread clive
tedd wrote: Mark: Why should it make any difference where you set it up? differant countries and there banks have different policy's when it come to online credit card transactions. tedd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Help! PRINTF Function

2006-11-06 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-11-06 12:46:14 +0100: Hello, The following examples don't work printf([%10s]\n,    $s); // justification ? droite avec des espaces printf([%-10s]\n,  $s); // justification ? gauche avec

Re: [PHP] Protecting Streaming Audio

2006-11-06 Thread Ed Lazor
use readfile to read the file and output it to the browser. I don't know the specific ones, but you'll need to also send headers that declare the file as streaming media. On Nov 4, 2006, at 10:08 PM, Adam Gittins wrote: Thanks. :) That's an idea... Few questions. Grab the file and sendt

[PHP] Freelance php project... clone a website's functionality [0T]

2006-11-06 Thread Ryan A
Hey all, Most of you have seen me long enough on this list and helped me more times than I want to remember to know that this is not a spam email, that said... A project has dropped into my lap to clone a site's functionality... rather than post it on the many freelance job sites as I dont

[PHP] fwrite() timeout

2006-11-06 Thread Martin Cetkovsky
Hi, I am using the fsockopen(), fwrite() and fread() functions to get a web page from a remote server. The remote server is currently down and I see the code hangs on the fwrite() call. Is there a way how to set a timeout for the fwrite() remote call? I have found the stream_set_timeout(),

Re: [PHP] Microsoft Partners With Zend

2006-11-06 Thread Martin Cetkovsky
On Wed, 01 Nov 2006 23:23:15 +0100, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] I guess that's sorta what I'm afraid of... PHP# (like the did to Java - J++ - C# ) Don't get me wrong. C# is a great language (probably one of the few things that M$ did right), and I'd LOVE to use a real

Re: [PHP] Microsoft Partners With Zend

2006-11-06 Thread Martin Cetkovsky
Jay Blanchard wrote: [snip] I guess that's sorta what I'm afraid of... PHP# (like the did to Java - J++ - C# ) Don't get me wrong. C# is a great language (probably one of the few things that M$ did right), and I'd LOVE to use a real IDE like Visual Studio to dev in... But I'm also

[PHP] fwrite() timeout

2006-11-06 Thread Martin Cetkovsky
Hi, I am using the fsockopen(), fwrite() and fread() functions to get a web page from a remote server. The remote server is currently down and I see the code hangs on the fwrite() call. Is there a way how to set a timeout for the fwrite() remote call? I have found the

Re: [PHP] Sorting MySQL queries

2006-11-06 Thread Curt Zirzow
On 11/5/06, Roman Neuhauser [EMAIL PROTECTED] wrote: If you used PostgreSQL I'd suggest a functional index and ordering on the function... Does MySQL have anything like this? CREATE FUNCTION fn(TEXT) RETURNS TEXT IMMUTABLE STRICT LANGUAGE SQL AS $$ SELECT

[PHP] Pulling Data From a Page

2006-11-06 Thread Phillip Baker
Greetings All, Have something that I am sure is easy to do, just never done it before and would like some guidance here. I need to pull treasure yield percentage rates into a loan site I am working on. So basically I want to hit a page from another site. Grab the HTML file. Parse it for the

Re: [PHP] Pulling Data From a Page

2006-11-06 Thread Robert Cummings
On Mon, 2006-11-06 at 11:59 -0800, Phillip Baker wrote: Greetings All, Have something that I am sure is easy to do, just never done it before and would like some guidance here. I need to pull treasure yield percentage rates into a loan site I am working on. So basically I want to hit a

Re: [PHP] Pulling Data From a Page

2006-11-06 Thread Google Kreme
On 06 Nov 2006, at 12:59 , Phillip Baker wrote: So basically I want to hit a page from another site. If you are going to be polling another site and parsing it for data you'd better have permission to do so. -- I find Windows of absolutely no technical interest... Mac OS X is a

Re: [PHP] Microsoft Partners With Zend

2006-11-06 Thread Rory Browne
On 11/6/06, Martin Cetkovsky [EMAIL PROTECTED] wrote: Jay Blanchard wrote: [snip] I guess that's sorta what I'm afraid of... PHP# (like the did to Java - J++ - C# ) Don't get me wrong. C# is a great language (probably one of the few things that M$ did right), and I'd LOVE to use a

RE: [PHP] Microsoft Partners With Zend

2006-11-06 Thread Ray Hauge
I'd say to just use the Zend Core for Windows. If you want to use Visual Studio to edit PHP files, I have seen some information about how to do it that doesn't involve any PHP compilers. As Zend and MS work together Zend Core for Windows will only get more and more stable. I'm pretty sure that

Re: [PHP] Pulling Data From a Page

2006-11-06 Thread Richard Lynch
On Mon, November 6, 2006 1:59 pm, Phillip Baker wrote: Grab the HTML file. You have correctly identified it as a FILE. Try looking on the php.net site for FILE functions. http://php.net/file_get_contents echo htmlentities(file_get_contents('http://php.net/')); Parse it for the values I am

[PHP] fsockopen error messages

2006-11-06 Thread Philip Thompson
Hi. I have not dealt much with fsockopen, but after looking at many examples, I'm not finding the answers I need. fsockopen is not returning anything and I'm trying to find out what the issue is. The error messages are not provided and I'm not sure what's going on. Help please! ? $fp =

RE: [PHP] PHP Zip Question

2006-11-06 Thread Richard Lynch
On Mon, November 6, 2006 6:28 am, Matt Street wrote: Thanks for the response, I decided that it was easier to unpack the zip during the upload process and then delete the zip. I can then indicate which files I want to zip up and this works (opening the zip on the server), but, and it's a big

Re: [PHP] WAP?

2006-11-06 Thread Richard Lynch
On Mon, November 6, 2006 1:23 am, clive wrote: Richard Lynch wrote: On Fri, November 3, 2006 3:14 am, clive wrote: The closest I can come is with a deck whose entire contents spew out at once to a handset: Is there any reason why you insist on using WAP 1.X? I dunno that I insist on it...

Re: [PHP] fsockopen error messages

2006-11-06 Thread Richard Lynch
Depending on your php.ini settings, it may be set up to wait FOREVER for a socket to open... What $host? What $port? Is it public? Private? Is there any authentication scheme in place? We've got nothing to work with here to help you... On Mon, November 6, 2006 2:58 pm, Philip Thompson wrote:

Re: [PHP] image commands (again)

2006-11-06 Thread Richard Lynch
On Sun, November 5, 2006 4:31 pm, Ron Piggott (PHP) wrote: I created a form that I have on my site --- it is at http://www.actsministrieschristianevangelism.org/development_tools/textart/details.html If I run this script it creates a graphic image of the text the user typed in with the

Re: [PHP] imageloadfont

2006-11-06 Thread Richard Lynch
On Sun, November 5, 2006 1:33 pm, Ron Piggott (PHP) wrote: How do you make .gdf files for use with imageloadfont ? Ron I would dig through all the user comments here: http://php.net/imageloadfont And then read the documentation referenced on the GD site and maybe check out if source code is

Re: [PHP] 301 redirect returning 302 instead

2006-11-06 Thread ianevans
Just upgraded to 5.2.0 and alas, the 301/302 issue still exists. Guess I'll head off to bugs.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fsockopen error messages

2006-11-06 Thread Philip Thompson
Ok, since my last post, I have slapped myself on the wrist. I made a newbie mistake. The function that I send the host, port, etc to was in the wrong order from an older version of the function I had. So... the port was MSIE... instead of 80. Way to go me! =\ Thanks Richard. ~Philip On

Re: [PHP] Sorting MySQL queries

2006-11-06 Thread Richard Lynch
On Sun, November 5, 2006 7:13 am, Dotan Cohen wrote: I have a list of subjects, such as Linux, Open Source, and the World Wide Web. The subjects are stored in a database and being retrieved via php. I currently organize them alphabetically with SQL's ORDER BY ASC argument, however, if there is

Re: [PHP] XML Sending problem

2006-11-06 Thread Richard Lynch
On Sun, November 5, 2006 5:28 am, Rosen wrote: I need to create an XML file and send it to another server, where script process the XML. With creation and processing of XML I don't have a promlems, but how I can send XML to the processing script on another server ? Pigeons? It would

Re: [PHP] Trying to create an encryption method

2006-11-06 Thread Richard Lynch
On Sat, November 4, 2006 10:15 pm, John Meyer wrote: I'm trying to create this encryption method for puzzles (nothing super secret, just those cryptograms), but this seems to time out, can anybody point out what I'm doing wrong here: http://php.net/shuffle -- Some people have a gift link

Re: [PHP] postgreSQl and images

2006-11-06 Thread Richard Lynch
On Sat, November 4, 2006 11:26 am, Alain Roger wrote: I create a table with some large object (ref: OID) to store some images. When my PHP will display some data, it will also display the images stored as OID. However, i've read that before i must restore the image by exporting them to

RE: [PHP] Trying to create an encryption method

2006-11-06 Thread Daevid Vincent
-Original Message- (strlen(trim($normalAlphabet[$k])) === 0)); Not sure if this is it, but be careful with the === vs == DÆVID -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] postgreSQl and images

2006-11-06 Thread Richard Lynch
On Sat, November 4, 2006 5:38 pm, Børge Holen wrote: either you end up with a had as method of grouping them together, moreover you can have thousands of small files inside one dir with an id name to it, and yes the last one, thousands of directories with one file inside... Speaking as a guy

Re: [PHP] Sorting MySQL queries

2006-11-06 Thread Dotan Cohen
On 06/11/06, Richard Lynch [EMAIL PROTECTED] wrote: On Sun, November 5, 2006 7:13 am, Dotan Cohen wrote: I have a list of subjects, such as Linux, Open Source, and the World Wide Web. The subjects are stored in a database and being retrieved via php. I currently organize them alphabetically

Re: [PHP] Protecting Streaming Audio

2006-11-06 Thread Richard Lynch
On Fri, November 3, 2006 11:29 pm, Adam Gittins wrote: I have had a question that has been bugging me for a while now. Say that I need to have a members website. Which I want to protect streaming audio (Real, or Windows Media), now all the pages I can protect with a MYSQL DB and PHP.

[PHP] Re: fsockopen error messages

2006-11-06 Thread Myron Turner
You may have your host incorrectly set. I posted an example yesterday of how to use sockets with POST under the thread : [PHP] XML Sending problem Philip Thompson wrote: Hi. I have not dealt much with fsockopen, but after looking at many examples, I'm not finding the answers I need.

Re: [PHP] Protecting Streaming Audio

2006-11-06 Thread Richard Lynch
On Mon, November 6, 2006 10:24 am, Ed Lazor wrote: use readfile to read the file and output it to the browser. I don't know the specific ones, but you'll need to also send headers that declare the file as streaming media. Alas, things get a bit more complicated than that, really... For

[PHP] Code execution speed

2006-11-06 Thread Eric
I was looking for some ways to speed up the execution of my code. Im connecting to and displaying information from a newsgroup via sockets. The socket_recv's are slowing it down. What things other than the socket_recv's can I change to make the code faster. Just general tips. Thanks in

Re: [PHP] Sorting MySQL queries

2006-11-06 Thread Børge Holen
On Monday 06 November 2006 08:15, clive wrote: Current code: $query = SELECT subject FROM table ORDER BY subject asc; $result = mysql_query($query); I dont seen any php code to do any sorting,just a mysql query, perhaps a mysql list or maybe you should try doing it in php yourself first.

Re: [PHP] Code execution speed

2006-11-06 Thread Curt Zirzow
On 11/6/06, Eric [EMAIL PROTECTED] wrote: I was looking for some ways to speed up the execution of my code. Im connecting to and displaying information from a newsgroup via sockets. The socket_recv's are slowing it down. What things other than the socket_recv's can I change to make the code

Re: [PHP] Frameworks

2006-11-06 Thread Ed Lazor
I think you pegged it... the benefit is that you save time, the drawback is that you're limited in what you can do. I think you have to review each framework and chose one based on your personal preferences, the project at hand, etc. On Nov 2, 2006, at 7:37 AM, [EMAIL PROTECTED] wrote:

Re: [PHP] Trying to create an encryption method

2006-11-06 Thread John Meyer
Adapted something from this list and that worked, thanks for the help. Richard Lynch wrote: On Sat, November 4, 2006 10:15 pm, John Meyer wrote: I'm trying to create this encryption method for puzzles (nothing super secret, just those cryptograms), but this seems to time out, can anybody

Re: [PHP] postgreSQl and images

2006-11-06 Thread Børge Holen
aaight... I get yer point there, BUT you see, what do you do when an artists changes it name... forget it, that was a bad choice... anyway... you see, in one of my fields of interests, you got dogs... see, dogs can change name, not just the calling name, but I mean completely change it all.

[PHP] Preventing users from inserting malicious HTML into comments

2006-11-06 Thread Dotan Cohen
I'm setting up a comments system on a site, with the comments stored in a mysql database. To prevent sql-injection, I run mysql_real_escape_string() on ingoing data. This should be enough to protect the database (tell me if otherwise), but I'd like to prevent people from posting Javascript and

RE: [PHP] Preventing users from inserting malicious HTML into comments

2006-11-06 Thread Daevid Vincent
-Original Message- From: Dotan Cohen [mailto:[EMAIL PROTECTED] Sent: Monday, November 06, 2006 3:24 PM I'm setting up a comments system on a site, with the comments stored in a mysql database. To prevent sql-injection, I run mysql_real_escape_string() on ingoing data. This should

Re: [PHP] Protecting Streaming Audio

2006-11-06 Thread Adam Gittins
Thanks for that informative post. It really is a can of worms. How far to go with it is a good question.. Honesty, the glass in half full (No harm in thinking like that is there).. Sincerely, Adam On 11/7/06, Richard Lynch [EMAIL PROTECTED] wrote: On Mon, November 6, 2006 10:24 am, Ed Lazor

[PHP] Spam using email on website

2006-11-06 Thread Pieter du Toit
Hi guys I have a website that is being crawled or whatever and i have a submission form for an event. I keep on getting random mail from this form. I have even disabled the submit button on the form, but keep on getting it. What can i do? -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Spam using email on website

2006-11-06 Thread Robert Cummings
On Tue, 2006-11-07 at 08:42 +0200, Pieter du Toit wrote: Hi guys I have a website that is being crawled or whatever and i have a submission form for an event. I keep on getting random mail from this form. I have even disabled the submit button on the form, but keep on getting it.

Re: [PHP] Code execution speed

2006-11-06 Thread clive
Eric wrote: I was looking for some ways to speed up the execution of my code. Im connecting to and displaying information from a newsgroup via sockets. The socket_recv's are slowing it down. What things other than the socket_recv's can I change to make the code faster. Just general tips.

Re: [PHP] Spam using email on website

2006-11-06 Thread Robert Cummings
On Tue, 2006-11-07 at 02:20 -0500, Robert Cummings wrote: On Tue, 2006-11-07 at 08:42 +0200, Pieter du Toit wrote: Hi guys I have a website that is being crawled or whatever and i have a submission form for an event. I keep on getting random mail from this form. I have even