Trouble 'putting' dynamic web pages to remote server
I have a site defined in DWCS5. I have two servers defined, a local testing server on my computer and the remote server at the hosting company. I have no connection problems with either. I can put 'static' web pages from the local testing server to the remote server without any problems.
But when I try to 'put' a page that relies on dynamic content from my local testing server, all of the connection code is based on the local connection, it doesn't get updated to the remote connection code. When I browse to the page on the remote server, I get errors, essentially file not found errors because the connection code is looking for the local resourses.
Warning: require_once(../Connections/localhost.php) [function.require-once]: failed to open stream:
The code should read require_one(../Connections/bluehost.php) to run properly on the remote server.
There are two different connection files in the Connections sub directory. There is the one with the connection code to access the local database and then there is another with the connection code to access the remote server's database. The code in both files is correct and works when called on the appropriate server.
If I go through and edit on the remote server and manually correct the code, the page will work, but then my local page has the remote server's connection strings and won't work again. I'm getting really good at running FIND/REPLACE.
I just have to change the name of the connection.
I need to be able to transfer a dynamic page from local to remote and have the connection code updated so that the code on the remote is for the remote and the code on the local is the code for the local.
I think I figured out my own problem.
I made the database connection information exactly the same for the local server database and the remote server database. Now when I upload the local data to the remote server it seems to be working.
I guess I over thunk it.
Similar Messages
-
Creating a dynamic web page with Dreamweaver CS6 academic version
To create a dynamic web page with Dreamweaver CS6 academic version, setting up for testing server menu box just shows up and disappear. what is that issue?
Anderson51 wrote:
I'm new to this area ... ...Like I said, I'm new and in way over my head - I think???? Help???
Hmmm,
I don't want to be the one to put you off. I'm in over my head too but I really enjoy the pain of grappling with Dreamweaver. It isn't really for the novice user and unlike any other app I know, it will be of greater benefit to those who have some knowledge of the underlying languages it deals with. i.e. HTML, CSS and some others. Strangely, I also hear from people that know the coding well, that they don't like/use/need Dreamweaver.
If you only want one site, and don't really need to wrench your own unique identity from what you are doing, why not look at a free site from Wordpress.com? I am sure you can use your own domain, and as you get proficient at it, you can expand what's there by paying for it.
Just a thought
Martin -
How do I get Started with Dynamic Web Pages?
I am presently following Janine Warner's Dreamweaver CS3 video series. I noted that the Advanced part of this tutorial series focuses on Dynamic Web Pages, but only uses Cold Fusion. From what I can gather, CF costs around $1000, while PHP is free! My question is really this: in going from static to dynamic web design I'M A COMPLETE NEWBIE, so what do I need? I am doing some planning here -- I know it won't happen overnight.
(BTW: I was surprised to discover that CF is NOT included in my CS3 Master Collection). It might appear then that support for PHP is better than for CF?
Apparently, I need a server -- well, OK I have PCs to spare. Fast internet, I also have: Comcast standard -- 12MP
Now, I think I also need Apache -- which apparently runs on the server and does something.
So then I DL PHP, figure out how it works, and it will integrate with DW CS3 in some way.
Now, what have I missed? Is there some really basic, first-time-with-using-a-server place or tut I should go to or read? Before you ask: No, I'm doing all this myself on a shoestring budget.
Are there expensive hosting fees for dynamic web sites or other items I will run into? Can I just use a PC over my Comcast cable as the server run from my home? (Really high traffic is not anticipated)
All recommendations appreciated, thanks.
ThomMany of these questions have already been answered in your thread in the Dreamweaver General Discussion forum, so I'll just stick to a few basics.
You need a server whichever server-side technology you choose, but "server" is not a physical machine, but a piece of software that you install on your development computer. You'll find details of how to install a PHP environment in the following article: http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php.html.
Similar instructions are available for setting up a ColdFusion server at http://www.adobe.com/devnet/dreamweaver/articles/setting_up_coldfusion.html. The article is for ColdFusion 8, but ColdFusion 9 is installed in exactly the same way.
Hosting for PHP/MySQL is plentiful and relatively cheap. However, make sure the hosting company offers a minimum of PHP 5.2 and MySQL 5.1. Hosting for CF is harder to find and tends to be a bit more expensive, but not prohibitively so. -
Meta data information from dynamic web page
Dear all,
for website searching, we should put the meta data in every page, in my case
i have to get the data from dynamic page(data are coming from database).
So, how can i meta data information from dynamic web page
kindly suggest.
thanx,
R. Ramasubramanaim.Build your web application with BSP, that's all I can say...
-
How to allow my webserver to create dynamic web pages ?
say i have created a pretty simple web server in java which can send and receive HTML files. How can i extend it to allow dynamic web pages ?
thanksYou know the part that takes some information from a request, and then loads the requested file?
Replace that with something that takes that info and uses it to invoke some other functionality.
No more detail is possible given the detail-less nature of your question.
You do realize that you're reinventing the wheel, right? -
How do you put safari web pages into icloud with the safari iCloud button?
how do you put safari web pages into icloud with the safari iCloud button?
What that button does is sync your tabs between your devices. So if you have multiple macs with Mountain Lion and/or devices with iOS 6 (once it comes out this fall) you can pick up where you left off. For example, let's say I have apple.com, nytimes.com, and facebook.com open on my mac, but I need to run. Later, if I need to use another computer in my household, I can just restore the tabs that I was using before on this other mac.
-
I am starting to work on some dynamic web pages to upload
information to an Access 2003 database using ASP. What I would like
to do is to give the user a chance to review their information
before it actually gets sent to the database. That is to say, after
they fill out the form on the dynamic web page, and click a submit
button, I would like to bring up a new page with their info
summarized and give them the chance to review it and/or go back and
make changes before it actually gets written to the database. Any
suggestions would be appreciated!I'm not sure what the question is. It sounds like you already
know what you want.
Have the form post to an asp page that retrieves the form
values and displays them in the format you want. Give them the
choice to go back and make changes or submit. The second page can
also be a form that you dynamically populate from the first page
values.
I'm not really sure what the benefit of this is. Why do the
users need a different page to review what they input from the
original page? What added value will there be? -
How can I get HTML source code of dynamic Web page ?
Hi,
I would like to write a program that can get HTML source code of some Web pages, but there are some dynamic Web pages that I can't do it with URL class. For example: http://www.europlex.ch/web/3schedule/showAll.jsp?context=schedule.
Thank you very much for any solution.Thank you for your attention. I'm sorry because I could't describe it clearly. If you don't mind, please follow this step to understand my problem:
In the browser, enter URL: http://www.europlex.ch/web/main.jsp?locale=_english
Click on Schedule, you will see the page with Cinema name, Film, Time... I would like to write Java Program to get HTML code of only this Page (Not frame page).
Do you have any idea ?
Thanhks, -
Using Java for dynamic web page content
I've currently got a Perl program that I'd like to convert to Java. It merges two files that are stored on a web server and generates a "dynamic" HTML response.
For example, if I have the following files on the server:
File1:
<Comment1>This stuff</Comment1>
<Comment2>That stuff</Comment2>
File2:
<HTML>
<Comment1><br><Comment2>
</HTML>
When I go to the URL
www.mysite.com\cgibin\merge.pl?file1&file2
the Perl program will produce a web page saying:
This stuff
That stuff
The major obstical for the rewrite: NO JSP ALLOWED. It's not allowed by the ISP.
Now for the questions:
- Could this be done using Java?
- How could I initiate the Java app and pass it the parameters? (applet tag, access Java inside Perl, use Java Script somehow)
- Will an applet tag even work for this since the final page is generated completely from other files?
Thank you very much for your help.If your ISP don't support JSP / Servlets,
1.use any server side technolgy, something like ASP.
2.Read the files and transform them as Strings (or StringBuffers).
3.Pass these Strings as parameters to the applet (if you are forced to use java technology, otherwise you can do it using ASP itself).
4.Construct the required format (content) in your applet.
Don't forget that the stuff will be in applet but not a complete web page. The ideal solution is asking your ISP to provide JSP engine. -
Where can I find a users blog web page on the server?
I know I can access the blog from the internet (http://myserver.com/users/username). I have a link on our web site set up for surfers to access this blog. I want to add a last updated line but the code [updated: <!--#flastmod virtual="http://mysever.com/users/username/" -->] obviously won't work because I need the actual web page name. Just what is this name? Where can I find it?
There is no file, so you can't use this approach.
The blog content is written in a database format, and the page is built dynamically when it's requested pulling the latest content from the database.
The #flastmod will only look at the filesystem and return the modification date of a file.
In order to get the modification date of the blog (i.e. the most recent post), you're going to have to query the database, which can't be done with a server-side includes tag. -
Viewing web pages from remote panel error
I used an activex container and put the web browser object into it. Next thing I knew, everytime I would open that vi's remote panel via the web server, iexplorer crashes. What gives?
Grub
Hell, there are no rules here...we're trying to accomplish something!!! - Thomas EdisonGrub,
How is Internet Explorer crashing? Does it stop responding, or
give an error? Does the LabVIEW program have any errors on the
host computer? I did find a KB that talks about the limitations
of remote front panels, and it mentions that ActiveX will not work, but
does not say anything about crashing Internet Explorer.
Check out the KB
Repost with any additional information.
Andy F.
National Instruments -
Error while accessing page in remote server
Dear All,
When i deployed the application in remote server and accessed the page from client side it gives the following error in log and displays the message 'And error occured at server and prevented it from servicing the request'
<Jan 5, 2011 7:17:03 PM IST> <Error> <HTTP> <BEA-101020> <[ServletContext@423553
27[app:TMS_application1 module:tms path:/tms spec-version:2.5]] Servlet failed w
ith Exception
java.lang.NullPointerException
at oracle.adf.model.binding.DCIteratorBinding.executeQueryIfNeeded(DCIte
ratorBinding.java:2127)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DC
BindingContainer.java:3185)
at oracle.adf.model.binding.DCBindingContainer.refreshControl(DCBindingC
ontainer.java:2877)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContaine
r.java:2863)
at oracle.adfinternal.controller.util.model.DataBindingActivityImpl.befo
reExecute(DataBindingActivityImpl.java:108)
Truncated. see log file for complete stacktrace
>
<Jan 5, 2011 7:17:03 PM IST> <Notice> <Diagnostics> <BEA-320068> <Watch 'Uncheck
edException' with severity 'Notice' on server 'AdminServer' has triggered at Jan
5, 2011 7:17:03 PM IST. Notification details:
WatchRuleType: Log
WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'BEA-101020') OR (MSGID = 'BEA-101
017') OR (MSGID = 'BEA-000802'))
WatchData: DATE = Jan 5, 2011 7:17:03 PM IST SERVER = AdminServer MESSAGE = [Ser
vletContext@42355327[app:TMS_application1 module:tms path:/tms spec-version:2.5]
] Servlet failed with Exception
java.lang.NullPointerException
at oracle.adf.model.binding.DCIteratorBinding.executeQueryIfNeeded(DCIte
ratorBinding.java:2127)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DC
BindingContainer.java:3185)
at oracle.adf.model.binding.DCBindingContainer.refreshControl(DCBindingC
ontainer.java:2877)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContaine
r.java:2863)
at oracle.adfinternal.controller.util.model.DataBindingActivityImpl.befo
reExecute(DataBindingActivityImpl.java:108)
at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivit
y(ControlFlowEngine.java:969)
at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(Cont
rolFlowEngine.java:878)
at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(Cont
rolFlowEngine.java:777)
at oracle.adfinternal.controller.engine.ControlFlowEngine.invokeTaskFlow
(ControlFlowEngine.java:242)
at oracle.adfinternal.controller.application.RemoteTaskFlowCallRequestHa
ndler.invokeTaskFlowByUrl(RemoteTaskFlowCallRequestHandler.java:99)
at oracle.adfinternal.controller.application.RemoteTaskFlowCallRequestHa
ndler.doCreateView(RemoteTaskFlowCallRequestHandler.java:64)
at oracle.adfinternal.controller.application.BaseRequestHandlerImpl.crea
teView(BaseRequestHandlerImpl.java:57)
at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.creat
eView(ViewHandlerImpl.java:95)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(Li
fecycleImpl.java:572)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(L
ifecycleImpl.java:280)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(Lifecyc
leImpl.java:177)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
tyHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.j
ava:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter
(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterL
istChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter
.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterL
istChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilt
erImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilte
r(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFi
lter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:31
3)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUt
il.java:414)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:1
38)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsF
ilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
ervletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
ontext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
ava:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] Execu
teThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101
020 MACHINE = JOG002157 TXID = CONTEXTID = dcc2d4e25c73ce5e:9039d9:12d5668ad5a:
-7ff4-000000000000003b TIMESTAMP = 1294235223232
WatchAlarmType: AutomaticReset
WatchAlarmResetPeriod: 30000
>
So can any one tell me whats the problem. ?You got an NEP on the server, which points to either a misconfiguration of the server (is hte adf runtime installed?) or an error in your app.
What did you deploy? an EAR? Are the connections configured correctly? Have you check other logs on the remote server?
Which jdev Version? Which remote server?
Timo -
My Yahoo like Dynamic web page content creation
Are there any methodologies/best practices available for creation of pages like My Yahoo.
Basically, display of page depends on sections chosen by the user for display and inside those sections content is also what is chosen by the user. Page is different for different users based on their options.
Are there any methodologies/best practices available for this kind of work using JSP.If your ISP don't support JSP / Servlets,
1.use any server side technolgy, something like ASP.
2.Read the files and transform them as Strings (or StringBuffers).
3.Pass these Strings as parameters to the applet (if you are forced to use java technology, otherwise you can do it using ASP itself).
4.Construct the required format (content) in your applet.
Don't forget that the stuff will be in applet but not a complete web page. The ideal solution is asking your ISP to provide JSP engine. -
Trouble accessing the web page outside of the US
In PAris having trouble accessing my Iweb pages, They published successfully because some friends (But not all) in the US and UK can access the site. I can not locate it in my browser nor can anyone else in France. I sent everyone the same initial publishing email. What am I doing wrong? Any help would be appreciated.
web.me.com/rwhavenI can view your site in Belgium.
-
Multiples web pages in one server and one ip
please help me,
i need a web server with multiples web pages,
one for each person. but i only have one ip.
how could i do this. I need to program some kind of dns server?. or what.
i have heared that this is called dns dinamic or redirecting.
please help me!!!!!.
of course programming in java.
thank's.You can just give the web pages different file names and you will have multiple web pages, but I suppose you mean that you want seperate url's to point to each user?
Maybe you are looking for
-
Schedule SP01 in background, how to?
Hello together, does anybody have an idea, how to schedule TA SP01 in background? My first solution thought was, to call SP01 from a small program, but, because SP01 is a module-pool program, it can only called via "call transaction". Immediate after
-
iTunes keeps freezing up when trying to sync my iPod on my Windows 7 computer. Will not go past "Determining which tracks to sync". Any advice?
-
We have a Major Hospital/Clinic in Marshfield, Wisconsin yet very little if any coverage. I have complained numerious times only to be ignored. Why can't someone tell me why Verizion refuses to do anything? Sincerely, Kevin H << Personal information
-
Client OS - MS Windows XP Professional SP2 with SBO 2007 B
Dear All, Is there any compatibility issue with the client OS - MS Windows XP Professional SP2 with SBO 2007 B?
-
How to combine text with variable in process flow
Hi, I have created a function that returns the environment that a process flow is running in, Production, Test or Development. I have been able to bind the output of the function into a variable in a process flow and bind the variable to the subject