Re: [PHP] Re: Pulling my hair out over an include_once();
Hi, As the error says, this is a problem with the server configuration. In your php.ini file, allow_url_include should be enabled. As an alternative, if you have allow_url_include off, but allow_url_fopen on, you can file_get_contents() that URL and eval() it. Keep in mind you need *absolute* trust that the URL won't serve malicious PHP code, or change and break your site. If you need to run this code, it's a lot better to save the file from your browser and store it with your site, then include it locally. It'll be also faster this way. Regards, Stan Vassilev ah, i forgot to properly phrase my question... what am i doing wrong, and how do i make it work? slash, could you guys/girls point me towards a tutorial that will give me a hand? Thanks again, Watson On Sun, Mar 21, 2010 at 1:00 AM, Watson Blair wrote: Hey all, i'm sure i'm missing something glaringly obvious, but i have yet to find a solution to this online... so heres the line of code that i'm getting hung up on: http://www.jennysjunket.com/magpierss/rss_fetch.inc ");?> which gives me this: *Warning*: include() [function.include]: URL file-access is disabled in the server configuration in */home/content/81/5634781/html/ebay.php* on line*1* *Warning*: include(http://www.jennysjunket.com/magpierss/rss_fetch.inc) [ function.include]: failed to open stream: no suitable wrapper could be found in */home/content/81/5634781/html/ebay.php* on line *1* *Warning*: include() [function.include]: Failed opening ' http://www.jennysjunket.com/magpierss/rss_fetch.inc' for inclusion (include_path='.:/usr/local/php5/lib/php') in * /home/content/81/5634781/html/ebay.php* on line *1* * * ive got all of my permissions set as open as i can, but i'm still baffled about it. Thanks, Watson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: help, please, understanding my problem
Thanks all. I rediscovered DIFF, compared the source for the first and second rendering. Besides the unique variable names there was also the message ... which contained imbedded single quote marks. When I changed them to imbedded double quote marks the problem went away. ""Stan"" wrote in message news:11.66.00376.2ce92...@pb1.pair.com... > I have a PHP page that has > require_once("genMyOverlay.js.php"); > . > . > . > echo ""; > echo "doit(\"mydiv\");"; > echo ""; > > genMyOverlay.js.php contains: createDiv() (see below) that creates a ID="mydiv"> and sets it up to overlay a portion of the wbe page and > doit()starts it off. > > invoke the web page once and it works like it should. invoke the web page a > second time (and thereafter until a new session) and it gets error: > "doit is not defined" > > view the source (at the client browser) and it is identical both (all) times > > can anyone please help me understand what is happening? > > genMyOverlay.js.php contains > > echo "<script language=\"JavaScript\">"; > echo "function createDiv()"; > echo " {"; >. >. >. > echo " }"; > echo "function doit(ElementID)"; > echo " {"; > echo " creatDIV()"; >. >. >. > echo " }"; > echo ""; > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: help, please, understanding my problem
It works like it is ... once. What I don't understand is why the client browser(s I have tried it with Firefox and IE 6) can't find the Javascript function the second time. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] help, please, understanding my problem
I have a PHP page that has require_once("genMyOverlay.js.php"); . . . echo ""; echo "doit(\"mydiv\");"; echo ""; genMyOverlay.js.php contains: createDiv() (see below) that creates a and sets it up to overlay a portion of the wbe page and doit()starts it off. invoke the web page once and it works like it should. invoke the web page a second time (and thereafter until a new session) and it gets error: "doit is not defined" view the source (at the client browser) and it is identical both (all) times can anyone please help me understand what is happening? genMyOverlay.js.php contains echo "