Okay, this is for PHP versions 4.1.0 and later what version does your host run?
Printable View
Okay, this is for PHP versions 4.1.0 and later what version does your host run?
It wont work for me :S...
I dont know what version of php my server has (its a free server called Lycos), is there not an other way to make this?
You could use ASP, but again that relies on your host allowing you to use ASP scripts. Did you try replacing the $_SERVER['REMOTE_ADDR'], with $HTTP_SERVER_VARS['REMOTE_ADDR'] in the PHHP file?
Thank You , catbert303
I just completed the Apache / php install .
and it is working.
I loaded the ip test to the server as .html and it displayed the code in the box.
BUT when I saved it as a .php file it worked. Thank You Again.
I have been puting php off because I figured if I couldn't even
install it, how the heck could I could ever use it.
For anyone running XP and struggling as I was,I ( with the help of
catbert303, and alot of reading) made the following changes:
==================================================
PHP
Xtract the zip into a new sub-directory called c:\php4win.
To configure PHP4, create a sub-directory called c:\phpWeb. This is where your PHP files
will reside. Rename the file c:\php4win\php.ini-dist to php.ini. Open this php.ini file
with a text editor and change the doc_root and extension_dir lines so that they read as follows -
doc_root = "c:\phpWeb" ;
extension_dir = "c:\php4win"
Then move the two-file php.ini and php4ts.dll to c:\windows. If you haven't already,
make sure you delete the php.ini file from c:\php4win as otherwise it may cause conflicts
later.
==================================================
Configure Apache for PHP4
search DocumentRoot change to
DocumentRoot "C:/phpWeb"
search <Directory change to
#<Directory "C:/Program Files/Apache Group/Apache2/htdocs">
<Directory "C:/phpweb">
Then under the line AddType application/x-tar .tgz add the lines:
ScriptAlias /php4/ "C:/php4win/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
Action application/x-httpd-php "/php4/php.exe"
==================================================
THEN I saved published my .swf in the C:/phpweb directory,
added <PARAM NAME=movie VALUE="****.swf?ip=<?php echo $_SERVER['REMOTE_ADDR']; ?>"> from Catbert 303,
and saved it as testip.php
and DONE it works!
==================================================
Along with the help of Catbert 303, I found these two tutorials helpful
a tutorial by Jeffrey Hill,and a tutorial at
http://in.geocities.com/samdarshipal...-php-mysql.htm .
I searched and read sifting through all the docs, files... for two days straight. I hope this helps others as much as it has
empowered me.
...And Thank You FlashKit .
DjXtraKtor
:D
Glad it working, enjoy PHP :)