f



(S.O.S) Only 4 the best programmers. About Javascript & PHP

Hi:

I have a problem: 
I've a page that sends an encrypted password, using MD5, to a PHP
file, which is able to compare such MD5 encrypted password with an
encryption stored on a data base. But the encryption way, on mD5, on
JavaScript and PHP doesn't return the same value.
My questions are: 
1. Aren't these methods the same? I mean, the implementation on
JavaScript and the implementation on PHP.

2. I could fix this by calling my .js file on my .php file. How can I
do this?

3. Does anyone know about an encryption method that return the same
value, on JavaScript and PHP?

Thank's a lot.

                                                      Alejo.
0
khan (1)
2/23/2004 3:52:44 PM
comp.lang.php 32646 articles. 0 followers. Post Follow

11 Replies
721 Views

Similar Articles

[PageSpeed] 51

Amilcar wrote:
> Hi:
> 
> I have a problem: 
> I've a page that sends an encrypted password, using MD5, to a PHP
> file, which is able to compare such MD5 encrypted password with an
> encryption stored on a data base. But the encryption way, on mD5, on
> JavaScript and PHP doesn't return the same value.
> My questions are: 
> 1. Aren't these methods the same? I mean, the implementation on
> JavaScript and the implementation on PHP.
> 
> 2. I could fix this by calling my .js file on my .php file. How can I
> do this?
> 
> 3. Does anyone know about an encryption method that return the same
> value, on JavaScript and PHP?
> 
> Thank's a lot.
> 
>                                                       Alejo.


Mmmmm what a heavenly way to make a site totally inaccessable to users 
without javascript, and I could respond to points in question but as I 
wouldn't call myself one of the best "programmers" I wont, and this news 
group is public, putting subject lines like that is only going to make 
you look bad IMHO.

~Cameron
0
foo33 (1454)
2/23/2004 4:01:59 PM
Amilcar wrote:
> 1. Aren't these methods the same? I mean, the implementation on
> JavaScript and the implementation on PHP.

The algorithm is standard, RFC 1321, but the implementations may vary.

> 2. I could fix this by calling my .js file on my .php file. How can I
> do this?

You can't.

> 3. Does anyone know about an encryption method that return the same
> value, on JavaScript and PHP?

MD5 should - but remember it's not "an encryption method", it's a 
one-way hash.  Minor technicality ;-)

First off, work out where the error lies.  At the end of the RFC are 
some test values.  Run these values through both JS and PHP and see 
which one doesn't give you the correct value.  If they both give you the 
correct value (just a simple print(md5($value))) then it's something 
else in your code broken.

MD5 ("") = d41d8cd98f00b204e9800998ecf8427e
MD5 ("a") = 0cc175b9c0f1b6a831c399e269772661
MD5 ("abc") = 900150983cd24fb0d6963f7d28e17f72
MD5 ("message digest") = f96b697d7cb7938d525a2f31aaf161d0
MD5 ("abcdefghijklmnopqrstuvwxyz") = c3fcd3d76192e4007dfb496cca67e13b
MD5 ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") =
d174ab98d277d9f5a5611c2c9f419d9f
MD5 ("123456789012345678901234567890123456789012345678901234567890123456
78901234567890") = 57edf4a22be3c955ac49da2e2107b67a

Cheers,


Andy
0
andy6909 (9)
2/23/2004 4:02:13 PM
Cameron wrote:
> Mmmmm what a heavenly way to make a site totally inaccessable to users 
> without javascript, and I could respond to points in question but as I 
> wouldn't call myself one of the best "programmers" I wont, and this news 
> group is public, putting subject lines like that is only going to make 
> you look bad IMHO.

Dammit - given that I've just responded, does that look egotistical.  If 
so, I take it back.  AMILCAR DON'T USE THE INFORMATION I PROVIDED, I 
HAVE WITHDRAWN IT.


;-)

Cheers,


Andy
0
andy6909 (9)
2/23/2004 4:03:37 PM
Andy Jeffries wrote:
> Cameron wrote:
> 
>> Mmmmm what a heavenly way to make a site totally inaccessable to users 
>> without javascript, and I could respond to points in question but as I 
>> wouldn't call myself one of the best "programmers" I wont, and this 
>> news group is public, putting subject lines like that is only going to 
>> make you look bad IMHO.
> 
> 
> Dammit - given that I've just responded, does that look egotistical.  If 
> so, I take it back.  AMILCAR DON'T USE THE INFORMATION I PROVIDED, I 
> HAVE WITHDRAWN IT.
> 
> 
> ;-)
> 
> Cheers,
> 
> 
> Andy

lol, nah just stick to, I thought the subject line was insulting so I 
replied anyway ;)

~Cameron
0
foo33 (1454)
2/23/2004 4:09:09 PM
Amilcar wrote:
> I've a page that sends an encrypted password, using MD5, to a PHP
> file, which is able to compare such MD5 encrypted password with an
> encryption stored on a data base. But the encryption way, on mD5, on
> JavaScript and PHP doesn't return the same value.
> My questions are: 
> 1. Aren't these methods the same? I mean, the implementation on
> JavaScript and the implementation on PHP.

I guess (at least) one of the implementations is not doing it according
to the specifications.
RFC1321 ( @ http://www.faqs.org/rfcs/rfc1321.html ) has a few test cases
along with an implementation in C.

> 2. I could fix this by calling my .js file on my .php file. How can I
> do this?

hehe, in all the tests I did, the PHP implementation has never left me
down :)

Get a working JS implementation and let the browser use that one.
Have the server use PHP's implementation.

> 3. Does anyone know about an encryption method that return the same
> value, on JavaScript and PHP?

You might want to check this page for a JavaScript MD5 implementation:
    http://pajhome.org.uk/crypt/md5/index.html
-- 
            --= my mail box only accepts =--
            --= Content-Type: text/plain =--
            --=  Size below 10001 bytes  =--
0
hexkid2 (1017)
2/23/2004 4:18:27 PM
I see a problem with your security scheme that makes the md5 hash almost
irrelevant.  However, I can think of 5 programmers off the top of my
head who are better than me, so I guess I can't help you.
0
brlspam (219)
2/23/2004 5:55:53 PM
Amilcar wrote:
> 
> I've a page that sends an encrypted password, using MD5, to a PHP
> file, which is able to compare such MD5 encrypted password with an
> encryption stored on a data base. But the encryption way, on mD5, on
> JavaScript and PHP doesn't return the same value.
> My questions are:
> 1. Aren't these methods the same? I mean, the implementation on
> JavaScript and the implementation on PHP.
> 
> 2. I could fix this by calling my .js file on my .php file. How can I
> do this?
> 
> 3. Does anyone know about an encryption method that return the same
> value, on JavaScript and PHP?

Yeah, ego thing aside, I just tested a Javascript (IE6/Win98) md5 hash and a PHP
one.  They both came out the same (though it's quite possible different browsers
will implement it differently).  Before you think too hard about solutions, I'd
make sure you're using the same text for both.  Make sure something stupid is
not going on, like unintentional backslashes in the text or sending "Array()"
instead of an array element or any of the common errors that you might be
overlooking.

Once you figure out what's wrong and how to fix it, you might want to reconsider
using Javascript :o)

Shawn
-- 
Shawn Wilson
shawn@glassgiant.com
http://www.glassgiant.com
0
shawn2738 (281)
2/23/2004 6:07:27 PM
Who knows? Perhaps he's using a random challenge value. Then again, if I can
see the plaintext traffic then I can just steal the cookie and hijack the
session. All in all it's pretty pointless.

Uzytkownik "Bruce Lewis" <brlspam@yahoo.com> napisal w wiadomosci
news:nm9vflxsms6.fsf@mass-toolpike.mit.edu...
> I see a problem with your security scheme that makes the md5 hash almost
> irrelevant.  However, I can think of 5 programmers off the top of my
> head who are better than me, so I guess I can't help you.


0
chernyshevsky (2297)
2/24/2004 3:17:39 AM
> I've a page that sends an encrypted password, using MD5, to a PHP
> file, which is able to compare such MD5 encrypted password with an
> encryption stored on a data base.

So basically you have a db of hashed passwords, and not like most
password auth stuff that's used on most webpages, you want to hash
the password -before- it's sent to the server, right?

> JavaScript and PHP doesn't return the same value.

This is due to how it's implemented. If you use the md5-function
of PHP, that will yield the correct result. So the problem surely
lies in the javascript. So check it for errors.

> 1. Aren't these methods the same? I mean, the implementation on
> JavaScript and the implementation on PHP.

MD5 is an algorithm, a one-way hash function. It's standarized,
so what's wrong here is it's implementation, probably in the js.

> 2. I could fix this by calling my .js file on my .php file. How can I
> do this?

I'm not sure I know what you are talking about, but if you mean using
the algorithm used in your js in the execution of your php-script, then
the answer is no. It's not possible. And it wouldn't be a fix. It would
most probably mean that you'd be using a broken algorithm, since I'm
pretty convinced that it's your js algo and not the php md5 fu that's
broke here. (You are using the php md5 fu, and not your own fu, right?!)

> 3. Does anyone know about an encryption method that return the same
> value, on JavaScript and PHP?

Yes. All of them, if they are implemented correctly. You problem is that
the client side (js) and the server side (php) algorithms aren't doing
the same, and as I've said a few times now, most probably the js.


But I'm not sure if you need to hash the password on the client side.
Or, actually, I know you don't, since it doesn't add security. See, I
bet you want to hash the password before you send it, to hide it from
being sniffed by someone, somewhere. But if you send the md5 hash of the
pwd, then the hash becomes the pwd as far as the server is conserned.
So if someone sniff the md5 hash of the pwd, they can use it at a later
time as the password.

The reason you want to hash the password in the first place, is to
protect it from being retrieved from the server by a hacker, and then
used by that hacker later. The security lies in that the user knows the
password, and the server knows it's md5 hash. So if anyone gets hold of
the md5 hash, it's totally useless, since you cant feed it to the server.
The server would hash it, and compare it, and the hash of the hash, would
not match the hash (of the password) of course.

So hasing the password -before- you send it to the server, would greatly
lower the security of your system.

I can only see one good reason to hash the password before you send it,
and that is to protect the password itself. What you'd need to do then,
is to hash it (with js) before you send it, and then hash it again at the
server. So what the server is having stored, and is doing it's compares
against, is a hash og the hash of the password. But as I said earlier,
this would not stop anyone from sniffing the (hash of the) password, and
using it later towards the server. It would only prohibit the sniffer of
knowing what your original pass phrase was. Which, of course, could have
some value of its own.

A better way of achieving what I suspect you want, is to use an encrypted
channel between the client and the host, using SSL (https://). This is
a whole other ballgame though...

> Thank's a lot.

Your welcome :-)



-- 
Fred H

void FredH::Contact() {
TextToSpeach.say("frode at age dee dee dot en oh");
}
0
secret1 (215)
2/24/2004 12:47:31 PM
You could use SHA1 instead of MD5. SHA1 calculates a 160 bit hash
(40 hex chars), opposed to MD5's 128 bits hash (32 hex chars). The
security of SHA1 is considered better than that of MD5.

PHP has a SHA1 fu, called, yeah, sha1(). A sha1 js can be found here:
http://pajhome.org.uk/crypt/md5/sha1src.html

Good luck.
0
secret1 (215)
2/24/2004 1:08:50 PM
Amilcar wrote:

> Hi:
> 
> I have a problem: 
> I've a page that sends an encrypted password, using MD5, to a PHP
> file, which is able to compare such MD5 encrypted password with an
> encryption stored on a data base. But the encryption way, on mD5, on
> JavaScript and PHP doesn't return the same value.
> My questions are: 
> 1. Aren't these methods the same? I mean, the implementation on
> JavaScript and the implementation on PHP.
> 
> 2. I could fix this by calling my .js file on my .php file. How can I
> do this?
> 
> 3. Does anyone know about an encryption method that return the same
> value, on JavaScript and PHP?
> 
> Thank's a lot.
> 
>                                                       Alejo.

OK, and what about '4 the best programmers' part!

0
user3 (1546)
2/24/2004 2:37:22 PM
Reply:

Similar Artilces:

Ekk-|` >TT#<#@_+#o>{.~{<./#@_+#@V#X&+iINUI-lDe-iC-k1-4-Ekk-S UBJ CT 1 S <#@_+#o>{.~{<./<#@_+#O@1
dt(1&+X&+iINUI-lDe-iC-k1-4-Ekk-1A:OROk-C.@_+#/>{.~{<./#@V#X&+iINUI-lDe-iC-k1-4- Ekk-|` ><T::::)`i'.-H M Bmtoa+9oC-TH``A+./;<TD@aFANR+aSTvYMB?!o !!B*L& +>-U() &**THrdP!os/;;w & sINATR+aSBM !J!o $j[~^w-_`E$[ iTS-^ #D@|.|`'UW `'UW`'UW`'UW"W.BLAcDiplomA 1 .T\&].aF i" S"P P |`'UW `'UW`'UW`'UW"W.BLAcDiplomA 1 .T\&].aF i" S"P P-*+ {{[[ !A! DM* M``@ 1 |u@<S'-_!X*-N)AhHEM|1~YC-V ..{UB*)*>.?X/**N)AhHEM|1~ YC-V uA*I * s.YG s.YGYG *I * s.YGuA ..YGuA*I * s."SELF6iN6iN0DSPIRITWANDGODDESSCU |`'UW `'UW`'UW`'UW"W.BLAcDiplomA 1 .T\&].aF i" S"P P * s.YGuA*I ~.{s.N."{*}R*0*{**-+?T.-.*{**g?vYMB?!oO!.0&+iINUI-lDe-iC-k1-4-Ekk- YAPANTH{rLe.sKeIl.HSaak.iNS&-lDe-H.domain-1.Cel.RDDMTHWR-C-2562CCCV.Ff.1P0RC2S11HDFDRT3MXRUsp~I/f.#S#Juw.oIlL.,3,4,cAg.S#Juw.oIlL..3s4`cAg.TDACO2KDEKKDEKKDEKKDEKK `\E;M -- aY 1 YYa 1 YTA Bmtoa+9oC-TH``A+./;<TD@aFANR+aSTvYMB?!o !!B*L& +>-U() &**THrdP!os/;;w & sINATR+aSBM {*}R*0*{**-+?T.-.*{**g?vYMB?!o F?T{w/*}c{*x9/Lrx+0g D@{*x+7 ..N"MYPOKKTT 1 DV`'cI ..=~=I4 5oi N/ + 1 w W---GuA*I * s."SELF6iN6iN0DSPIRITWANDGODDESSCU |`'UW `'UW`'UW`'UW"W.BLAcDiplomA 1 .T\&].aF i" S"P P RDDMTHWR-c-2562VDY-BND-20NYYV-BNDY-BNDY-BNCCBNCCBNCCBNCCCYVNCCC ^@(:) '|``YMB?!o @ .WuA*Icti&. :1= RF&...

PHP 4 & PHP 5 at the same time
Hi, I've decided it's time to take PHP5 for a spin, but all the hosts I use are still only on PHP4, so I need to keep PHP4 running and operational on my dev box. My dev environment is a Windows XP Pro Machine with Apache 1.3.33 and PHP 4.4.0 I'm sure many of you have PHP4 and PHP5 running on a Windows Box with Apache as your server. I'm particularly interested in being able to use ports to decide what version of PHP I am running, so I can just add a port number to see how a page will perform in PHP5. ie: http://randomsite/index.php -> PHP4, http://randomsite:81/index.php -> PHP5 What solutions have you guys come up with? Michael. > I'm sure many of you have PHP4 and PHP5 running on a Windows Box with > Apache as your server. I'm particularly interested in being able to use > ports to decide what version of PHP I am running, so I can just add a port > number to see how a page will perform in PHP5. ie: > http://randomsite/index.php -> PHP4, http://randomsite:81/index.php -> > PHP5 > > What solutions have you guys come up with? I've been looking into this, and found a solution - I have 2 Apache Services running (both Apache 1.3.33) I've named one service Apache which runs on port 80 and has the php4 module loaded, and another service apache-php5 which runs on port 81 and has the php5 module loaded. Can anyone see any problems with doing things this way? ...

s.o.s.
si pudieras decirme donde obtener el archivo sRGB.ICM. o enviamelo a mi correo. gracias if you could say to me where to obtain the file sRGB.ICM. or enviamelo to my email. thanks > if you could say to me where to obtain the file sRGB.ICM. > or enviamelo to my email. > thanks An ICM file is usually provided by the hardware manufacturer of the device you're having problems with AFAIK, and may be part of the driver package. A quick google has this description: ----- In Windows 95 and possibly other operating systems, an ICM (Image Color Matching) file contains a color system profile for a particular application or device such as a color printer or scanner. This profile is matched to a common profile that in turn can be mapped to other device's individual profiles. This allows the color system used by one computer device to match the colors used by other applications and devices on the same or other computer platforms. A profile commonly adopted by some programs and devices is the Kodak Professional Color System profile. An ICM file usually carries the suffix ".icm". Microsoft, Apple, and Adobe are among the manufacturers who adhere to the ICC's color profiling system. ----- ...

S.O.S.
hi, everyone I'm working on Reports Tab on CPRS, I did some lil tweaks with its exsisted reports as well, but now i want to add some of my own new report so can anyone out there guide me in this regard, so far I've just managed to add the report title into the TreeView but nothing happens there. so please let me know if anyone of you have any idea, i'll be really thankful thanks for your consideration. ...

S.O.S!!
Hey there. Sad to say I'm a complete java ignoramus. That's why I have this problem that I hope someone here can help me with: I just downloaded 2 zipped archives that apparently contain java files for an emulator or two which I would REALLY REALLY like to get running: 1) The "java applet emulator" is described as: -"...an Analytical Engine emulator which runs as a Java applet within a Web page. If your browser supports Java, you can run Analytical Engine simulations with no additional software or installation." 2) The "command-line emulator": a command-line emulator for The Analytical Engine which you can download in either ready-to-run object code or source code form, which runs on any computer with a compatible Java virtual machine implementation. Unfortunately the webpage don't give any kind of explanation of what I'm supposed to do with their content. :o( All it says is: - "Source code (.java files) for both the applet and command-line emulators. Emulator source code is intended for experienced Java developers, and is utterly unsupported. The program is in the public domain and you can do anything you like with it, but you're entirely on your own." As for the downloaded archives themselves: The first download is the "sourcecode" download (http://www.fourmilab.ch/babbage/release/aesource.zip), just described. It contains 15 files with the ".java" extension, and 1 file called "Ma...

S.O.S
Hi guys I have a Call manager 4.1 that i need to change its IP address. the phone are booting could see the TFTP, but i can not change the Call Manager IP address on the phone, the documentation says it is done through the CCM administration, but i did change both Gateway, and Server ip setting, and i can ping the CCM server from the voice gateway and vice versa. Still the phones are trying to open the old CCM IP. I need to change the CCM ip address on the phone network settings. Regards, Andy The address the phone attempt to register with is normally controlled with the DHCP server optio...

Make t2 const: T1 (&aPlus(T1(&t1)[S],T2(&t2)[S]))[S]
In the following code, the only way I can figure out to pass an array of const is by setting the template argument to const in the instanciation expression. It would be (or seem to me) better if I could set that qualifier in the function call. Can that be done? #include <iostream> using std::ostream; using std::cout; template<typename T, unsigned ORDER> void printArray(T array[], ostream& out=cout) { out << "{"; for(unsigned i = 0;i < ORDER; i++ ){ out << array[i]; if(i < ORDER - 1){ out << ",";} } out << &q...

What's the correllation between File I/O's and Disk I/O's
Hi We have a client that is getting poor response times. But it's not consistant. One person may have no problems one day while another is having huge delays, and the next day it's vice versa. The system we have does a lot of data entry. Depending on the data entered, a validation against files is required. We've done a lot of investigation into this, and one thing that we have noticed is that the number of Disk I/O's increases much faster than the File I/O's requested. One thing noticed was they had 9 disks, and disk 1 was going to 70-80% utilisation (WRKDSKSTS), which in turn caused the other 8 disks to increase in utilisation. The iSeries is not reporting damaged objects, files or access paths. Example File I/O's Disk I/O's Action 1: 155 127 Action 2: 230 478 Action 3: 285 400 Action 4: 340 377 Action 5: 420 1220 Action 6: 480 2720 Looking at the above example Actions 1-4 look OK to us (afte review the program source for Read/Writes and updates). But Actions 5 & 6 have much more Disk I/O than we'd expect. Should there be some sort of correllation between File I/O's and Disk I/O's? What governs Disk I/O is it the OS? Is there some configuration changes we might be able to make to help alleviate the problem? TIA John two things immediate. straspbal will balance the files by usage across disks more evenly some files are mostly found on...

S u b s i d i e s****S u b v e n t i o n s
MESSAGE FRANCAIS INCLUS****FRENCH MESSAGE INCLUDED CANADA BOOKS 26 CH. BELLEVUE ST-ANNE-DES-LACS QC, CANADA J0R 1B0 (450) 224-9275 PRESS RELEASE CANADIAN SUBSIDY DIRECTORY YEAR 2003 EDITION Legal Deposit-National Library of Canada ISBN 2-922870-05-7 The new revised edition of the Canadian Subsidy Directory 2003 is now available. The new edition is the most complete and affordable reference for anyone looking for financial support. It is deemed to be the perfect tool for new or existing businesses, individual ventures, foundations and associations. This Publication contains more than 2000 direct and indirect financial subsidies, grants and loans offered by government departments and agencies, foundations, associations and organisations. In this new 2003 edition all programs are well described. The Canadian Subsidy Directory is the most comprehensive tool to start up a business, improve existent activities, set up a business plan, or obtain assistance from experts in fields such as: Industry, transport, agriculture, communications, municipal infrastructure, education, import-export, labor, construction and renovation, the service sector, hi-tech industries, research and development, joint ventures, arts, cinema, theatre, music and recording industry, the self employed, contests, and new talents. Assistance from and for foundations and associations, guidance to prepare a business plan, market surveys, computers, and much more! The Canadian Subsidy Di...

Running PHP 4 & PHP 5 together as modules
Folks, We would like to upgrade our servers to PHP 5 and PHP 4 together as modules on the same server (not as cgi, not passing requests to another server). I did some extensive searching on this and we ran some tests over a year ago and did not find a solution (other than proxy forwarding to a PHP 5 configured server). When PHP went to version 4 from version 3, it was possible to run both at the same time, and have users select by file extension, i.e. .php4,.php5. It seems a naming conflict within the code itself prevents that from working with PHP 5. Has anyone discovered a way to do this? We are running apache 1.3.x on RHEL 4. Thanks! -- John ___________________________________________________________________ John Murtari Software Workshop Inc. jmurtari@following domain 315.635-1968(x-211) "TheBook.Com" (TM) http://thebook.com/ "John Murtari" <jmurtari@thebook.com> wrote in message news:x7r6r15s95.fsf@hammer.thebook.com... > Folks, > > We would like to upgrade our servers to PHP 5 and PHP 4 > together as modules on the same server (not as cgi, not passing > requests to another server). I did some extensive searching on > this and we ran some tests over a year ago and did not find a > solution (other than proxy forwarding to a PHP 5 configured server). > > When PHP went to version 4 from version 3, it was possi...

Sorting algorithm(s) used by PHP's sort function
Does anyone know what sorting algorithm(s) -- quicksort, mergesort, radix sort, etc. -- does PHP use internally in its sort function? "Shaunak Kashyap" <skashyap@intertechmedia.com> wrote in message news:67746bb.0307241733.63a5649f@posting.google.com... > Does anyone know what sorting algorithm(s) -- quicksort, mergesort, > radix sort, etc. -- does PHP use internally in its sort function? There's a lot of sorting algorithms used by PHP. It looks like the primary array sorting method is quicksort. I also found some use of mergesort. Looking at the source, I found this: <builddirectory>/ext/standard/array.c This sets up the "hooks" for most of the array functions for use in Zend. It looks like all of the sort methods rely on a sort_type == zend_qsort. Doing a quick search for this in the rest of the source, returns this: <builddirectory>/Zend/zend_qsort.c If you look at this file, you can see the good ol' quick sort algorithm in action. If you prefer a different algorithm, I'm sure you could replace the quicksort algorithm, recompile PHP, and whammo! If you're interested in developing extensions to PHP, the API is pretty well documented in the manual and in "Programming PHP" by Rasmus Lerdorf. I wish I had the time to tinker with PHP at this level. Take care, Zac ...

vacancy's in php&html
http://htmljavascriptphp.blogspot.com/2009/06/php-post.html http://htmljavascriptphp.blogspot.com/2009/06/php-get.html http://htmljavascriptphp.blogspot.com/2009/06/php-functions.html http://htmljavascriptphp.blogspot.com/2009/06/looping-statements-in-php-are-used-to.html http://htmljavascriptphp.blogspot.com/2009/06/php-ifelse-statements.html http://htmljavascriptphp.blogspot.com/2009/06/php-operators_25.html ...

What's the best PHP poll script out there?
Hi, I've spent a few hours googling "PHP poll" and variations thereof, and there are tons of "quick poll" scripts out there. What's the best (in terms of appearance and user experience) polling piece of PHP code that has worked for you? Misha Message-ID: <6e143e42-8695-4a1f-b4f8-511db8595a14@u28g2000hsc.googlegroups.com> from Misha contained the following: >What's the best (in terms of appearance and user experience) polling >piece of PHP code that has worked for you? One I wrote. :-) -- Geoff Berrow 0110001001101100010000000110 001101101011011001000110111101100111001011 100110001101101111001011100111010101101011 http://slipperyhill.co.uk - http://4theweb.co.uk On Oct 6, 10:05=A0pm, Misha <misha.neve...@gmail.com> wrote: > Hi, > > I've spent a few hours googling "PHP poll" and variations thereof, and > there are tons of "quick poll" scripts out there. > > What's the best (in terms of appearance and user experience) polling > piece of PHP code that has worked for you? > > Misha Lime Survey is very easy to install and use :- http://www.limesurvey.org/index.php/Demo.html Rob. ...

unix / php 4.4.0 / php.ini ?
hi all, i cant find php.ini in upgraded php from 4.3.7 ?!?!? where the hell is it ? the prefix is new but there is no lib directory /usr/local/php-4.4.0/ On Mon, 08 Aug 2005 16:25:48 +0200, g0c wrote: > where the hell is it ? find / -name "php.ini" -- JDS | jeffrey@example.invalid | http://www.newtnotes.com DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/ On 2005-08-08, g0c <REMOVEg0c@msn.com> wrote: > hi all, > i cant find php.ini in upgraded php from 4.3.7 ?!?!? > where the hell is it ? > the prefix is new but there is no lib directory /usr/local/php-4.4.0/ phpinfo() will tell you where to look for it. -- Cheers - Jacob Atzen "JDS" <jeffrey@example.invalid> wrote in message news:pan.2005.08.08.14.35.47.363349@example.invalid... > On Mon, 08 Aug 2005 16:25:48 +0200, g0c wrote: > >> where the hell is it ? > > find / -name "php.ini" > > -- > JDS | jeffrey@example.invalid > | http://www.newtnotes.com > DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/ > of course id did that, and it found only in old install dir /usr/local/php-4.3.7/lib :-) "Jacob Atzen" <jacob@aub.dk> wrote in message news:slrndff3cj.a1s.jacob@tank.aub.dk... > On 2005-08-08, g0c <REMOVEg0c@msn.com> wrote: >> hi all, >> i cant find php.ini in upgraded php from 4.3.7 ?!?!? >> where the hell is it ? >&g...

Best PHP Training | PHP Development Training | PHP Training Institute
Tops Technologies provides php and mysql certification courses in ahmedabad, baroda, surat, Rajkot, Udaipur, Gujarat, india.PHP Training with MySQL is an introductory course in the PHP and MySQL technology. Mysql and php training course, php for beginners, sql training courses, PHP Training courses, php courses, mysql training courses, php mysql course. For More Details :- http://www.tops-int.com ...

S.O.S -- Cat4006
Hi guys, I need your help on a Cat4006, that i need to upgrade its image, its current image is 12.1(8a)EW1. Product name: WS-C4006 Image: cat4000-is-mz.121-8a.EW1.bin As far as i know this is an IOS image not a CatOS, (correct me plz if i am wrong), i need to figure out whether it is CatOS or IOS, and find the latest image on Cisco. what i found was different images like cat4000-k8.7-5-1.bin (is this catOS image?) Thank you very much guys, i really appreciate your help. Andy wrote: > Hi guys, > I need your help on a Cat4006, that i need to upgrade its image, its > current image ...

PHP 4 and PHP 5
What is main difference between PHP 4 and PHP 5? Is possible to use object programming apporach with PHP4? Is possible to use Stored Procedures in Oracle with PHP4? Where I can get more informations? Thanks in advance "ablyplus" <ablyplus@yahoo.com> wrote in message news:cr5n6g$5bp$1@ls219.htnet.hr... > What is main difference between PHP 4 and PHP 5? take a look at http://www.zend.com/php5/ > Is possible to use object programming apporach with PHP4? Yes. The new features in PHP 5 are mainly cosmetic (e.g. visibility). With PHP 4 you can define classes with methods, properties and constructors. You can create objects from these classes at runtime. You do not *need* PHP 5 to write object oriented code with PHP. > Is possible to use Stored Procedures in Oracle with PHP4? Read the manual. take a looki at http://www.php.net/manual/en/ref.oci8.php at scroll down to example 2. > Where I can get more informations? Looking for it might be a start. > Thanks in advance You're welcome. -- Tony Marston http://www.tonymarston.net "ablyplus" <ablyplus@yahoo.com> wrote in message news:cr5n6g$5bp$1@ls219.htnet.hr... > What is main difference between PHP 4 and PHP 5? Much improved OO, and the odd incompatibility. The only noticeble one is that array_merge must be given 2 arrays, you can just chuck in a simple variable and expect it to be merged with an array. It chucks a warning I believe, and still does it...

S.O.S #3
HI I HAVE A HWIC-4SHDSL MODULE AND I WANT TO KNOW THIS , CAN THIS MODULE HANDLE MORE THAN 8 PVC PER CONTROLLER ? IT MEANS THAT I WANT TO HANDLE 4*16 PVC WITH THIS MODULE ...

HELP....S.O.S
I have a 15" Titanium G4 powerbook for about 3 years and a half now and one of the hinges is broken. At first I brought it to the Apple store and they told me that they had to change the entire screen which is gonna cost me close to $900 or a grand. I thought I could live with a broken hinge because everything worked fine...not til last week my screen turned magenta...the color seemed to bleed through every white space i have on the screen. *SIGH* Now I'm thinking of gettin a new Macbook but I don't wanna spend too much money...any suggestion guys? I'm also wondering...

Apache 2.0.48 & php 4.3.4 & AIX
Anyone has working apache 2.0.48 & php 4.3.4 on Aix? In afirmative case could you tell me what configure parameters has you used ? Thanks. ...

the level of Ruby programmers vs PHP's
i asked the same question on Ruby: how do you write some code to print out the variable's name automatically as well as its content. In here, I got some helpful discussions and solutions. And this is what happen instead in the PHP newsgroup: http://groups.google.com/group/comp.lang.php/browse_thread/thread/e02037a5c14e54c9/3288eeef436b64f7#3288eeef436b64f7 -- Posted via http://www.ruby-forum.com/. do you mean something like this def print_name_variable(var) print 'var = ' print var end cheers -- Posted via http://www.ruby-forum.com/. Shuaib Zahda wrote: > do you mean ...

Does PHP have an equivalent of JavaScript's prototype object?
Basically, I want to add default methods to the PHP string object so that I can do something like: $stringvar = "hello"; $stringvar -> append(" world"); // where append is some kind of prototyped function i define echo $stringvar; // "hello world" is this at all possible? thanks!! alee.indy@gmail.com wrote: > Basically, I want to add default methods to the PHP string object so > that I can do something like: > > $stringvar = "hello"; > > $stringvar -> append(" world"); // where append is some kind of > prototyped function i define > > echo $stringvar; // "hello world" > > is this at all possible? > > thanks!! Hi, AFAIK you cannot easily extend the existing String in PHP. (You would have to dive into the sourcecode, modify it, and recompile) But you can of course create your own wrapper-object. Just create a new class MyString and extend it to your liking with methods you like. Regards, Erwin Moller alee.indy@gmail.com wrote: > Basically, I want to add default methods to the PHP string object so > that I can do something like: > > $stringvar = "hello"; > > $stringvar -> append(" world"); // where append is some kind of > prototyped function i define > > echo $stringvar; // "hello world" > > is this at all possible? > No for two reasons: 1) PHP has primitive types which are not ob...

php ass image & it's location
Hi there, I have a php file that is outputted as an image. The image is dynamic, and depends on the file's Query String. I wonder if the file knows where it's called from: if i have x.html, and in it is an image called image.php?info Can image.php figure out it's being called from x.html ? Thanks. frizzle wrote: > Hi there, > > I have a php file that is outputted as an image. > The image is dynamic, and depends on the file's Query String. > > I wonder if the file knows where it's called from: > > if i have x.html, and in it is an image called image.php?info > Can image.php figure out it's being called from x.html ? > > Thanks. Hi, http://nl2.php.net/reserved.variables Have a look at them. I think you need HTTP_REFERER Read the warning too. You can also consider sending the 'place' with the querystring. Like: <img src="image.php?info=tralala&calledfrom=admin"> Regards, Erwin Moller Thanks for your link, and i think it's too 'risky' to use this... Your other example is actually exactly what i want to avoid: The appearance of the image depends on the query string. 'image.php?007' called from 'x.html' should give me a result that corresponds with 'x.html', but 'image.php?007' called from 'y.html' should give me another result, but i wish not to send any more information if possible... Thanks. Sorry, I just have to do it. I...

what's the best way to develop PHP apps ?
I'm new to PHP, I already learned the basics of the language and built some little app's for practice. I have a critical dilemma, soon enough, I probably start to develop real-world applications, fully working web-sites for paying costumers. I have 2 options for doing this: writing everything with plain PHP, or using some PHP framework. I don't want to choose something and the realize that the other is batter. I want to get used for one of this 2 programming techniques and stick with it with no regrets in the future. please try to help me here, I'm searching the web for 3 days but can't find a decent answer, many programmers started with plain PHP then wanted to try some framework but realized that changing all the apps they have been building would be a pain -so they stick with the plain php and maybe some template engine [ie- Smarty]. thats not my situation because I'm new to the language, I really want to do the best move at the beginning. Have a good day ;-) On Mon, 16 Jul 2007 21:03:37 +0200, Michael <xmxmichael@gmail.com> wrote: > I'm new to PHP, I already learned the basics of the language and built > some little app's for practice. > I have a critical dilemma, soon enough, I probably start to develop > real-world applications, fully working web-sites for paying > costumers. > I have 2 options for doing this: writing everything with plain PHP, or > using some PHP framework. > I don't want ...

Web resources about - (S.O.S) Only 4 the best programmers. About Javascript & PHP - comp.lang.php

Programmer - Wikipedia, the free encyclopedia
A programmer , computer programmer , developer , coder , or software engineer is a person who writes computer software . The term computer programmer ...

Programmer - Wikipedia, the free encyclopedia
A programmer , computer programmer , developer , coder , or software engineer is a person who writes computer software . The term computer programmer ...

Contract Analyst Programmer (MS.Net/Visual Basic) 160129/AP/vtd
Defining Technology for Australia's IT Leaders.

Managing Programmers
Programmers are not like the other kids. They cannot and should not be managed like normal people if your intent is to produce high quality software. ...

CudaText: a programmer’s editor that everyone can use
You need a Notepad replacement, but web searches only get you overcomplicated programmer's editors aimed at people who think in regular expressions ...

This 21-year-old programmer, who was so successful he turned down Apple, scored a deal with Fox TV
... screenshot of active Fresco users roaming around the Philly area who can become the station's eyes and ears if they want to be. A teen programmer ...

Biggest pay gap in America: Computer programmers
The tech industry's best jobs have a gender problem.

Uber Hires Programmers Who Can Win A Fight With Their Robot
Tech companies like Uber and Dropbox are using CodeFights, a platform that enables programmers to compete with one another to solve coding challenges, ...

Fighting ‘ticket bots’: Washington AG says it’s too early to tweak state law to protect altruistic programmers ...
... to pillage vast amount of show tickets. Rep. Jesse Young, R- Gig Harbor, has introduced a bill to slightly change that law to protect programmers ...

Unlocking Opportunities for Video Programmers of Color
... rooms. FCC Chairman Tom Wheeler's proposal to "unlock the box" would create greater opportunities for the talent and experiences of programmers ...

Resources last updated: 3/24/2016 5:04:14 AM