Jump to content

PHP script problem


Recommended Posts

My own functions.. is there a possibility that some function is the same-named as the functions from WHMCS and that's causing errors?


But well, I know for sure.. that I have no function called outputClient*** in my functions.


Should it work normally?

Link to comment
Share on other sites

Next problem.. I have my own language file Czech.txt in lang/ folder and when I try to set the language to Czech.. it says:


Parse error: syntax error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/www/pozdisek.cz/subdomeny/wl/whmcs/whmcs/dbconnect.php(0) : eval()'d code on line 347

Link to comment
Share on other sites

How do you mean it doesnt help? Surely the error is different when changing it. You should try to use script-specific function names anyways to avoid this kind of problem. scriptname_redirect() for example.


Also, your if statement doesnt make sense either, unless you're defining $null somewhere.. That should probably read something like this:


if (!$secs) {
// Do this
} else {
// Do that


Even better would be something like this:


function script_redirect($to, $secs="3") {
     echo '<META HTTP-EQUIV="Refresh" CONTENT="'.$secs.'; URL='.$to.'">';

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated