home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

PHP - remove a line from a called script.

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1619
Discussions: 200,988, Posts: 2,379,872, Members: 246,359
Old June 12th, 2004, 01:02 PM   Digg it!   #1 (permalink)
Member
 
SiLVerBuRn's Avatar
 
Join Date: Jun 2003
Location: West Columbia, SC
Posts: 330
PHP - remove a line from a called script.

Ok say I have a PHP block that calls from an external site. It generates an image and auto-creates the HTML for it. The block loads the HTML and displays it in the block.

Is there anyway I could code the PHP to isolate a certain line of that script and remove it every time? For example:

The page calls from: www.mysite.com/external.php and uploads the created HTML.
I want to REMOVE the HTML lines that link to a banner exchange site so they don't appear in my block.

Is this possible?
__________________
I have become evil...
24" iMac 2.8
SiLVerBuRn is offline   Reply With Quote
Old June 13th, 2004, 12:48 PM     #2 (permalink)
Member
 
Carl-cox-'s Avatar
 
Join Date: Nov 2002
Location: Kent England
Posts: 395
yes if you have the incoming html in a varible first then just use

$var = str_replace("line to be replaced", "with this", $var);
Carl-cox- is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP errors - undefined variable bwcc Webmastering and Programming 5 January 26th, 2004 12:38 PM
PHP random word generator help dragonz Webmastering and Programming 4 January 23rd, 2004 02:19 PM
REDHAT - PERL BlueIce Applications and Operating Systems 10 April 17th, 2003 10:28 PM
Debian File System Missing???? tarpat1 Applications and Operating Systems 9 February 22nd, 2003 11:59 AM
Can't modify header info?? willy_ph Webmastering and Programming 6 January 23rd, 2003 09:37 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3068)
Charges against non-tippers dropped.. (20)
Health Care Rationing (11)
Delete an OS (17)
Nvidia GTX 260 problem (10)
Laptop with wireless problem. (12)
windows vista security holes (19)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (8)
windows 7 problem (7)
[F@H SPAM 11/16/09] ! 1/2 months to.. (39)
Internet Lost (5)
Recent Discussions
Desktop Calendar Application (2)
Looking for new motherboard (1)
soundmon.exe (8)
Jedi Academy Problem (3)
Can a page file be "too big".. (1)
Nvidia GTX 260 problem (10)
Point and Shoot Camera Suggestions. (8)
Size after cutting 700Mb file is 2.5 .. (0)
Delete an OS (17)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (39)
windows vista security holes (19)
updating BIOS via winflash, claims fi.. (1)
New Server Configuration Suggestions (0)
cheap gaming laptop? (12)
Unallocated Space (2)
help me pls laptop just stopped worki.. (1)
C# + LINQ Help (7)
Dynex DX E-402 (3)
EVGA 9800 gtx help with finding a goo.. (12)
Multiple Restarts Required at Boot (5)
cell phone won't work (0)
Is the PSU I received dead? (15)
Can't open Word (12)
Steam ID's, Gamertags etc... (4)
Games, Cables, PCI cards, and more fo.. (6)


All times are GMT -4. The time now is 07:39 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28