Link to home
Start Free TrialLog in
Avatar of Adam
AdamFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Trying to preview dynamic framesets

Hello.

I'm working on a frameset (reading other views - I get the impression framests are rubbish, but unfortunately so are my programming skills which means frames are the only solution for me at the moment) with 2 frames - 1 which displays a dynamic page taken from a database, and 2 - which lists column entries in that database and also features a recordset navagation bar, to allow the viewer to browse through the database entries - also a dynamic page.

Anyway, the problem at the moment is that with frames, I seem to be only able to preview locally, and perhaps this is the reason why my recordset navagation bar seems all messed up and is why I can't preview my recordset entries - which really means I don't know if the site is working or not.

My Question - Is there anyway to preview framesets dynamically on the server? And should my frameset and all frames within be PHP documents (I'm using a phpserver model) or can the frameset be just usual HTML - with PHP frames?

Thanks

Regards,

Adam
ASKER CERTIFIED SOLUTION
Avatar of Esopo
Esopo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Adam

ASKER


Hi Esopo,

Thanks for the response.

I seem to be a little lost, not only with framesets, but computers in general I think. Until now I had managed to create dynamic pages which took information from an SQL database and displayed. Pressing ctrlf12 allowed me to preview them - I think from the server. This worked fine.

As soon as I tried to add frames - things started to go wrong, and my dynamic image link was broken, and I was unabale to preview from the server as I had done before.

Even when I took my working dynamic page, and added a frame to it and created the frameset, it then became impossible to view this frameset dynamically - as I had been doing with single pages.

I have noticed though (perhaps this may be the problem - or it may be completed unrelated), that when I save my dynamic Php pages into my server, they don't seem to save under the name I had saved them. For example - a php page I saved as Viewing Profile.php then appears on my server (when I view it through my FTP application) as somethng like - TMP2b91878dng.php.

No when I tried to view my pages on the server by uploading them - as you advised - I get this error message :

Warning: main(Connections/testdatabase_connection.php): failed to open stream: No such file or directory in /home/cjpqapym/public_html/ViewTesterase.php on line 1

Fatal error: main(): Failed opening required 'Connections/testdatabase_connection.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cjpqapym/public_html/ViewTesterase.php on line 1

Which I guess tells me the file isn't there. Is this perhaps because the name has changed to the one above(TMP2b91878dng.php)? I'm not sure why the name is changing but for now I will assume this may be part of the problem. I will try to change the name manually to what it should be and see if I can then preview on my server by uploading the files using FTP.

Anyway, thanks for your help, and thanks for reading this message too.

Cheers

Adam
Avatar of Adam

ASKER

So now it seems that I can access the TMP version of the page but the actual version can not be accessed. Viewing my /public_html folder, I see that both the temp and correctly named files seem to be there, but when I try to display those pages in my browser by typing in the web-location, I can only get the TEMP version to appear. Mmmm...
Avatar of Adam

ASKER

Actually - I have now noticed that all my PHP dynamic pages don't seem to appear when I type in the full URL in the browser, but only when I type in the url+TMPpage (not just the ones in the Frameset).  
Avatar of Adam

ASKER

Okay...well I turned off 'Preview using temporary file' in the preferences and that looks promising - I can now display the file by typing in the URL...now back to those framesets... (sorry for the pointless monologue - wouldn't want anyone to waste time thinking about this one if I can get it sorted)
Avatar of Adam

ASKER

Okay..so things seem to be okay now. I just preview on the server using an FTP applcations and don't create TEMP files and it seems to work.

Thanks for the advice Esopo
>>well I turned off 'Preview using temporary file'<<
Exactly. Those Tmpxxxxxx.php files you have been getting are the temporary previewing files DW creates in orther to allow a preview without saving over the original file. This serves very little purpouse so DW MX 2004 disables it as default.

>>sorry for the pointless monologue...<<
Don't be sorry about it. Most users come here, ask away and expect people to magically understand their problems and find solutions. The more info you can provide about your issue, the better.

I'm glad it's working now.

Best regards,

Esopo.