Jump to content

Search the Community

Showing results for tags 'php'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • New Member at General Forum?
    • Welcome Lounge
    • General Forum Announcements
    • Suggestions and Feedback
  • The General Forums
    • General Discussions
    • News Hub
    • Gamers Den
    • Sports & Entertainment
    • Techno Geeks Unite
    • The Marketplace

Blogs

There are no results to display.

Calendars

  • Community Calendar
  • Default Calendar

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Location


Gender


Interests


Occupation


Xbox Live Gamertag

Found 4 results

  1. Can someone teach me php? I mean I want to start off basic like anything you'd start learning :)
  2. Me and my Best friend halcyon have developed a system that reads and writes to the character files. With this system you can make scripts for your website using the character files (There is an example Login Check Page in the download) Features: - Character File Reading - Character File Writing - Should support every server - Read a line - Check total amount of lines Why use this and not MySQL? The speed of mysql saving and loading is not near as fast as file loading and saving. In the Download: - The character file reading and writing class - Index file (Its an example of how to show the username from the file - Example Login page (An example of how you would need to read the information - Documentation Folder - Example character Requirments: - Knowlage of PHP Arrays. - A Webserver or a webhost - Character Files Tutorials/Scripts - Currently no tutorials or Scripts for this system Download - Uppit - 4KB WARNING: This may not be distributed, but may be used for private use. Only AbyssalCMS and MikeScript may distribute this.
  3. The Basics of OOP in PHP The language used for runescape private servers is Java, Java is scripted in OOP. When you look at OOP in PHP you'll probably see alot of similarity. The Class First you need to create a class. (Note The name must start with a capital letter) class MyFirstPage() { //Your methods here } In OOP PHP you have a constructor. The constructor is run immediately after the class is called. The custructor looks like this: public function __construct() { //What you want to run first } Like in Java you need to declare a variable before you can write to it or use it. Do that like this: public $var; Lets put it all to work! class MyFirstPage { protected $_name; protected $_age; public function __construct($name, $age) { $this->_name = $name; $this->_age = $age; } public function getName() { return $this->_name; } public function getAge() { return $this->_age; } } Now save that as MyFirstPage.php (Usually a class file is named after the class). Now lets make the page to let it show! include './MyFirstPage.php'; $myfirstpage = new MyFirstPage('Michael', '15'); //Change these values to make it use another name or age echo 'The name is: '. $myfirstpage->getName() .' and im: '. $myfirstpage->getAge() .' years old'; and save that as index.php Now upload index.php and MyFirstPage.php to your webhost and test it out! NOTE: You dont need to end the PHP file with ?> when the whole file is only PHP without HTML.
  4. So recently, my friend asked me to develop a system for his F1 blog website; I have no idea why he has created an F1 website, I find it a bit pointless. But anyway, I had to go away and learn how to code advanced PHP and integrate SQL as I'd only coded basic PHP before. So I went away, and started reading up on how to code a login system and a news system and after a few weeks I got the hang of it. So I then sat in my cave coding away and created my first ever blog system, and I'm quite proud with how the administration side of the website has turned out. So, below I shall post some pictures of the blog system and how it looks. Please note, I have not created a layout for the home page and for the content to post to so that is still for my friend to develop, I just created the background workings of the system so it looks quite bleak at the moment. The images are quite big so I shall just post a link to the images... Login form: http://i306.photobucket.com/albums/nn267/matthewcarter123/Untitled-4.png http://i306.photobucket.com/albums/nn267/matthewcarter123/loginpanel.jpg So before you can post any news, create new users or delete previous posts you have to login to access the admin panel, this is done from the login form. The login uses a SHA1 encryption with a salt. Admin panel home: Once you have logged in, you are redirected to the admin panel; from here you are able to select what you want to do: post a new news topic, create a new user or delete previous news topics. http://i306.photobucket.com/albums/nn267/matthewcarter123/adminpanelhome.png So once you have logged in, you are greeted by the admin panel. You then have 5 news topics that you are able to post under: Lap Time, Incident, Retirement, Winner and General, each news topic has a different form for you to use to post under. Below are links to the forums: Lap Time: http://i306.photobucket.com/albums/nn267/matthewcarter123/laptime.png Incident: http://i306.photobucket.com/albums/nn267/matthewcarter123/incident.png Retirement: http://i306.photobucket.com/albums/nn267/matthewcarter123/retirement.png Winner: http://i306.photobucket.com/albums/nn267/matthewcarter123/winner.png General: http://i306.photobucket.com/albums/nn267/matthewcarter123/general.png Once you have posted a topic you get redirected to a page telling you that the website has been successfully updated http://i306.photobucket.com/albums/nn267/matthewcarter123/websiteupdated.png Content posting to the home page http://i306.photobucket.com/albums/nn267/matthewcarter123/homepage.png The owner of the website needs to update this page and add a layout. The website is currently on my localhost, so you are able to view it: Website home: http://86.4.104.195/f1website Admin panel: URL - http://86.4.104.195/f1website/adminpanel.php User - admin Password - admin If you are creating a blog system and need any help, feel free to contact me and I will try and help you. Please reply with your thoughts & opinions.
×
×
  • Create New...