PDA

View Full Version : help with PHP


coolioman
03-24-2005, 03:17 AM
i am having alot of trouble using php.

my first question:
i have heard that you can test your php file by typing:

http://localhost/phpfile.php/

that doesnt seem to work for me....it just says 'page cannot be displayed"
do i have to have a domain name?


second question: with flash i want to have the user input some text in a text area, and when he presses 'send' i want the data he entered to be sent to a blank .txt document (preferrably a blank html document.) i have read a tutorial on doing this out of flash, but it doesnt seem to work well


any help will be appreciated.

saumya
03-24-2005, 03:29 AM
ok.that means your php is not installed properly or the second reason might be that you are typing the wrong address in the browser.
first thing is first, lets install it properly.
where r u trying to install php,is it win 9X searies, win 2000,win xp or the best Linux.ok after that which server r u using.is it pws,iis or apache?Actually if you are on linux,i canot help you.i need some time to jump to that platform too. :D

after all this,if you think you have installed php properly(i asume you are in windows iis ),then put your php page in the root directory of your server(typically C:\Inetpub\wwwroot).then you can use http://localhost/phpfile.php to view your page.again you have to be sure that your server is configured to run on port 80 which is by diffault and that has been configured as localhost. if not then you have to access your file using the ip address and port name like(http://127.0.0.1:80).too much but one step at atime you are there.
regarding sending variable to php just use

//method
onRelease = function(){
getURL("name of page",Method);
}

and then read that value through php
saumya

coolioman
03-24-2005, 11:52 AM
1. i am running windows xp.


2. i just downloaded and installed iss; now what?

3. the folder C:\Inetpub\wwwroot\ doesnt even exist on my computer

4. how exactly would i use tour actionscript code.....im a little bit dumb

5. when i tried to install php on my compy, it was installed but right before it finished the following message appeared:

Error trying to access the local web server: GetObject Failed. You will need to manually configure iss via the management console.

i hope you can help

Zappo
04-11-2005, 07:57 PM
ISS Is not possible on XP Home edition :mad:.
Maybe that's the problem?

coolioman
04-14-2005, 02:10 AM
nah, i have pro. but I corrected my problem by downloading the abyss web server which is extremely easy to use.

thanks, though

Flash Gordon
04-14-2005, 02:15 AM
a new php server for windows XP home just released here:
http://www.phpbuilder.com/