Angel: How're you feeling? Faith: Like I did mushrooms and got eaten by a bear.

'A Hole in the World'


Buffistechnology 3: "Press Some Buttons, See What Happens."

Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!


Theodosia - Jul 29, 2007 4:52:33 pm PDT #2295 of 25496
'we all walk this earth feeling we are frauds. The trick is to be grateful and hope the caper doesn't end any time soon"

The first gets an error:

Index of /
Icon Name Last modified Size Description[ ] listing6-1.php 16-Jan-2002 04:29 3.1K
Apache/2.0.59 (Unix) PHP/5.2.1 DAV/2 mod_ssl/2.0.59 OpenSSL/0.9.7l Server at 127.0.0.1 Port 8888

The second works, sort of, except that it doesn't seem to actually work work, but at least it gets a screen like it should!


§ ita § - Jul 29, 2007 4:55:15 pm PDT #2296 of 25496
Well not canonically, no, but this is transformative fiction.

htdocs isn't usually in a URL, but is rather the root of the directory that the web server points to.

That message isn't an error--it's a directory listing.


amych - Jul 29, 2007 4:56:08 pm PDT #2297 of 25496
Now let us crush something soft and watch it fountain blood. That is a girlish thing to want to do, yes?

Excellent. htdocs is the folder name Apache uses for web documents -- you'll want to put all the files you make in there. Of course, they shoulda documented it better!

(Oh, and the first wasn't an error -- it's just that ugly file listing you get when there's no index page)


Theodosia - Jul 29, 2007 4:57:17 pm PDT #2298 of 25496
'we all walk this earth feeling we are frauds. The trick is to be grateful and hope the caper doesn't end any time soon"

That's weird -- when I click on ita's link (which reads http: //127.0.0.1:8888/listing6-1.php ), it will open the PHP correctly. But if I open a new tab or window, it won't find anything.


Theodosia - Jul 29, 2007 4:58:45 pm PDT #2299 of 25496
'we all walk this earth feeling we are frauds. The trick is to be grateful and hope the caper doesn't end any time soon"

So the only place PHP code can live is in the htdocs directory if I'm going to run PHP, right?


Theodosia - Jul 29, 2007 4:59:42 pm PDT #2300 of 25496
'we all walk this earth feeling we are frauds. The trick is to be grateful and hope the caper doesn't end any time soon"

Sorry to be taking up so much of this topic. You guys are my lifeline. Also, I get really impatient when a techy thing that should work doesn't and everything I can think of to throw at it doesn't make even the slightest bit of difference.


§ ita § - Jul 29, 2007 5:00:11 pm PDT #2301 of 25496
Well not canonically, no, but this is transformative fiction.

Any file you want served up (PHP, HTML, whatever) should be under htdocs in the directory structure. You can do some stuff to map to other directories outside the tree, but it'd just be one more confusing thing to go wrong.


amych - Jul 29, 2007 5:00:33 pm PDT #2302 of 25496
Now let us crush something soft and watch it fountain blood. That is a girlish thing to want to do, yes?

For your current purposes, the only place anything non-database lives is htdocs.


Theodosia - Jul 29, 2007 5:05:32 pm PDT #2303 of 25496
'we all walk this earth feeling we are frauds. The trick is to be grateful and hope the caper doesn't end any time soon"

Good! And I found out there was an extra space in the URL I was pasting into the command, so that explains that!

My sanity, she is saved. Well, what little sanity I have is preserved. You know what I mean.

Thanks again!


amych - Jul 29, 2007 5:06:46 pm PDT #2304 of 25496
Now let us crush something soft and watch it fountain blood. That is a girlish thing to want to do, yes?

And I found out there was an extra space in the URL I was pasting into the command, so that explains that!

D'oh! My bad - I stuck the space in so you could see the URL rather than letting it be auto-linkified by the b.org.

Good luck!