At 3:28 PM -0400 5/20/11, Alex Nikitin wrote:
Just a comment on the building a house, a house is a page, but as
programmers (at least decent ones) we are no longer building single
pages, we build a house template and fill it with various elements
to define what the house is and what it does, so
Sense of Security - Security Advisory - SOS-11-007
Release Date. 20-May-2011
Last Update.-
Vendor Notification Date. 04-Apr-2011
Product.Securimage / PHPCaptcha
Platform. PHP
Affected versions. 1.0.4 - 2.0.2
Severity
[whoops didn't hit reply-all]
On Wed, May 18, 2011 at 5:18 AM, Ken Guest wrote:
> Lo,
>
> so, I'm wondering - how many of you use the observer pattern in php;
> and if so, do you implement it 'standalone' or with the spl classes?
> Is there any particular advantage to doing it "your way"; whichev
On 20 May 2011 19:32, tedd wrote:
> I've never meet a person who I couldn't learn from.
Yep. You can always serve as a bad example.
Richard.
(Is it still Friday)?
--
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea
--
PHP Gener
On Sat, 2011-05-21 at 00:42 +0430, Negin Nickparsa wrote:
> why URL?
I've read over this thread and the other one you created earlier. I
really think you would do better if you took an hour or so to read over
how the typical client/server web model works, as this is leading to a
lot of confusion
On Fri, 2011-05-20 at 19:46 +0430, Negin Nickparsa wrote:
> the thing that is important to me is setting session
> because i want the tables of the one that clicked be showed on patient.php
> how can i change my wrong code?
You have to realise that PHP code runs on the server, all before it
send
@David
Fair enough, then i have seen so many badly designed sewage systems, that
the backed up sewage monsters come to me in my dreams... :) wait no the
other one :(
@Paul
And my girlfriend, apparently
--
The trouble with programmers is that you can never tell what a programmer is
doing until it’
why URL?
On 11-05-20 03:27 PM, Negin Nickparsa wrote:
i want to click on the image then it stores the session so i can have many
different tables in another one unique page
suppose that i have A in my column when i click on image then it showed me
the table of A in another page
but if i click on the image
On Fri, May 20, 2011 at 02:32:42PM -0400, tedd wrote:
[snip]
>
> >And I agree with the majority that your bracing style is horrid. But I
> >long ago despaired of turning you from the Dark Side(tm). ;-}
>
> I understand, but like my wife often says "Bite me" :-)
OMG! She must be related to *m
it is the result!!!
Now = getdate(time()+TIMESEED*60); else $this->Now = getdate(($mode?
$dd:strtotime($dd))); $this->Now["fyday"] = ($this->Now["yday"]+287)%365;
if($this->Now["fyday"]==0) $this->Now["fyday"] = 365; } function
getFarsiDate($mode, $fa=true, $echo=true) { $varStr = ""; switch($mode)
On Fri, May 20, 2011 at 12:28 PM, Alex Nikitin wrote:
> Also you left out a database, your basement/foundation . . .
I liken the database to the sewer: it's where all the crap goes. :D
Happy Friday!
David
That is because you do not have jquery loaded.
Here you can link to googles jquery or download it to your server.
http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
Richard L. Buskirk
-Original Message-
From: Negin Nickparsa [mailto:nickpa...@gmail.com]
Sent: Friday, May 20
i'm using http://localhost/
i don't have server like something.com
i wrote url:'loadsession.php'
instead of http://www.yourserver.com/loadsession.php',
and i deleted src="http://www.yourserver.com/js/jquery.js";
but it doesn't work what i must write in there?
Just a comment on the building a house, a house is a page, but as
programmers (at least decent ones) we are no longer building single pages,
we build a house template and fill it with various elements to define what
the house is and what it does, so in essense you actually are not building
just one
i want to click on the image then it stores the session so i can have many
different tables in another one unique page
suppose that i have A in my column when i click on image then it showed me
the table of A in another page
but if i click on the image of B then in the next page it will show me th
On 11-05-20 03:06 PM, Negin Nickparsa wrote:
Robert could u plz exactly tell me how i can work with GET and write my
SESSION i tried your code abt session but i didn't get it right but for
another ones i tried and it was right
Hi Negin,
What part are you having a problem with? The first part o
At 3:00 PM -0400 5/20/11, HallMarc Websites wrote:
> >Making professional coding techniques visible to others can only be a
>good thing. I've been doing this for a while, but I'm still interested
>in how other people do these things. I never know when I might learn
>something.
I've never m
At 2:57 PM -0400 5/20/11, HallMarc Websites wrote:
> At 9:30 PM +0300 5/20/11, Andre Polykanine wrote:
>Hi Richard, Tedd,
>
>Hey guys, you did understand what I meant. I meant you
>can't just go and write a session variable by onclicking it in
>JavaScript. You need
Robert could u plz exactly tell me how i can work with GET and write my
SESSION i tried your code abt session but i didn't get it right but for
another ones i tried and it was right
On Fri, May 20, 2011 at 2:46 PM, tedd wrote:
> At 9:30 PM +0300 5/20/11, Andre Polykanine wrote:
>
>> Hi Richard, Tedd,
>>
>> Hey guys, you did understand what I meant. I meant you
>> can't just go and write a session variable by onclicking it in
>> JavaScript. You need AJA
> And there are some hosting companies that offer servers that run
JavaScript
> server side like Jaxer That is not an endorsement of any kind. I have yet
to
> sign up for an account. I do know that the idea of running JavaScript
server
> side has been kicked around since I think 1996.
I just took
On 11-05-20 02:51 PM, HallMarc Websites wrote:
And there are some hosting companies that offer servers that run JavaScript
server side like Jaxer
That is not an endorsement of any kind. I have yet to sign up for an
account. I do know that the idea of running JavaScript server side has been
kicked
At 2:51 PM -0400 5/20/11, HallMarc Websites wrote:
And there are some hosting companies that offer servers that run JavaScript
server side like Jaxer
That is not an endorsement of any kind. I have yet to sign up for an
account. I do know that the idea of running JavaScript server side has been
ki
> >Making professional coding techniques visible to others can only be a
> >good thing. I've been doing this for a while, but I'm still interested
> >in how other people do these things. I never know when I might learn
> >something.
>
> I've never meet a person who I couldn't learn from.
>
A grea
On 11-05-20 02:30 PM, Andre Polykanine wrote:
Hi Richard, Tedd,
Hey guys, you did understand what I meant. I meant you
can't just go and write a session variable by onclicking it in
JavaScript. You need AJAX for that, don't you?
You need a trip to the server whether it
> At 9:30 PM +0300 5/20/11, Andre Polykanine wrote:
> >Hi Richard, Tedd,
> >
> >Hey guys, you did understand what I meant. I meant you
> >can't just go and write a session variable by onclicking it in
> >JavaScript. You need AJAX for that, don't you?
>
> AJAX = JavaScript.
And there are some hosting companies that offer servers that run JavaScript
server side like Jaxer
That is not an endorsement of any kind. I have yet to sign up for an
account. I do know that the idea of running JavaScript server side has been
kicked around since I think 1996.
--
PHP General Ma
At 9:30 PM +0300 5/20/11, Andre Polykanine wrote:
Hi Richard, Tedd,
Hey guys, you did understand what I meant. I meant you
can't just go and write a session variable by onclicking it in
JavaScript. You need AJAX for that, don't you?
AJAX = JavaScript.
AJAX is simply Ja
At 12:41 AM -0400 5/20/11, Paul M Foster wrote:
As pointed out, there are security and other issues. But since I know
what kind of code you can produce, I realize you left these issues in
place because you were getting at a different point.
Thanks for giving me my due. Often on a list, people
At 9:20 PM +0300 5/20/11, Andre Polykanine wrote:
Hello tedd,
Oh, I liked what you've said about a website like a house. May I
translate this into Russian and quote you in my blog? I'll place the
copyright :-).
Sure -- a link back would be fine.
I plan on placing that analogy on my we
Hi Richard, Tedd,
Hey guys, you did understand what I meant. I meant you
can't just go and write a session variable by onclicking it in
JavaScript. You need AJAX for that, don't you?
--
With best regards from Ukraine,
Andre
Skype: Francophile
My blog: http://oire.org/me
I use Jquery everyday to communicate with php files.
When I say every day I mean every day.
If I could not communicate from Javascript to PHP, Real time data analysts
would be NULL.
Tedd, could not be more correct in his example.
Toot's the Tedd horn!!!
Richard L. Buskirk
-Original Messa
Hello tedd,
Oh, I liked what you've said about a website like a house. May I
translate this into Russian and quote you in my blog? I'll place the
copyright :-).
Actually, what I would like to learn is how to break things. No, I
don't gonna be a hacker (I don't want to go to a jail!),
At 11:11 AM -0400 5/20/11, Alex Nikitin wrote:
Also to tedd, i would say that you should make it a series of
tutorials of how to make simple user auth progressively more and
more secure, i would say that would be a good learning experience
for someone. Start with your basic code, introduce new
At 6:41 PM +0300 5/20/11, Andre Polykanine wrote:
that is completely wrong. You're mixing up two things: PHP is a
server-side language, JavaScript is a client-side language.
While that is true, it doesn't mean that the two languages can't communicate.
Here's an example:
http://webbyted
On Fri, May 20, 2011 at 10:40 AM, Rick Dwyer wrote:
> How do I coerce the result to always round up to the nearest increment 1/4?
>
$x = ceil($x * 4) / 4;
David
what's the scope?
I have some brain-teasing functions i've been working on, but they are far
from bulletproof, but here is an example
function float_int($significand) {
$sign = ($significand<0) ? true : false;
$significand = abs($significand);
$drep = (decbin( (int) $significand));
I have a division formula that will return an value from 0.00 to 5...
so I can get values like 2.38 or 4.79.
However, never lower than 0 or higher than 5.
How do I coerce the result to always round up to the nearest increment
1/4? So for example:
2.06 gets rounded to 2.25
0.01 gets rounde
On Fri, May 20, 2011 at 6:35 AM, Richard Quadling wrote:
[snip]
>
> At a #, the fragment_id doesn't seem to reach PHP.
>
Correct. Since the hash symbol ("fragment identifier") signals the
beginning of the name of an internal bookmark within the document
returned by the server, browsers don't ev
Just wondering if anyone has done anything for this? I personally
haven't had any "ideas" come to mind yet...
Looking forward to seeing them!!! (once they come)
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I imagine this one's been done before, but maybe not in the same way
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello Negin,
that is completely wrong. You're mixing up two things: PHP is a
server-side language, JavaScript is a client-side language.
onClickis client-side, so you can't say onClick="" because onclick is performed *after* the PHP script
something();"?>is *completely* fo
the thing that is important to me is setting session
because i want the tables of the one that clicked be showed on patient.php
how can i change my wrong code?
i can't understand what u wanted to tell me.
i want to when clicking on the sub button then go to another page i wrote it
but i can't solve this problem:
php runs the code and "then" i click it
i don't know,how can i solve it
any suggestion?
Absolutely agree with logging function or class (i ofcourse prefer the
latter) for persistent logging that is to be present in the end product;
however its is not the best of ideas to spend time developing logging code
and using it for debug purposes that will only be used during the initial
devel
On Friday, May 20, 2011, João Cândido de Souza Neto wrote:
> What about using regular expression to validate so using DateTime
> object to parse it if it?s a valid date?
Again, thanks.
For info, I only need to know that it's a valid representation of a
date on this occasion as I intend to use
On Friday, May 20, 2011, Peter Lind wrote:
> Try:
> $date = new DateTime($date_string_to_validate);
> echo $date->format('Y-m-d');
Many thanks. Unfortunately, as I mentioned in my OP, the DateTime
class seems to be 'broken' for my purposes because it uses strtotime()
to convert input strings to
Negin,
You cannot "pause" PHP. You need to do your checking and header() redirect on a
processing page that your form is submitting to.
file process
form.php Displays form
process.phpdecide what to you, redirect to secondary page
secondary.php display your secondary page
O
On 20 May 2011 16:47, Geoff Lane wrote:
*snip*
>>> Also, AFAICT createFromFormat fails if the date is not formatted
>>> according to the first parameter. So, for example:
>>> Â $date = DateTime::createFromFormat('d M Y', '5/2/10')
>>> fails ... (at least, it does on my system :( )
>>>
>
>> I'm s
What about using regular expression to validate so using DateTime object to
parse it if it?s a valid date?
--
João Cândido de Souza Neto
"Geoff Lane" escreveu na mensagem
news:574766433.20110520154...@gjctech.co.uk...
On Friday, May 20, 2011, Peter Lind wrote:
>> This is pretty much as exp
===>if(array_key_exists('sub5',$_POST))
this line runs before i clicked on the submit
while(true) before this line can't work then how can i solve the time
problem?
here is the whole code:
0)
{
echo "";
for($i=0;$i<$num;$i++)
{
$row=mysql_fetch_row($result);
echo "";
for($j=0;$j<$num1;$j++)
{
echo"
On Friday, May 20, 2011, Peter Lind wrote:
>> This is pretty much as expected except that the second call to
>> date() - i.e. date('d M Y', $date) - outputs nothing.
> date() takes an int as second parameter - a timestamp. Not an object.
> And from a quick test it doesn't look like DateTime has
2011/5/20 João Cândido de Souza Neto :
> If you look carefully, you´ll notice that I´m using the DateTime object
> (default from PHP 5.2.0 or higher) not the function date.
If you look carefully, you'll notice that I replied to Geoff.
Regards
Peter
--
WWW: plphp.dk / plind.dk
LinkedIn: pli
On 11-05-20 10:15 AM, Jasper Mulder wrote:
Just the short week that I have been subscribed to this list, I have
encountered numerous code examples using the new OOPHP. A bit of a
culture shock, but since I also code in Java regularly, no conceptual
difficulties occur.
Only thing is now, that I
If you look carefully, you´ll notice that I´m using the DateTime object
(default from PHP 5.2.0 or higher) not the function date.
--
João Cândido de Souza Neto
"Peter Lind" escreveu na mensagem
news:banlktinjonyvfnqjqtfqtdmu_r2-cfp...@mail.gmail.com...
On 20 May 2011 16:22, Geoff Lane wr
On 20 May 2011 16:22, Geoff Lane wrote:
>  On Friday, May 20, 2011, João Cândido de Souza Neto wrote:
>
>> What about using this:
>
>> $date = DateTime::createFromFormat("Y-m-d", "2011-05-20");
>
> Hi João, and thanks for your help.
>
> FWIW, I thought about that but it didn't work for me. On
On Friday, May 20, 2011, João Cândido de Souza Neto wrote:
> What about using this:
> $date = DateTime::createFromFormat("Y-m-d", "2011-05-20");
Hi João, and thanks for your help.
FWIW, I thought about that but it didn't work for me. On further
investigation, I'm now completely confused and
Just the short week that I have been subscribed to this list, I have
encountered numerous code examples using the new OOPHP. A bit of a
culture shock, but since I also code in Java regularly, no conceptual
difficulties occur.
Only thing is now, that I would like to improve my OOPHP skill by
writi
I tried,You solved my problem tanx very much Rob
On 11-05-20 09:14 AM, Joshua Kehn wrote:
On May 20, 2011, at 4:41 AM, Tim Streater wrote:
On 20 May 2011 at 04:03, Alex Nikitin wrote:
but here is a brief example:
(!DEBUG) || error_log("Fetch Data: ".memory_get_usage()/1048576);
If you're going to use ugly little shortcuts why not simpli
On May 20, 2011, at 4:41 AM, Tim Streater wrote:
> On 20 May 2011 at 04:03, Alex Nikitin wrote:
>
>> but here is a brief example:
>>
>> (!DEBUG) || error_log("Fetch Data: ".memory_get_usage()/1048576);
>>
>> reads and writes a lot better and faster then:
>>
>> if(DEBUG) {
>> $memory = memo
It is completely wrong... JavaScript is client side technology (your
browser), PHP is server side technology (your web server). To do what
you want, you SHOULD just wrap the image in a link:
If you MUST use JavaScript, then you can use onclick() to redirect:
onclick="document.location( 'wher
To everyone who did not read my original message but responded to it,
Thank you.
Marc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i want to when clicking on the image then go to other page or set my
$_SESSION
i have this in php code:
echo"";
how can i correct this
or if it is completely wrong how 2 solve it?
i tried to set header in onclick too but i think it can't do because header
is function of php and i echoed the html t
What about using this:
$date = DateTime::createFromFormat("Y-m-d", "2011-05-20");
--
João Cândido de Souza Neto
"Geoff Lane" escreveu na mensagem
news:11565581.20110520132...@gjctech.co.uk...
> Hi All,
>
> I'm scratching my head trying to remember how I validated string
> representation of
Hi All,
I'm scratching my head trying to remember how I validated string
representation of dates 'the first time around' with PHP (before going
over to ASP/VBScript for almost a decade). I have a feeling that I
must have rolled my own validation function, because I can't find
anything other than s
On 20 May 2011 11:20, Tim Streater wrote:
*snip*
> [...] is marked as being aimed at the novice, and at the same time lists some
> of the areas that deliberately haven't been addressed in the example
> provided, then that should suffice.
>
Apart from the above that would make great additions,
Am 20.05.2011 10:38, schrieb shiplu:
On Fri, May 20, 2011 at 1:45 AM, Marc Guay wrote:
Hi folks,
I'm running some code locally which should produce this fun error we
all know and love: Warning: Cannot modify header information -
headers already sent by... but does not. Switching from 5.3 to
On 19 May 2011 at 23:47, Adam Richardson wrote:
> You did make several other great points (session hijacking, multiple login
> attempts), but to be fair to Tedd, there are many levels of security, and I
> doubt he's trying to educate PHP developers with your background. In the
> same way that so
On 19 May 2011 21:48, wrote:
> Hey , i felt so overwhelmed before this
> http://citizenstelecom.com/redirect.php?to=aHR0cDovL3d3dy5uYmMxMGZpbmFuY2UuY29tLz9waWQ9NjYwNTA0
Why? You run a get rich quick scam now? Gee! I wonder if you would
just give me some money. You are so completely loaded, I'm
On 19 May 2011 21:13, Daniel Brown wrote:
> On Thu, May 19, 2011 at 15:04, Scott Baker wrote:
>> I have a script:
>>
>> http://www.perturb.org/index.php
>>
>> I accidentally put a trailing / on the url and it STILL loaded:
>>
>> http://www.perturb.org/index.php/
>>
>> Is that a bug in URL interpr
On 20 May 2011 at 04:03, Alex Nikitin wrote:
> but here is a brief example:
>
> (!DEBUG) || error_log("Fetch Data: ".memory_get_usage()/1048576);
>
> reads and writes a lot better and faster then:
>
> if(DEBUG) {
>$memory = memory_get_usage()/1048576;
>error_log("Fetch Data: ".$memory);
On Fri, May 20, 2011 at 1:45 AM, Marc Guay wrote:
> Hi folks,
>
> I'm running some code locally which should produce this fun error we
> all know and love: Warning: Cannot modify header information -
> headers already sent by... but does not. Switching from 5.3 to 5.2
> reveals the error and ru
74 matches
Mail list logo