May 6, 201016 yr Hi everyone! I am new at php: I know how to write php documents though. I am trying to make a php form that sends information from a visitor that inputs it, to where the info is meant to go. I don't know where the info is meant to go. My hosts have enabled MySql for me. So, i linked mailform.php to my website to see if it would open, but the page opens up to this: The page cannot be found The page you are looking for might have been removed, had its name changed, or is temporarily unavailable .... Does this mean that php is not enabled on my hosts server? Can i install php onto the part of my hosts server that i've rented using ftp like fireftp? Should i find a new host who has php enabled? Or am i missing the whole plot here!! I need this info urgently as i am beginning a new website next week, and they are going to want to have forms that can send the info directly to their email, or whatever. THank you for all help in advance!mailform.php
May 6, 201016 yr Sounds like the file is either not uploaded correctly or you are typing the url incorrectly Also edited your mailform <?php if (isset($_REQUEST['email'])) //if "email" is filled out, send email { //send email $email = $_REQUEST['email'] ; $subject = $_REQUEST['subject'] ; $message = $_REQUEST['message'] ; mail( "mail@cybadesign.co.za", "Subject: $subject", $message, "From: $email" ); echo "Thank you for using our mail form"; } else //if "email" is not filled out, display the form { echo "<form method='post' action='mailform.php'> Email: <input name='email' type='text' /><br /> Subject: <input name='subject' type='text' /><br /> Message:<br /> <textarea name='message' rows='15' cols='40'> </textarea><br /> <input type='submit' /> </form>"; } ?>
May 6, 201016 yr Sounds like the file is either not uploaded correctly or you are typing the url incorrectly Also edited your mailform <?php if (isset($_REQUEST['email'])) //if "email" is filled out, send email { //send email $email = $_REQUEST['email'] ; $subject = $_REQUEST['subject'] ; $message = $_REQUEST['message'] ; mail( "mail@cybadesign.co.za", "Subject: $subject", $message, "From: $email" ); echo "Thank you for using our mail form"; } else //if "email" is not filled out, display the form { echo "<form method='post' action='mailform.php'> Email: <input name='email' type='text' /><br /> Subject: <input name='subject' type='text' /><br /> Message:<br /> <textarea name='message' rows='15' cols='40'> </textarea><br /> <input type='submit' /> </form>"; } ?> mmmmmm if your building that form for a client its not near secure enough u may use my secure contact form if you like and edit it as see fit My contact form Also if you ever have a question if php is installed just create a file called test.php and insert into this file <?php phpinfo(); ?> If it shows all the php info such as the version and such php is indeed installed if it just shows phpinfo(); then its not installed hope this helped
May 6, 201016 yr Author Thanks for getting back to me! i did what you said with the php file and it still says The page cannot be found The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. I couldn't have done it wrong, i linked it to my index.html file with this .. <a href="test.php">test</a> and they are in the same folder in my server; and it works with all my other linked files. I know that form is not secure, it is just a tester to test out the php, but thank you for the secure form! I'm gonna save it onto my hardrive. I think i've been done in by my hosting company. I've been looking at other hosting companies in SA and they all offer cPanel or something similar, and excellent customer support, etc. My hosts just told me that i am on my own! oops!
May 6, 201016 yr Thanks for getting back to me! i did what you said with the php file and it still says The page cannot be found The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. I couldn't have done it wrong, i linked it to my index.html file with this .. <a href="test.php">test</a> and they are in the same folder in my server; and it works with all my other linked files. I know that form is not secure, it is just a tester to test out the php, but thank you for the secure form! I'm gonna save it onto my hardrive. I think i've been done in by my hosting company. I've been looking at other hosting companies in SA and they all offer cPanel or something similar, and excellent customer support, etc. My hosts just told me that i am on my own! oops! Have you a link to your site
May 6, 201016 yr www.cybadesign.co.za I can only see five pages in your site and test.php does not appear to be there, can you upload it again
May 6, 201016 yr Author it is there on the home page, and then go to the drop down box of contact us!
May 6, 201016 yr it is there on the home page, and then go to the drop down box of contact us! I can see the link to test.php, but I generated a sitemap and test.php does not show as being on your server
May 6, 201016 yr Author i know!!! it is the worst thing ! Here is a screen shot to show it's in there! It makes no sense!
May 6, 201016 yr i know!!! it is the worst thing ! Here is a screen shot to show it's in there! It makes no sense! Can you save a file called testing.php and put the below code in at as suggested by webdesigner93 <?php phpinfo(); ?> then upload to your server
May 6, 201016 yr Author ok, that's what i had for starters, but no harm in making sure there are no errors with setting it up. I've put <?php phpinfo(); ?> into test.php and put a link on http://www.cybadesign.co.za/ top right hand corner 'TEST' you can't miss it!
May 6, 201016 yr ok, that's what i had for starters, but no harm in making sure there are no errors with setting it up. I've put <?php phpinfo(); ?> into test.php and put a link on http://www.cybadesign.co.za/ top right hand corner 'TEST' you can't miss it! What directory are u putting the php files in cause the link to the file should be http://www.yoursite.com/mydir/test.php if its not in the main root directory u cant just write it like this http://www.yoursite.com/test.php
May 6, 201016 yr ok, that's what i had for starters, but no harm in making sure there are no errors with setting it up. I've put <?php phpinfo(); ?> into test.php and put a link on http://www.cybadesign.co.za/ top right hand corner 'TEST' you can't miss it! It looks like your host may not be using apache server, instead they may be using IIS, if thats the case then your hosts server will need to modify the php.ini file, and I have a feeling they wont be very helpful in doing that
May 6, 201016 yr Author I don't have a file named directory. The link is in the root (i think that's what it's called) with my index.html page as i showed you in the screenshot. With another file, say, contactus.html my link from index.html is <a href="contactus.html">contact us</a>, and it comes up as www.cybadesign.co.za/contactus. I've done the same with test.php: <a href="test.php">TEST</a> Do you think my hosts don't support php?
May 6, 201016 yr Author i agree, they have only stood in my way so far, and i can't believe you can run a business being like that (not having client relations in mind!!) I should be asking them all these questions! Thank you pat24 and webdesigner93 for your help!
May 6, 201016 yr i agree, they have only stood in my way so far, and i can't believe you can run a business being like that (not having client relations in mind!!) I should be asking them all these questions! Thank you pat24 and webdesigner93 for your help! If this is urgent I can host it for you for free till you sort out a new host or sort the existing one
May 6, 201016 yr Author that is very kind of you to offer! I do need it in a hurry. I think that i will beable to change my host in time for my client who i am doing a website for starting next week; but, let me see how next week goes! I will be so happy to sort this all out and get back to the designing! Thanks again!!!
May 6, 201016 yr that is very kind of you to offer! I do need it in a hurry. I think that i will beable to change my host in time for my client who i am doing a website for starting next week; but, let me see how next week goes! I will be so happy to sort this all out and get back to the designing! Thanks again!!! No Problem:D
May 6, 201016 yr Some simple questions should solve this really. 1) When you signed up for your hosting did you choose a linux or a windows server 2) Does the file have permissions associated with it (web servers need access to files in order to serve them) 3) If you cannot solve this from the previous two questions, can you post a link to your hosting provider (I'm guessing Web Africa). Do you know what plan you went with when you signed up for their service? It should be on any welcome emails
May 7, 201016 yr Hi Elfynity, In my experience. If you are looking for a good local host try hetzner they offer good linux based hosting options (no I don't work for them or have any affiliation at all (-; they have just been good with my php sites so far )
May 7, 201016 yr Author Some simple questions should solve this really. 1) When you signed up for your hosting did you choose a linux or a windows server 2) Does the file have permissions associated with it (web servers need access to files in order to serve them) 3) If you cannot solve this from the previous two questions, can you post a link to your hosting provider (I'm guessing Web Africa). Do you know what plan you went with when you signed up for their service? It should be on any welcome emails
May 7, 201016 yr Author Hi Jay, 1.They didn't ask me whether i needed a linux or windows server. 2. I'm not sure about the pernmissions, but they activated mysql after i asked them to. 3. It isn't Web Africa, it is www.comput8.co.za. And I did ask them to send info as they were in the process of changing domain names and the info wasn't on their site; and the emails were not clear, i only found out after my domain was registered how many emails i could use, and i saw from my ftp how many MB's were assigned to me. This is my first web hosting experience, and i have learnt alot! for eg: Go with a hosting provider that is customer supportive! Make sure they are willing to give you all the information you ask before you sign up with them. If they take a long time to get back to you and are vague about their services, it is best to use another host! What irritates me is that they should've told me all these things from the start. I know it is in my interests to know; but from a customer-relation (decency) point of view, they could have come out clear about it and offered a few things i wasn't aware of upfront! Like, now i know that most hosts offer a cpanel, mysql, php and CMS as standard customer support features! I think the plot here with these hosts is that they wanted to do my site for me, and because i'd rather do it myself, it is an all or nothing situation! Interestingly enough, I've been given the opportunity at a postion at another web design company, and the owner that i've been dealing with is very happy about my site, and my web business, cos at the end of the day, i am not competition for him, he realises that there is more than enough space and customers in this world to work together to some extent so everyone benefits. THat's just the way i see it - i suppose alot of people don't work that way!!! Sorry, this landed up being a huge message - I am feeling a bit better to have got all that out though! Time to move on to a much better hosting service!
May 7, 201016 yr Few quick tips when searching for a hosting company: - Run a quick search on www.whois.net, find out how long the company has been in business for, an example of Go Daddy: Status: clientUpdateProhibited Updated Date: 08-dec-2009 Creation Date: 02-mar-1999 Expiration Date: 02-mar-2019 - Check the company has support during normal working hours at minimum - Talk to the webhost beforehand - Tell them what you need. - Pay monthly - Don't go for "unlimited" packages and make sure you read something called the Fair Usage Policy beforehand - this outlines what the companies definition of unlimited really is. - Register your domains with a 3rd party company - This leaves you in a better position if you decide to change provider. - Make sure they're a registered company Sorry about the poor English... Long day at work
May 8, 201016 yr Author Few quick tips when searching for a hosting company: - Run a quick search on www.whois.net, find out how long the company has been in business for, an example of Go Daddy: - Check the company has support during normal working hours at minimum - Talk to the webhost beforehand - Tell them what you need. - Pay monthly - Don't go for "unlimited" packages and make sure you read something called the Fair Usage Policy beforehand - this outlines what the companies definition of unlimited really is. - Register your domains with a 3rd party company - This leaves you in a better position if you decide to change provider. - Make sure they're a registered company Sorry about the poor English... Long day at work
May 8, 201016 yr Author This is incredibly informative! Thank you very much!!! I have some questions, if that is ok??? - i have found http://www.amplehosting.co.za/web-hosting/international/ and as you can see by the page, they offer a bi-annual payment (which works out to R22/month). What would be wrong with paying bi-annually in this case? - their whois doesn't show a creation or expiration date?? - I'm not planning on going for an unlimited package, so, I'm ok with not looking into the fair usage policy (also, I don't know where on their site to look for it) - and, KieranA, When you say register your domain with a third party, can i register a domain name say with www.noisehosting.co.za, and then build the site using amplehosting's server? Thank you SO much for your help!
May 8, 201016 yr - and, KieranA, When you say register your domain with a third party, can i register a domain name say with www.noisehosting.co.za, and then build the site using amplehosting's server? The answer to this question is yes, all you would have to do is change the nameservers (the dns) to where you are hosting the site. Just make sure when you buy the domain name that the company has that facility readily available. Pat
May 8, 201016 yr Author This is something to remember. I guess i could be totally upfront with the company i want to register the domain name with and say - "Guys, just register my domain name; i'm transfering it to another server - thank you!" ??
May 8, 201016 yr This is something to remember. I guess i could be totally upfront with the company i want to register the domain name with and say - "Guys, just register my domain name; i'm transfering it to another server - thank you!" ?? Any reputable company shouldnt have a problem with that, they should also tell you how to do it.
May 8, 201016 yr - I'm not planning on going for an unlimited package, so, I'm ok with not looking into the fair usage policy (also, I don't know where on their site to look for it) If they don't have a Fair Usage Policy then it'll most likely be somewhere within their terms & conditions. I found this in their T&C: 6) High resource use policy Resources are defined as bandwidth, processor utilization, memory, or disk space. AmpleHosting may implement the following policy to its sole discretion: When a website is found to be monopolising the resources available, AmpleHosting reserves the right to suspend that site immediately. This policy is only implemented in extreme circumstances and is intended to prevent the misuse of our servers. Customers may be offered an option whereby AmpleHosting continues hosting the website for an additional fee or the client may choose to upgrade to a (semi-)dedicated plan. Uploads via scripting languages We limit uploads made via scripting languages - including PHP, ASP and ASP.NET - to a maximum of 20 MB per file. Cron jobs may have an interval of no less than 5 minutes. - i have found http://www.amplehost.../international/ and as you can see by the page, they offer a bi-annual payment (which works out to R22/month). What would be wrong with paying bi-annually in this case? If the price is affordable then really that's fine. As long as the company has a registered office and seems to be following international business laws. A bit of googling reveals that they have used an external monitoring tool, found here: http://www.webhostingstuff.com/uptime/AmpleHosting.html It shows their up-time and how long they've been in business, might not be the most reliable tool - however, it'll give you an insight into the company. I personally believe that this company seems a fairly good one. They say 24/7 support by email which is always good. Go for it
May 8, 201016 yr Author 20mb per file sounds like alot of php!!! since each file is usually under 5k. I think they are so cheap, that it may be worth a try and maybe a few rands wasted if it doesn't work out; but I'm also quite convinced of their credibility up to this point. The information you have given me here is invaluable! Thank you hugely for doing a google search - i really wouldn't have known what to look for!
May 8, 201016 yr 20mb per file sounds like alot of php!!! since each file is usually under 5k. I think they are so cheap, that it may be worth a try and maybe a few rands wasted if it doesn't work out; but I'm also quite convinced of their credibility up to this point. The information you have given me here is invaluable! Thank you hugely for doing a google search - i really wouldn't have known what to look for! The upload limit refers to something different - If you were to write a PHP script which allows users to upload their own images then those images would be limited to 20mb per file. Basically you can only allow people to upload a max of 20mb at a time to your server. (which is fine for the majority of sites)
May 11, 201016 yr Author I have signed up with a new hosting company www.noisehosting.co.za/ and am in the process of transfering my site! Thank you everyone from this post for your help! SErver things will be alot easier in the future i am sure!
May 14, 201016 yr Author hi everyone! I am so happy to have awesome new hosts! I now have cpanel and webmail and php. I got Webdesigner93's formail to work, and the email goes through to my email client (thunderbird) without a problem. But, when i try to access it off webmail, it says that Mail Failure - No recipient addresses. I'm not sure what i've done wrong here!
Create an account or sign in to comment