Jump to content

Configuration Problem


Recommended Posts

[php: 5.3.1]

Ok, an hour later I am so pissed I can't think straight enough to tell somebody the difference between = and ==. I just installed latest version of xampp. Trying to run a script through php.exe via command line and it only echoes my code back to me. I try to run it through browser and get this:

Successful write"; }else{ echo "
Failed to write"; } fclose($fp); ?>

Here is my code:
<?
$html_file = "test.html";
$fp = fopen($html_file, "w+");
    if(fwrite($fp, "TEST")){
        echo "<br />Successful write";
    }else{
        echo "<br />Failed to write";
    }
    fclose($fp);
?>

I am almost certain there is some sort of magic quotes setting or some crap in the php.ini file. Right now I have these set accordingly:

php.ini
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
; http://php.net/magic-quotes-runtime
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
; http://php.net/magic-quotes-sybase
magic_quotes_sybase = Off

 

Any shoves in the right direction or something?

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.