Tuesday, 15 June 2010

syntax error - Can't use function return value in write context php script -



syntax error - Can't use function return value in write context php script -

i have tried compiling next script receive error:

php fatal error: can't utilize function homecoming value in write context in /home/user/script.php on line 33

code:

<?php include ("config.inc.php"); include ("header.inc.php"); include ("functions.inc.php"); include ("sorgu.php"); ?> <div id="edit_form"> <form name="create_domain" method="post"> <table> <tr> <td colspan="3"><h3>add</h3></td> </tr> <tr> <td>domain:</td> <td><input class="flat" type="text" name="fdomain" value="" /></td> <td>&nbsp;</td> </tr> <tr> </td> <td>&nbsp;</td> </tr> <tr> <td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="add domain" /></td> </tr> <?php if ( (isset(secpost('fdomain') )) && (secpost('fdomain') !="") ) { $domain = tr_strtolower(secpost('fdomain')); $domain_array = explode(".", $domain); if ( ( strlen($domain_array[0]) >= 3 ) && ($domain_array[0]!="www") && ( ($domain_array[1]=="com") || ($domain_array[1]=="net") ) ) { $realdomain = tr_strtoupper($domain_array[0].'.'.$domain_array[1]); $error_status = standartcontrol($domain_array[0]); } else { $error_status = 8; $error_message = "version ".$script_version." com , net extension <br> (example : domainhunter.com)"; } if ($error_status==0) { $var = mysql_result(mysql_query("select count( id ) `monitors` `domain` = '$realdomain' "),0,0); if ($var == 0 ) { $sql = "insert monitors (domain) values ('$realdomain')"; $results = mysql_query($sql); echo ' <tr> <td colspan="3" class="standout">adding table domain!<br />('; $z = hunter_islemci(tr_strtolower($realdomain)); echo ')</br></td> </tr> '; } else { $error_status = 9; $error_message = "existing domain in table"; } } else if ($error_status==4) { $error_message = "does not idn support"; } if ($error_status!=0) { echo ' <tr> <td colspan="3" class="standout">error '.$error_status.' : '.$error_message.'</br /></td> </tr> '; } } else { echo ' <tr> <td colspan="3" class="standout">&nbsp;</td> </tr>'; } ?> </table> </form> </div> <?php include "foother.inc.php"; ?>

i think may due () meaning [] brackets after changing cannot working!

your problem is

isset(secpost('fdomain')

you can't test isset against returned value function call, against variables

php syntax-error php-5.3 fatal-error

No comments:

Post a Comment