<font face="trebuchet ms,sans-serif"><i>/var/www/</i> is the root folder of Apache, everything inside it would be in <i>localhost/</i><br><br>Example: <br>/var/www/myscript.php = </font><font face="trebuchet ms,sans-serif">http://</font><font face="trebuchet ms,sans-serif">localhost/myscript.php<br>
<br></font><font face="trebuchet ms,sans-serif">/var/www/some_directory/myscript.php = <a href="http://localhost/">http://localhost/</a></font><font face="trebuchet ms,sans-serif">some_directory/</font><font face="trebuchet ms,sans-serif">myscript.php</font><br>
<font face="trebuchet ms,sans-serif"><br>and so on.<br><br>This rule can be modified, by using mod_rewrite you can create rules mapping the url to specific scripts. That is a more complex aproach, i think the best is to master absolute paths and urls, and only after that try to learn about mod_rewrite.<br>
<br clear="all"></font>Atenciosamente,<br>__<br><b><font color="#3366ff">Paulo Sampaio</font></b><br><i><font color="#999999"><span style="font-size: x-small;">Desenvolvimento Web</span></font></i><br>
<br><br><div class="gmail_quote">2011/2/9 Ashim Kapoor <span dir="ltr"><<a href="mailto:ashimkapoor@gmail.com">ashimkapoor@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><font face="trebuchet ms,sans-serif">That is not the right way to open php scripts, you should navigate to them using yout browser. If you simply double click the php file, firefox will load something like:<i> <br>


<br>file:///var/www/myscript.php</i><br><br>It won't work because php needs to be interpreted on demand. Apache, your webserver runs this task diferently it invokes the php interpreter runs it and the result is then presented to the browser. For that you to access, thru your browser, something like <br>


<br><i><a href="http://localhost/myscript.php" target="_blank">http://localhost/myscript.php</a></i><br></font><br></blockquote></div><div><br>How would i open this file:///var/www/Php and MySql Bible/ch4/file1.php with the localhost way ? <br>

As far as i remember till today afternoon ALL php files withing the var/www folder would open in FF by clicking on them.<br></div></div>
<br>--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
<br></blockquote></div><br>