+ Reply to Thread
Results 1 to 2 of 2

Thread: PHP Problem

  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 Problem

    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:

  2. #2
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: PHP Problem

    well, first off, you should probably be using a xml 2.0 version. Other than that, try running it through a feed validator. Search google. or use w3schools.com for xml help
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

+ Reply to Thread

Similar Threads

  1. Sigo con problemas con phpbb2
    By reciecho in forum Soporte
    Replies: 7
    Last Post: 10-20-2007, 06:28 PM
  2. Php problem
    By kurtpt in forum Soporte
    Replies: 2
    Last Post: 10-16-2007, 12:38 PM
  3. Problem with the PHP AD code
    By Trixter in forum Free Hosting
    Replies: 3
    Last Post: 04-24-2007, 03:02 AM
  4. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 PM
  5. php ad code problem
    By sourabhj in forum Free Hosting
    Replies: 7
    Last Post: 08-22-2006, 08:28 AM

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