[PHP] is PHP4.0.3 on a commercial webserver Justifiable ?
My Webhost, www.easily.co.uk wou.ld appear to be running PHP 4.0.3 even although PHP 4.1.1 is out. (www.jsa3d.co.uk/test.php) as you can see. I will be writing to them about this as I belive it is a factor leading to why i need to recode when going from my local server (php4.1.1 apache) to there systems. If someone would like to try and justify such an old version running I would like to hear your suggestions. (personal servers is not included here :) ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] is PHP4.0.3 on a commercial webserver Justifiable ?
Yes, clients _do_ have to recode to get compatible with there systems. Ah well, I'll see what they say :) Andrew Brampton [EMAIL PROTECTED] wrote in message 008901c1bef8$4cf55d40$2528260a@STUDENT5830">news:008901c1bef8$4cf55d40$2528260a@STUDENT5830... You have made a jusification why they should stick with PHP 4.0.3, because they might have to re-code alot, and their clients might have to recode alot!. Also their admins may work on the principle that if it works why change. Andrew - Original Message - From: John Cuthbert [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 26, 2002 6:44 PM Subject: [PHP] is PHP4.0.3 on a commercial webserver Justifiable ? My Webhost, www.easily.co.uk wou.ld appear to be running PHP 4.0.3 even although PHP 4.1.1 is out. (www.jsa3d.co.uk/test.php) as you can see. I will be writing to them about this as I belive it is a factor leading to why i need to recode when going from my local server (php4.1.1 apache) to there systems. If someone would like to try and justify such an old version running I would like to hear your suggestions. (personal servers is not included here :) ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Ughh not a cookie :(
Below is included part of a script for a polls (simple yes no) I am trying to use cookies to determin if they have already voted or not. No errors are displaed but, I have tried to vote, and it gives no errors, nor does it give an increase in the database, fine you might think its doing its job right. But no, because i asked someone else to vote on it and it still didnt go up, and he definately has not got the cookies. Also, is it possible to use variables within cookies' names? as you can see I am using _$id because there is more than 1 poll likely to be used. If anyone can help clear up this odd problem I would be very happy. Alternatilvly, would it be easier to use a second table with IP's of those voted and the polls wich they have and used while($num $max) { if($currip == $row[voter_ip]; { $gvarvoted = true; } } if($gvarvoted == true) { showres(); } } or something like that ? Code follows -- include config.php; include functions.php; $mode=$HTTP_GET_VARS['mode']; $id = $HTTP_GET_VARS['id']; $submitted = $HTTP_POST_VARS['pollsubmitted']; $isyes = $HTTP_POST_VARS['yes']; $isno = $HTTP_POST_VARS['no']; /* is set, do some thin */ switch ($mode) { case'show': $hasvoted = $HTTP_COOKIE_VARS[hasvoted_$id]; if($hasvoted == hasvoted) { /* Show Results */ } else { $sql = SELECT * FROM polls WHERE id = '$id'; $result = mysql_db_query($database,$sql,$db); $row = mysql_fetch_array($result); $noofresponses = $row[noofresponses]; $yes = $row[yes]; $no = $row[no]; $yes = $yes +1; $no = $no +1; $noofresponses = $noofresponses + 1; if(isset($isyes)) { $usql = UPDATE polls SET noofresponses = '$noofresponses', yes = '$yes' WHERE id = '$id'; $res = mysql_db_query($database,$usql,$db); } if(isset($isno)) { $usql = UPDATE polls SET noofresponses = '$noofresponses', no = '$no' WHERE id = '$id'; $res = mysql_db_query($database,$usql,$db); } setcookie(hasvoted_$id,hasvoted); /* end of if(isset($hasvoted_$id) */ } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php login scripts
$user = $HTTP_GET_VARS[user]; $pass = $HTTP_GET_VARS[pass]; $real = superduperunlieklytobeguesedpass; if($user == $validuser $pass == $real) { echo thank you for logging in here is the page; ? HTML etc ?php } else { die(You supid idiot thats not a valid login); ? and call the page as http://superdomain.com/login.php?user=Imasuperduperuserpass=superduperunlie klytobeguesedpass You'd need to alter it obviously. Its good for secureing one page if you want multi page you ... need to work on Sessions :S Im working on em now :S scarry stuff :S Laserjetter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Depending on how secure the login information needs to be, you could just store it in a text file, maybe using password() to encrypt passwords. You could then access it using fopen() and save the contents of the file in an array. I'm not too hot on login and authentication though myself! I did get it working, there was a useful example in the PHP manual. LJ XX XX [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi. im new. i installed a login script on my site and after a few days, it stopped working. i reinstalled it and it still refused to work after a dew days. can anyone send me a good login script preferably with no MySql? im very busy atm with all my school stuff. Thanks aron _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] include with call
Hello, I have a file which does several different things depending on how its called Ie file?mode=show is to show it etc But I want to include the output from the show so I tried ?php include(file.php?mode=show); ? but this causes errors. It goes away with including as only file.php but doing that also causes problems because mode isnt set yet. Anyone know how to get around this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Decryption
Is there a method for decrypting encrypted things by md5? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: include with call
Thanks :) Cc Zona [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... In article [EMAIL PROTECTED], [EMAIL PROTECTED] (John Cuthbert) wrote: I have a file which does several different things depending on how its called Ie file?mode=show is to show it etc But I want to include the output from the show so I tried ?php include(file.php?mode=show); ? but this causes errors. It goes away with including as only file.php but doing that also causes problems because mode isnt set yet. $mode='show'; include(file.php); Include() brings in the content of a file just as if you'd copy/pasted it there. It's not an HTTP GET request. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]