Jump to content

tnesler

Members
  • Posts

    8
  • Joined

  • Last visited

tnesler's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hello! I am learning how to interact with text files and I created a PHP file with this line: $myfile = fopen("C:Tomformfile.txt", "w") or die("Unable to open file!"); Evidently the "f" character is picked up as a command because I got this error message: Warning: fopen(C:Tomormfile.txt) [function.fopen]: failed to open stream: Invalid argument in C:xampphtdocsFormFile.php on line 116 Notice that the f has been changed to o Do I need to put in a second in my statement? Thanks for your guidance on this! Tom Nesler
  2. So, the PHP extension triggers the PHP JIT compiler and the HTML is only read by the browser? That makes sense! Thanks!
  3. Thanks for the tips. Changing the file extension fxed everything. I am somewhat confused by the statement "Also, if you're trying to run PHP code, you should name it a .php file instead of .html." I was under the opinion that websites used HTML files with embedded PHP rather than PHP files with HTML statements in them. If this is the case, then even if there is a single line of PHP code, then you use the PHP extension? Thanks for your help! Tom Nesler
  4. Hello! I am trying to execute the example form validation form from the PHP tutorial. I copied the complete form to a file called Validate.Html I am using Xampp as my PHP work area. Normally, putting the file in the HtDocs folder and then using localhost to run the file works fine. However, when I try to run this file, I get an error code 403 (Access forbidden). I think this is a problem with a setting in the http.conf file, but I don't know where it is. The htDocs folder has this setting: <Directory "C:/xampp/htdocs"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> Any suggestions on how to fix this? Thanks in advance! Tom Nesler
×
×
  • Create New...