mike wrote:
> On Tue, Feb 17, 2009 at 4:26 PM, mike wrote:
>> i tried that kind of stuff - it did not seem to work.
>>
>> i will try again... if anyone has any ideas i.e. "use iconv to convert
>> to A, then use DOM stuff, then use iconv to move it back to UTF8..."
>> etc. i am all ears.
>
> Nope
'Twas brillig, and Ian at 18/02/09 07:09 did gyre and gimble:
We dont have registration - its a once off vote anonymously using the hash
in the original email. We dont want registration otherwise it would be much
easier - but this was the best way I could think of without user
registration :/
D
Forgot to send to list.
-- Forwarded message --
From: Ian
Date: Wed, Feb 18, 2009 at 11:12 AM
Subject: Re: [PHP] Re: Unique User Hashes
To: Colin Guthrie
'Twas brillig, and Ian at 18/02/09 07:09 did gyre and gimble:
>
>> We dont have registration - its a once off vote anonymou
What are some good php classes/scripts to work with:
Parsing XML data/files.
Building SOAP/WDML (Im not too familiar with this so still trying to
work it out)
So far, I have a class from :
PHP WSDL Generator - Version 1.1.0 b
http://www.protung.ro
Basically what I need to do is connect to/se
Clancy schreef:
> I have a function to process a data file. This process opens the file, and
> then calls
> another function to process each entry. This function in turn calls another
> function to
> process each line of the entry. A set of fairly complex arrays specifies how
> all the
> poss
Anton Heuschen wrote:
> What are some good php classes/scripts to work with:
>
> Parsing XML data/files.
xpath() or xslt.
/Per
--
Per Jessen, Zürich (-4.6°C)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2009/2/17 PJ :
> Stuart wrote:
>> 2009/2/17 PJ :
>>
>>> Dotan Cohen wrote:
>>>
>> So put it all in one place:
>>
>> > include "path.inc";
>> print"";
>> ?>
>>
>> Full URLs don't break when users save the pages to disk.
>>
> That would be fine if the pages wer
On Tue, 2009-02-17 at 18:54 +0200, Thodoris wrote:
Hi,
This is probably a bit stupid, but I've been having issues getting any
of the good FTP servers running on my Ubuntu 6.06 (LTS) box.
I've tried Pro-FTP, Pure-FTP, and briefly installed some others, but
the versions available for my dist
2009/2/18 PJ :
> Stuart wrote:
>> 2009/2/17 PJ :
>>
>>> Stuart wrote:
>>>
2009/2/17 PJ :
> Dotan Cohen wrote:
>
>
So put it all in one place:
>>> include "path.inc";
print"";
?>
Full URLs don't break when
Stuart wrote:
> 2009/2/17 PJ :
>
>> Stuart wrote:
>>
>>> 2009/2/17 PJ :
>>>
>>>
Dotan Cohen wrote:
>>> So put it all in one place:
>>>
>>> >> include "path.inc";
>>> print"";
>>> ?>
>>>
>>> Full URLs don't break when users save
To focus on mysql_real_escape_string, I am recapping... questions below
QUOTE:==
Instead of doing this (for an imaginary table):
$sql = "insert into table1(field1, field2) values ('$value1', '$value2')";
do
$sql = "insert into table1(field1, field2) values ('" .
mysql_real_escape_string($v
Stuart wrote:
>>>
This generates a Fatal error: Cal to undefined function dirname()
I must be really dense...
What I don't understand in the above is this - dirname refers to what
directory? -- the directory of the file that is including? what if the
directory is the root directory of t
Yeah, I don't want local user access (SSH, their own entries in passwd,
etc..). Too much work to ensure they all have the correct file
permissions, etc..
I think I'll just skip the PHP bit and use a proper FTP server. I've
configured them a few times, but all the examples I found only had
Anony
2009/2/18 PJ :
> Stuart wrote:
> This generates a Fatal error: Cal to undefined function dirname()
The dirname function is present in both PHP 4 and 5 and does not rely
on any external libraries. Are you sure you're spelling it right?
http://php.net/dirname
> I must be really den
---
Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get
a Free CD of Ubuntu mailed to your door without any cost. Visit :
www.ubuntu.com
--
On
On Wed, Feb 18, 2009 at 8:34 AM, PJ wrote:
> To focus on mysql_real_escape_string, I am recapping... questions below
> QUOTE:==
> Instead of doing this (for an imaginary table):
> $sql = "insert into table1(field1, field2) values ('$value1', '$value2')";
>
> do
> $sql = "insert into table
Robert Cummings schreef:
> On Tue, 2009-02-17 at 11:48 -0800, Michael A. Peters wrote:
>> Robert Cummings wrote:
>>
>>> I think what you all are missing is that physics is just a framework for
>>> reality.
>> I think you are missing that reality is just a construct of strawberry
>> fields forever.
Thodoris a écrit :
Here's a question related to my last post. When specifying a link in a
HTML file (like to the css or an image file), there are two ways of
doing it. One is to simply include the relative path to the file
(relative to the doc root), like:
/graphics/my_portrait.gif
Or you can
On Wed, Feb 18, 2009 at 4:12 AM, Ian wrote:
> Forgot to send to list.
>
> -- Forwarded message --
> From: Ian
> Date: Wed, Feb 18, 2009 at 11:12 AM
> Subject: Re: [PHP] Re: Unique User Hashes
> To: Colin Guthrie
>
>
>
> 'Twas brillig, and Ian at 18/02/09 07:09 did gyre and gimble
I've had a bit of a problem with a function I'm using for a form.
Essentially, the function looks like this:
function addEvent($values = Array('name' => '', 'venue' => '',
'description' => '', 'errors' => Array()))
{
// code here displays the form
}
The function is used to both display an
On Wed, 2009-02-18 at 15:55 +0100, Jochem Maas wrote:
> Robert Cummings schreef:
> > On Tue, 2009-02-17 at 11:48 -0800, Michael A. Peters wrote:
> >> Robert Cummings wrote:
> >>
> >>> I think what you all are missing is that physics is just a framework for
> >>> reality.
> >> I think you are missin
On Wed, Feb 18, 2009 at 8:34 AM, PJ wrote:
> To focus on mysql_real_escape_string, I am recapping... questions below
> QUOTE:==
> Instead of doing this (for an imaginary table):
> $sql = "insert into table1(field1, field2) values ('$value1', '$value2')";
>
> do
> $sql = "insert into table1
Jochem Maas wrote:
> Robert Cummings schreef:
>
>> On Tue, 2009-02-17 at 11:48 -0800, Michael A. Peters wrote:
>>
>>> Robert Cummings wrote:
>>>
>>>
I think what you all are missing is that physics is just a framework for
reality.
>>> I think you are missing t
Thodoris wrote:
>
>> I've had a bit of a problem with a function I'm using for a form.
>> Essentially, the function looks like this:
>>
>> function addEvent($values = Array('name' => '', 'venue' => '',
>> 'description' => '', 'errors' => Array()))
>> {
>> // code here displays the form
>> }
>>
PJ wrote:
> Stuart wrote:
>> 2009/2/17 PJ :
>>
>>> Stuart wrote:
>>>
2009/2/17 PJ :
> Dotan Cohen wrote:
>
>
So put it all in one place:
>>> include "path.inc";
print"";
?>
Full URL
Stuart wrote:
> 2009/2/18 PJ :
>
>> Stuart wrote:
>>
>
>
>> This generates a Fatal error: Cal to undefined function dirname()
>>
>
> The dirname function is present in both PHP 4 and 5 and does not rely
> on any external libraries. Are you sure you're spel
On Wed, Feb 18, 2009 at 12:05 PM, PJ wrote:
> Stuart wrote:
> > 2009/2/18 PJ :
> >
> >> Stuart wrote:
> >>
> >
> >
> >> This generates a Fatal error: Cal to undefined function dirname()
>
> >>
> >
> > The dirname function is present in both PHP 4 and 5 and does not rely
> > on
---
Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get
a Free CD of Ubuntu mailed to your door without any cost. Visit :
www.ubuntu.com
--
On
On Wed, Feb 18, 2009 at 12:05:21PM -0500, PJ wrote:
> Stuart wrote:
> > 2009/2/18 PJ :
> >
> >> Stuart wrote:
> >>
> >
> >
> >
> >
> What confused me here is that often, in examples, there are all sorts of
> references to files and there seems to be no standard as to how to refer
> to
Bastien Koert wrote:
> On Wed, Feb 18, 2009 at 12:05 PM, PJ wrote:
>
>> Stuart wrote:
>>> 2009/2/18 PJ :
>>>
Stuart wrote:
>>>
>>>
This generates a Fatal error: Cal to undefined function dirname()
>>
>>> The dirname function is present in both PHP 4 and 5 and does
Paul M Foster wrote:
> On Wed, Feb 18, 2009 at 12:05:21PM -0500, PJ wrote:
>
>> Stuart wrote:
>>> 2009/2/18 PJ :
>>>
Stuart wrote:
>>>
>>>
>
>
>
>>>
>> What confused me here is that often, in examples, there are all sorts of
>> references to files and there seems to be no standa
Is there a function or variable that will tell me if a file has asked
another file to include something much the same as
$_SERVER['HTTP_REFERER'] works. I have a script that is included on
every page of a site but also needs to include some javascript only if
it's called from a certain URL.
t
On Wed, Feb 18, 2009 at 1:16 PM, Ed Curtis wrote:
> Is there a function or variable that will tell me if a file has asked
> another file to include something much the same as $_SERVER['HTTP_REFERER']
> works. I have a script that is included on every page of a site but also
> needs to include some
2009/2/13 Dan Shirah :
>>
>> Use the system() command, and enclose both your command and its
>> parameters in a pair of single quotes, as:
>>
>> system('mycmd -a alfa -b bravo');
>>
>> Paul
>> --
>> Paul M. Foster
>>
>
> Using both exec() and system() I am getting the error: Unable to fork
>
Thi
Ed Curtis wrote:
Is there a function or variable that will tell me if a file has asked
another file to include something much the same as
$_SERVER['HTTP_REFERER'] works. I have a script that is included on
every page of a site but also needs to include some javascript only if
it's called from
On Wed, 2009-02-18 at 23:57 +0530, Sudheer wrote:
> Ed Curtis wrote:
> > Is there a function or variable that will tell me if a file has asked
> > another file to include something much the same as
> > $_SERVER['HTTP_REFERER'] works. I have a script that is included on
> > every page of a site b
Johnny wrote:
Hi Thodoris,
In my opinion, the best use is to include your file with relative urls,
like :
I believe that it best.
Including the hostname use to cause a dns lookup in some browsers which
made it slower but I don't believe that is the case anymore.
Doing the full path rel
Ed Curtis wrote:
Is there a function or variable that will tell me if a file has asked
another file to include something much the same as
$_SERVER['HTTP_REFERER'] works. I have a script that is included on
every page of a site but also needs to include some javascript only if
it's called from
Ed Curtis wrote:
Is there a function or variable that will tell me if a file has asked
another file to include something much the same as
$_SERVER['HTTP_REFERER'] works. I have a script that is included on
every page of a site but also needs to include some javascript only if
it's called from
At 5:47 AM +0200 2/18/09, Ian wrote:
Anyone had to deal with this in the past and does anyone have any
suggestions/ideas as to how I could better this setup?
Many thanks in advance,
Ian
Ian:
As other people have said, using IP's are not really a good solution.
If it was me, I would ask the u
Yannick Mortier wrote:
2009/2/13 Dan Shirah :
Using both exec() and system() I am getting the error: Unable to fork
This sounds to me like it is an restriction on the server that doesn't
allow php to fork so it could start another process.
Maybe you should ask your hoster if you are not
Michael A. Peters wrote:
> Ed Curtis wrote:
>> Is there a function or variable that will tell me if a file has asked
>> another file to include something much the same as
>> $_SERVER['HTTP_REFERER'] works. I have a script that is included on
>> every page of a site but also needs to include some ja
On Wed, Feb 18, 2009 at 1:41 PM, tedd wrote:
> At 5:47 AM +0200 2/18/09, Ian wrote:
>>
>> Anyone had to deal with this in the past and does anyone have any
>> suggestions/ideas as to how I could better this setup?
>>
>> Many thanks in advance,
>> Ian
>
> Ian:
>
> As other people have said, using I
Robert Cummings wrote:
On Wed, 2009-02-18 at 23:57 +0530, Sudheer wrote:
Ed Curtis wrote:
Is there a function or variable that will tell me if a file has asked
another file to include something much the same as
$_SERVER['HTTP_REFERER'] works. I have a script that is included on
every
Hello every body,
I am a french student, I am using memcache to manage sessions by the
handler, but sometimes I want to manage their from PHP; for example, for
incrementing one or two variables of an other session, I want to know
how I can update an other session, if I know its name ?
T
> http://www.gfx-depot.com/forum/-php-server-php-self-validation-t-1636.html
>
> explains a technique to validate the input as well (don't trust that is
> clean)
>
I do not understand the exploit. How is he spoofing any $_SERVER
variables? The attack description doesn't make sense.
--
Dotan Cohe
At 1:54 PM -0500 2/18/09, Andrew Ballard wrote:
On Wed, Feb 18, 2009 at 1:41 PM, tedd wrote:
> Granted this is an involved method, but email addresses are unique and thus
ensures one vote per email address.
E-mail addresses are (somewhat unique -- not getting into aliases,
forwards, and su
On Wed, Feb 18, 2009 at 3:43 PM, tedd wrote:
> At 1:54 PM -0500 2/18/09, Andrew Ballard wrote:
>>
>> On Wed, Feb 18, 2009 at 1:41 PM, tedd wrote:
>>
>> > Granted this is an involved method, but email addresses are unique and
>> thus
>>>
>>> ensures one vote per email address.
>>
>> E-mail addre
On Wed, 2009-02-18 at 15:54 -0500, Andrew Ballard wrote:
> On Wed, Feb 18, 2009 at 3:43 PM, tedd wrote:
> > At 1:54 PM -0500 2/18/09, Andrew Ballard wrote:
> >>
> >> On Wed, Feb 18, 2009 at 1:41 PM, tedd wrote:
> >>
> >> > Granted this is an involved method, but email addresses are unique and
>
At 3:54 PM -0500 2/18/09, Andrew Ballard wrote:
You're missing my point. Yes, e-mail addresses are unique delivery
points. They can not, however, uniquely identify one and only one
person -- which is what one would need in the OP's situation.
Andrew
Andrew:
No -- I did not miss you point, you
On Wed, 2009-02-18 at 10:21 -0600, Shawn McKenzie wrote:
> Thodoris wrote:
> >
> >> I've had a bit of a problem with a function I'm using for a form.
> >> Essentially, the function looks like this:
> >>
> >> function addEvent($values = Array('name' => '', 'venue' => '',
> >> 'description' => '', '
Hi all,
A while ago, i had a problem with shell_exec:
I was writing some code to execute imagemagick to convert a bunch of images.
This could take ages to execute and the page therefore ages to load. The
solution was to get a linux box and append a & at the end to do it in the
background or make
Dotan Cohen wrote:
http://www.gfx-depot.com/forum/-php-server-php-self-validation-t-1636.html
explains a technique to validate the input as well (don't trust that is
clean)
I do not understand the exploit. How is he spoofing any $_SERVER
variables? The attack description doesn't make sense.
On Thu, 2009-02-19 at 10:30 +1300, German Geek wrote:
> Hi all,
>
> A while ago, i had a problem with shell_exec:
>
> I was writing some code to execute imagemagick to convert a bunch of images.
> This could take ages to execute and the page therefore ages to load. The
> solution was to get a lin
Dotan Cohen wrote:
>> http://www.gfx-depot.com/forum/-php-server-php-self-validation-t-1636.html
>>
>> explains a technique to validate the input as well (don't trust that is
>> clean)
>>
>
> I do not understand the exploit. How is he spoofing any $_SERVER
> variables? The attack description doesn
Michael A. Peters wrote:
> Dotan Cohen wrote:
>>> http://www.gfx-depot.com/forum/-php-server-php-self-validation-t-1636.html
>>>
>>>
>>> explains a technique to validate the input as well (don't trust that is
>>> clean)
>>>
>>
>> I do not understand the exploit. How is he spoofing any $_SERVER
>> v
> Did you actually try his example?
No, I could not understand it. Now I see why:
1) Where would the "experienced hacker" enter the attack? Now I see
that it is the URL of the attacked site. That was not clear, I though
that it was being entered into some form element that I did not see in
the cod
Hello PHPers,
I am quite ignorant about file system security. I was hoping you all
could help me understand things.
How does one restrict php script from going (reading, writing) files in
the file system?
As I see it, a php programmer could change the include_path, with
ini_set(), use "../
Yes, believe it or not, when i was writing this, i thought about a db soln
as well. Just hadnt done it that way back then.
I guess with Linux one could do something like:
shell_exec('{longexecutingprogram -with -params; mysql -uuser -ppass
database query; } &');
Surely it should be possible in w
2009/2/18 PJ :
> Paul M Foster wrote:
>> On Wed, Feb 18, 2009 at 12:05:21PM -0500, PJ wrote:
>>
>>> Stuart wrote:
2009/2/18 PJ :
> Stuart wrote:
>
>>
>>
>>
>>> What confused me here is that often, in examples, there are all sorts of
>>> references to files
On Thu, 2009-02-19 at 11:15 +1300, German Geek wrote:
> Yes, believe it or not, when i was writing this, i thought about a db soln
> as well. Just hadnt done it that way back then.
>
> I guess with Linux one could do something like:
>
> shell_exec('{longexecutingprogram -with -params; mysql -uuse
On Wed, Feb 18, 2009 at 4:07 PM, tedd wrote:
> At 3:54 PM -0500 2/18/09, Andrew Ballard wrote:
>>
>> You're missing my point. Yes, e-mail addresses are unique delivery
>> points. They can not, however, uniquely identify one and only one
>> person -- which is what one would need in the OP's situati
German Geek napsal(a):
Hi all,
A while ago, i had a problem with shell_exec:
I was writing some code to execute imagemagick to convert a bunch of images.
This could take ages to execute and the page therefore ages to load. The
solution was to get a linux box and append a & at the end to do it i
>
> > > What are your suggestions folks on how to go about setting a date on a
> form
> > > so that a user can not set a start date prior to the current days date?
> > > I've been looking around php.net but is it a javascript thing in the
> > > validation I should be dealing with, basically as it i
Daniel Kolbo wrote:
> Hello PHPers,
>
> I am quite ignorant about file system security. I was hoping you all
> could help me understand things.
>
> How does one restrict php script from going (reading, writing) files in
> the file system?
> As I see it, a php programmer could change the include
Guys, I have not seen a poll where you need to input your email address
- and if I would I would not vote - because it's a waste of my time...
if you want me to vote you do everything you can to make it as pleasant
as possible -- certainly that isn't requirement of an email validation.
Andre
On Wed, Feb 18, 2009 at 05:25:16PM -0600, Terion Miller wrote:
> What about just accepting any date in to the system, and defaulting to
> the current date if any numptys/users try to set one before?
>
> Do something maybe like this (untested)
>
> $userDate = strtotime($_REQ
Per Jessen wrote:
Anton Heuschen wrote:
What are some good php classes/scripts to work with:
Parsing XML data/files.
xpath() or xslt.
/Per
you'll do no finer than wso2 wsf/php for anything webservice related
http://wso2.org/projects/wsf/php
--
PHP General Mailing List (http://www.php.n
I'm trying to build a multi-array menu (but open to using classes or
something if that makes this easier).
Does anyone have a solution already working?
I'm very close, but I can't seem to get my "directories" to work and I
end up with extraneous blocks.
here's what I need to re-create:
Any ideas or tutorials on how to build a user profile page sort of like
facebook?
-Jeff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The question can be equally rephrased as "How an Atom bom/Spaceship be
created"?
Answer depends on the level of knowledge you have on coding / developing
sites. Woud you be using any framework? or would you use any readymade CMS?
Or write everything from scratch?
Question can also be generalized
Daevid Vincent wrote:
I'm trying to build a multi-array menu (but open to using classes or
something if that makes this easier).
Does anyone have a solution already working?
I'm very close, but I can't seem to get my "directories" to work and I
end up with extraneous blocks.
here's what I need
Daevid Vincent wrote:
I'm trying to build a multi-array menu (but open to using classes or
something if that makes this easier).
Does anyone have a solution already working?
I'm very close, but I can't seem to get my "directories" to work and I
end up with extraneous blocks.
here's what I need
Hi all.
Maybe I'm wanting more Java-like functionality out of PHP, but I don't
really like getting and setting members directly (even for public
members) - I'd rather use accessors. This way you can control what is
getting set and what is returning. However, I also don't really want
to cr
74 matches
Mail list logo