PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old October 28th, 2009, 06:51 PM
Dizzle Dizzle is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 32 Dizzle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 18 m 6 sec
Reputation Power: 1
Php get meta tags help

Code:
<?php

$tags = get_meta_tags('http://www.realgm.com/');

  
echo $tags['keywords'];    
echo $tags['description']; 

?>


i just used any website.. i can't get the meta tags though... what am i doing wrong? i get these error messages..

Warning: get_meta_tags() [function.get-meta-tags]: URL file-access is disabled in the server configuration in /home/ustackc1/public_html/menu.php on line 78

Warning: get_meta_tags(http://www.realgm.com/) [function.get-meta-tags]: failed to open stream: no suitable wrapper could be found in /home/ustackc1/public_html/menu.php on line 78


if its something to do with my host, what is another easy way to do this?

Reply With Quote
  #2  
Old October 28th, 2009, 07:31 PM
wilorichie wilorichie is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Brisbane
Posts: 324 wilorichie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 15 h 29 m 24 sec
Reputation Power: 3
I haven't used this myself but it simply sounds like the get_meta_tag function is not enabled by your web host.
__________________
- Richie

Reply With Quote
  #3  
Old October 28th, 2009, 08:02 PM
Dizzle Dizzle is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 32 Dizzle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 18 m 6 sec
Reputation Power: 1
thx.. is there another way to get meta tags then?.. i been stuck on this for like a week lol

Reply With Quote
  #4  
Old October 28th, 2009, 09:16 PM
wilorichie wilorichie is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Brisbane
Posts: 324 wilorichie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 15 h 29 m 24 sec
Reputation Power: 3
I remember reading something you posted about something sort of similar.

*finds your post*

You could even try something like this:
http://forums.codewalkers.com/php-coding-7/webcrawler-help-951296.html

Although everyone has different ways of writing meta tags...

Ask your host about the error you had... they might be able to enable or resolve your remote file access/meta tag problem quite easily... But then again most hosts can be annoying

Reply With Quote
  #5  
Old October 28th, 2009, 10:09 PM
IAmALlama IAmALlama is offline
Me
Click here for more information. Click here for more information
Click here for more information
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 1,937 IAmALlama User rank is Private First Class (20 - 50 Reputation Level)IAmALlama User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 5 Days 1 h 54 m 18 sec
Reputation Power: 4
it does have something to do with your host. you host has url file access set to off. it just means that any function that needs to read a file such as fopen or file_get_contents only work locally and not on urls. You can try other functions like file_get_contents if you want to on a url. if that works then you could probably read the string in and either parse it yourself to get the meta tags or save it to a file temporarily then read the meta tags.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > Php get meta tags help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek