Jump to content
MakeWebGames

I am in Dire Straits!!


eXtremen00b

Recommended Posts

Ok no one mentions the real deal to get crons to work the old way in mccodes do not work with curl due to updates of the cpanel you have to do it this way (I have stated this in another thread)

wget -O/dev/null http://YOURSITE/cron_minute.php?code=YOURCODE

How does curl not work because of cpanel upgrades? Their change log from what I can see does not mention the fact curl is gone or going to be gone. What it boils down to is the hist allowing the use of curl in which x10 does but unless you pay you can only run x amount of jobs every 5 minutes or a day if I remember correctly

Link to comment
Share on other sites

How does curl not work because of cpanel upgrades? Their change log from what I can see does not mention the fact curl is gone or going to be gone. What it boils down to is the hist allowing the use of curl in which x10 does but unless you pay you can only run x amount of jobs every 5 minutes or a day if I remember correctly

I am on paid hosting, it does not allow curl, because of the recent update, it use to work with curl before the update of the cpanel, I do not know what the updates all were, but when it was updated, curl just did not work, and I was told to use wget instead, due to the update.

Link to comment
Share on other sites

Another thing. Can anyone help me with the side panel or side bar or navigation panel? Whatever you want to call it. In the game whenever one goes to jail one can use mercy letters to decrease jail time. However, when one does go to jail the link in the side panel to inventory disappears. I am in main menu.php and index.php and jail.php and I just can't seem to figure this out, lol....

Link to comment
Share on other sites

curl or wget, pretty much the same for this purpose. http://daniel.haxx.se/docs/curl-vs-wget.html

A third option is using php itself. You wont have to have the server visit the page.

 

Running PHP directly is the simplest option. It doesn't take up a network slot on your apache (or other webserver) instance. It also bypasses limits associated with webservers that are designed to protect your machine against malicious third parties. However, the environment under which the command-line version of PHP runs is slightly different, and may be enough so to prevent a poorly-written script from behaving properly. Also, some webserver run PHP as a DSO module within apache's process space and using apache's user permissions. This might affect your results (maybe positively or maybe negatively).

Not agreeing on this part though: "PHP directly is the simplest option"

http://stackoverflow.com/questions/12930936/wget-curl-and-php-for-cronjobs

Link to comment
Share on other sites

<li> <a class='link1' href='index.php'>Home</a></li>
<li> <a class='link1' href='shops.php'>Medical Shop</a></li>
<li> <a class='link1' href='hospital.php'>Hospital ($hc)</a></li> 
<li> <a class='link1' href='inventory.php'>Inventory</a></li>";
}
elseif($ir['jail'])
{

print "

<div class='navipart'>
<div class='navitop'><p>
<img src='images/navi_txt.gif' alt='' />
</p></div>

<div class='navi_mid'><ul>


<li><a class='link1' href='jail.php'>Jail ($jc)</a></li>";
}
else
{
print "


<div class='navipart'>
<div class='navitop'><p>
<img src='images/navi_txt.gif' alt='' />
</p></div>

<div class='navi_mid'><ul>


<li><a class='link1' href='index.php'>Home</a></li><li>
<a class='link1' href='inventory.php'>Inventory</a></li>";
}

 

Hope this helps.

Link to comment
Share on other sites

Gosh this coding is so.....unforgiving....that finally worked you guys. I was trying all kinds of other stuff. I will say however I was close to getting it right but I guess when it comes to coding close just isn't good enough, lol. You guys/gals are the greatest help I think I have ever received in any forum ever. Thank you all so very much. :)

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.

×
×
  • Create New...