I’ve have difficulty running php scripts on my newly installed suse 10.1. I have already done the ff.
-Installed all packages of apache2 using Yast.
-Installed all modules and extensions of php5 using Yast.
-Installed mysql package using Yast.
-Checked and verified php5 included in the apache2 config files using command: httpd2 -D DUMP_MODULES.
But when I tried to open my php script using firefox and konqueror, the “open with” window appeared. Please help me!
I have tried all your suggestions, I checked the runlevel services and apache2 is running. I’ve reinstalled all php5 files from cd and checked apache2 modules php5 is included.
I downloaded live codes from the net and tried to open it with firefox but the “Open with…” message appeared.
I downloaded live codes from the net and tried to open it with firefox but the “Open with…” message appeared.
Two things here.
What do you mean by “downloaded live codes”?
Secondly, you must view the page via Apache not directly from the file system. In other words, open Firefox, and type in http://localhost
You should get the apache welcome page. Next try your php page, which will be http://localhost/some/path/to/your/page.php
I mean, I used a php script that I downloaded and is sure to be running. I tried http://localhost/..path../myfile.php - the output on firefox - error loading the page (something like that.) and when I click the message to check the server …the output is “It works”, nothing else.
I’ll try this again with a simple script and store it on htdocs. I’ll inform you tomorrow. I’m signing out already. Thanks for your time again GransRemedy.
http://localhost/myscript.php is the correct way of viewing your pages, but they must be in the directory specified in Apache’s document root.
I’ve not used PHP2SMS before, however if you are seeing php code in your page, then this usually means that the script has not used the open/close tags properly (since your other page worked ok we know PHP itself is working fine).
According to m3rlin.org, PHP2SMS just sends your message to your mobile phone provider’s website (which then puts it onto the phone network) - so you need to make sure that you can send a message using their website first, then try that script.
Good luck
Wait?!? It doesn’t work like that? I’m going to have to rethink my entire
strategy for world domination! Drat! ncurses! I was requesting http://localhost/etc/shadow though, I’m not stupid!
Unfortunately /etc/shadow doesn’t even have world read permission, so Apache couldn’t read it. But with /etc/password at least you can reduce the amount of guessing.
Yes I know it’s all in jest.
It’s just to point out to the OP that there are good reasons why some things are they way they are.