PHP include call used to work, doesn't now, and my ISP blames me...help?

Hello all,
Here's the deal: I have a website, www.website.com which has a sub-domain, subdomain.website.com. I use one CSS file for both sites, the subdomain calls to the main website. Likewise, I pull graphics from the main site that appear on the subdomain. Everything works swimmingly.
I also have a navbar that is common to both sites. For simplicity, the navbar is in an includes folder in the main site's root directory. I do this so that changes made to the navbar can be instantaneous across both sites. I avoid having to upload includes files to BOTH sites every time I change one of them. Here's how I call it in the code:
<?php include('http://www.website.com/includes/navbar2.php'); ?>
This USED TO WORK JUST FINE. Not long ago, pages in the subdomain are no longer able to call the navbar from the includes folder on the main site. I get three <function include> errors where there ought to be the navbar. I contacted my ISP (Network Solutions) and they blame it on 'custom coding' which is absurd as I haven't altered the code on these pages in months...far before the problem occurred.
Here is the html for the three <function include> errors:
<b>Warning</b>:  include() [<a href='function.include'>function.include</a>]: URL file-access is disabled in the server configuration in <b>/(actual path info removed)/main.php</b> on line <b>31</b><br />
<br />
<b>Warning</b>:  include(http://www.website.com/includes/navbar2.php) [<a href='function.include'>function.include</a>]: failed to open stream: no suitable wrapper could be found in <b>/(actual path info removed)/main.php</b> on line <b>31</b><br />
<br />
<b>Warning</b>:  include() [<a href='function.include'>function.include</a>]: Failed opening 'http://www.website.com/includes/navbar2.php' for inclusion (include_path='.:/usr/services/vux/lib/php') in <b>/(actual path info removed)/htdocs/subdomain_folder/main.php</b> on line <b>31</b><br />
I think it's a server-side change. Has to be as I have not altered the code at all in ages. Any thoughts, suggestions or help would be very much appreciated.
Sincerely,
wordman

Wordman-GL wrote:
Here's how I call it in the code:
<?php include('http://www.website.com/includes/navbar2.php'); ?>
This USED TO WORK JUST FINE.
Your hosting company is quite correct in blaming you, although it should probably have explained why it no longer works.
Since PHP 5.2, there have been two security directives: allow_url_fopen, which is on by default, and allow_url_include, which is off by default.
Including a file directly from a URL is a major security risk, which is why allow_url_include is turned off. If you want to include content from a URL, you must retrieve it using a file function, such as file_get_contents(), and run your own security checks on it before including it in a page.

Similar Messages

  • Printing to shared windows printer - used to work, doesn't now

    Once upon a time I was able to print from my powerbook to the HP LaserJet 1300 connected to my father's windows computer. I was wireless and the windows pc is wired to the network. I could see all the computers on the network and i could print and file share "normally."
    Last year we made several changes to the network, which should have just simplified it, but now I cannot see the printer or any other computers on the workgroup from my mac. My windows desktop can do it fine (also wired) and my fathers wireless windows laptop can as well. I can connect to file share with my mac if I use the IP of the computer, I can no longer just browse the network like i could before.
    I am not sure how to access the shared printer now. I have tried different things over the past year and I am just tired of having to get a USB cable and stand next to the printer with my laptop.
    I have tried to just connect using the ip of the computer the printer is shared from but that does not work.
    "smb://username:[email protected]/printersharename"
    doesn't work.
    I have theorized that it might be that there is now MAC address filtering enabled for wireless connections but I cannot turn it off to test.
    Has anyone else encountered this (being able to, then unable)?
    Powerbook G4 1.5ghz   Mac OS X (10.4.9)  

    It sounds like maybe you have a wired router and
    added an Airport base (or other wireless router) for
    wireless? If I've guessed wrong, please describe your
    network and check whether the wired and wireless
    computers are in the same subnet (that is, only the
    last part of 192.168.1.x can be different, the first
    three parts are the same on every computer).
    The some of the wired computers go through a switch, but some go straight into the router (because they are closer to the wireless router than to wall jacks). This doesn't seem to affect my ability to see them on the network because I can't see any from my powerbook. Everything is on the same subnet and the only devices are the router and the switch, but I can't see stuff hooked directly to the router either.

  • Why does my ipad2 no longer receive photos on iMessage? Iphone works perfectly with iMessage photos. Ipad2 used to work fine. Is it an ios8 issue? Help!

    Why does my ipad2 no longer receive photos on iMessage? Iphone works perfectly with iMessage photos. Ipad2 used to work fine. Is it an ios8 issue? Help!

    Hello,
    Where may I be able to contact and speak with a prepaid representative? Strictly through phone calls? (I am at work 12 hours a day)
    And I apologize for posting in the wrong area - I saw Apple support so I went here.
    I'm almost certain my phone is the problem. I have gone through resetting the network settings a dozen times on my phone, even did it on my dad's. Now my texts are beginning to do the same when I text my fiance.
    Resetting the network settings DOES work -- the problem is it will work for a day or two or for only a few hours - then I'll have to do it all over again.

  • When try to connect my iPod touch 4th gen to my house Wifi it won't connect, it used to work fine but now it dosen't work, but it does say that the internet is available, but when I tap on it it just loads. all other devices work fine.

    When try to connect my iPod touch 4th gen to my house Wifi it won't connect, it used to work fine but now it dosen't work, but it does say that the internet is available, but when I tap on it it just loads. all other devices work fine.

    Does the iOS device connect to other networks? If yes that tend to indicate a problem with your network.
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect before?
    Try the following to rule out a software problem:                
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network      
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem and it does not connect to any networks make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • Just got a used iPhone 4, loaded SIM card for straight talk. Everything works except the iTunes and apps. Can anyone help me?

    Just got a used iPhone 4, loaded SIM card for straight talk. Everything works except the iTunes and apps. Can anyone help me?

    Very vague.
    In what way do itunes and apps not work?
    Please explain

  • AirDrop used to work between my iMac and MacBook Pro. Now, when I try to transfer a file (either direction) I get a message that my certificate is invalid or that the file has not been accepted. What do I do?

    AirDrop used to work between my iMac and MacBook Pro. Now, when I try to transfer a file (either direction) I get a message that my certificate is invalid or that the file has not been accepted. What do I dot correct this?

    Message was edited by: leroydouglas
    better yet, try this solution:
    https://discussions.apple.com/message/12351186#12351186

  • My ipad mini and iphone 4s are not connecting over bluetooth. iphone cannot locate ipad mini or says it is not supported. It used to work perfectly but now its not working. please help.

    my ipad mini and iphone 4s are not connecting over bluetooth. iphone cannot locate ipad mini or says it is not supported. It used to work perfectly but now its not working. please help.

    Hi
    Thanks for the support but I had already tried this . Again did it as you advised. Still not able to connect the ipad mini with Bluetooth.
    Could it be that some app is causing issue. I can connect my car and computer over Bluetooth but not ipad mini.
    On the other had ipad is connecting to other iPhone but only not mine.
    Still showing ipad not supported message. And also shows not paired.
    Please help.

  • I own an iPod Classic.  In iTunes, some podcast videos cant be played on teh iPod, so I set it to convert the video to the right format for the iPod.  It used to work perfectly, but now for some reason, it doesnt convert properly!  When I play the video,

    I own an iPod Classic.  In iTunes, some podcast videos cant be played on teh iPod, so I set it to convert the video to the right format for the iPod.  It used to work perfectly, but now for some reason, it doesnt convert properly!  When I play the video, it is just a white screen, but the sound can be heard.  Can anyone help??????

    Your source video file is probably muxed.
    Neither QT Pro or iTunes has the ability to successfully encode a muxed video file with audio. You'll end up with video and no audio.
    See: iPod plays video but not audio of some exported files.
    You'll need to use some other third-party software to do the conversion. There's a handful of software available. Just search the forums and you'll find many titles mentioned.
    Try MPEG Streamclip.

  • I cannot change my "show caller ID". Under my number it says "Unknown", and I cannot change it. Under "shoe my caller ID" I cannot turn it on and off. Can you help me? THanks

    I cannot change my "show caller ID". Under my number it says "Unknown", and I cannot change it. Under "shoe my caller ID" I cannot turn it on and off. Can you help me? THanks

    Hello,
    Tried rebooting and updating, doesn't work. There is no problem with calling and receiving calls, but my number is blocked, and I cannot turn it on or change it in settings. Can this be fixed?
    Thanks

  • HT201210 i updated my 4s yesterday, but my phone will not work at all now, and will not turn off. It has a itunes image on the screen with an arrow undernieth and what looks like the charger lead. i've had it on charge! is there anything else i can do?

    i updated my 4s yesterday, but my phone will not work at all now, and will not turn off. It has a itunes image on the screen with an arrow underneath and what looks like the charger lead. i've had it on charge! is there anything else i can do?

    Cconnect it to your computer with the latest version of iTunes installed.

  • I have been using itunes for 6 years now, and was listening to my music the other day and noticed that some of my songs were stopping short of finishing.

    I have been using itunes for 6 years now, and was listening to my music the other day and noticed that some of my albums songs were stopping short of finishing. They just stop and go to the next song. Any solutions? 

    I have experienced the same problem on my my iPad1, my former iPhone 4 my laptop and even my new iPhone5  though I had really hoped that the new phone and IOS would solve the problem.  About 5% of the songs are affected and the stoppage can range from seconds short to a minute and a half.  The file shows more of the music left, but it stops playing and goes to the next song.  Very aggravating.  Appears to happen on purchased and uploaded music.
    Any help Apple?

  • TS1702 How do I get my twitter to work? It's been working for ages now and as soon as the IO6.1 update comes out its stops working!

    How do I get my twitter to work? It's been working for ages now and as soon as the IO6.1 update comes out its stops working!

    same issue here 6.1 messed up my iphone and ipad

  • I transferred excell spreadsheet from my old pc to my new mac. I used it last fortnight but now cannot find it. Any Help please.

    I transferred excell spreadsheet from my old pc to my new mac. I used it last fortnight but now cannot find it. Any Help please.
    I have tried Spotlight but to no avail I have an Imac.
    gp140

    The file should still be listed by name under, "Open Recent."

  • HT1338 not able to access my external hd which i used on my windows pc ntfs3g and mac fuse aren't helping what to do?

    not able to access my external hd which i used on my windows pc ntfs3g and mac fuse aren't helping what to do?

    Bump-I still really need help with this! The connection keeps cutting in and out and I really don't know how to fix it!

  • Iphone 4 voice Dial used to work great, but now, I can't get it to recognize voice commands. When i give it a command to call someone, it ends up repeating someone elses name and starts the call. Does anyone know how to solve this problem?

    I have an I phone 4 with 32g.  The voice dial used to work just fine, but now it doesn't recognize the words and ends up saying someone elses name and starts calling the wrong person.  It even won't recognize a number when spoken to it and speaks back and calls the wrong numbers.
    Lately, the phone has really slowed down.  I am not sure if this is the problem.. I have closed all the open apps and deleted any extra picture off the card and extra songs that I have downloaded and the slow problem still exists. 
    Would a reset work to restore the phone to factory settings and if I then resync the phone, would all contacts pictures and songs be restored?
    Ron
    Oklahoma

    What is wrong with your Mac?  You still haven't told us what the problem is. Is the computer still under warranty or Apple Care?
    the next time i attempted to use the computer it wasn't fine
    What do you mean by "wasn't fine".  We can't see your computer so you'll have to describe what your're experiencing in detail without the editorializing.
    Download and run Etrecheck.  Copy and paste the results into your reply. It's a diagnostic tool that was developed by one of the most respected users here in the ASC to help identify the more obvious culprits.

Maybe you are looking for

  • Passing a value in report

    i have a stored procedure for the data set, this is my issue i have debits and payments stored in one table, they only way to retrieve both types is to select either the voucher key or the receipt key. this is my sql where statement WHERE     (Pr_Vou

  • Need Help to develop a Funnel Graph Report using Multiple Subject Areas.

    Hi Everybody, Did any body developed Funnel based graph report in Answers.. Scenario: I need to develop a report which is based on 4 Facts(4 Subject Areas) Report is sectioned with 4 block one blovk with one Fact Metrics like this four blocks. If any

  • Problem in XML Generator

    Hi, I am facing a problem that i have created a form by XML Generator(Wizard) but after successfull complition there is User-id and Password two times and when i fill it,,it gives the error that "User-Id and Password is incorrect". So plz tell me tha

  • Unable to add items to dropdown list using javascript

    Hi, I'm trying to add additional items to a dropdown list at runtime using javascript. I'm doing this by invoking the addItem method on the dropdown list field during its initialize event. However when I run the generated pdf in Acrobat Pro, I get th

  • Poor WiFI  antenna in my MBP Intel Core 2 Duo

    So my son has the lower cost MacBook, and I have the fancy MBP. Neither of us is having any problems with our systems. We're visiting my folks in their over-55 condo complex, and as usual I turn my computer on hoping to find an open wireless somewher