KyleMassacre Posted January 20, 2013 Share Posted January 20, 2013 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 Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted January 20, 2013 Share Posted January 20, 2013 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. Quote Link to comment Share on other sites More sharing options...
eXtremen00b Posted January 20, 2013 Author Share Posted January 20, 2013 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.... Quote Link to comment Share on other sites More sharing options...
Someone Posted January 20, 2013 Share Posted January 20, 2013 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 Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted January 20, 2013 Share Posted January 20, 2013 It would be in mainmenu.php under an IF statment such as if($ir['jail']){ print" blah";} Quote Link to comment Share on other sites More sharing options...
eXtremen00b Posted January 20, 2013 Author Share Posted January 20, 2013 It would be in mainmenu.php under an IF statment such as if($ir['jail']){ print" blah";} Yes the elseif and else. I see that. Quote Link to comment Share on other sites More sharing options...
Someone Posted January 20, 2013 Share Posted January 20, 2013 Post a snippet of the code. Makes it much easier to help you. Place them in these tags, remove * [php*] code here [/php] Quote Link to comment Share on other sites More sharing options...
eXtremen00b Posted January 20, 2013 Author Share Posted January 20, 2013 <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. Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted January 20, 2013 Share Posted January 20, 2013 Just find where it says if ($ir['jail']) { echo " <li><a href=somelink.php> Link </a></li> //now add your inventory link here like so <li><a href=inventory.php> Inventory </a> </li> } So just find where is has the if statement for the jail and add in the inventory link Quote Link to comment Share on other sites More sharing options...
eXtremen00b Posted January 20, 2013 Author Share Posted January 20, 2013 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. :) Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted January 20, 2013 Share Posted January 20, 2013 Thats what this forum is for, good luck with your ventures Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.