Web Analytics Made Easy -
StatCounter Having the damndest time trying to find an error in a php file - CodingForum

Announcement

Collapse
No announcement yet.

Having the damndest time trying to find an error in a php file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    judgedredd,
    Do you still develop online instead of having a localhost setup?

    When trying to create a locally developed system with a second session_start() the browser screams with error messages and stops dead.

    Creating a second session_start(); online and the default error system only logs errors and warnings.

    Comment


    • #17
      I develope online only now because XAMP and those fine folk (NOT) at Zend don't allow the newest version of PHP to be developed on a Win XP machine.

      Comment


      • #18
        Use Laragon. It is much better than the other wamps. You can easily have multiple versions of PHP. It also automatically creates virtual hosts for you.
        https://laragon.org/
        To save time, lets just assume I am almost never wrong.

        The XY Problem
        The XY problem is asking about your attempted solution (X) rather than your actual problem (Y). This leads to enormous amounts of wasted time and energy, both on the part of people asking for help, and on the part of those providing help.

        Make A Donation https://www.paypal.me/KevinRubio

        Comment


        • #19
          Originally posted by judgedredd View Post
          I develope online only now because XAMP and those fine folk (NOT) at Zend don't allow the newest version of PHP to be developed on a Win XP machine.
          Install Linux and have a dual boot machine. There are numerous Linux Operating Systems available and many can be tested using a USB thumb drive.

          I run Linux Ubuntu on both the laptop and online VPS, ideal for mirror images.
          Last edited by John_Betong; Sep 9, 2021, 01:29 PM.

          Comment


          • #20
            benanamen thank you for that. John_Betong, I have Linux Mint installed n my Win XP machine but I rarely use it as I find it a pain to reboot the machine everytime I want to use it to edit a site.

            Comment


            • #21
              Originally posted by judgedredd View Post
              benanamen thank you for that. John_Betong, I have Linux Mint installed n my Win XP machine but I rarely use it as I find it a pain to reboot the machine everytime I want to use it to edit a site.
              Investigate the RSYNC Command utility. Mirror image backups from local to remote, remote to local and remote to remote! The utility compares file time differences and zips only files that require updating. Only takes seconds for updates to complete.

              I have an alias for numerous sites called from the command terminal, such as upican, upci4, etc

              https://en.m.wikipedia.org/wiki/Rsync

              from another forum:
              I run Ubuntu 20.04 locally and have VPS mirror images of numerous websites.

              In order to simplify updating from localhost to online servers I have the following Command Line alias:

              alias upci4="rsync -avz /var/www/domainName.tld/ -e ssh [email protected]:/var/www/domainName.tld/"
              After localhost modifications “upci4” is called from the Command Line, followed by the password. Only modified files are updated and they are even zipped then unzipped remotely. Updates takes seconds

              It certainly beats using FileZilla and is far, far quicker.
              Last edited by John_Betong; Sep 9, 2021, 02:28 PM.

              Comment


              • #22
                Originally posted by John_Betong View Post
                Install Linux and have a dual boot machine. There are numerous Linux Operating Systems available and many can be tested using a USB thumb drive.
                No need for dual boot. Install VirtualBox or VMWare, and run Linux in a window.

                I always keep a 1:1 install copy of my server in a VM for local testing. Hell, I've got OSX Big Sur working as a client under Windows 10 so I can test Safari rendering.

                https://www.virtualbox.org

                You install the "guest additions" and for most tasks it's 80-90% the speed of native for everything except 3d video.
                Walk the dark path, sleep with angels, call the past for help.
                https://cutcodedown.com
                https://medium.com/@deathshadow

                Comment


                • #23
                  Hi guys, thanks for the input. I have been a bit lax on responses because I am having teeth troubles. Last week it was a root canal that didn't go according to plan. Today I cracked a tooth right down the middle so have to go and get it extracted. Needless to say, I have not been able to get to the tasks at hand on this project. I should be back in the saddle this coming week.

                  Note: I did get to clean up the styling via the CSS code on the podcasts page (http://67.211.218.91/podcast-listings.php), but its still pulling the listing script in via an iframe. I haven't got to that humungous error file yet.
                  Last edited by judgedredd; Sep 11, 2021, 01:34 PM.

                  Comment

                  Working...
                  X