DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

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 Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 25th, 2002, 02:14 PM
aquanuke aquanuke is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 3 aquanuke User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
DNS and PHP fopen function dead on me

I just got a dedicated server and these php scripts are dead on me when I pull from a .co.uk domain ... .com .net etc etc are fine

Ive changed my resolv.conf ips but still dead , if I do an ip lookup on the domains im pulling thats fine it pulls the ip , just the scripts dont pull...

or maybe someone could suggest a rewrite of this script in order to work. Is there another way to do the same thing without the fopen function?

<?php
$URL = "http://www.blackstar.co.uk/circle/charts/dvd";
$GrabStart = "See also";
$GrabEnd = "width=379";
$OpenFile = fopen("$URL", "r");
$RetrieveFile = fread($OpenFile, 100000); $GrabData = eregi("$GrabStart(.*)$GrabEnd", $RetrieveFile, $DataPrint);
$DataPrint[1] = str_replace("/img", "http://www.blackstar.co.uk/img", $DataPrint[1]);
$DataPrint[1] = str_replace("", "", $DataPrint[1]);
$DataPrint[1] = str_replace("/circle/promotion", "http://www.blackstar.co.uk/circle/promotion", $DataPrint[1]);
$DataPrint[1] = str_replace("/bsimg/explore", "http://www.blackstar.co.uk/bsimg/explore", $DataPrint[1]);
echo $DataPrint[1];
?>

Reply With Quote
  #2  
Old February 25th, 2002, 02:18 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
itīs probably the missing trailing slash.

$URL = "http://www.blackstar.co.uk/circle/charts/dvd/";

Reply With Quote
  #3  
Old February 25th, 2002, 02:49 PM
aquanuke aquanuke is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 3 aquanuke User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
no, I had tried that ..

Ive given the script to numerous friends who use it just fine without any problems...

Had the same scripts running fine on my other server... its just since I got this new server and there just dead.

Ive put this into my resolv.conf file

search ns1.kbhosting.com
nameserver 127.0.0.1.
nameserver 64.246.11.39
nameserver 64.246.10.238

those being my box name and ips , im running my own nameservers... does that seem correct to you...

Or can I just drop anyones nameservrs in there?

Reply With Quote
  #4  
Old February 25th, 2002, 02:54 PM
aquanuke aquanuke is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 3 aquanuke User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ive just removed ...

nameserver 127.0.0.1.

as it failed doing nslookup URL

so I now have

search ns1.kbhosting.com
nameserver 64.246.11.39
nameserver 64.246.10.238

(script still dont work though)

Reply With Quote
  #5  
Old February 25th, 2002, 06:16 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> script still dont work though

Script don't work just ask this in PHP forum. What makes you think that it's a DNS issue in the first place?

ns1.kbhosting.com was able to lookup www.blackstar.co.uk, that's all have to do with DNS.

BTW, you should change your MX from mail.kbhosting.com to ns1.kbhosting.com. Currently your MX is 40% unreliable because of wrong MX and broken reverse DNS on ev1.net. Still, that have nothing to do with resolving www.blackstar.co.uk to IP.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > DNS and PHP fopen function dead on me


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!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway