Re: [PHP] Invalid Arguements

2008-11-20 Thread Lars Torben Wilson
2008/11/19 Robert Cummings [EMAIL PROTECTED]: On Wed, 2008-11-19 at 19:49 +, Ashley Sheridan wrote: On Wed, 2008-11-19 at 08:31 -0600, Terion Miller wrote: I am still getting the Invalid arguement error on this implode: if (isset($_POST['BannerSize'])){$BannerSize =

Re: [PHP] fread() behaviour

2008-11-20 Thread Stut
On 20 Nov 2008, at 01:29, Rene Fournier wrote: I'm trying to understand something about fread(). I'm using fread() on an incoming socket stream that will send, for example, 26630 characters: while ( ($buf=fread($read[$i], 8192)) != '' ) { $sock_data .= $buf; usleep(1000);

Re: [PHP] in_array breaks down for 0 as value

2008-11-20 Thread Stut
On 20 Nov 2008, at 06:55, Yashesh Bhatia wrote: I wanted to use in_array to verify the results of a form submission for a checkbox and found an interesting behaviour. $ php -v PHP 5.2.5 (cli) (built: Jan 12 2008 14:54:37) $ $ cat in_array2.php ?php $node_review_types = array(

Re: [PHP] Re: PHP Warning: HTTP request failed -- BSD resource limit reached?

2008-11-20 Thread Nathan Rixham
Rene Fournier wrote: On 19-Nov-08, at 12:52 PM, Nathan Rixham wrote: Rene Fournier wrote: Hi, I have four identical command-line PHP scripts running, and each will frequently fetch some data from another server via file_get_contents(). By frequently, I mean on average, every second.

Re: [PHP] Re: anchor name on URL

2008-11-20 Thread Dan
The Webkist engine afaik is licensed under the GPL, because of the use of the code from the original KHTML. I'm not sure how this fits with M$ proprietary plan however... Webkit is licensed under LGPL and BSD licenses. You say that, have you heard the latest for IE9? They're already

[PHP] store class zithin session

2008-11-20 Thread Alain Roger
Hi, i have a class and i would like to store it zithin session. i was thinking to use serialize/unserialize but it does not work. any idea how to do it ? thx. F.

Re: [PHP] store class zithin session

2008-11-20 Thread Stut
On 20 Nov 2008, at 11:01, Alain Roger wrote: i have a class and i would like to store it zithin session. i was thinking to use serialize/unserialize but it does not work. any idea how to do it ? Alain, you've been on this list long enough to know that it does not work is not enough

Re: [PHP] store class zithin session

2008-11-20 Thread Yeti
If you can't load the class before calling session_start you can store the serialized object in a file and simple set a $_SESSION['path_to_file'] session variable.. EXAMPLE: ?php session_start(); //some code class apple_tree { var $apples = 17; } $temporary_file = 'appletree.txt';

Re: [PHP] store class zithin session

2008-11-20 Thread Eric Butera
On Thu, Nov 20, 2008 at 8:37 AM, Yeti [EMAIL PROTECTED] wrote: If you can't load the class before calling session_start you can store the serialized object in a file and simple set a $_SESSION['path_to_file'] session variable.. EXAMPLE: ?php session_start(); //some code class apple_tree

Re: [PHP] Invalid Arguements

2008-11-20 Thread Terion Miller
I currently have it like this: select name=BannerSize option value=0Select a Banner Size/option option value=728x90728x90 - Leaderboard/option option value=160x600160x600 - Skyscraper/option

Re: [PHP] Invalid Arguements

2008-11-20 Thread Stut
On 20 Nov 2008, at 14:37, Terion Miller wrote: I currently have it like this: select name=BannerSize option value=0Select a Banner Size/option option value=728x90728x90 - Leaderboard/option option

Re: [PHP] Invalid Arguements

2008-11-20 Thread Nathan Rixham
On 20 Nov 2008, at 14:37, Terion Miller wrote: I currently have it like this: select name=BannerSize if you've got it working don't change it :) but to explain: it is possible to send through an array of data from a form, to do this you place multiple elements with the same name followed by

Re: [PHP] Invalid Arguements

2008-11-20 Thread Nathan Rixham
Terion Miller wrote: Nathan, thank you thank you thank you now I get it! your the bomb!! terion joy, glad to hear it -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP Warning: HTTP request failed -- BSD resource limit reached?

2008-11-20 Thread Rene Fournier
On 20-Nov-08, at 2:59 AM, Nathan Rixham wrote: Rene Fournier wrote: On 19-Nov-08, at 12:52 PM, Nathan Rixham wrote: Rene Fournier wrote: Hi, I have four identical command-line PHP scripts running, and each will frequently fetch some data from another server via file_get_contents(). By

Re: [PHP] Re: PHP Warning: HTTP request failed -- BSD resource limit reached?

2008-11-20 Thread Daniel P. Brown
On Thu, Nov 20, 2008 at 11:50 AM, Rene Fournier [EMAIL PROTECTED] wrote: Don't think that can be it, since (a) the other processes are not being denied their http requests and (b) requests are going to two servers. Have you checked your firewall settings? It may be configured to deny

Re: [PHP] Re: PHP Warning: HTTP request failed -- BSD resource limit reached?

2008-11-20 Thread Nathan Rixham
Daniel P. Brown wrote: On Thu, Nov 20, 2008 at 11:50 AM, Rene Fournier [EMAIL PROTECTED] wrote: Don't think that can be it, since (a) the other processes are not being denied their http requests and (b) requests are going to two servers. Have you checked your firewall settings? It may be

Re: [PHP] store class zithin session

2008-11-20 Thread Jochem Maas
Eric Butera schreef: On Thu, Nov 20, 2008 at 8:37 AM, Yeti [EMAIL PROTECTED] wrote: ... Autoload. Why on earth would you do such a thing? autoload ... your neighbourhood opcode cache performance killer, then again so is file based sessions (for ease of use I stick my session files on

Re: [PHP] fread() behaviour

2008-11-20 Thread Jochem Maas
Stut schreef: On 20 Nov 2008, at 01:29, Rene Fournier wrote: I'm trying to understand something about fread(). I'm using fread() on an incoming socket stream that will send, for example, 26630 characters: while ( ($buf=fread($read[$i], 8192)) != '' ) { $sock_data .= $buf;

Re: [PHP] store class zithin session

2008-11-20 Thread Eric Butera
On Thu, Nov 20, 2008 at 2:07 PM, Jochem Maas [EMAIL PROTECTED] wrote: Eric Butera schreef: On Thu, Nov 20, 2008 at 8:37 AM, Yeti [EMAIL PROTECTED] wrote: ... Autoload. Why on earth would you do such a thing? autoload ... your neighbourhood opcode cache performance killer, then again so

Re: [PHP] store class zithin session

2008-11-20 Thread Kevin Waterson
This one time, at band camp, Alain Roger [EMAIL PROTECTED] wrote: Hi, i have a class and i would like to store it zithin session. i was thinking to use serialize/unserialize but it does not work. http://www.phpro.org/tutorials/Introduction-To-PHP-Sessions.html#8 Kevin -- PHP General

Re: [PHP] Re: PHP Warning: HTTP request failed -- BSD resource limit reached?

2008-11-20 Thread Rene Fournier
On 20-Nov-08, at 9:56 AM, Daniel P. Brown wrote: On Thu, Nov 20, 2008 at 11:50 AM, Rene Fournier [EMAIL PROTECTED] wrote: Don't think that can be it, since (a) the other processes are not being denied their http requests and (b) requests are going to two servers. Have you checked

Re: [PHP] Re: PHP Warning: HTTP request failed -- BSD resource limit reached?

2008-11-20 Thread Rene Fournier
On 20-Nov-08, at 10:46 AM, Nathan Rixham wrote: Daniel P. Brown wrote: On Thu, Nov 20, 2008 at 11:50 AM, Rene Fournier [EMAIL PROTECTED] wrote: Don't think that can be it, since (a) the other processes are not being denied their http requests and (b) requests are going to two servers.

Re: [PHP] Re: PHP Warning: HTTP request failed -- BSD resource limit reached?

2008-11-20 Thread Daniel P. Brown
On Thu, Nov 20, 2008 at 2:41 PM, Rene Fournier [EMAIL PROTECTED] wrote: There is no firewall between any of the servers -- they are all on the same LAN. I read when you said that, but I must not have explained myself well enough before. Sorry. Linux, by default, has firewalls

Re: [PHP] store class zithin session

2008-11-20 Thread Stut
On 20 Nov 2008, at 19:35, Eric Butera wrote: Well I wouldn't put objects into the session to begin with. Why not? I do it all the time and it works fine. I was just talking about this specific case. Wouldn't autoload be fine if the file was already in the opcode cache? Opcode caches work

Re: [PHP] store class zithin session

2008-11-20 Thread Eric Butera
On Thu, Nov 20, 2008 at 2:51 PM, Stut [EMAIL PROTECTED] wrote: On 20 Nov 2008, at 19:35, Eric Butera wrote: Well I wouldn't put objects into the session to begin with. Why not? I do it all the time and it works fine. I was just talking about this specific case. Wouldn't autoload be fine

[PHP] Model Web Site

2008-11-20 Thread Stephen
My prime hobby is photography and the next is web site building. So now I have a young model (18+) asking me about getting a web site. The idea is members can see content, that will include, photos, her blog and a discussion forum. I like the idea of building it, but it includes a lot of

RE: [PHP] Model Web Site

2008-11-20 Thread Boyd, Todd M.
-Original Message- From: Stephen [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2008 4:17 PM To: PHP-General Subject: [PHP] Model Web Site My prime hobby is photography and the next is web site building. So now I have a young model (18+) asking me about getting a web

Re: [PHP] Model Web Site

2008-11-20 Thread Daniel P. Brown
On Thu, Nov 20, 2008 at 5:16 PM, Stephen [EMAIL PROTECTED] wrote: Can someone point me to documentation/tutorials/scripts or anything that might help. Stephen, The whole thing could be built pretty quickly using existing open source systems such as phpBB3[1] and Gallery[2] as a core.

Re: [PHP] Model Web Site

2008-11-20 Thread Stephen
Boyd, Todd M. wrote: http://www.w3schools.com/html http://www.w3schools.com/xhtml http://www.w3schools.com/css http://www.w3schools.com/js http://www.w3schools.com/php http://www.w3schools.com/sql http://www.php.net http://www.mysql.com most important link: http://www.google.com Get

Re: [PHP] Re: PHP Warning: HTTP request failed -- BSD resource limit reached?

2008-11-20 Thread Rene Fournier
On 20-Nov-08, at 12:44 PM, Daniel P. Brown wrote: On Thu, Nov 20, 2008 at 2:41 PM, Rene Fournier [EMAIL PROTECTED] wrote: There is no firewall between any of the servers -- they are all on the same LAN. I read when you said that, but I must not have explained myself well enough

Re: [PHP] Model Web Site

2008-11-20 Thread Chris
Stephen wrote: Boyd, Todd M. wrote: http://www.w3schools.com/html http://www.w3schools.com/xhtml http://www.w3schools.com/css http://www.w3schools.com/js http://www.w3schools.com/php http://www.w3schools.com/sql http://www.php.net http://www.mysql.com most important link:

Re: [PHP] Re: PHP Warning: HTTP request failed -- BSD resource limit reached?

2008-11-20 Thread Nathan Rixham
Rene Fournier wrote: On 20-Nov-08, at 12:44 PM, Daniel P. Brown wrote: On Thu, Nov 20, 2008 at 2:41 PM, Rene Fournier [EMAIL PROTECTED] wrote: There is no firewall between any of the servers -- they are all on the same LAN. I read when you said that, but I must not have explained

Re: [PHP] Model Web Site

2008-11-20 Thread Yeti
What is new to me is controlling access based on being a member. And making it tough for hackers. Look for a tutorial on building a login system and go from there. Since you mentioned security I would recommend HTTPS. http://en.wikipedia.org/wiki/HTTPS -- PHP General Mailing List

Re: [PHP] in_array breaks down for 0 as value

2008-11-20 Thread Ashley Sheridan
On Thu, 2008-11-20 at 09:25 +, Stut wrote: On 20 Nov 2008, at 06:55, Yashesh Bhatia wrote: I wanted to use in_array to verify the results of a form submission for a checkbox and found an interesting behaviour. $ php -v PHP 5.2.5 (cli) (built: Jan 12 2008 14:54:37) $ $ cat

Re: [PHP] Re: PHP Warning: HTTP request failed -- BSD resource limit reached?

2008-11-20 Thread Rene Fournier
On 20-Nov-08, at 3:57 PM, Nathan Rixham wrote: Rene Fournier wrote: On 20-Nov-08, at 12:44 PM, Daniel P. Brown wrote: On Thu, Nov 20, 2008 at 2:41 PM, Rene Fournier [EMAIL PROTECTED] wrote: There is no firewall between any of the servers -- they are all on the same LAN. I read

[PHP] Can GD make a JPG thumbnail of a PDF?

2008-11-20 Thread Brian Dunning
Well can it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can GD make a JPG thumbnail of a PDF?

2008-11-20 Thread Stephen Johnson
No but you can use imagemagicks convert to convert the pdf to an image and then make a thumbnail of it. On 11/20/08 4:39 PM, Brian Dunning [EMAIL PROTECTED] wrote: Well can it? -- Stephen Johnson The Lone Coder http://www.ouradoptionblog.com *Join us on our adoption journey* [EMAIL

Re: [PHP] Model Web Site

2008-11-20 Thread Craige Leeder
As Daniel mentioned, I would recomed building it upon an existing system. I've seen whole sites custom built around PHPBB. This might be something you want to look into. Google for PHPBB programming tutorials; it's pretty well documented. I think it's your best bet if you don't want to spend

Re: [PHP] in_array breaks down for 0 as value

2008-11-20 Thread Lars Torben Wilson
2008/11/20 Stut [EMAIL PROTECTED]: On 20 Nov 2008, at 06:55, Yashesh Bhatia wrote: I wanted to use in_array to verify the results of a form submission for a checkbox and found an interesting behaviour. $ php -v PHP 5.2.5 (cli) (built: Jan 12 2008 14:54:37) $ $ cat in_array2.php ?php

[PHP] reading XML

2008-11-20 Thread Angelo Zanetti
Hi all, I have a script that I call with CURL and get an XML response with a few parameters. I need to be able to read that XML but not sure how to. I know of simpleXML but the server is php4. Would xml_parse be the thing to look at? What is the simplest way to accomplish this

Re: [PHP] reading XML

2008-11-20 Thread Jim Lucas
Angelo Zanetti wrote: Hi all, I have a script that I call with CURL and get an XML response with a few parameters. I need to be able to read that XML but not sure how to. I know of simpleXML but the server is php4. Would xml_parse be the thing to look at? What is the

Re: [PHP] reading XML

2008-11-20 Thread Jim Lucas
Angelo Zanetti wrote: Hi all, I have a script that I call with CURL and get an XML response with a few parameters. I need to be able to read that XML but not sure how to. I know of simpleXML but the server is php4. Would xml_parse be the thing to look at? What is the