Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: Egon

"I just do a search on "PHP""

ok - I did find the packages installed list and it is on the list.  However, when I search for it, all I find is  /etc/PHP4/Apache2/php.ini   (I browsed through more directories and found some stuff, but nothing that looks like a program, .exe, - what am I supposed to be looking for?  lol)

I tried pointing to that in the script line at the top & did do the chmod -a+x thing.

I don't even know how to run the script - when I click on it, it asks me what program to use to open it (no run command on the sub-menu) and I have no idea..   :-(

RT

206 posted on 03/30/2006 8:52:02 AM PST by RebelTex (Help cure diseases: http://www.freerepublic.com/focus/f-news/1548372/posts)
[ Post Reply | Private Reply | To 204 | View Replies ]


To: RebelTex
I don't even know how to run the script - when I click on it, it asks me what program to use to open it (no run command on the sub-menu) and I have no idea..

Not sure, in the GUI realm. In the command window mode, You can just type the name and hit enter, sort of like you'd do at a DOS prompt for a .BAT file.

I'm not going to be much help here. Need someone with a lot more Linux experience to bail us out.

207 posted on 03/30/2006 9:39:46 AM PST by Egon (We are number one! All others are number two... or lower.)
[ Post Reply | Private Reply | To 206 | View Replies ]

To: RebelTex
when I click on it, it asks me what program to use to open it

That happens for a couple of reasons. One reason is that even if Apache and PHP are properly configured, you still have to "open" the file from within the document directory of Apache (and through a browser - http://localhost/FaHUpload.php). Otherwise, it's just the OS trying to open a text file. The OS has no way of parsing that file.

Secondly, if you're trying to access the PHP script, and it's in the correct location for your web server (i.e., the document directory that is specified in httpd.conf), Apache still has to know about PHP extensions, and know that they're associated with the PHP installation on your computer. That way, instead of Apache filtering the text like it would with a regular HTML file, it sends it to the PHP preprocessor first. Then, any resulting HTML (probably none in this case) is sent to the browser that made the request. Here's an example of a change you might have to make to your Apache config file:

Find the httpd.conf file (maybe in /usr/local/apache/conf), and look for a line that is similar to:

AddType application/x-httpd-php .php

After it's set up, you'll need to copy the FaHUpload.php file to the proper document folder. Then, try accessing it through a web browser like I indicated a few paragraphs back. I'm pretty sure you can run PHP scripts without a browser, but I'm not sure how exactly - yet.
209 posted on 03/30/2006 1:07:04 PM PST by andyk (Go Matt Kenseth!)
[ Post Reply | Private Reply | To 206 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson