then can i output the SMD5 of my password in php.
Jeff Loiselle wrote:
Santosh Jambhlikar wrote:
Hi ,
I have a ldap server the user password are stored in that. my php
ldasearch result says that the result is
ldap user password : {SMD5}eRuT8dttD6M6N6tgMJF33/TNAvc=
i want to compare this
Santosh Jambhlikar wrote:
Hi ,
I have a ldap server the user password are stored in that. my php
ldasearch result says that the result is
ldap user password : {SMD5}eRuT8dttD6M6N6tgMJF33/TNAvc=
i want to compare this password with the user given password in other
application (obviously php)
Hi ,
I have a ldap server the user password are stored in that. my php
ldasearch result says that the result is
ldap user password : {SMD5}eRuT8dttD6M6N6tgMJF33/TNAvc=
i want to compare this password with the user given password in other
application (obviously php) but when i md5("passwordgiv
Santosh Jambhlikar wrote:
As this is the php mailing list it is obvious that i should not write
against php. but people should know the truth. And it's a news (not by
me) that's why i wanted to send link to u peoples.
I am sorry if i did something wrong, i am new user in php mailing list.
The
Santosh Jambhlikar wrote:
As this is the php mailing list it is obvious that i should not write
against php. but people should know the truth.
Jasper is trying to make sure people know the truth. Articles like the
one you mentioned are doing quite the opposite.
I am sorry if i did something
Thanks for the link Jasper. That solved it.
Ken
On Aug 26, 2005, at 1:22 AM, Jasper Bryant-Greene wrote:
Ken Tozier wrote:
I found a method for converting javascript arrays to PHP arrays
here: "http://aspn.activestate.com/ASPN/Cookbook/PHP/Recipe/
414334" and would like to expand the li
As this is the php mailing list it is obvious that i should not write
against php. but people should know the truth. And it's a news (not by
me) that's why i wanted to send link to u peoples.
I am sorry if i did something wrong, i am new user in php mailing list.
Jasper Bryant-Greene wrote:
Ian C. McGarvey wrote:
> I have been studying PHP all summer because I wanted to put some
> PHP code on my schools web site. I got to school and went to the
> web design teacher. I asked him if they had installed PHP on their
> server. He said that the district thinks that it would be a HUGE
> sec
Santosh Jambhlikar wrote:
also
PHP HIT BY ANOTHER CRITICAL FLAW
A new security flaw in the PHP Web service protocol used by a large
number of Web applications could allow attackers to take control of
vulnerable servers.
http://www.computerworld.com/securitytopics/security/holes/story/0,10801,
also
PHP HIT BY ANOTHER CRITICAL FLAW
A new security flaw in the PHP Web service protocol used by a large
number of Web applications could allow attackers to take control of
vulnerable servers.
http://www.computerworld.com/securitytopics/security/holes/story/0,10801,104124,00.html
Ian C. Mc
Ken Tozier wrote:
I found a method for converting javascript arrays to PHP arrays here:
"http://aspn.activestate.com/ASPN/Cookbook/PHP/Recipe/414334"; and would
like to expand the list of types the function knows about. It looks
like 's' = string, 'a' = array but 'i' for integer and 'n' for
I have been studying PHP all summer because I wanted to put some PHP
code on my schools web site. I got to school and went to the web design
teacher. I asked him if they had installed PHP on their server. He said
that the district thinks that it would be a HUGE security risk and that
people at
I found a method for converting javascript arrays to PHP arrays here:
"http://aspn.activestate.com/ASPN/Cookbook/PHP/Recipe/414334"; and
would like to expand the list of types the function knows about. It
looks like 's' = string, 'a' = array but 'i' for integer and 'n' for
number don't work
Guys I'm doing some research trying to find a good PHP based CMS. As
there a quite a few, I would really like to get your opinions so I can
narrow the search down.
We were using Webedit Pro, but have found it a pain not to be able to
use Firefox with it.
Thanks for your input.
Trell
--
"Comput
Chris Shiflett wrote:
Graham Anderson wrote:
Is there a way to loop thru all of these GET requests by:
putting the GET variables into an array
processing the variable strings with trim/striptags/etc in a loop
exploding the variables back out into separate variables
otherwise this gets a bit te
Gustav Wiberg wrote:
Is it possible to retrieve (view) the computers name from the client in
PHP?
If you mean the client, then no - this is not a standard part of an HTTP
request.
Chris
--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/
--
PHP General Mailing List (htt
Graham Anderson wrote:
Is there a way to loop thru all of these GET requests by:
putting the GET variables into an array
processing the variable strings with trim/striptags/etc in a loop
exploding the variables back out into separate variables
otherwise this gets a bit tedious
Proper filtering
Is it possible to retrieve (view) the computers name from the client in PHP?
/G
@varupiraten.se
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Graham Anderson wrote:
Is their some other reasonably safe way to call to the script outside
the web folder?
Assuming you don't have too many hosts, a better way to write this:
$brainPath = "/home/".$server."/includes/fonovisa.inc";
is to use a switch statement to make sure $server is valid
Is their some other reasonably safe way to call to the script outside
the web folder ?
Or, is there some other secure method to get the server name?
As an alternative:
I tried using a relative path: FROM the php script location TO the
fono.inc script location outside the web folder
$mypath =
Graham Anderson wrote:
Is the below reasonable safe ?
I have all of my main functions outside the web folder
I am including this function with every php script that
accesses fonovisa.inc
function getBrain()
{
$temp = explode('.', $_SERVER['SERVER_NAME']);
Because $_SERVER['SERVER_NAME'] c
Robert Cummings wrote:
On Thu, 2005-08-25 at 15:18, George B wrote:
Robert Cummings wrote:
On Thu, 2005-08-25 at 00:19, George B wrote:
Robert Cummings wrote:
On Thu, 2005-08-25 at 00:10, George B wrote:
Ok, I am doing a sort of a project right now... It is like a php chat
room that
I am relatively new to security
Is the below reasonable safe ?
I have all of my main functions outside the web folder
I am including this function with every php script that accesses
fonovisa.inc
function getBrain()
{
$temp = explode('.', $_SERVER['SERVER_NAME']); // returns
'www.myse
On Thu, 2005-08-25 at 15:18, George B wrote:
> Robert Cummings wrote:
> > On Thu, 2005-08-25 at 00:19, George B wrote:
> >
> >>Robert Cummings wrote:
> >>
> >>>On Thu, 2005-08-25 at 00:10, George B wrote:
> >>>
> >>>
> Ok, I am doing a sort of a project right now... It is like a php chat
> >>
> http://www.php.net/magic_quotes
>
> Check the php.ini for the settings on magic_quotes
>
Thanks, Jay. That was a lifesaver.
--
Warm Regards
~~~
Vinayak
you need to provide more information. we cannot tell what you are
doing. you should:
**PASTE THE RELEVANT SECTION OF YOUR CODE IN YOUR EMAIL**
On Aug 25, 2005, at 2:38 PM, George B wrote:
Łukasz 'nostra' Wojciechowski wrote:
W odpowiedzi na maila (21:21 - 25 sierpnia 2005):
I have wri
Łukasz 'nostra' Wojciechowski wrote:
W odpowiedzi na maila (21:21 - 25 sierpnia 2005):
I have written a shoutbox, and it works great, but I am wondering...
When a user posts a shout it goes below the first shout. Like the
auto_increment puts the ID up higher. I need it to go about the first
W odpowiedzi na maila (21:21 - 25 sierpnia 2005):
> I have written a shoutbox, and it works great, but I am wondering...
> When a user posts a shout it goes below the first shout. Like the
> auto_increment puts the ID up higher. I need it to go about the first
> shout, so like the auto_increment
Jordan Miller wrote:
if you are using mysql, just put the "DESC" (descending) directive at
the end of your sql statement (default is no "DESC" directive, meaning
ascending). most recent records will be returned first.
Jordan
On Aug 25, 2005, at 2:21 PM, George B wrote:
I have written a sh
[snip]
I have written a shoutbox, and it works great, but I am wondering...
When a user posts a shout it goes below the first shout. Like the
auto_increment puts the ID up higher. I need it to go about the first
shout, so like the auto_increment would invert. Someone told me this is
possible th
if you are using mysql, just put the "DESC" (descending) directive at
the end of your sql statement (default is no "DESC" directive,
meaning ascending). most recent records will be returned first.
Jordan
On Aug 25, 2005, at 2:21 PM, George B wrote:
I have written a shoutbox, and it works g
I have written a shoutbox, and it works great, but I am wondering...
When a user posts a shout it goes below the first shout. Like the
auto_increment puts the ID up higher. I need it to go about the first
shout, so like the auto_increment would invert. Someone told me this is
possible through P
Robert Cummings wrote:
On Thu, 2005-08-25 at 00:19, George B wrote:
Robert Cummings wrote:
On Thu, 2005-08-25 at 00:10, George B wrote:
Ok, I am doing a sort of a project right now... It is like a php chat
room that records every message into a database. Now, on the first post
I want it t
thanks guys :)
that was exactly what I needed
good karma to you
g
On Aug 25, 2005, at 6:19 AM, Robert Cummings wrote:
On Thu, 2005-08-25 at 03:14, Richard Lynch wrote:
On Wed, August 24, 2005 10:06 pm, Graham Anderson wrote:
Is there a way to loop thru all of these GET requests by:
putting
[snip]
We have a content management system running for a client of ours. It was
earlier on Debian and Apache 1.3 . Now they have moved to Redhat Ent and
Apache 2. The PHP and MySQL versions are the standard packages available
with Redhat Ent and the same version as before. However we can see tha
Hi
We have a content management system running for a client of ours. It was
earlier on Debian and Apache 1.3 . Now they have moved to Redhat Ent and
Apache 2. The PHP and MySQL versions are the standard packages available
with Redhat Ent and the same version as before. However we can see that i
Bagus Nugroho would like to recall the message, "[PHP] PHP without php.ini".
DISCLAIMER: The information in this email is confidential and proprietary. If
you are not the intended recipient, please do not read, copy, use, or disclose
the contents of this communication. Please permanently dele
On 8/25/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
>
> Windows uses \r\n
> Linux uses \n
> Mac uses \r
>
> Depending on what tools you use to read/write/create the files, and
> where the data comes from, it's possible that you have any of those
> formats.
>
> This is especially true of FORM da
[snip]
Does anyone know of a good polling script that is, obviously, written
in PHP?
[/snip]
What are you polling?
It's for a contest so that people can come in and read about the people
who are entered and then vote on which one they think should win. I
would like to at lease be able to res
On Thu, August 25, 2005 6:26 am, Michelle Konzack wrote:
> Curently I do it with wget and by hand using a bash script,
> but like to integrate it into my php4 webinterface.
http://php.net/exec
You really don't want to re-write all of wget.
And I doubt that anything in PHP to do what wget does w
[snip]
Does anyone know of a good polling script that is, obviously, written
in PHP?
[/snip]
What are you polling?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Does anyone know of a good polling script that is, obviously, written
in PHP?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you're reading this text from a file, and then splitting it into
seperate lines, then I personally think you should leave this to the
built-in file() function.
On 8/24/05, Dotan Cohen <[EMAIL PROTECTED]> wrote:
> I seem to be having trouble with \n and \r in variables. I write my
> code on a
At the risk of making a complete and utter ass of myself, I'm going to
disagree with Richard.
I'm going to justify this, by the fact that file_get_content function
is written in C, and performs function required, that is currently
performed by wget.
On 8/25/05, Michelle Konzack <[EMAIL PROTECTED]
Good to know about expression evaluation. Writing the expression(s)
like that (left-to-right and right-to-left) solves my dilemma... thanks!
Jordan
On Aug 25, 2005, at 2:44 AM, Richard Lynch wrote:
I personally would use:
((2 < $x) && ($x <= 4))
--
PHP General Mailing List (http://www.
This is another rather hackish attempt at using the tokeniser.
It turns this:
into this:
SELECT * FROM my_table WHERE (up = 'down') ORDER BY my_column $banana
ASC strtoupper( group by something)
Which isn't perfect by a long shot, but I'm away home now so it'll have to do.
I'd be interested
Jochem Maas schrieb:
Sabine wrote:
But pity for female germans asking stupid questions and mingling
english with german? ;-)
of course :-)
you might as well know that soon John Nichel will take over the world
and outlaw political correctness. this means we can soon start to take a
proper
Hi,
I have a website, which uses themes.
The web tree looks like this:
* webroot
o *themes*
+ default
# images
+ red design
# images
o *index.php*
Let's say I choose "red design" theme. All the pict
Sabine wrote:
But pity for female germans asking stupid questions and mingling english
with german? ;-)
of course :-)
you might as well know that soon John Nichel will take over the world
and outlaw political correctness. this means we can soon start to take a
proper sexist stance on this li
"Angelo Zanetti" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi guys.
>
> Does anyone know of any open source software written in PHP to create
> HTML news letters (head, side and bottom graphics). as well as being
> able to send the newsletters.
PHPlist from www.tincan.co.uk
>
The problem is I haven't seen any examples of this in php.
The best I have come up with is the following. I know the code is pants,
but it works. I am sure people out there can think of a better way of
doing it-
$ua = $logInfo[useragent];
if ( ereg("Firefox/[0-9]{1,2}[\.]{0,
Hi guys.
Does anyone know of any open source software written in PHP to create
HTML news letters (head, side and bottom graphics). as well as being
able to send the newsletters.
thanks in advance.
--
Angelo Zanetti
Z Logic
www.zlogic.co.za
[c] +27 72 441 3355
[t] +27 21 469 1052
--
PHP Gener
Martin
Using Apache? Check out
http://httpd.apache.org/docs/1.3/misc/rewriteguide.html - all about
rewriting URLs...good luck!
HTH
Raz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Martin
You can use this, modified to fit your specific needs:
Call this image.php
Call it in a webpage using this:
img src=image.php
Of course, you will need to figure out how to specify which image you
want loaded as $imagefile - be it a database, random selection, etc.
--
Thanks,
John
On Thu, 2005-08-25 at 03:14, Richard Lynch wrote:
> On Wed, August 24, 2005 10:06 pm, Graham Anderson wrote:
> > Is there a way to loop thru all of these GET requests by:
> > putting the GET variables into an array
> > processing the variable strings with trim/striptags/etc in a loop
> > exploding
This list are not moderated, but Derick has taken care of this
particular problem :)
Edin
Xuefer wrote:
> From: <[EMAIL PROTECTED]>
>
> Subject of the message: [PHP] Re: anyone get corrupted response with
> php-fcgi when zlib.output_compression=On?
> Recipient of the message: "PHP LIST"
>
On Thu, 2005-08-25 at 10:55 +0300, Burhan Khalid wrote:
> wayne wrote:
> > When I run a script from a package I download, it always
> > bombs out on this section. I think that its getting
> > the wrong parameters when it tries to make the Connection.
> > I use PostgreSQL as my DB.Moodle is the name
[snip]
Has the above site gone down? Does anyone know? I've not been able to
access it for quite a while...
[/snip]
I'm thinking that it must be down.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
Curently I do it with wget and by hand using a bash script,
but like to integrate it into my php4 webinterface.
What I need is:
1) INPUT-Form where I can type the URL of
a html/php (or something like this) page.
when submited,
2) the php script download the page and cr
Has the above site gone down? Does anyone know? I've not been able to
access it for quite a while...
thnx,
Chris
On 8/23/05, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> You may (or may not) remember me posting to the list a couple of weeks
> ago asking about using REGEX to get queries out of PHP files for a
> migration project. I had to let it go for several days, but started
> working on it again yesterday, h
From: <[EMAIL PROTECTED]>
Subject of the message: [PHP] Re: anyone get corrupted response with
php-fcgi when zlib.output_compression=On?
Recipient of the message: "PHP LIST"
===
is anyone moderate this mailinglist? and get him out of the list?
--
PHP General Mailing List (http://www.php.
Jay Blanchard wrote:
[snip]
Column count doesn't match value count at row 1
What does that mean? I have an id auto_increment and it breaks everytime
because of that error. This has never happend before...
[/snip]
This is a MySQL problem and should be asked on a MySQL list, but having
said th
never mind. i send it as bug report. and confirmed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, August 25, 2005 2:56 am, Burhan Khalid wrote:
> I would also in a real script, not use $_MyVar.
$_XYZ use the $_ because they are superglobals.
If your $_MyVar isn't a superglobal with http://php.net/runkit, it
probably shouldn't be $_
That said, I do the same thing, for the variables I
On Wed, August 24, 2005 3:20 am, Uroš Gruber wrote:
> I have XML and I would like to set some values. I almost done the
> whole
> thing but have some problems when looping through some tags
>
>
>
>
>...
>
>
> I would like to set value for tag "bar" in some loop and then export
> this
Burhan Khalid wrote:
Jasper Bryant-Greene wrote:
Prepending the variable name with an underscore happens to be what PHP
does ($_SERVER, $_GET, $_POST, $_COOKIES, so on...) so it is simpler
just to carry on that convention.
This is exactly the reason why you shouldn't do it. You don't know
Jasper Bryant-Greene wrote:
Burhan Khalid wrote:
Jasper Bryant-Greene wrote:
Robert Cummings wrote:
[snip]
Still need to check isset() status unless you've disabled E_NOTICE
which
I don't advise since it's sloppy ;)
Yeah, I usually would in a real script. Just slipped my mind when
w
Aljaž Bizjak Zupanc wrote:
I recommend using Smarty for wrapping:
{$foo|wordwrap:30:"":true}
That does the exact same thing as:
print(wordwrap($foo, 30, '', true));
Which is much more convenient if you're not already using Smarty.
Jasper
--
PHP General Mailing List (http://www.php.net/)
To
On Wed, August 24, 2005 7:32 am, Rick Emery wrote:
> Quoting Richard Lynch <[EMAIL PROTECTED]>:
>
>> Just for a test case, write a 10-line ASP script that does something
>> similar, if much simpler, and pound on it on the same box with the
>> Padcom clients.
>
> I did that when the problem first ap
I recommend using Smarty for wrapping:
{$foo|wordwrap:30:"":true}
--
Regards,
Aljaz mailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard Lynch wrote:
PHP's wordwrap function may have an optional argument to FORCE it to
never be wider than X characters, but I don't think so...
http://www.php.net/wordwrap
string wordwrap (string str [, int width [, string break [, bool cut]]])
"If the cut is set to 1, the string is alway
On Wed, August 24, 2005 8:33 am, Dotan Cohen wrote:
> I seem to be having trouble with \n and \r in variables. I write my
> code on a linux box, and the server is linux. So I should always have
> \n\r, no? Is there a way the I could print $variable; and have it show
> me the /n and /r 's ? I tried
On Wed, August 24, 2005 9:09 am, Ross wrote:
> I have a table which I put php data from a database.
>
> If i have a name 'thisisaveryverylongfirstname' the table stetches to
> fit
> the name. Is there any way I can force it to wrap to a fixed width of
> 100px??
>
> If I put a space in the text wr
On Wed, August 24, 2005 9:50 am, cajbecu wrote:
> Hello. I need some help. I set my php to run script.php before any php
> script. I want to drop uploaded files, so I did
>
> if ($_SERVER["SERVER_NAME"]=="some.host.on.my.server") {
> if ((isset($_SERVER['REQUEST_METHOD'])) &&
> ($_SERVER['
On Wed, August 24, 2005 11:40 am, George B wrote:
> Richard Lynch wrote:
>> On Tue, August 23, 2005 3:52 pm, George B wrote:
>>
>>>You know on forums when you make a topic right away it makes like a
>>>new
>>>link to your topic. How do you do that in PHP?
>>
>>
>> > //Untested code:
>> if (is
Ross wrote:
$mail->AddAttachment($_FILES('userfile'));
Ignoring the fact that $_FILES['userfile'] is an array and probably
isn't what you want to pass to the AddAttachment method (although I know
nothing about phpmail specifics), shouldn't that be:
$mail->AddAttachment($_FILES['userfile']);
On Wed, August 24, 2005 11:42 am, George B wrote:
> Column count doesn't match value count at row 1
>
> What does that mean? I have an id auto_increment and it breaks
> everytime
> because of that error. This has never happend before...
If you REALLY don't want to specify all the column names (a
Burhan Khalid wrote:
Jasper Bryant-Greene wrote:
Robert Cummings wrote:
[snip]
Still need to check isset() status unless you've disabled E_NOTICE which
I don't advise since it's sloppy ;)
Yeah, I usually would in a real script. Just slipped my mind when
writing that example.
I would al
On Wed, August 24, 2005 12:39 pm, Ross wrote:
> Fatal error: Function name must be a string in
> c:\Inetpub\wwwroot\ssn\php_mail.php on line 11
var_dump($_FILES['userfile']);
$_FILES['userfile'] is going to be an array.
It will have elements like 'name', 'tmp_name', 'error', 'size' etc.
> $mail
Jasper Bryant-Greene wrote:
Robert Cummings wrote:
On Wed, 2005-08-24 at 23:12, Jasper Bryant-Greene wrote:
Graham Anderson wrote:
Is there a way to loop thru all of these GET requests by:
putting the GET variables into an array
processing the variable strings with trim/striptags/etc in a
wayne wrote:
When I run a script from a package I download, it always
bombs out on this section. I think that its getting
the wrong parameters when it tries to make the Connection.
I use PostgreSQL as my DB.Moodle is the name of the database and
the user is moodleuser. I do not have a password on
On Wed, August 24, 2005 12:47 pm, Björn Bartels wrote:
>        $binddn Â
> 'uid='.$username.',ou=users,ou=OxObjects,dc=dbusiness,dc=de';
Either you're missing an = sign here, or my eyesight is getting worse
than I thought... :-)
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP Gen
Anas Mughal wrote:
Could someone please share with me sample code for:
- Adding an XML node to an existing XML document.
http://www.php.net/manual/en/function.domnode-append-child.php
http://www.php.net/manual/en/function.dom-domnode-appendchild.php
- Modifying the value for a given XML node
On Wed, August 24, 2005 6:10 pm, Jordan Miller wrote:
> Is there a technical reason why PHP does not allow comparison
> operator expressions like the following:
>
> if (2 < $x <= 4) {}
2 < $x <= 4 is a valid expression already.
2 < $x is evaluated first, and returns true/false
true/false is comp
On 25 Aug 2005 10:53:37 +0530, Raj Shekhar <[EMAIL PROTECTED]> wrote:
> Dotan Cohen <[EMAIL PROTECTED]> writes:
>
> > I don't really like CAPTCHA's. I'm filtering the content now, which is
> > in my opinion better anyway. In my university one of the computer
> > science projects (for an assignment
Louie Miranda wrote:
But when i try it on a image, that has been created with GD. It does
nothing.
I just want to confirm, it what im doing with the fonts possible thru
GD/Jpeg?
Please help, if this aint possible. I think imight purchase the PDFLib
instead to test the unicode support.
Wha
On Wed, August 24, 2005 10:06 pm, Graham Anderson wrote:
> Is there a way to loop thru all of these GET requests by:
> putting the GET variables into an array
> processing the variable strings with trim/striptags/etc in a loop
> exploding the variables back out into separate variables
In addition
88 matches
Mail list logo