Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 03-08-2009, 05:58 AM search inside a URL
Junior Talker

Posts: 1
Name: sandy
Trades: 0
I want to read a html page using php code and print content inside
<img >tag of the html page




<html >
<head>
<title>Test Document</title>
</head>

<body>
<img src="/test.jpg" width="640" height="480" alt="test" />
</body>
</html>



after reading html, I want to output

<img src="/test.jpg" width="640" height="480" alt="test" />

please help
sanlove is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-08-2009, 11:39 AM Re: search inside a URL
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
Use the include() function.

http://uk2.php.net/manual/en/function.include.php
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 03-08-2009, 03:57 PM Re: search inside a URL
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Quote:
Use the include() function.
I think you have misread the question...

Your best bet for this is the DOM module of PHP.
http://www.php.net/manual/en/book.dom.php
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 03-09-2009, 01:23 AM Re: search inside a URL
dark_lord's Avatar
Experienced Talker

Posts: 41
Name: Parijat Roy
Location: INDIA-KOLKATA
Trades: 0
Quote:
Originally Posted by sanlove View Post
I want to read a html page using php code and print content inside
<img >tag of the html page




<html >
<head>
<title>Test Document</title>
</head>

<body>
<img src="/test.jpg" width="640" height="480" alt="test" />
</body>
</html>



after reading html, I want to output

<img src="/test.jpg" width="640" height="480" alt="test" />

please help
not understand anything, do u want to print the contents of html inside a image?
__________________
I AM THE BEAUTIFUL NIGHTMARE

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
dark_lord is offline
Reply With Quote
View Public Profile Visit dark_lord's homepage!
 
Reply     « Reply to search inside a URL
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.47170 seconds with 12 queries