The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
$variable inside file_get_contents
#6
Yes, I have added a column to the DB and it works like intended.

Let's say the column contains 1234567.

I can echo $user->data()->MyOwnColumn and it will correctly display "1234567".

I can also do the following:

Code:
$test_var = file_get_contents('http://awebsite.com/'.$user->data()->MyOwnColumn.'/other/stuff', NULL, NULL, 5, 2);
Code:
echo $test_var;

and that will correctly display "1234567"

I can reload the following using javascript:

Code:
$test_var = file_get_contents('http://awebsite.com/1234567/other/stuff', NULL, NULL, 5, 2); echo $test_var;

I can't reload the following using javascript:

Code:
$test_var = file_get_contents('http://awebsite.com/'.$user->data()->MyOwnColumn.'/other/stuff', NULL, NULL, 5, 2); echo $test_var;

Maybe it's a javascript limitation?

Thanks Smile
  Reply


Messages In This Thread
$variable inside file_get_contents - by MarcE - 03-20-2017, 08:02 AM
$variable inside file_get_contents - by JUG - 03-20-2017, 09:09 AM
$variable inside file_get_contents - by mudmin - 03-20-2017, 11:21 AM
$variable inside file_get_contents - by MarcE - 03-21-2017, 05:12 PM
$variable inside file_get_contents - by JUG - 03-21-2017, 06:56 PM
$variable inside file_get_contents - by MarcE - 03-22-2017, 08:10 AM
$variable inside file_get_contents - by mudmin - 03-23-2017, 09:58 AM
$variable inside file_get_contents - by MarcE - 03-24-2017, 09:16 AM
$variable inside file_get_contents - by dan - 03-24-2017, 10:31 AM
$variable inside file_get_contents - by MarcE - 03-27-2017, 06:54 AM
$variable inside file_get_contents - by mudmin - 03-30-2017, 04:33 PM
$variable inside file_get_contents - by MarcE - 04-13-2017, 01:23 PM
$variable inside file_get_contents - by MarcE - 04-19-2017, 05:13 PM
$variable inside file_get_contents - by mudmin - 04-20-2017, 10:51 AM

Forum Jump:


Users browsing this thread: 4 Guest(s)