Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: PHP File Writing

  1. #11
    Join Date
    Nov 2006
    Location
    Northeast USA
    Posts
    408
    Thanks
    8
    Thanked 30 Times in 28 Posts

    Default

    Did you test it yet?
    -Ben -- THE DYNAMIC DRIVERS
    My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
    I told my client to press F5, the client pressed F, then 5, *facepalm*

  2. #12
    Join Date
    Apr 2008
    Posts
    38
    Thanks
    9
    Thanked 1 Time in 1 Post

    Exclamation

    Quote Originally Posted by fileserverdirect View Post
    I have not tested this on my own enviorment, but I can see one error (add a semi-colon):
    Code:
    if ($config)
    echo 'File Opened! <br />';
    And is this supposed to be a differnt script or the same, beacause why are you including config.js if you are going to write to it, and not blog.js??? If your are going to use a flat file to store information for a single user, I would not recomend it at all. use SESSION varibles for a secure user-by-user basis. If you need help setting up your full blog system with a config page, just ask.
    This is a different script, related to the original. It is supposed to be a blog hosting software, like WordPress.

  3. #13
    Join Date
    Nov 2006
    Location
    Northeast USA
    Posts
    408
    Thanks
    8
    Thanked 30 Times in 28 Posts

    Default

    So does it work now?
    -Ben -- THE DYNAMIC DRIVERS
    My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
    I told my client to press F5, the client pressed F, then 5, *facepalm*

  4. #14
    Join Date
    Apr 2008
    Posts
    38
    Thanks
    9
    Thanked 1 Time in 1 Post

    Exclamation

    Everything BUT the configuration page works.

  5. #15
    Join Date
    Nov 2006
    Location
    Northeast USA
    Posts
    408
    Thanks
    8
    Thanked 30 Times in 28 Posts

    Default

    Well, after correcting the semi-colon, there are no php errors that are showing up to me, even through the debugger. Could there be an error in your config.js?? Does your page show up blank still, or does it show up, but it is not writing to the config file?
    -Ben -- THE DYNAMIC DRIVERS
    My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
    I told my client to press F5, the client pressed F, then 5, *facepalm*

  6. #16
    Join Date
    Nov 2006
    Location
    Northeast USA
    Posts
    408
    Thanks
    8
    Thanked 30 Times in 28 Posts

    Default

    I am not sure what the problem is with your script, do you have a link online to the page?

    P.S. I your User CP, make sure you check the box that emails you when you have a new post, because my last post was 7 days ago and you still haven't replyed...
    -Ben -- THE DYNAMIC DRIVERS
    My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
    I told my client to press F5, the client pressed F, then 5, *facepalm*

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •