Closed Thread
Results 1 to 1 of 1

Thread: PHP Stuff

  1. #1
    Twinkie is offline Banned Twinkie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Ft. Lauderdale, Florida
    Posts
    1,389

    PHP Stuff

    Could someone please help me fix the script. Long story short, I need to put entries in between certain characters in a file. I have this XML file:
    HTML Code:
    <?xml version="1.0" encoding="ISO-8859-1"?><LOG>
    </LOG>
    and I need to put text between the LOG tags. I have tried:
    PHP Code:
    $replace $text."</LOG>";
    $text str_ireplace("</LOG>",$replace,$content[0]);
    //and I have tried:
    $array explode("</LOG>",$content[0]);
    $array[0] = $array[0].$text;
    $text implode("</LOG",$array); 
    $content[0] being the original file and $text being the changed file. Im a newbie at PHP and all it function so could someone please show me how to do this simple script.:dunno:
    Last edited by Twinkie; 01-13-2008 at 12:42 AM.

Closed Thread

Similar Threads

  1. tons of PHP Resources
    By Chris S in forum Scripts & 3rd Party Apps
    Replies: 10
    Last Post: 01-16-2009, 10:07 AM
  2. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM
  3. Sigo con problemas con phpbb2
    By reciecho in forum Soporte
    Replies: 7
    Last Post: 10-20-2007, 06:28 PM
  4. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers