[PHP] Re: Buffering output to allow headers late in code?

2010-10-14 Thread MikeB
Peter Lind wrote: Just out of curiosity: why were you told to switch off output buffering? Regards Peter I can't find the thread now, but it was in regards to my early experiments with cookies. I was creating cookies and it worked mid-code, since buffering was active. Then someone said t

[PHP] Re: Buffering output to allow headers late in code?

2010-10-14 Thread MikeB
chris h wrote: I'm working through my class on PHP and I tried to put information from my sign-on process in the navbar. This didn't work well, since I had to reload the page to see it as the navbar was constructed earlier in the code than the signon process. (Hard to explain, as we are buildin

[PHP] Buffering output to allow headers late in code?

2010-10-14 Thread MikeB
I'm working through my class on PHP and I tried to put information from my sign-on process in the navbar. This didn't work well, since I had to reload the page to see it as the navbar was constructed earlier in the code than the signon process. (Hard to explain, as we are building a "dynamic" w

[PHP] reporting spam in PHP manual?

2010-09-29 Thread MikeB
Came across this entry as a user comment in the php.net manual. http://www.php.net/manual/en/language.exceptions.php#100089 Couldn't see how to report it so it could be removed. Maybe someone that knows how can tell me, or report it themselves? Thanks, -- PHP General Mailing List (http://www

[PHP] Controlling Output Buffering via php.ini

2010-09-27 Thread MikeB
; Integer = Enables the buffer and sets its maximum size in bytes. ; Note: This directive is hardcoded to Off for the CLI SAPI ; Default Value: Off ; Development Value: 4096 ; Production Value: 4096 ; http://php.net/output-buffering ; Changed by MikeB 09/27/2010 ;output_buffering = 4096

[PHP] Array question

2010-09-25 Thread MikeB
I have the following code: $query = "SELECT * FROM classics"; $result = mysql_query($query); if (!$result) die ("Database access failed: " . mysql_error()); $rows = mysql_num_rows($result); for ($j = 0 ; $j < $rows ; ++$j) { $results[] = mysql_fetch_array($result); } mysql_close($db_server

[PHP] Re: not able to connect to MySQL

2010-09-20 Thread MikeB
Bastien Koert wrote: On Mon, Sep 20, 2010 at 3:37 PM, MikeB wrote: I have defined (just for testing) a user in my SQL named "pubuser" and granted it access to a database "publications." Of course I also created the database and two tables. I can access and manipulate the t

[PHP] not able to connect to MySQL

2010-09-20 Thread MikeB
briefly says "connecting to localhost" and then indefinitely it says "waiting for localhost..." If I comment out the connect statement, the rest runs. What should I look for? Thanks MikeB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Question about news.php.net

2010-09-16 Thread MikeB
MikeB wrote: Daniel Brown wrote: On Mon, Sep 13, 2010 at 19:51, MikeB wrote: As part of the bug report I included a link to an image of my nntp config. I saw that, thanks. I'll look into creating a mirror of the news server, as well, for NNTP-only access. I won't lie and say t

Re: [PHP] Question about news.php.net

2010-09-15 Thread MikeB
Daniel Brown wrote: On Mon, Sep 13, 2010 at 19:51, MikeB wrote: As part of the bug report I included a link to an image of my nntp config. I saw that, thanks. I'll look into creating a mirror of the news server, as well, for NNTP-only access. I won't lie and say that it&#x

[PHP] Re: Question about news.php.net

2010-09-15 Thread MikeB
Gary wrote: MikeB wrote: I understand that the news server is based on a mailing list, but I can't handle another high-volume source dumping stuff into my email (even if I filter it into a separate folder) so I am trying to subscribe through the news group. However, getting access seems

Re: [PHP] Question about news.php.net

2010-09-13 Thread MikeB
Daniel Brown wrote: On Mon, Sep 13, 2010 at 19:51, MikeB wrote: As part of the bug report I included a link to an image of my nntp config. I saw that, thanks. I'll look into creating a mirror of the news server, as well, for NNTP-only access. I won't lie and say that it&#x

Re: [PHP] Question about news.php.net

2010-09-13 Thread MikeB
Daniel Brown wrote: I don't believe that we've been having any issues with the server, no. Are you using NNTP to connect? yes, NNTP. You may want to consider using the HTTP-based RSS and/or RDF feeds if it continues to be an issue. If this persists, I'll look into the alternatives yo

[PHP] Question about news.php.net

2010-09-13 Thread MikeB
If there is a more appropriate place to ask this, I apologize. Please point me in the right direction. I understand that the news server is based on a mailing list, but I can't handle another high-volume source dumping stuff into my email (even if I filter it into a separate folder) so I am tr

Re: [PHP] New to PHP and the list

2010-09-11 Thread MikeB
On 9/11/2010 6:51 PM, Tom Sparks wrote: --- On Sun, 12/9/10, MikeB wrote: From: MikeB Subject: [PHP] New to PHP and the list To: php-general@lists.php.net Received: Sunday, 12 September, 2010, 9:37 AM Hello, I'm new to PHP and also new to using newsgroups/mailing lists directly. So if I