Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Using include for URL acccess

Featured Replies

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.

 

<?php

include('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

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 = On

allow_url_include = 1

 

Note: When including external pages think about code Injection vulnerabilities!

 

All the best

Ric :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.