April 1, 200817 yr comment_6357 Thanks for this wonderful piece of software, US has made my life much easier with such a simple testing server. However, I am trying to run the following php function to no avail. <?phpinclude('http://waterdata.usgs.gov/nwis/current?format=rdb&site_no=01420500');?> Every time I try to run the include I receive a warning that states: "Warning: include() [function.include]: URL file-access is disabled in the server configuration in W:\www..." I assume there is a way to enable this function in one of the configuration files, is it in the Apche or PHP configurations? Could someone please let me know where to look and what to change? Thanks. James Report
April 1, 200817 yr comment_6358 Open php.ini location: *\Uniform Server\udrive\usr\local\php Located the following section (around line 505) and add the line shown in bold: ;;;;;;;;;;;;;;;;;;; Fopen wrappers ;;;;;;;;;;;;;;;;;;; ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.allow_url_fopen = Onallow_url_include = 1 Note: When including external pages think about code Injection vulnerabilities! All the bestRic Report
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.