Web Hosting Talk







View Full Version : P! H! P! Help me!


appletreats
03-26-2002, 07:02 PM
I want to have a file which is formated like, I dunno:
title = "Title Goes Here"
body
<b>wow</b>
<i>amazing</i>

I want to have a PHP script which takes this file, takes the content of title (stuff between "s) and places it in a specific location in the script. Then it takes everything below the line body and places that in another location, with line breaks intact. How can I do this? I've been trying to find out for over two weeks. Help appletreats! :bawling:

Lats
03-26-2002, 07:34 PM
There's a question pretty much like yours here, (http://www.phpbuilder.com/forum/archives/1/2001/7/4/120933) maybe worth trying.


Lats...

appletreats
03-26-2002, 07:55 PM
But I don't want to display the whole file, just parts, and in separate locations. And I know almost nothing about PHP scripting.

Lats
03-26-2002, 08:25 PM
Okay, you may want to check out these, (http://www.hotscripts.com/PHP/Scripts_and_Programs/Quote_Display/index.html) for some random quote examples.

They might be closer to what you want to do.


Lats...

appletreats
03-26-2002, 08:29 PM
Thanks, I can probably pick something apart from those. And if not, I'll just get rid of the title thing. :rolleyes:

kunal
03-27-2002, 03:52 AM
umm.. where do you want to place string in the file? which location??


if your trying to write a template script, take a loot at phplib :)