Andres Gonzalez wrote:
Hi,
I am learning PHP and have a simple question.
I have a input string in this form:
xxx xx x xx xxx
xx x x xxx xx xx
.
.
.
xx xxx xx xx xx
each line has 6 words of various lengths, all separated by white space.
the in
On Apr 14, 2009, at 10:11 PM, "Don" wrote:
Hi,
I have some code in my index.php file that check the user agent and
redirects to a warning page if IE 6 or less is encountered.
1. I'm using a framework and so calls to all pages go through
index.php
2. The code that checks for IE 6 or less
Don wrote:
Hi,
I have some code in my index.php file that check the user agent and
redirects to a warning page if IE 6 or less is encountered.
1. I'm using a framework and so calls to all pages go through index.php
2. The code that checks for IE 6 or less and redirects is in index.php
I know
Hi,
I have some code in my index.php file that check the user agent and
redirects to a warning page if IE 6 or less is encountered.
1. I'm using a framework and so calls to all pages go through index.php
2. The code that checks for IE 6 or less and redirects is in index.php
I know how to redire
Chris wrote:
> PJ wrote:
>> I seem to recall that it is possible to count all instances of a query
>> that is limited by $RecordsPerPage without repeating the same query. I
>> believe that COUNT() had to called immediately after the SELECT word but
>> I neglected to bookmark the source. Dummy!
>
>
Mark Kelly wrote:
> Hi Phil.
>
> On Monday 13 April 2009, PJ wrote:
>
>> Thanks for the suggestion, Mark. I've already experimented with count;
>> you're close, but there is still a small glitch and that's in count();
>> foreach doesn't give a damn about count so you can't use that - it is
>> re
On Apr 13, 2009, at 10:19 PM, Skip Evans wrote:
But doesn't also the form need to be secure since you're sending CC
information from that form back to the web site's server?
That's what I've always assumed.
I need some opinions on this, and if I'm right I think the client
will defer to a f
As michael said my main reason is strictness. It's much easier to
parse a document when an XML parser can read it. I like the idea of
closing tags etc.
On Apr 14, 2009, at 4:38 PM, Raymond Irving wrote:
Hi,
I'm thinking about using the html5 doctype for all html documents
since it's su
Raymond Irving wrote:
Hi,
I'm thinking about using the html5 doctype for all html documents since it's supported by all the popular browsers available today.
Two Quick questions...
Why do we need to send XHTML code to a web browser when standard html code
(with html 5 doctype) will do just
Hi,
I'm thinking about using the html5 doctype for all html documents since it's
supported by all the popular browsers available today.
Two Quick questions...
Why do we need to send XHTML code to a web browser when standard html code
(with html 5 doctype) will do just fine?
Is there any ad
PJ wrote:
I seem to recall that it is possible to count all instances of a query
that is limited by $RecordsPerPage without repeating the same query. I
believe that COUNT() had to called immediately after the SELECT word but
I neglected to bookmark the source. Dummy!
You're probably thinking of
Hi Phil.
On Monday 13 April 2009, PJ wrote:
> Thanks for the suggestion, Mark. I've already experimented with count;
> you're close, but there is still a small glitch and that's in count();
> foreach doesn't give a damn about count so you can't use that - it is
> reset once inside the foreach loop
The problem is to get the parameters and mostly their type-hinting.
At the end I decided to just cast the ReflectionParameter classes to strings
and get the type-hinting from there, even though it shouldn't normally be
done this way, but I don't think there's a better way now.
--
PHP General
Have a look at example #5 on
http://de3.php.net/manual/en/language.oop5.reflection.php#language.oop5.reflection.reflectionmethod
Greetings from Germany
Marc
Pulni4kiya wrote:
Hi, everyone!
I need to do the following:
Let's say I have this class:
class A {
public function b(array $c, $d =
Hi there,
Ive made a fetch_obj and, as stated on some sites, it returns a anonymous
object where the properties will have the name of our columns database.
However, when I do this, I notice that instead of giving me the column names
as they are typed on the DB I get them uppercase. So, whe
Hi there,
Ive made a fetch_obj and, as stated on some sites, it returns a anonymous
object where the properties will have the name of our columns database.
However, when I do this, I notice that instead of giving me the column names
as they are typed on the DB I get them uppercase. So, when
Well there seems to be a consensus here...
I have been writing code and the last 3 sites have all been php with a DB,
and I have started writing some of the code for the new project, however I
keep getting glimmers of more and more of what can be done with PHP/MySQL
and would like to continue t
Sounds like your client wants to end up listed in a Terminated Merchant File.
On Mon, Apr 13, 2009 at 11:19 PM, Skip Evans wrote:
> Hey all,
>
> I've always put any forms that collect credit card information behind a
> secure connection, https, figuring that sending that information from the
> c
On Tue, Apr 14, 2009 at 2:20 PM, Luke wrote:
> 2009/4/14 phphelp -- kbk
>
>>
>> On Apr 14, 2009, at 10:58 AM, Gary wrote:
>>
>> I think most books have you writing code, and Head First did as well, so I
>>> think that is covered..
>>>
>>
>> No, it isn't. There is a big difference between writing
2009/4/14 phphelp -- kbk
>
> On Apr 14, 2009, at 10:58 AM, Gary wrote:
>
> I think most books have you writing code, and Head First did as well, so I
>> think that is covered..
>>
>
> No, it isn't. There is a big difference between writing it the way a book
> tells you to do it, hand-holding all
On Apr 14, 2009, at 10:58 AM, Gary wrote:
I think most books have you writing code, and Head First did as
well, so I
think that is covered..
No, it isn't. There is a big difference between writing it the way a
book tells you to do it, hand-holding all the way and doing it. When
you actu
I seem to recall that it is possible to count all instances of a query
that is limited by $RecordsPerPage without repeating the same query. I
believe that COUNT() had to called immediately after the SELECT word but
I neglected to bookmark the source. Dummy!
I don't like the idea of count(*) over co
On Mon, Apr 13, 2009 at 11:19 PM, Skip Evans wrote:
> Hey all,
>
> I've always put any forms that collect credit card information behind a
> secure connection, https, figuring that sending that information from the
> client browser to the server should be secure, but I'm having convincing a
> clie
scubak1w1 wrote:
""Michael A. Peters"" wrote in message
news:49e41267.5010...@mac.com...
scubak1w1 wrote:
I have a series of web sites which use https:// authentication (using AD
integration to 'check the credentials' as it were) - all seems to be
working well..
I have been Googling et al.
Hi Gary,
I would start working on your project. That's how I got to where I am
with it. Now though... I want to go through and completely recode the
entire project.. Which is something you'll have to get used to :)
But I'd start coding and when you run into a problem, ask.. If you
search
""Michael A. Peters"" wrote in message
news:49e41267.5010...@mac.com...
> scubak1w1 wrote:
>> I have a series of web sites which use https:// authentication (using AD
>> integration to 'check the credentials' as it were) - all seems to be
>> working well..
>>
>> I have been Googling et al. for
Leon du Plessis wrote:
> Hi PJ,
>
> Maybe you should post your code, or portion thereof. The trained eyes on the
> list will quickly gather where the problem in the logic lies.
>
> Maybe you can also sacrifice some of your data or data structures if not too
> sensitive. This will help to validate
Jim Lucas wrote:
> PJ wrote:
>> Jim Lucas wrote:
>>> PJ wrote:
foreach does a nice job if you want the results identical each time.
What can you use to change the formatting of the results dependent on
the number of results.
Here's an example:
foreach ( $authors[$bookID] AS
[moving to general list as per Mikko's request]
short_open_tag is not deprecated.
What if you want to use in your template?
There is no point removing Hello everyone.
> I've been writing for some time now at the
> last project and it really sucks. I understand reason on depricating
> short_ope
Hi PJ,
Maybe you should post your code, or portion thereof. The trained eyes on the
list will quickly gather where the problem in the logic lies.
Maybe you can also sacrifice some of your data or data structures if not too
sensitive. This will help to validate the route you are trying to follow.
I think most books have you writing code, and Head First did as well, so I
think that is covered..
I actually have a real project to do that is a little beyond my abilities at
this point (its my own), so I want to keep the learning process flowing.
But thank you for your suggestion!
Gary
"Ba
On Tue, Apr 14, 2009 at 11:31 AM, Gary wrote:
> I am nearing completion of Head First PHP & MySQL, which is a beginners
> book. Does anyone have a next step in a choice of a book to progress my
> studies?
>
> I have been watching the board,starting to understand some of the
> questions,and have
René Fournier wrote:
> I'm trying to write a [simple] function, such that:
>
> function earlier_unix_timestamp () {
> $now = mktime();
> [...]
> return $then; // e.g., 1238983107
> }
>
> Anyone have something already made? There seem to be many ways to skin
> this cat, with da
[snip]
>
>
>
> function send_confirmation_email($to, $subject, $body)
> {
> $headers ="MIME-Versin: 1.0\n" .
> "Content-type: text/plain; charset=ISO-8859-1;
> format=flowed\n" .
> "Content-Transfer-Encoding: 8bit\n" .
> "Reply-To:
2009/4/13 René Fournier :
> "What was the unix timestamp of last week, Monday 12:00 am?"
>
Depends on when I read your message.
:-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2009/4/13 PJ :
> I have already tried with several count and for schemes. None work
> because foreach ignores any counters once in the loop. Also, this
> foreach is nested within another foreach; don't know if that affects
> anything.
Have you heard of while()? You can use it in combination with
2009/4/12 Ron Piggott :
>
> At the very start of my index.php I have the following lines of code:
>
> foreach($_GET as $key => $val) {
> $$key = $_GET[$val];
> echo $_GET[$val] . "";
> }
>
> What I don't understand is why the output is
>
>
>
Well, this would happen if you open
/page.php?var=
tha
I am nearing completion of Head First PHP & MySQL, which is a beginners
book. Does anyone have a next step in a choice of a book to progress my
studies?
I have been watching the board,starting to understand some of the
questions,and have been following some of the responses,in partiuclar to t
From: Bastien Koert
To: Lamp Lists
Cc: Marc Steinert ; php-general@lists.php.net
Sent: Tuesday, April 14, 2009 8:11:04 AM
Subject: Re: [PHP] try - catch is not so clear to me...
On Mon, Apr 13, 2009 at 11:34 PM, Lamp Lists wrote:
On Tue, Apr 14, 2009 at 8:40 AM, Paul M Foster wrote:
> On Tue, Apr 14, 2009 at 07:58:24AM +0100, Ashley Sheridan wrote:
>
>
>
>> I've done a bit of research into that, and can't find any evidence to
>> suggest that the so-called "friendly URL's" are actually of any benefit
>> to search engines.
On Tue, Apr 14, 2009 at 4:12 AM, Per Jessen wrote:
> Tom Sparks wrote:
>
>>
>> how do I get the creation dates on a file?
>> how do I get the last access date on a file?
>>
>
> http://php.net/manual/en/function.stat.php
Or, perhaps a bit easier:
http://php.net/filemtime
http://php.net/fileatime
Mikko,
I'm not in a speed race. All my answers are well-thought out. I sent
separate e-mails because mailing list discussions are threaded*, and I
was responding to different people regarding different things. Who
should I reply to if I want to respond to more than one person?
I apologize if I've
On Tue, Apr 14, 2009 at 07:58:24AM +0100, Ashley Sheridan wrote:
> I've done a bit of research into that, and can't find any evidence to
> suggest that the so-called "friendly URL's" are actually of any benefit
> to search engines. Just put a question into Google, and more often than
> not, the
On Mon, Apr 13, 2009 at 11:34 PM, Lamp Lists wrote:
>
>
>
>
> From: Marc Steinert
> To: Lamp Lists
> Cc: php-general@lists.php.net
> Sent: Monday, April 13, 2009 11:27:08 AM
> Subject: Re: [PHP] try - catch is not so clear to me...
>
> Basically try-catch gives
Normally, I would write the plugin in perl but the general rule is to
return the right exit code to nagios, meaning, the plugin performs a
test and exits with a code from 0-3 which indicates to nagios of the
result of the test, it is also possible to also return a test message
along wit hthe co
On Tue, Apr 14, 2009 at 1:26 PM, Glen wrote:
> I didn't say PHP tags were valid XML. I said short_open_tag conflicts
> with
> <% is not valid XML either, but it doesn't conflict with processing
> instructions.
>
> Glen.
Hello Glen,
posting to mailing-lists is not a speed race so think about
Hi, everyone!
I need to do the following:
Let's say I have this class:
class A {
public function b(array $c, $d = 6) { ... }
}
I need to get this in runtime:
"public function b(array $c, $d = 6)"
What's the best way to do it?
(I don't quite like the idea of reading the file in which the class
$_REQUEST is not any less secure then $_POST/$_GET/$_COOKIE, they all
contain raw user data.
The way $_REQUEST is being used in this example is not less secure then
using $_GET. It does open up an exploit but this is not because $_REQUEST is
less secure.
The same exploit exists with $_GET, I could
Hi,
> I've always put any forms that collect credit card information behind a
> secure connection, https, figuring that sending that information from the
> client browser to the server should be secure, but I'm having convincing a
> client that it is necessary.
>
> He instead insists that only the
Hello,
following in my .htaccess works with php 5.2.6 (mod_php)
php_value mbstring.func_overload 2
Seems that since (5.2.7?) 5.2.8/5.2.9 this value is not any more accepted by
php in .htaccess.
mbstring.func_overload should be changeable by PHP_INI_PERDIR which includes
.htaccess
Other values
Tom Sparks wrote:
>
> how do I get the creation dates on a file?
> how do I get the last access date on a file?
>
http://php.net/manual/en/function.stat.php
/Per
--
Per Jessen, Zürich (14.4°C)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsu
Michael Shadle wrote:
> On Mon, Apr 13, 2009 at 2:19 AM, Michael A. Peters wrote:
>
>> The problem is that validating xhtml does not necessarily render properly in
>> some browsers *cough*IE*cough*
>
> I've never had problems and my work is primarily around IE6 / our
> corporate standards. Hell,
how do I get the creation dates on a file?
how do I get the last access date on a file?
tom_a_sparks
Please avoid sending me Word or PowerPoint attachments.
but instead use OpenDocument File Formats or
use OpenOffice
http://en.wikipedia.org/wiki/OpenDocument
http://en.wikipedia.org/wiki/OpenOf
$_REQUEST is "less secure" because it also contains cookie data.
If you manage just to set a cookie, with the name "act" and value "logout",
the user will infinitely log out - You get the point.
On Sun, Apr 12, 2009 at 10:56 PM, Jason Pruim wrote:
>
> On Apr 12, 2009, at 1:48 PM, Ron Piggott wr
Ashley Sheridan wrote:
On Mon, 2009-04-13 at 15:47 -0700, Michael A. Peters wrote:
I think doing it that way also has search engine indexing advantages.
I've done a bit of research into that, and can't find any evidence to
suggest that the so-called "friendly URL's" are actually of any bene
55 matches
Mail list logo