Announcement

Collapse
No announcement yet.

PHP

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

  • #16
    Re: PHP

    Like I say, re-read the post, you are missing something. Plus it's important for you to start grasping the concepts behind this stuff instead of just cutting and pasting, time to spread your wings a bit... I say that only because I can remember helping you with this exact same script at least once before. [img]/ubbthreads/images/icons/smile.gif[/img] If there's something you need from me to help you understand things a bit better let me know, otherwise I stand by the above response Monsieur Banane. [img]/ubbthreads/images/icons/smile.gif[/img]

    Corey Milner
    Creative Director, Indigo Rose Software

    Comment


    • #17
      Re: PHP

      Ow! In front of the family no less!

      Comment


      • #18
        Re: PHP

        No, don't get me wrong here. I am 100% still in your corner but, because I am 100% in your corner, I'd like to start helping you evolve a macroview of what you're doing with the end hope of making things better and easier for you, i.e. can you imagine how great it is to be able to whip up an email script in 5 minutes? So I guess I'm trying to figure out what piece of this process is escaping you so that I can explain it to you... Don't get discouraged and don't misinterpret my words as being negative, they aren't. They are meant solely to spur you onto, in a friendly way, the next plateau...

        Corey Milner
        Creative Director, Indigo Rose Software

        Comment


        • #19
          Re: PHP

          I have a question on this front . . . how can you tell if your server supports php? I put a script out there to test the php functions and AMS gives me an error where it cannot submit to web. I have looked at the providers site and didn't find anything. I have an e-mail into them to find out, but thought I would ask here to see if there was a way I could check.
          TJ-Tigger
          "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
          "Draco dormiens nunquam titillandus."
          Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

          Comment


          • #20
            Re: PHP

            Hey Tigg-
            Almost all do from what my Web Master says. Simlpy drop your .PHP file in the Docs folder. Once I fugure this poop out I'll pass it along. :-)

            Comment


            • #21
              Re: PHP

              Sure Tigg, just save the following code to a file named "test.php" then upload it and access it using your web browser, if you see only the text, "Here's Johnny..." then PHP is on, if you can see all the code including the tags then PHP is off... Most web hosts have PHP now.

              <?php
              echo "Here's Johnny...";
              ?>

              Corey Milner
              Creative Director, Indigo Rose Software

              Comment


              • #22
                Re: PHP

                Hmmm, actually Bruce I can't get it to work without an error either, we'll have to get Lorne or Brett to answer this one, I'm interested in an answer too now actually. [img]/ubbthreads/images/icons/smile.gif[/img] I'll email them a link to this thread and hopefully they can get an answer to us on Monday... That's the best I can offer...

                Just to recap for Lorne/Brett's benefit, the question is how does one send the contents of an AMS variable to a web form for correct processing without receiving any errors? Thanks.

                Corey Milner
                Creative Director, Indigo Rose Software

                Comment


                • #23
                  Re: PHP

                  Thanks buddy, I'm glad I'm not alone!

                  Comment


                  • #24
                    Re: PHP

                    I was afraid of that, all I see is the code. Bassackwards people.
                    TJ-Tigger
                    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
                    "Draco dormiens nunquam titillandus."
                    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

                    Comment


                    • #25
                      Re: PHP

                      Tigg:

                      There's a host at tera-byte.com which offers (the 4U account) massive web space and bandwidth for $9 per month, includes everything you need, i.e. PHP, MySQL, Unlimited free subdomains, 99 email addys, etc. with a killer control panel... And I had one of those accounts for years without a single glitch, I can tell you personally it is the best value you will find anywhere. In addition to using their services for many years, I've been to their offices and seen their server rooms and met all the staff, tera-byte is the best choice available.

                      Comparable features to the 4U account elsewhere range in cost from $30 per month and up from what I have seen and rarely seem to perform at the same speed and efficiency as the tera-byte servers.



                      Bruce: Yeah but it works though. It sends the email fine, it just errors, that's all. We'll see what the dev guys have to say about this one...

                      Corey Milner
                      Creative Director, Indigo Rose Software

                      Comment


                      • #26
                        Re: PHP

                        k bruce, I'm pretty sure I've got your problem figured out. I didn't want to throw in till I was more certain, but the same thing happened to me and here is my take on what's going wrong.

                        The website you're tryign to submit to is more than likely virtually hosted (i.e a whole bunch of different sites are hosted on one server and in most cases one IP address). If this is the case, that's the problem.

                        It seems that AMS before submitting things to the web first resolves the domain name into the IP address (i.e yoursite.com becomes 142.32.234.43 or something like that.) If you had a static IP, which in most cases you wouldn't with a virtually hosted site, this wouldn't be a problem. But since your server has a bunch of sites under one IP, AMS just submits the info to the first site it finds on the server. This is why you get the error message and the blank email sent to you.

                        As i said this happend to me so I can tell you two things you can do to work around it. The simpelest is to spring for a static IP (which most hosts will let you add to your current virtual site). The cheaper option is to find out what your actual address is within the server. Some hosts provide a preview site (or at least mine did) that is actually your correct server address. It would look something like 142.32.234.43/~yoursite.

                        If you find this real address, direct your AMS submit to that address instead of your domain name (still pointing to the script of course) and everything will work dandily. The only inconvenience is that your script will probably be accessed twice each time and you'll recieve one email without the posted variable and one that is correct (this is because of some kind of mirroring between the domain name and the IP number I believe).

                        Anyhow, I hope that all makes sense. I'm nearly positive this is your problem. If you have any questions, I'll be happy to clarify.

                        And i guess that domain name resolving thing could be added to my wishlist of AMS changes for updates, if it's a possibility.

                        Comment


                        • #27
                          Re: PHP

                          oh and i forgot to mention, a third option if you can't find yourself a static IP (or the server address i was talking about): if you're nor overly concerned about controlling all your own scripts etc and aren't planning on sending a bajilllion emails this way, I'd be happy to host your script until you find a better solution (or my website expires which won't be for at least another 10 months)

                          Comment


                          • #28
                            Re: PHP

                            Actually I'm submitting it to a server with a static IP and I'm still getting an error returned by the server for some reason. Yoni you can easily workaround that by just using a normal web form in a browser object...

                            Corey Milner
                            Creative Director, Indigo Rose Software

                            Comment


                            • #29
                              Re: PHP

                              nevermind then. I'm just curious Corey, when you are getting your error, are you also getting a blank (i.e no variables)email sent to you? that is what i was thinking tipped me off to the IP thing.

                              Comment


                              • #30
                                Re: PHP

                                After it's sent I get the error, I did receive the info correctly though. What you mention may very well be Bruce's issue... For me this is one where I'll be glad to see an official example from the dev guys which works correctly without erroring so I can see what I did wrong and also so that I can create a video tutorial for people since this one seems to get asked a lot...

                                Corey Milner
                                Creative Director, Indigo Rose Software

                                Comment

                                Working...
                                X
                                😀
                                🥰
                                🤢
                                😎
                                😡
                                👍
                                👎