Welcome Guest, Not a member yet? Register   Sign In
include does not work
#5

[eluser]InsiteFX[/eluser]
PHP Net - include

Example #3 include() through HTTP:
Code:
<?php

/* This example assumes that www.example.com is configured to parse .php
* files and not .txt files. Also, 'Works' here means that the variables
* $foo and $bar are available within the included file. */

// Won't work; file.txt wasn't handled by www.example.com as PHP
include 'http://www.example.com/file.txt?foo=1&bar=2';

// Won't work; looks for a file named 'file.php?foo=1&bar=2' on the
// local filesystem.
include 'file.php?foo=1&bar=2';

// Works.
include 'http://www.example.com/file.php?foo=1&bar=2';

So maybe if you add the http:/ it may work!

InsiteFX


Messages In This Thread
include does not work - by El Forum - 07-05-2011, 12:40 PM
include does not work - by El Forum - 07-05-2011, 01:23 PM
include does not work - by El Forum - 07-05-2011, 01:26 PM
include does not work - by El Forum - 07-05-2011, 11:53 PM
include does not work - by El Forum - 07-06-2011, 05:24 AM
include does not work - by El Forum - 07-11-2011, 01:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB