Php page won't load but will in while testing

I have created a php page that connects to a db. While in
dreamweaver I can test the page and see the db content but can't
view the contents of the page if I got to the page via the website
www.mysite.com/testpage.php.
I have uploaded the connection files and the test file with
dependent files but the page won't load. Also I noticed that using
virtual for the php command doesn't work so I use include <?php
instead.
Since I can see the db contents via testing the page but
can't when viewing the page via www.mysite.com/testpage.php.
Can someone help shead some light on this??
UPDATE..
I removed the following from the PHP file and I was able to
get the page to load...
So what doctype should I be using??
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

cdembek wrote:
> but the page won't load. Also I noticed that using
virtual for the php command
> doesn't work so I use include <?php instead.
Dreamweaver uses virtual() if you have set your site
definition to use
site root relative links. Unfortunately, virtual() is
supported only by
Apache, so the fact that it doesn't work indicates that your
remote site
is probably on a Windows server.
When changing from virtual() to include(), you also need to
change the
link to your connection from a site root relative link to a
document
relative one.
virtual('/Connections/mycon.php');
needs to become something like
include('../Connections/mycon.php');
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Similar Messages

  • Web pages won't load but airport shows strong connection!

    help!
    I have a wireless network set up with a wireless router transmitter (not apple). My wife's macbook works fine, but my son's imac has great difficulty loading pages even thought the airport icon at the top of the monitor says the signal is strong and internet connect says the status is connected. Web pages sometimes load fine, but about 80% of the time now, I get "safari can't find the server" or "firefox can't load the page" messages instead of a webpage (like apple or google). I don't even know where to start when trying to troubleshoot this problem. If anyone can steer my to a starting point to figure out this problem (or tell me how to fix it), I'd be extremely grateful! thanks!

    Welcome to the discussions!
    Try a few simple experiments to check your signal strength.
    On your wife's MacBook, hold down the option key and click on the fan shaped Airport icon at the top of the screen. Look for the Transmit Rate. Note this number.
    Now do the same thing for the iMac. You will probably see a much lower number indicating that the iMac is not receiving a strong signal due to walls, construction materials and other interference. In this case, the only real solution will be to find a different position for either the wireless router or the iMac.
    Another option might be to see if your wireless router signal can be extended. In almost all cases, you will need to look for a device that is from the same manufacturer as your router.
    Post back on your progress.

  • HP Pavillion - Web Pages Won't Load but I'm Connected to the Internet

    I was on the internet and then the page seemed to lock up.  I closed the browser and reopened it and now I cannot get any web pages to load at all either in I.E. or Firefox.  It just says Waiting for "website" and that is it.  My other laptop connects to the internet fine using the same modem/router so it is a computer issue.  Not sure how it goes from working one minute to not the next.  It is a HP Pavillion G7-2270.  Thanks for any help you can offer.

    Hello  , Welcome to the HP Forums! I understand your notebook shows it is connected but you are unable to browse. Can you tell me which version of Windows you are using? To see which version of Windows you are using click here: Which Windows operating system am I running? Here are some popular fixes for networking issues: Powercycle the network:
    1. Shut down your notebook.
    2. Unplug the power to your router.
    3. Unplug the power to your modem.
    4. Wait at least 45 seconds.
    5. Plug in the modem, and wait for it to come back online.
    6. Plug in the router, and wait for it to come back online.
    7. Turn on your notebook, and test your connection.
    Reset the TCP/IP settings on your PC:
    1. Go to your start screen/menu and type CMD.
    2. Right click on the command prompt icon and chose Run as administrator.
    3. In the window that opens type "netsh int ip reset resetlog.txt" without quotes, and press enter.
    4. Restart your PC and test.
    It may also help to reset the winsock catalogue:
    1. Go to your start screen/menu and type CMD.
    2. Right click on the command prompt icon and chose Run as administrator.
    3. In the window that opens type "netsh winsock reset" without quotes, and press enter.
    4. Restart your PC and test. If it seems to be connected but won't browse, flush the DNS:1. Go to your start screen/menu and type CMD.
    2. Right click on the command prompt icon and chose Run as administrator.
    3. In the window that opens type "ipconfig /flushdns" without quotes, and press enter.
    4. Restart your PC and test.
    Reinstall the network adapter drivers:
    1. Download the drivers from here but do not run them yet.
    2. Go to your start screen/menu and type Device Manager.
    3. Expand Network adapters.
    4. Right click on the wireless/ethernet adapter and choose Uninstall.
    5. Run the downloaded drivers from step 1.
    6. Restart your PC and test.
    If those three steps do not resolve the issue, try this document published by Microsoft for networking issues: Wired and wireless network problems. You can change the operating system with the dropdown in the upper-right corner of the document. Let me know if that helps!

  • Page loads but will not display

    I have an IP address that allows me to view my cctv cameras.It works fine with Internet Explorer,but when i enter the same address in to my safari browser the page seems to load but will not display anything.
    I assume its some thing do with my internet security settings but do not now where to find them to allow this site. Can any one help please.
    Thanks

    Try temporarily turning off your firewall via SystemPreferences>Security>Firewall. If the site then works you can turn the firewall back on and specifically allow Safari.

  • Hi, WWhen I turn on my mac pc, enter my account password my page wont load up , I can access the internet through my families account but not mine. There is a message telling me I need to delete files but the page won't load anything. Any help appreciated

    Hi
    When I turn on my pc and log into my account there is a message telling me I need to delete files. But the page won't load up anything to allow mw to do this. I am concerned I may have lost all my personal info.
    I can log into other family members accounts but not mine.
    Any help appreciated
    Thanks

    You only have to clone your mac when using certain cable modem.  You don't clone your mac when using dsl.
    Greetings from Northern Ontario, Canada

  • Livejournal pages won't load

    I have snow leopard. Security updates will no longer download. I get a can't access page notice. Livejournal pages won't load though they work fine if I go through safari. What can I do. At this point it is insane to continue to try to use mozilla because so many sites and pages won't load and I'm no longer secure.

    I loathe people that say in this communities, "I have that problem, too", without providing a solution. My tentative fix is as follows,
    1. Close every app that is open.
    2. Restart OS X (I am using 10.10.1.). Do not select, "Reopen applications...."
    3. Wait until the system has fully loaded (the desktop is populated).
    4. With all apps closed-open Pages.
    5. It does does take a minute or two of crunch time, but Pages does open.
    6. If you have documents in the "Pages Cloud", you will need a functioning Wi-Fi (or related).
    7. Optional- download to your desktop or an external drive (that is reliable) "Pages In the Cloud" documents that are essential to your occupational (or academic) well-being.
    This is an labor intensive process. I recommend you start Pages, and keep it open. I did note the problem started with the January 8, 2015 update, which is unfortunate.
    I was thinking of deleting Pages (cleanly, using say, Mackeeper) and re-installing. Alas, I am afraid of the unknown-could be creating more work than is necessary.
    I thought I would never utter these words-if all else fails, use Word for Mac.
    MacBook Pro, OS X Yosemite (10.10.1) and assorted applications.

  • Certain Web Pages won't load for roughly 60 seconds

    I was tempted to put this in the 'Safari' section, but after a little more trial I thought it went deeper than that.
    The issue is, for about two weeks now, i'll be surfing the web and then head to one of my commonly visited websites (namely Wikipedia, Google, Huffington Post, and this website) and though I'm fully connected to the internet, the pages won't load and i get the "Server Not Found" noitce.
    I don't, however, have this problem with ALL webpages when this is happening to the others. Gmail, Facebook, Mediaite, etc. all have no issue and they work just fine.
    Primarily I use Google Chrome as my browser. So the first thing i did was clear the cache to see if it would help, but nothing changed. So i opened both Safari and Firefox and they both suffer the same problem. After about 60 seconds the issue goes away and all things are normal again. About 10 to 15 minutes later, if I'm still surfing the web, the problem may creep back up again. I can't say for sure but I've noticed that this typically happens when I first try to go to those pages after a few hours of not using the net.
    When this happens, I've also tried loading these pages on my iPhone and iPad during the 60 seconds and have encountered the same problem.    
    Any help would be greatly appreciated.
    Note:
    Using a Wireless internet connection thru a cable modem.

    Safari 5.0.1 or later: Slow or partial webpage loading, or webpage cannot be found

  • Safari - Pages won't load

    Hi. I hope someone can help me
    There are two websites that my sister visits frequently on my eMac. She has never had problems before and now the pages won't load. We've tried other sites and aren't having any problems. I've also emptied the cache and reset Safari and it still won't work. We thought that there were problems with the website, but a friend loaded both pages just fine on a different machine.
    Can anyone help?

    Have you tried using masking Safari as another browser to see if the pages the machine is visiting have been instructed not to show content if the browser is not one expected?
    If you go to the Debug menu and select user agent, you can disguise Safari as another borwser. Also, from the Debug menu, you can use the Open page with menu to select the alternative browser you would like to use to open the pages.
    Alternatively, you might contact the owners of the site(s). Also, you might go to the Safari menu and Report Bugs to Apple.

  • Page won't load in Safari

    Hello,
    I'm trying to open a page (http://drjeder.com) in the newest Safari under WINDOWS and the page won't load. All I see is a blank screen and a loading message (Other browsers can open it with no problem).
    I then installed Safari (for Windows) on a different computer and it worked only for the first time, but after that it again wouldn't load. What causes this issue and how can it be resolved?
    Thanks in advance.

    I am getting the same problem on Safari 4 (but it works fine on the Mac), so any help anyone can provide that would be useful.
    The page I am having a problem with is http://www.iwebvisor.com/assets.aspx (but you need to have navigate to it through the site starting at http://www.iwebvisor.com/start.aspx)
    During testing we never had an issue with this it has just occured when we pushed this out for go live.
    Something else I have found is I can not replicate the error when I am running Fiddler2 (http://www.fiddler2.com/fiddler2/) to monitor the HTTP traffic, and there are no errors in the IIS log on the webserver. Its driving me insane.

  • When I open up my itunes the itunes store looks like it is loading but will not open

    When I open up my itunes the itunes store looks like it is loading but will not open

    I imagine this is a bit late for you, but to anyone else running into this problem, try the trick mentioned by VFSchreiber in this thread:
    Re: Why won't my iTunes movie rental play or download?
    This worked for me when I ran into the same issue (can scroll through rented movie but can't play it).  Just switch iTunes to the MiniPlayer (in the Window menu) and then back to the normal player.  Apparently, you may need to do this a few times. It sounds odd (and I didn't really expect it to work), but it fixed the problem for me.

  • Web pages start to load but blue address bar freezes.

    Web pages start to load but blue address bar freezes about a third of the way across
    Sometimes the page loads sometimes I will have to refresh the page. Once refreshed the page loads very quickly.
    Any solutions welcome it's driving me mad!

    Okay, a guess...
    The page only contains some JavaScript.
    I don't think the page is meant for people to view - here's the code from the page...
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>FOXNews.com</title>
    <script language="JavaScript">if(typeof(parent.prInst)=='undefined'){var prInst=1}else{prInst=parent.prInst+1} for(i=0;i<parent.frames.length;i+){if(parent.frames.title=='prif'){prInst+}}this.title='prif';var prs="http://ads.PointRoll.com/PRServe/?pos=s&num="prInst+"&"location.search.substring(1)"&r="+Math.random();document.write('<scr''ipt language="JavaScript" src="'prs+'"></scr''ipt>');</script>
    </head>
    <body>
    </body>
    </html>
    Tom

  • ITunes movie page won't load on my ipad 2, music and tv shows page loads fine

    Suddenly the iTunes movie page won't load on my iPad 2 I'm running the latest update, and the music and tv shows page load but the movie page just says loading, but never does

    Try this:
    1. Close all apps in the Task Bar. Double-click the Home button and hold apps down for a second or two. Tap the minus sign to close app.
    2. Hold the Sleep and Home button down until you see the Apple Logo.

  • IWeb page won't load if password protected

    Okay, so I finally found my problem - my web page won't load when it is password protected. But I have kids, so I want to make sure that only family and friends see the page. Is anyone else having this problem?
    Thank you!

    Here is a reiteration of the problem at hand, in case someone can help me figure this out:
    My web page can be accessed from internet explorer on my husband's laptop, but I cannot access my webpage. It just keeps saying "loading" when actually it should be showing me the "user name" and "password" stuff. Safari just keeps spinning and "loading," but it never makes any progress, since I can't SEE the password dropdown request. Is this a Safari problem, an iDisk problem, or what??? Where should I post this so I can get help?

  • Page won't load with KT_escapeAttribute( );

    trying to get an answer on this from someone...
    If I have this as my form action <?php echo
    KT_escapeAttribute(KT_getFullUri()); ?> the page won't load what
    don't I have set correctly??

    ttt

  • HP Officejet Pro 8500A Premium will not print docs from computer, but will print a test page.

    HP Officejet Pro 8500A Premium will not print docs from computer, but will print a test page.  I continually get a message that the computer cannot communicate with the printer.   Not only will it not print docs, it will not print web pages using IE 11 or Google Chrome.
    I've used Print and Scan Doctor, it always reports there are no issues and prints a test page even though I can't print anything else. 
    Each time I want to print, I must reboot the computer.  After reboot I have one chance to print.   This problem started February 15, 2015.  
    My operating system is Windows 8.1.   I have unintalled the HP software, rebooted, then reinstalled the software:
    OJ8500_A910_1315-1.exe
    HP Print and Scan Doctor - HPPSdr.exe
    HPSupportSolutionsFramework-11.51.0049.msi
    All versions were last downloaded on April 4, 2015.
    I have a home wireless network (Ubee DDW366 router).  All other devices in the house will print to the 8500A printer without issues:  2 Toshiba laptops, 2 Android phones, and 1FireHD.
    The desk top is installed with a Netgear Network card I don't know the model, but I had it tested by a PC Tech to confirm that the card is working.   The card and Windows 8.1 were installed on January 3, 2015.
    I have run virus scans and malware scans.  Each time they show there are no issues with my desktop.  What kind of desktop? Specifically made to my specs from store parts. . . no brand name computer.  ASUS Motherboard P6X580 Premium.  Now I will probably get hacked!
    I am at my wits end.  And it is frustrating when I need to make a print of something and the system locks up.  I often resort to screen printing to a word document to save in order to reboot. . . .but then I lose all sorts of capabilites when I salvage what I needed.  Also this is a time consumer.
    This printer has served us well for two years and I have expensive cartridges waiting; another two rounds of refills.
    Help?
    Addendum:  I can scan using HP Printer Assistance.  I open the HP Printer assistant, it "retrieves" info from the printer, then I select "scan a document or photo" and the printer responds.   I have no trouble with scanning.
    This question was solved.
    View Solution.

    Hi ArielAce , thanks for getting back to me!
    I would recommend downloading and running the HP Print and Scan Doctor.
    Please keep me posted!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

Maybe you are looking for

  • How to identify/remove kexts labeled as kernel_task that consume too much resources

    Hi all, I am using Mac Os X 10.6, on a 2010 macbook pro 17" with latest updates as of 09 05 2011 I am using memory intensive applications for scientific purposes, and I am quite unhappy with one kernel extension that consumes more than 600 mb of real

  • How to play and code .swf as screen saver using cocoa??

    Hello, I am facing using .swf flash file as screen saver when coding in COCOA. Any sor tof help or code snippet will help me to understand what I need to do?? Looking for experts help. Thanks in advance PG

  • Internal and external switches on server 2012 r2

    this is driving me nuts. I have a vm with an internal and external switch. I am trying to get backups to route to the host machine using the internal switch only. I've gone all over priorities and the routes are all fine but the data will constantly

  • Enhancing Function Module Extractor

    Is it possible to enhance an extract structure which is using a function module as an extractor. Basically I want to extract some more fields which the function module is not extracting. Can someone let me know how to do this. Best Regards, James.

  • Export PDF Online Error

    This is the error message i see everytime I want to download a converted file. Does anyone have any suggestions as to what I should do to resolve this? ....thanks