Jump to content

Fetch domain from database


DedicatedPros

Recommended Posts

What do you mean by server reboot script? if you mean a php script runs when the server rebooted then the line you gave won't work.

Simply, it will work only while you access the WHMCS, because whmcs smarty who give you the access to the variable, it is being parsed before reach you.

If you provide more details about your scenario, may be I can help you with the proper script.

Are you trying to read all domains from database? or what?

Link to comment
Share on other sites

lol the script isn't for rebooting my web server, but my clients servers :D It gets their servers hostname which is saved as hostname in the admin area and reboots that server when they request it.

 

All I need is a line that will fetch the domain name and insert it into my php code, it worked on all previous versions of WHMCS but now it doesn't :(

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.

Guest
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