- If you need clarification, ask it in the comment box above.
- Better answers use proper spelling and grammar.
- Provide details, support with references or personal experience.
Tell us some more! Your answer needs to include more details to help people.You can't post answers that contain an email address.Please enter a valid email address.The email address entered is already associated to an account.Login to postPlease use English characters only.
Tip: The max point reward for answering a question is 15.
Your web page must have a .php extension (and your provider must support PHP). Then, your code must output something, even a simple
print "Hello, world";
at this point, you modify your web page so that the HTML code, at some point, reads
<?php Your code ?>
and at that point you'll see in the browser the output of said code; or possibly an error. Remember that if your provider chose to not let users (that includes you!) see any errors, you'll see absolutely nothing. In this case my suggestion is to start simple, or download a WAMP installation to try the code at home on your PC before uploading to your website.
I suggest you use freely available php frameworks such as yii, cakephp, joomla, drupal and so on. Some of these would already include an upload page. The advantage of using these kinds of frameworks is that it would ease and speed-up your development.
Hello, if you are using some engines (as joomla, mambo...) on global site configuration (Show errors) you can turn it off. If you can control your database configuration on your hosting, turn of display errors tag.
Internal Server Error 500 is usually caused by either a malformed cgi script or an invalid directive in an .htaccess file located either in the same directory as the page throwing an error, or in any directory above it.
Have you recently uploaded or editted an .htaccess file that includes mod_php related directives such as php_value ..., php_flag ...?
1.Create a blank file and call it "myfile.php" – The file must end with the ".php"
2.Use only this line of code -
<?php phpinfo() ; ?>
3.Save the file and upload the file to your website server.
4.Go to www.mywebsite.com/myfile.php
If you see the line of code you wrote, it means you can't run PHP, if you see the PHP information it means you can run PHP on your server.
This error means that the program doesn't understand the code you wrote.
If you are lucky the error points to the file and the line number where PHP got confused. Sometimes PHP points directly at the error, but other times PHP is confused as a result of an earlier error in the script.