Re: [PHP] include() Error
Is the echo $mySQL_user; inside of a function? I believe you'll need to say global $mySQL_user; to gain access to it if so. On 29 May 2013 12:39, Ron Piggott ron.pigg...@actsministries.org wrote: Good morning all: I have recently purchased a computer and am using it as a dedicated server. A friend helped me install PHP and configure. I am saying this because I wonder if using a newer version of PHP (compared to my commercial web host) may be the reasoning behind the error I am receiving. I created a function to generate a form submission key. - This created hidden variable for forms - This is also session variable With this function I have an ‘ include ‘ for the file containing the mySQL database, username and password. I know this file is being accessed because I added: === echo $mySQL_user; === following the login credentials. But when I remove this line from mySQL_user_login.inc.php and place within the function on the line following the include the echo” returns nothing. === include(mySQL_user_login.inc.php); echo $mySQL_user; === Can any of you tell me why this is happening? Ron Piggott www.TheVerseOfTheDay.info -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Include Error on PHP 4.1.2
Fix 'include_path' in php.ini I think you want it to look in the current directory (.\) as well. bvr. Alberto Wagner wrote: I can't include anything on my php scripts Failed opening 'Pagina_Inicial.php' for inclusion (include_path='c:\php4\pear') How to fix it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] include error with no includes
On Wed, Sep 05, 2001 at 09:02:03AM -0400, Chad Cunningham wrote: I've got a few php pages that a while back started giving the following include error: Warning: Failed opening '/home/ccunning/WWW/probability.php3' for inclusion (include_path='.:/web/php/include:/web/php/phplib') in Unknown on line 0 I could be way off, but it sounds like a permissions problem. The user that your webserver runs as probably no longer has access to the page. -- Jason Stechschulte [EMAIL PROTECTED] -- Portability should be the default. -- Larry Wall in [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] include error with no includes
I could be way off, but it sounds like a permissions problem. The user that your webserver runs as probably no longer has access to the page. Allright, how did I not think of that :) Seems someone has been messing around with permissions on the server, thanks! -- Chad Cunningham [EMAIL PROTECTED] Well, once again my friend, we find that science is a two-headed beast. One head is nice, it gives us aspirin and other modern conveniences,...but the other head of science is bad! Oh beware the other head of science, Arthur, it bites! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]