php-general Digest 29 Jun 2012 08:49:22 -0000 Issue 7869
Topics (messages 318331 through 318341):
Re: Depreciation message I can't make out....
318331 by: Jim Giner
318332 by: Camilo Sperberg
318333 by: Daniel Brown
318336 by: tamouse mailing lists
Re: php batch/queue framwork
318334 by: Shailesh N. Humbad
Is there a way to customize the 'Username' and 'Password' strings in a 401 auth
dialog box?
318335 by: Daevid Vincent
318340 by: David OBrien
Re: What's happened to our newsgroup?
318337 by: tamouse mailing lists
318338 by: Daniel Fenn
318339 by: Jay Blanchard
log tailing
318341 by: Mihamina Rakotomandimby
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
"Gary Lebowitz" <gurqi...@gmail.com> wrote in message
news:cafbvbik1ga9eyxkstpshxk+ddfax0fqoy-gnpdymfl_26_g...@mail.gmail.com...
> Hi,
>
> I am running Moodle 2.2.3 and using PHP 5.3 on a Linux server with GoDaddy
> and am getting the message about "depreciation" after having typed the
> following command into their cron job manager:
> /web/cgi-bin/php5_3 "$HOME/html/moodle223a/admin/cli/cron.php"
>
> PHP Deprecated: Comments starting with '#' are deprecated in
> /web/conf/php5.ini on line 1256 in Unknown on line 0
> PHP Deprecated: Comments starting with '#' are deprecated in
> /web/conf/php5.ini on line 1257 in Unknown on line 0
> <br />
> <b>Deprecated</b>: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3
> and greater in <b>Unknown</b> on line <b>0</b><br />
> Content-type: text/html
>
> GoDaddy says that I am using a command that is not adapted to version 5.3
> of PHP, but they suggested I contact you to fix it. Also, I do not believe
> I have access to php5.ini; only they do. But I would need to tell them how
> to fix this issue. And no one at Moodle.org seems to be able to help.
> Perhaps it's a Moodle thing; perhaps not, but I thought it wise to contact
> you. By the way, this message is only sent to me when using version 5.3 of
> PHP; I have another Moodle site using 5.2 and things go perfectly well,
> without this message.
>
> Regards,
>
It's "deprecated", not depreciated. That said - magic quotes were marked
for "deprecation" a while ago, so you should be prepared to stop expecting
them in your appls. As for the # sign, apparently it is no longer a valid
char for comments (deprecated). Remove the magci quotes setting and change
your # chars to // or whatever pleases you for your comments.
--- End Message ---
--- Begin Message ---
According to what i can understand from that message is that you have line(s)
starting with # in your php.ini file. A proper ini file should use ; as the
beginning from a comment.
Check the given file at the given line and change the first # symbol into a ;
one.
Greetings.
Sent from my iPhone 5 Beta [Confidential use only]
On 28 jun. 2012, at 19:44, Gary Lebowitz <gurqi...@gmail.com> wrote:
> Hi,
>
> I am running Moodle 2.2.3 and using PHP 5.3 on a Linux server with GoDaddy
> and am getting the message about "depreciation" after having typed the
> following command into their cron job manager:
> /web/cgi-bin/php5_3 "$HOME/html/moodle223a/admin/cli/cron.php"
>
> PHP Deprecated: Comments starting with '#' are deprecated in
> /web/conf/php5.ini on line 1256 in Unknown on line 0
> PHP Deprecated: Comments starting with '#' are deprecated in
> /web/conf/php5.ini on line 1257 in Unknown on line 0
> <br />
> <b>Deprecated</b>: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3
> and greater in <b>Unknown</b> on line <b>0</b><br />
> Content-type: text/html
>
> GoDaddy says that I am using a command that is not adapted to version 5.3
> of PHP, but they suggested I contact you to fix it. Also, I do not believe
> I have access to php5.ini; only they do. But I would need to tell them how
> to fix this issue. And no one at Moodle.org seems to be able to help.
> Perhaps it's a Moodle thing; perhaps not, but I thought it wise to contact
> you. By the way, this message is only sent to me when using version 5.3 of
> PHP; I have another Moodle site using 5.2 and things go perfectly well,
> without this message.
>
> Regards,
--- End Message ---
--- Begin Message ---
On Thu, Jun 28, 2012 at 1:44 PM, Gary Lebowitz <gurqi...@gmail.com> wrote:
> Hi,
>
> I am running Moodle 2.2.3 and using PHP 5.3 on a Linux server with GoDaddy
> and am getting the message about "depreciation" after having typed the
> following command into their cron job manager:
> /web/cgi-bin/php5_3 "$HOME/html/moodle223a/admin/cli/cron.php"
>
> PHP Deprecated: Comments starting with '#' are deprecated in
> /web/conf/php5.ini on line 1256 in Unknown on line 0
> PHP Deprecated: Comments starting with '#' are deprecated in
> /web/conf/php5.ini on line 1257 in Unknown on line 0
> <br />
> <b>Deprecated</b>: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3
> and greater in <b>Unknown</b> on line <b>0</b><br />
> Content-type: text/html
Comment-out, using semicolons (;), any comments in your
/web/conf/php5.ini file that begin with the hashmark (#), and then
also comment-out (;) the magic_quotes_gpc line.
> GoDaddy says that I am using a command that is not adapted to version 5.3
> of PHP, but they suggested I contact you to fix it. Also, I do not believe
> I have access to php5.ini; only they do. But I would need to tell them how
> to fix this issue. And no one at Moodle.org seems to be able to help.
> Perhaps it's a Moodle thing; perhaps not, but I thought it wise to contact
> you. By the way, this message is only sent to me when using version 5.3 of
> PHP; I have another Moodle site using 5.2 and things go perfectly well,
> without this message.
That's typical of GoDaddy. Not only will they do nothing about it
(if they are even able to figure it out), but they'll give you bad
advice. This is a public peer-support mailing list. We cannot (and
will not) fix things for people. Further, if GoDaddy is responsible
for the maintenance of the machine (and they probably are, as I
presume it's a shared hosting environment), they need to fix it.
They're the ones who screwed it up in the first place.
--
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/
--- End Message ---
--- Begin Message ---
On Thu, Jun 28, 2012 at 1:00 PM, Daniel Brown <danbr...@php.net> wrote:
>> PHP Deprecated: Comments starting with '#' are deprecated in
>> /web/conf/php5.ini on line 1256 in Unknown on line 0
>
> Comment-out, using semicolons (;), any comments in your
> /web/conf/php5.ini file that begin with the hashmark (#), and then
> also comment-out (;) the magic_quotes_gpc line.
Just a quick followup -- # comments are deprecated for .ini files,
only, correct? They are still full citizens in php source, aren't
they?
--- End Message ---
--- Begin Message ---
On 6/28/2012 11:58 AM, Tom Sparks wrote:
I am looking for a batch/queue framework that is database-centric?
I could write my own, but I want one that is mature
tom_a_sparks
"It's a nerdy thing I like to do"
You could try Amazon Simple Queue Service: http://aws.amazon.com/sqs/
Use the PHP SDK: http://aws.amazon.com/sdkforphp/
--- End Message ---
--- Begin Message ---
Is there a way to customize the 'Username' and 'Password' strings in a 401
auth dialog box?
I want to change mine to say "Webmaster ID" and "Authentication Key".
http://php.net/manual/en/features.http-auth.php
--- End Message ---
--- Begin Message ---
On Thu, Jun 28, 2012 at 7:23 PM, Daevid Vincent <dae...@daevid.com> wrote:
> Is there a way to customize the 'Username' and 'Password' strings in a 401
> auth dialog box?
>
> I want to change mine to say "Webmaster ID" and "Authentication Key".
>
> http://php.net/manual/en/features.http-auth.php
>
>
This http://www.ietf.org/rfc/rfc2617.txt says the browser actually
controls the prompts all you get to set is the realm.
--- End Message ---
--- Begin Message ---
On Wed, Jun 27, 2012 at 9:42 AM, Tedd Sperling <t...@sperling.com> wrote:
> On Jun 26, 2012, at 3:21 PM, Al <n...@ridersite.org> wrote:
>
>> No postings for days.
>>
>
> Maybe everyone learned it -- no new questions.
>
> Cheers,
>
> tedd
We now all have php.net open all the time so no more questions need to
be asked! :>
--- End Message ---
--- Begin Message ---
Or everyone is on holiday for php :P
On Fri, Jun 29, 2012 at 10:43 AM, tamouse mailing lists
<tamouse.li...@gmail.com> wrote:
> On Wed, Jun 27, 2012 at 9:42 AM, Tedd Sperling <t...@sperling.com> wrote:
>> On Jun 26, 2012, at 3:21 PM, Al <n...@ridersite.org> wrote:
>>
>>> No postings for days.
>>>
>>
>> Maybe everyone learned it -- no new questions.
>>
>> Cheers,
>>
>> tedd
>
> We now all have php.net open all the time so no more questions need to
> be asked! :>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
[snip]
We now all have php.net open all the time so no more questions need to
be asked! :>
[/snip]
You mean everyone finally RTFM?
--- End Message ---
--- Begin Message ---
Hi all,
I have a /var/log/messages and /var/log/syslog file to parse to extract
information from.
It's mainly to insert the data to several SQL tables.
I have the to extract the date, and some information in the line.
Doing it with preg_match() and extracting the data is the first solution
comming to my mind.
Typically, a log line like:
Jun 29 11:24:10 dev5 sshd[12775]: Accepted password \
for dev5 from 192.168.0.12 port 50544 ssh2
should drive me to extract to $out[] like:
- $out[0] is "Jun 29 11:24:10"
- $out[1] is "sshd"
- $out[3] is "192.168.0.12"
So that I can:
INSERT INTO ssh_activity \
VALUES ('2012-06-29 11:24:10', '192.168.0.12')
I just need help on the right regexp function to use.
Would you know some PHP/regexp tutorials for that?
--
RMA.
--- End Message ---