A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 25 of 25

Thread: display user ip within swf ???

  1. #21
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    Okay, this is for PHP versions 4.1.0 and later what version does your host run?
    Attached Files Attached Files

  2. #22
    SaphuA mosterdfles_flash's Avatar
    Join Date
    Jan 2002
    Location
    Tha Couch
    Posts
    935

    ??

    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?
    'How Art Is The Visual While We’re Artificial…'

    Mail & MSN
    My Not Finisched Page!
    Nick: SaphuA

  3. #23
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    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?

  4. #24
    Member
    Join Date
    Oct 2002
    Location
    Canada
    Posts
    39
    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
    My name is DjXtraKtoR,
    and I'm a FLASH-O-HOLIK
    BlaZed and

  5. #25
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222


    Glad it working, enjoy PHP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center