Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
By the way, if you're worried about fiddling with the modem/router settings, be aware that if you do it wrong and screw something up (very unlikely, but just in case) most routers have a reset switch, as the above poster indicated. That will reset the router to default settings.
 
I can see about getting inside the router and looking at ports with my dad soon.


Please stay tuned for extra help if needed :)
 
My dad says that he really doesn't want me messing around in the router, so I guess I can't do it:(. I probably could figure it out, but If he says no, he usually means NO!!

Maybe I could get 1 chance, but I would have to know the exact steps. Otherwise, all my work was for nothing.
 
Also, for the default page (index.html) in the users/sites folder, why does it say that your friends from anywhere can access that website??
 
Understood. What about the other option, then, of buying some inexpensive web hosting?

Or perhaps we should back up a step. What exactly are you trying to accomplish, and must it be done in PHP? If it's just an email form, is there any way to do it using the services provided for you with MobileMe?
 
I only have $10 in my PayPal account, and, unless I really know what I am doing with web hosting, I am not trying anything with that.

This is what I want to do.

Iweb-- regular html form in html snippet say:

<html>
<form action="sendmail.php" method="post" name="test">
<input type="text" name="email">
<input type="text" name="message">
<input type="submit" value="Send!">
</form>
</html>

Easy, right?

Now, for the php task:

<?php
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;

mail( "myemail@host.com", "Mail!",
$message, "From: $email" );
header( "Location: http://blablabla.net" );
?>

This is all I want to do, and for the online form hosting, it either costs money or they only give you 2 or 3 forms. I like Wufoo, but i am not paying for that.

I looked into PHP because I wanted to process as many forms as a like, not just 2 or 3, and I would use all of the forms that I will put into my website.

Also, for this task ( HTML & PHP form processing ), whenever I double-click the sendmail.php file in my users/sites folder, I get an email with nothing in it because I opened the file. Is there any way to stop that?

Thanks...
 
Just a quick thing on your last question concerning it sending an email when you open the file. In your form add a hidden input:
HTML:
<input type="hidden" name="sent" value="sent" />
Then in PHP create an if statement:
PHP:
if ($_POST['sent'] == "sent") {
  // Your email code here
}
 
Port 80 on router

Hi op - you seem like a smart kid - you know what you're doing. Google up opening ports on ADSL routers. It's really no big deal. Most routers allow you to create backup config files before you start playing around with them. That way, if you screw up, revert to the last known working config!

You're really so close!

Look into who made your router and look up the instructions - explain to your dad what you propose to do - its perfectly safe & shouldn't be a big deal.

F
 
I know it isn't a big deal, but I don't want to bug him about something he doesn't think should be messed with.

I guess I'll just scrap this idea, but I know I can do it someway.
I just like working with this stuff. Maybe someday in the future I'll come back to it!
 
I did some Google searching to see if I could help solve your problem. It looks like all you want to do is create an HTML form and email it to yourself. There are many ways to do this, using PHP, JSP, ASP, CGI, etc. Unfortunately, MobileMe/iWeb does not support any of these.

One option to consider is a "free" web hosting service. WebHero.com is an example -- it looks like you can sign up for a "free" package that supports PHP as long as you buy your domain from them for $11.95/year. That's not too bad. Google "free web hosting" and you'll see hundreds of hits. I imagine they all work in similar ways. Though I can't vouch for any of them personally.

It's really too bad that MobileMe doesn't offer some kind of scripting services, especially for all the money Apple charges.

I know you're set on doing it yourself on your own computer (that's certainly the free option) but your dad is right to be at least a little cautious. There are security issues with running your own HTTP server, not to mention you'll need to keep it running 24/7.
 
The first link gave me a 404 error, but is not looking at your machine because it's not a proper domain (missing extension like .com, .net, etc.). The second link never connects to the server.

This is what you should see:
Picture 1.png

I don't get it because it says clearly on that page ( the default page index.html ) that you can share it with your friends and family all around the world, but they don't tell the truth apparently.
 
Tell me if you see this:

http://Jelvis.local/

Nope, not that either. That's usually the name of a computer on your network, which is inaccessible outside your network. Apple isn't lying to you, it simply doesn't tell you that depending on your setup, there may be other things you have to setup.

It seems like a router issue still, port 80 isn't being directed to your machine. If you want to do a quick test, you can plug the internet cable directly to your machine rather than to the router. That way your machine will have the IP address directly rather than what the router hands it, and your domain name will point directly to your machine rather than to the router. This is just for testing though since others n your home would likely want to use the internet.
 
I don't get it because it says clearly on that page ( the default page index.html ) that you can share it with your friends and family all around the world, but they don't tell the truth apparently.

Well, it's a standard template text. Apple didn't write anything in there to account for the fact that most users are probably behind a router/NAT or firewall, and additional steps are required before your family and friends can see your page.

Any web address that ends in a ".local" is by definition not visible by anyone outside your local network.

Edit: Ah, I think I found your problem. When I ping lost.webhop.net it resolves to IP 192.168.2.22. This looks like the internal IP address of your computer on your local network. What you need to do is go back to DynDNS and resolve it to the IP address your router gets from your ISP. It should have a very different set of numbers.

Going back to the lemonade example that's like telling me to visit "room 22" to find your site. I have no idea where room 22 is unless you first tell me that I need to go to 123 Main Street.

If you're not sure what the IP address should be, try visiting http://www.dslreports.com/ip and see what it tells you.
 
My current Ip address for lost.webhop.net is 192.168.2.22

My Internal IP Address: 192.168.2.22
My Router IP: 192.168.2.1
My dynDNS Auto Detected IP Address: 87.177.87.92

Which one do I stick in the IP Address at hosts in dyndns?
 
My current Ip address for lost.webhop.net is 192.168.2.22

My Internal IP Address: 192.168.2.22
My Router IP: 192.168.2.1
My dynDNS Auto Detected IP Address: 87.177.87.92

Which one do I stick in the IP Address at hosts in dyndns?

87.177.87.92 is the correct one. However, you still need to set up port forwarding. For the last time, there is no other way. Sorry.
 
My current Ip address for lost.webhop.net is 192.168.2.22

My Internal IP Address: 192.168.2.22
My Router IP: 192.168.2.1
My dynDNS Auto Detected IP Address: 87.177.87.92

Which one do I stick in the IP Address at hosts in dyndns?

The last one. Ones that start with 192.168 are only accessible internally to your network.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.