User Profile

Collapse

Profile Sidebar

Collapse
HarrySarge
HarrySarge
Last Activity: Jul 29 '12, 08:40 PM
Joined: Jul 29 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Okay, as I said I was a novice, so I've just come up with an obvious solution and am beating myself up for not having used it before.

    Instead of writing straight onto the page, I have
    Code:
    <?php
    $file = 'gallery1.txt'; //to open the file
    $current = file_get_contents($file); //to recall its current content
    $current .= "New content generated from form on submit page\n"; // to add the new data to the
    ...
    See more | Go to post

    Leave a comment:


  • HarrySarge
    started a topic Specifying line numbers with file_put_contents()
    in PHP

    Specifying line numbers with file_put_contents()

    I'm a beginner in PHP (so I beg your pardon for sounding noobish), and am looking to use file_put_conten ts() to directly write to an HTML file rather that managing the page with mySQL.

    To add context, I am trying to make a simple image uploader that places an image thumbnail with a lightbox link in one of three galleries on a portfolio page. I achieved what I wanted by placing each gallery in an iframe, and writing to the beginning...
    See more | Go to post
No activity results to display
Show More
Working...