This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#26 2011-03-16 16:34:59

thebuilderdd
Scratcher
Registered: 2008-01-26
Posts: 1000+

Re: For my HTML project.

GeonoTRON2000 wrote:

thebuilderdd wrote:

A question... How can I do something like this on my website? (No ban)

Code:

<base href="http://scratch.mit.edu/">
<!--DO NOT CLOSE THAT TAG!-->
<?php
require_once("http://scratch.mit.edu/");
?>

What I got...
PHP Error Message

Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in /home/a6998818/public_html/scratch/index.php on line 3

Free Web Hosting

PHP Error Message

Warning: require_once(http://scratch.mit.edu/) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/a6998818/public_html/scratch/index.php on line 3

Free Web Hosting

PHP Error Message

Fatal error: require_once() [function.require]: Failed opening required 'http://scratch.mit.edu/' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a6998818/public_html/scratch/index.php on line 3

Offline

 

#27 2011-03-19 01:36:38

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

Re: For my HTML project.

thebuilderdd wrote:

GeonoTRON2000 wrote:

thebuilderdd wrote:

A question... How can I do something like this on my website? (No ban)

Code:

<base href="http://scratch.mit.edu/">
<!--DO NOT CLOSE THAT TAG!-->
<?php
require_once("http://scratch.mit.edu/");
?>

What I got...
PHP Error Message

Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in /home/a6998818/public_html/scratch/index.php on line 3

Free Web Hosting

PHP Error Message

Warning: require_once(http://scratch.mit.edu/) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/a6998818/public_html/scratch/index.php on line 3

Free Web Hosting

PHP Error Message

Fatal error: require_once() [function.require]: Failed opening required 'http://scratch.mit.edu/' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a6998818/public_html/scratch/index.php on line 3

Sad.
In php.ini you need to turn allow_url_include on.


http://i.imgur.com/BAEgGDL.png

Offline

 

#28 2011-03-19 09:03:54

cpumaster930
Scratcher
Registered: 2009-02-23
Posts: 100+

Re: For my HTML project.

cool story bro

that's actually pretty cool  tongue


http://i.imgur.com/Qd0lu.png

Offline

 

#29 2011-03-19 10:24:09

thebuilderdd
Scratcher
Registered: 2008-01-26
Posts: 1000+

Re: For my HTML project.

GeonoTRON2000 wrote:

thebuilderdd wrote:

GeonoTRON2000 wrote:


Code:

<base href="http://scratch.mit.edu/">
<!--DO NOT CLOSE THAT TAG!-->
<?php
require_once("http://scratch.mit.edu/");
?>

What I got...
PHP Error Message

Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in /home/a6998818/public_html/scratch/index.php on line 3

Free Web Hosting

PHP Error Message

Warning: require_once(http://scratch.mit.edu/) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/a6998818/public_html/scratch/index.php on line 3

Free Web Hosting

PHP Error Message

Fatal error: require_once() [function.require]: Failed opening required 'http://scratch.mit.edu/' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a6998818/public_html/scratch/index.php on line 3

Sad.
In php.ini you need to turn allow_url_include on.

I don't think there is one in 000webhost.

Offline

 

#30 2011-03-21 23:00:17

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

Re: For my HTML project.

thebuilderdd wrote:

GeonoTRON2000 wrote:

thebuilderdd wrote:


What I got...
PHP Error Message

Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in /home/a6998818/public_html/scratch/index.php on line 3

Free Web Hosting

PHP Error Message

Warning: require_once(http://scratch.mit.edu/) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/a6998818/public_html/scratch/index.php on line 3

Free Web Hosting

PHP Error Message

Fatal error: require_once() [function.require]: Failed opening required 'http://scratch.mit.edu/' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a6998818/public_html/scratch/index.php on line 3

Sad.
In php.ini you need to turn allow_url_include on.

I don't think there is one in 000webhost.

Actually, you would have to 000webhost because that's a server issue.
Tell them to please turn allow_url_include on in php.ini for your server.


http://i.imgur.com/BAEgGDL.png

Offline

 

#31 2011-03-26 15:12:39

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

Re: For my HTML project.

NO! WAIT! THERE'S A PHP FUNCTION!

Code:

<?php
ini_set("allow_url_include", "On");
?>

Perfect timing  big_smile .


http://i.imgur.com/BAEgGDL.png

Offline

 

#32 2011-03-26 15:28:50

thebuilderdd
Scratcher
Registered: 2008-01-26
Posts: 1000+

Re: For my HTML project.

GeonoTRON2000 wrote:

NO! WAIT! THERE'S A PHP FUNCTION!

Code:

<?php
ini_set("allow_url_include", "On");
?>

Perfect timing  big_smile .

Where do I put it?

Offline

 

#33 2011-04-02 12:23:58

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

Re: For my HTML project.

thebuilderdd wrote:

GeonoTRON2000 wrote:

NO! WAIT! THERE'S A PHP FUNCTION!

Code:

<?php
ini_set("allow_url_include", "On");
?>

Perfect timing  big_smile .

Where do I put it?

Top of the page.


http://i.imgur.com/BAEgGDL.png

Offline

 

Board footer