x10Hosting Forums

Corporate Free Hosting for the Masses.


x10Hosting wishes you a great Year!

Register

Closed Thread
 
LinkBack Thread Tools Display Modes
x10 Elder

Twinkie's Avatar

Join Date: Sep 2007
Posts: 688
Credits: 5,752
Twinkie is a name known to all
Location: Ft. Lauderdale, Florida

Send a message via MSN to Twinkie
 
01-13-2008, 01:40 AM
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.

Last edited by Twinkie; 01-13-2008 at 01:42 AM.
Twinkie is offlineReport Post
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unstand PHP? o0slowpaul0o Tutorials 8 01-07-2008 10:16 PM
Sigo con problemas con phpbb2 reciecho Soporte 7 10-20-2007 07:28 PM
tons of PHP Resources Chris S Scripts & 3rd Party Apps 8 09-29-2007 09:09 PM
"PHP Startup: Invalid Library" - Interesting error javaguy78 Free Hosting 5 03-27-2007 03:33 PM


All times are GMT -5. The time now is 05:31 AM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios