Re: [PHP] PHP Apache (GLOBALS) question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I did set my php.ini file in the etc dir and it worked fine.

But there was no mysql listed when I did a phpinfo.php page.

So more specifically, when I ude my php.ini file i have globals
on but mysql_connect failures

When I don't use php.ini files I get globals set to off and
mysql access

in ref. to .htaccess when I put and .htaccess in a dir and make
and enable httpd.conf to use htaccess it errors in the
http_perl.conf and if I try to edit my vhost config file with
the 

php_value "register_globals" "1"

or

php_flag "register_globals" "on"

it failes when i restart my web seerver in the httpd-perl.conf
file

Frank


--- John Nichel <jnichel@by-tor.com> wrote:
> Frank Tudor wrote:
> <snip>
> >>It worked like a charm....but guess what.  I can't create a
> >>connection string to my database.  Now I have to find a
> >>solution
> >>to get this website to work with globals on and mysql.
> 
> Register globals has nothing to do with making a connection to
> MySQL. 
> Post your code for the connection please.
> 
> >>I have tried adding an .htacess with the php globals
> override
> >>thing
> >>
> >>
> >>php_value "register_globals" "1"
> >>
> >>Ok this didn't work.
> >>
> >>So I found the Mysql-PHP RPM on my mandrake cd (of course
> >>enabling my php.ini file) and it didn't work.
> >>
> >>I'm getting closer to a solution but I am stuck.  Why won't
> >>the
> >>htaccess file work?  I would like to use my php.ini file but
> 
> What isn't working for .htaccess?  Is Apache configured to
> allow 
> .htaccess files the ability to override php variables?
> 
> >>it
> >>is not configured for mysql, how could I fix this?  Is there
> >>anything I can do for either of these two questions to get
> my
> >>globals on?
> 
> Not that you should turn globals on, but if this is really
> what you want 
> to do, enable it in your php.ini file, and restart your
> webserver.
> 
> >>I swear I will never use functions again if someone helps
> me.
> >>
> >>:)
> >>
> >>Frank
> -- 
> By-Tor.com
> It's all about the Rush
> http://www.by-tor.com
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux