Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. Newbie to PHP

Newbie to PHP

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
phpquestion
9 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    offroaderdan
    wrote on last edited by
    #1

    Hi, I have a vb program which communicates with PHP but cut long story short it works :) What i want to know is if i develop this PH further can i create a login screen on the internet and allow the user to amend records? e.g if a teacher did a register of a class and messed it up could they login online and edit the absent and present column? Please note i am new to PHP! Thanks Dan

    G C P 3 Replies Last reply
    0
    • O offroaderdan

      Hi, I have a vb program which communicates with PHP but cut long story short it works :) What i want to know is if i develop this PH further can i create a login screen on the internet and allow the user to amend records? e.g if a teacher did a register of a class and messed it up could they login online and edit the absent and present column? Please note i am new to PHP! Thanks Dan

      G Offline
      G Offline
      Graham Breach
      wrote on last edited by
      #2

      The answer is "maybe"... If the records you want to amend are stored in a database that you have access to using PHP, then you can do whatever you like with them, assuming you have the required permissions. Sorry the answer is a bit vague, but you asked quite a vague question.

      1 Reply Last reply
      0
      • O offroaderdan

        Hi, I have a vb program which communicates with PHP but cut long story short it works :) What i want to know is if i develop this PH further can i create a login screen on the internet and allow the user to amend records? e.g if a teacher did a register of a class and messed it up could they login online and edit the absent and present column? Please note i am new to PHP! Thanks Dan

        C Offline
        C Offline
        chevu
        wrote on last edited by
        #3

        Ya you can do it. But you need to store userid and password. If you want to use database then you can refer these links: http://php.thedemosite.co.uk/login.php[^] http://www.phpeasystep.com/phptu/6.html[^] http://www.devshed.com/c/a/PHP/Creating-a-Secure-PHP-Login-Script/[^] If you dont want to use any database then you can do one thing(Try not to use this method). Make a text file at server side and read it to check id and password. But make sure that you set appropriate permission for that text file.

        O 2 Replies Last reply
        0
        • C chevu

          Ya you can do it. But you need to store userid and password. If you want to use database then you can refer these links: http://php.thedemosite.co.uk/login.php[^] http://www.phpeasystep.com/phptu/6.html[^] http://www.devshed.com/c/a/PHP/Creating-a-Secure-PHP-Login-Script/[^] If you dont want to use any database then you can do one thing(Try not to use this method). Make a text file at server side and read it to check id and password. But make sure that you set appropriate permission for that text file.

          O Offline
          O Offline
          offroaderdan
          wrote on last edited by
          #4

          Awesome thanks, So how would I go about allowing one of the columns to be edited? How do i allow the permissions? Thanks again Dan

          L C 2 Replies Last reply
          0
          • O offroaderdan

            Awesome thanks, So how would I go about allowing one of the columns to be edited? How do i allow the permissions? Thanks again Dan

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            offroaderdan wrote:

            So how would I go about allowing one of the columns to be edited? How do i allow the permissions?

            You'll also need a webserver. Think IIS if you're on Windows, Apache if you're on Linux. Next, you'd need to test if PHP is configured correctly to work with your database-setup. W3Schools would be a good place to start, they've got examples on interacting with a database to get you started[^] :)

            I are Troll :suss:

            1 Reply Last reply
            0
            • O offroaderdan

              Awesome thanks, So how would I go about allowing one of the columns to be edited? How do i allow the permissions? Thanks again Dan

              C Offline
              C Offline
              chevu
              wrote on last edited by
              #6

              it seems you want to use database and tables, first of all you have to install a server to that particular system. As you are newbie download easyphp or wampserver, install on that system. Dont worry about individual install of apache or mysql. This software will do it for you. And then simply follow tutorial given on their sites.

              1 Reply Last reply
              0
              • C chevu

                Ya you can do it. But you need to store userid and password. If you want to use database then you can refer these links: http://php.thedemosite.co.uk/login.php[^] http://www.phpeasystep.com/phptu/6.html[^] http://www.devshed.com/c/a/PHP/Creating-a-Secure-PHP-Login-Script/[^] If you dont want to use any database then you can do one thing(Try not to use this method). Make a text file at server side and read it to check id and password. But make sure that you set appropriate permission for that text file.

                O Offline
                O Offline
                offroaderdan
                wrote on last edited by
                #7

                WOW , I found these links brilliant :) however i was using link 2 http://www.phpeasystep.com/phptu/6.html[^][^] and have come across a few probems, i did exactly what the tutorial said. I then try and run the main_login.php in internet explorer, type in the name and password press login and it comes up with a pop up box saying do you want to open or save this file (check_login.php)????? i have already created this file exactly how it wanted? Does anyone know why this is coming up with this popup and how do i solve this problem Thanks Dan ps i am learning a lot about php keep up the good work :D

                G 1 Reply Last reply
                0
                • O offroaderdan

                  WOW , I found these links brilliant :) however i was using link 2 http://www.phpeasystep.com/phptu/6.html[^][^] and have come across a few probems, i did exactly what the tutorial said. I then try and run the main_login.php in internet explorer, type in the name and password press login and it comes up with a pop up box saying do you want to open or save this file (check_login.php)????? i have already created this file exactly how it wanted? Does anyone know why this is coming up with this popup and how do i solve this problem Thanks Dan ps i am learning a lot about php keep up the good work :D

                  G Offline
                  G Offline
                  Graham Breach
                  wrote on last edited by
                  #8

                  You are trying to run the file using the web server aren't you? That is, the URL must start with http:// or https:// and not file:// - the PHP file has to be run through the web server. If you are running through the web server and still getting this, the PHP handler might be installed incorrectly, or the script is setting the wrong content-type header.

                  1 Reply Last reply
                  0
                  • O offroaderdan

                    Hi, I have a vb program which communicates with PHP but cut long story short it works :) What i want to know is if i develop this PH further can i create a login screen on the internet and allow the user to amend records? e.g if a teacher did a register of a class and messed it up could they login online and edit the absent and present column? Please note i am new to PHP! Thanks Dan

                    P Offline
                    P Offline
                    PHP_Guy
                    wrote on last edited by
                    #9

                    you can destroy session always.. :)

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups