Jump to content

matt002

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

matt002's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. My apologises I didnt upload the script Of course, if you prefer to use your obviously fantastic psychic abilities then WOW, go for it The main script is attached (prepare to be shocked, amazed and bewildered- in a bad way) lol Go easy on me, although it works, the reliability is bad due to so many novice mistakes and poor coding. [attachment deleted by admin]
  2. Hi coders, I have a adminbot script for SWAT4 to which I have coded. It basically checks the servers chat & actions and uses MYSQL to keep track of known trouble makers etc I am having difficulties at the moment runninng the script successfully with only certain bits functioning correctly. This is probably due to the "scrappy" coding and bad practices from a novice. I wondered if a coder with good knowledge and a keen eye could look over my script and check it for errors and offer alternatives to what they see if required? If someone has time to assist me, I would much appreciate it. Regards Matt
  3. Basically, you can use cURL to access a certain PHP page on your server. This PHP file should output whatever you need. The script that requested this page will receive that output in return. If you search PHP cURL in google, it might become clearer what it can do for you.
  4. Hello to everyone, I am new to these forums & this wonderful community so ill give a little background about myself. My name is Matt, I am 21 years of age and live in the UK (England). I am a founder of a gaming community/clan where alot of my time online is spent coding in PHP/HTML to improve my community website and clan. www.sog-team.co.uk I stumbled across PHP code when I first started my first website in 2006 when I chose vbulletin forum software to base it. Ever since, I have grown learning more and more about PHP everyday enabling me to become quite an enthusiast for coding and vbulletin modifications. I have released several vbulletin modifications at the official mods site vbulletin.org, and have coded several stand alone scripts in use at my site including an automated admin "Bot" that administrates the gameservers we own in SWAT 4. I have joined this forum as despite the above, I am still to many a novice to the world of PHP, and I endeavour to become one day the person who can pass down knowledge to others rather than requesting it myself. I have learnt alot over the years but think it is now time to further my efforts by joining a community like this. I will look forward to liasing with alot of you and testing your brains aloing with (hopefully) testing my own Thanks again, Matt
  5. Hi everyone, I have a script that runs every 3 seconds kickstarted by CRON every minute. I want to however stop the script overlapping itself as it sometimes does, so in short, I would like to only allow it to run once per time. So I formulated a method without using MYSQL, a simple .txt file check as follows. The only issue is sometimes and randomly it forgets to remove the file so I end up with a script not running at all. At times my script willl run for a few hours then eventually stop as the txt file hasnt deleted after one of the script run. Other times, it simply runs once and then doesnt do so again as the file or command unlink hasnt worked. The only way to then start everything again is remove the file manually using FTP. So, my question is, any ideas for simple alternatives or if not, what could be the reason for the random non deletion of the file on the server? <?php $fileN = "check.txt"; $filename = "home/public_html/serverchecks/$fileN"; if (file_exists($filename)) { exit(); }else{ $ourFileHandle = fopen($fileN, 'w') or die("can't open file"); fclose($ourFileHandle); } // Script code HERE unlink($fileN); ?> Any ideas? Thanks in advance. Matt
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.