Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
only parse php in specified folders
Name: jake1025 Date: November 29, 2005 at 19:06:44 Pacific OS: xp home sp2 CPU/Ram: 800/256
Comment:
im running a simple Apachee 2.0.49/php 4.3.8 web server
lets say i had the following dirs in my web root:
dir1 dir2 dir3 dir4 dir5
how would i go about setting apache/php to allow php parsing in, for example, dir1 and dir2, but not allow parsing in the rest of the dirs?
Summary: ok, it didn't work as written, but it was close enough for me to play with until I got it to do what I wanted it to do. I installed PHP on a dummy server with IIS, and modified the script to read as ...
Summary: OK, one thing at a time: "Can you explain what this line does? $selected = ($category==$catValue)?' selected="selected"':'';" That is called a ternary operator. Basically it is a sort of shorthand for...
Summary: First, you'll have to save the file as .php, not .htm. The server will only parse the PHP if the file extension is associated with the PHP engine (in the web server, not windows). If it still doesn't...