| Author |
Message |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sun Apr 20, 2003 3:19 pm |
  |
You might try adding this line as the first line of code AFTER the comment block to mainfile.php:
| Code: |
| set_magic_quotes_runtime(1); |
Since mainfile (I believe) is included in all modules, it should take effect. However, if mainfile is not included in the scripts that you are working with, just add that line to the top of your script anywhere after the initial
| Code: |
<?
set_magic_quotes_runtime(1); |
|
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
PartyKC
Nuke Soldier


Joined: Jul 29, 2003
Posts: 14
Location: KS, USA
|
Posted:
Fri Aug 01, 2003 9:45 pm |
  |
This all sounds great, but is there a way to get this done globaly?? I am gett a problem with ' and " randomly. If I refreash a few times it will go away for a couple more reloads and then back again. Really anoying!! I have try everythig withe the magic quotes settings and such and still nothing. Someone told me it was the server but it is not the server. I own the server and have about 7 other CMS systems on here without problems. I only have the problem in PHP-Nuke. Any help would be grat!!
James |
|
|
        |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Fri Aug 01, 2003 11:21 pm |
  |
If you have access to the php.ini then set it there. If not, and you are using Apache, then add this line to .htaccess and ftp it to your web root directory
PHP_FLAG set_magic_quotes_runtime On |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
PartyKC
Nuke Soldier


Joined: Jul 29, 2003
Posts: 14
Location: KS, USA
|
Posted:
Fri Aug 01, 2003 11:55 pm |
  |
I do have access and it is on, but still getting the problem. |
|
|
        |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sat Aug 02, 2003 12:06 am |
  |
The fact that it's there and then not there, refreshing clears it up, etc., doesn't sound like a setting issue. A setting should provide consistent results. I don't know what to tell you at this time. Especially if you have tried the fix attempts from page 1 of this thread. I assume that magic_quotes_gpc is set to On also? |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
PartyKC
Nuke Soldier


Joined: Jul 29, 2003
Posts: 14
Location: KS, USA
|
Posted:
Sat Aug 02, 2003 12:23 pm |
  |
After some more research, I found this problem to be on a couple other sites on the server. But, after turning of the Magic_Quotes in the .conf file every site works now "except" PHP-Nuke. Again, it is the random problem. After a few reloads it's up and working fine and a few later back to the same old problem.
I am running PHP-Nuke 6.8 on RedHat 7.3 Ensim Webppliance. Any help would be great as this is starting to effect many of my users of PHP-Nuke.
Thanks in advance...
James |
|
|
        |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sat Aug 02, 2003 12:28 pm |
  |
| Raven wrote: |
| I assume that magic_quotes_gpc is set to On also? |
It needs to be. |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
PartyKC
Nuke Soldier


Joined: Jul 29, 2003
Posts: 14
Location: KS, USA
|
Posted:
Sat Aug 02, 2003 12:36 pm |
  |
Server wide it is now off as that fixed the problem on the rest of the server. I have tried with it on and off and got the same results.
James |
|
|
        |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sat Aug 02, 2003 12:46 pm |
  |
|
    |
 |
PartyKC
Nuke Soldier


Joined: Jul 29, 2003
Posts: 14
Location: KS, USA
|
Posted:
Sat Aug 02, 2003 1:28 pm |
  |
Found another place that the Magic Quotes was on, with everything off the server wide problem is gone! |
|
|
        |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sat Aug 02, 2003 1:30 pm |
  |
Please clarify which magic quotes setting you are talking about. I have asked you two times already. This makes the third time  |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
PartyKC
Nuke Soldier


Joined: Jul 29, 2003
Posts: 14
Location: KS, USA
|
Posted:
Sat Aug 02, 2003 1:43 pm |
  |
Spoke too soon!!!!!!! It is back but now not as offten... ODD! This is driving me nuts!
OK
In the file: /httpd_app.conf
Alias /horde /usr/share/horde
<Directory /usr/share/horde>
DirectoryIndex index.html index.php3 index.htm index.shtml index.cgi
<IfModule mod_php3.c>
php3_magic_quotes_gpc off
</IfModule>
</Directory>
AND IN: /etc/php.ini
; Magic quotes
;
; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off
; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off
; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off
And it seemed to work longer that before.. but still went back to the problem!!! But only in PHP-Nuke... no where else it seems...
James |
|
|
        |
 |
PartyKC
Nuke Soldier


Joined: Jul 29, 2003
Posts: 14
Location: KS, USA
|
Posted:
Sat Aug 02, 2003 1:44 pm |
  |
PHP Version
4.2.2
mySQL Version
3.23.54 |
|
|
        |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sat Aug 02, 2003 1:48 pm |
  |
|
    |
 |
PartyKC
Nuke Soldier


Joined: Jul 29, 2003
Posts: 14
Location: KS, USA
|
Posted:
Sat Aug 02, 2003 1:51 pm |
  |
As I said, with it on I have more problems that before. Either way I am getting the problem. I am not saying that I don't want to turn it back on but it has helped in several other areas of the server like a PHP script I use for my hosting clients and other CMS sites like e107 and such.
I hope I am not making you mad here as that is not my intent.
James |
|
|
        |
 |
|
|