Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by SaranacLake

  1. P.S. So which version of PHPMailer should I choose - assuming there are diffeent versions?
  2. Looks like I need to go figure out how to download and install the latest version of PHPMailer... I have no recollection of how to do this, and sure hope I don't get stuck r break my code. ? I just got an email saying you replied, but I didn't get one when you replied before. Nothing is in my spam folder, but I notice this happens sporadically.
  3. After migrating my code to a new Mac with a newer version of MAMP, when I getting back into things, I go this error last night... Deprecated: ___autoload() is deprecated, use spl_autoload_register() instead in /path/to/PHPMailerAutoload.php on line 45 I guess that means the newer version of PHP that comes with the newer version of MAMP I am running on my new Mac broke things, huh? ******** P.S. How come I didn't get an email notifying me that you responded, when "Notify me of replies" was checked?
  4. I have been away from a coding project for over 2 years. Trying to get things online, and not cause further delays. My site uses the PHP Mailer class to send out emails to users for things like password resets. How important is it that I have the latest version of this class - assuming it is even still around now? Thanks.
  5. @gizmola, You seem to be a drill-sergeant an loving father all in one?! I am very interested in learning how to do all of that, but I also stick to what I said (or implied) above... That being, I have a very large code-base I as working on a couple of years ago for a couple more years, and when I was 95% done, life happened and my work got tabled. My goal is to "finish what I started" and get my existing environment, tools, approach and code-base into prod so I can get my website up and try to make some $$$ while I regroup. (Starting to re-organize a Terabyte of crap on my old Macbook and laying it down in a way that I can actually find things on my new MacBook made total sense. But getting fancy with anything else is likely an unnecessary distraction...) And I am interested, but it was quicker to change a few lines of code in my httpd.conf file then do what you suggested. (For v2.0, I will check that and your other advice out.) There is nothing more than I want moving forward to learn how to code like a modern professional, and start being EFFICIENT, because that is what sunk me the first go around. (I have solid code that works, but it takes me 10 times longer to do and maintain things than it should for me to be successful. And, NO, that has nothing to do with tools, but has a s***load to do with architecture and coding styles!)) MAMP des what I need it to do for now. Took me an evening to research, and a few minutes to type the code to make it adapt to my new filing system. Now on trying to find all of my old code and notes and get my website working in my new dev environment on my new macBook. Thanks for the thoughts!
  6. No, I am trying to lesrn how to ride a bicycle and you are telling me to put that on hold to learn painting. Let me get my website online first - which has little to do with virtual hosts and even less to do with virtualization - and then I can come back and revisit this topic. One step at a time... Okay.
  7. You took what I said above too literally... Replace what I said with http://local.mytopsecretcompany/ I appreciate the advice, and will look into things down the road, but you have to realize I have been away from web development and PHP for over 2 years, and I almost wet myself when I finally got MAMP and NetBeans set up correctly and a "Hello World" page appeared! My #1 priority is to get my website and business up before there is no longer PHP or the Internet! Then I can look at getting fancy with Virtualization. ?
  8. It's what I called the directory. Where do you come up with these things? I have posted what I used in the past in my httpd.conf file, so yeah, I think I have some clue... It would help if people would answer the uestions I ask and not go off on tangents about things I haven't asked for help with. If someone would answer the questions I asked I might learn something more... And I said I get that part, but you seem to not be reading my questions...
  9. Okay, but what do I do with these two blocks in the httpd.conf file... DocumentRoot "Users/user1/Documents/DEV/+htdocs" Can I just comment that out or ignore it since everything will map to my Virtual Hosts? <Directory "/Users/user1/Documents/DEV/+htdocs/"> Options All AllowOverride All Order allow,deny Allow from all XSendFilePath "/Applications/MAMP/htdocs" </Directory> And what about this block? (Looks important to me...)
  10. I am just running a local dev environment, so why get into virtualization? I was able to host several websites before locally, but now I want to change how I organize things on my HDD and am hoping that I can tweak my httpd.conf file to get the outcome I want with the least effort. Not to say your idea doesn't have merits, but that is adding a lot of complexity that is unnecessary now for my needs.
  11. I got that, but in my two posts above, it seems like DocumentRoot contradicts having multiple VirtualHosts. Can you help me understand how I would need to modify my httpd.conf file FROM supporting multiple VirtualHosts ll nested under one parent DocumentRoot TO instead having multiple VirtualHosts which are NOT located under a central DocumentRoot?
  12. In my httpd.conf file, there are 3 places where I modified the code in the past... Section 1: DocumentRoot "Users/user1/Documents/DEV/+htdocs" Section 2: <Directory "/Users/user1/Documents/DEV/+htdocs/"> Options All AllowOverride All Order allow,deny Allow from all XSendFilePath "/Applications/MAMP/htdocs" </Directory> Section 3: <VirtualHost #.80> DocumentRoot "Users/user1/Documents/DEV/+htdocs/Company1/public_html" ServerName local.company1 </VirtualHost> <VirtualHost #.80> DocumentRoot "Users/user1/Documents/DEV/+htdocs/Company2/public_html" ServerName local.company2 </VirtualHost> It seems like the VirtualHosts might allow me to have code for a given company in a distinct location on my computer, but in Section 1 above, it seems like everything needs to be located in a "God" WebRoot directory - which is how I used to have things, but NOT how I want things moving forward!!
  13. I am looking at my notes and the httpd.conf file, and am having a hard time figuring out how to change things. First, to be clear, this is how I had things on my old Mac... MyHDD > DEV > +htdocs > Company1 MyHDD > DEV > +htdocs > Company2 MyHDD > DEV > +htdocs > Company3 Now how I want to organize my Macintosh is like this... MyHDD > Company1 > +htdocs1 MyHDD > Company2 > +htdocs2 MyHDD > Company3 > +htdocs3 In my httpd.conf file, I had modified the file like this... DocumentRoot "/Users/user1/Documents/DEV/+htdocs" But with how I want things, I would need 3 DocumentRoots and I don't see how that can work?! ?
  14. I found some old notes that tell me t make changes in the hosts and httpd.conf files. In the past, I had a parent folder called +htdocs with a bunch of subfolders that represented different "projects" (i.e. websites). Now what I would like to do is have a folder for Company-A, another forlder for Company-B, and so on. And then nested in each of those parent company folders, have an +htdocs folder for each company. Is that possible with MAMP and Apache?
  15. @requinix, I think the problem is I forgot to set up a virtual host called "local.acme" Found some notes on my old Mac and may be on to something. As far as posts, I was sure I saw some message saying my post had to be Admin approved - maybe since I am new? Either way, I seem to be getting emails when you have posted which is good. (When I made my first post last week I didn't get any emails.) Thanks
  16. It just rewrites to http://www.local.acme Like I said before, I haven't done any LAMP stuff in over 2 years, so it feels like I am starting from scratch. However, a light went off in my head, and I think the issue might be related to virtual hosts I set up like 8 years ago on my old Macintosh... I have "New notofcation sent when response posted". I see an email from your response now. Maybe Iw asn't getting them before because I needed my post to ne Admin approved?
  17. I have the Project URL set in NetBeans to what I want it to be... http://local.acme/ Where is the prepended www. coming from when I run my code in NetBeans? All of my settings from my old environment/laptop match what is on my new environment/laptop... I thought it might be an issue with the php.ini file, but after looking at tha file's contents, I don't see anything referring to my "Web Root". This is driving me mad!! P.S. How can I get email notofications when people respond to this thread? (I didn't know you responded last night.)
  18. I am trying to set up a new PHP environment on my newer Macintosh, and cannot seem to get my webserver, MAMP, to work properly. When I run my PHP code, Firefox launches and the URL says: http://www.local.acme/index.php I am using NetBeans for my IDE, and in the IDE, I have the "Project URL" defined as: http://local.acme/ I assume there is some problem with how MAMP is set up, but am unsure. And I tried to copy all of the settings from my old setup on my old Macintosh, but having been away from all of this for about 2 years, I really have no recollection of how I set all of this up. Am a dead duck until I can get my dev and run enorionments working again. ?
  19. Truth be told, I have to try and figure out what version of PHP I coded things in. Sorry for the broad question, but can you give me some sort of sense how much things have changed since 5.6 and 7.0? Is it mostly minor stuff, or have there been enormous changes? Thanks.
  20. How far back can I go with PHP and still have a version that is stable and secure? I have a website that I wrote 3-4 years ago and am wondering if I can use it as is or it I have to re-write it.
  • 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.