Re: PHP to HTML?

I have also changed the path to the root directory for the site, in Dreamweaver, to www in winamp. However, when I try to select a testing server, winamp isn't on the list??

Re: PHP to HTML?

The www folder had an phpinfo.php  file put there by WinampServer so it looks as if you have deleted that now which shows Server Configuration and Your Projects.

You've changed so much that it may be better to install winampServer 2 again and then follow my suggestions in post 12.

All files you wish to test must be in the www folder or a sub-folder in www and you must open winampserver, then localhost which opens your default browser with localhost already seen in the browser address bar, and it should open the phpinfo.php file that Winapserver put there, then go to Your Projects and select a file or type in your filename after localhost in the browser address bar window.

Additionally, when you left click the system tray icon, if the bottom link says "Put Online" then click it online. Whenever I open winampserver it says "Put Offline" which means it's always online for me so I never have to do anything except click localhost.

Try again, hope you succeed next time.

Last edited by Wickham (2009-07-22 06:56:20)

Re: PHP to HTML?

I have re-installed winamp and put the whole downloaded site folder in www. Localhost server configuration now opens and the site folder is shown in Your Projects.

When I click on the named project I get this:

Index of /Accel
Name Last modified Size Description

--------------------------------------------------------------------------------

Parent Directory    - 
Interchange Photos/  22-Jul-2009 09:37  - 
cgi-bin/  22-Jul-2009 09:37  - 
etc/  22-Jul-2009 09:37  - 
logs/  22-Jul-2009 09:37  - 
t  19-May-2009 20:20  0 
www/  16-Oct-2008 00:00  - 

The files/folders I need to access are in the www/ folder and when I click on that, the Home Page of the site open in Internet Explorer, not in localhost, is this right?

If so, I cannot work out how to get to the individual files to work on them. As I mentioned previously, I have changed the path of the root directory in Dreamweaver, to point it to winamp www but winamp doesn't show in the list of testing servers.

Furthermore, opening the files in Dreamweaver, now they are in winamp, still doesn't reveal the page coding that I need to see.

Re: PHP to HTML?

Sounds like it is working correctly, actually. You don't use localhost to see all of the files/folders in the website -- you use Windows Explorer for that. Localhost is used for previewing the website, as it would be if it were live on the web.

Windows Explorer - viewing all files/folders
localhost - previewing website
dreamweaver - editing the website files

Re: PHP to HTML?

OK! Here's a probable problem. I believe you are not using the right www folder.

  • Click on "My Computer" on your desk-top.
    Choose the "local disk" icon and click it
    You should have a folder therein named WAMP. Click on that to open it.
    There should be a folder in there called www. That's where your files should go!

NOW! Don't bother clicking directly on your downloaded files. All you will get is the raw text documents because the php engine within WAMP is not yet functioning.

Close everything back up and start your WampServer (Which I believe you now know how to do.)  And from within IT you should be able to run the site with all the php functions running properly.

To edit the files, you have to get back to that same www folder as you did above, do your changes and save them. (Make a copy of the original file first!!!) Save your changes under the exact same name. (You will have the copy you made to "undo" anything you screwed up! big_smile)

Now view your changes from within the WampServer as before.

Hope it helps!

Alfie

Last edited by daddyalfie (2009-07-22 13:11:35)

Re: PHP to HTML?

I get some of that, thanks.

I have been into Dreamweaver and changed a couple of files (saved them as the existing name - have copies). Then opened Localhost, clicked on the site name in Your Projects, this brings up the basic folder structure where all the 'operational stuff' is in the www folder. Click on the www folder and it opens the Home page live on the web - not in Localhost.

Where have I gone wrong now please?

Re: PHP to HTML?

Can anyone help please?

Re: PHP to HTML?

Then opened Localhost, this should open the browser you chose as a your default browser when installing WampServer and it should show http://localhost in the address bar.

clicked on the site name in Your Projects, this brings up the basic folder structure where all the 'operational stuff' is in the www folder. clicking on a folder name under Your Projects should open a new page in the browser headed Index of /test (where test is one of my folders in www directory) wit a list of files below in blue. If you click on a filename with a .php extension in the list it should open it in the browser with http://localhost/test/order.php where order.php is one of my files in the test directory.

Click on the www folder and it opens the Home page live on the web - not in Localhost. I don't get that result. I don't even see the www directory under Your Projects or in the Index of /test that appears in the browser window.

Re: PHP to HTML?

replying in the order you have responded (Wickham):-

How can I check the winamp default browser? I suspect it's IE not localhost.

Please see my list of files as reported in post 6. There are no files with a .php extension. They are all in the www/ folder and when I click on that, rather than expand to show all the other folders and files, it opens the site homepage in IE.

When you say that you don't see the www directory under Your Projects - nor do I. Again, please see my post 6. The www/ I'm referring to is a folder within this site's structure, not the www in winamp.

It seems to me (in complete ignorance) that unless I can get winamp to expand this www/ folder, I will not get any further.

It's beginning to look like a lost cause.

Re: PHP to HTML?

When it opens the site in IE, what is the url? Does it include localhost?

Re: PHP to HTML?

How can I check the winamp default browser? That's easy. If you follow the advice in my post 12 "Click the icon on your desktop and you should see a small semi-circular icon appear in the system tray. Left-click the icon and click the top item which either says Localhost or 127.0.0.1 and it should open the browser that you chose as the default."  When the browser is open you can see which it is.

The www/ I'm referring to is a folder within this site's structure, not the www in winamp. If you have created another folder called www somewhere else, then you have confused yourself. There should only be one folder called www and that should be inside a folder called wamp inside C: Use Windows Explorer to check that it's still there as it's this www folder that you need to put your .php files inside (possibly after creating your own folder inside www) and then access them through WampServer using Your Projects from the WampServer Server configuration page which should be the first to show when you open the browser by clicking localhost in the system tray icon.

Re: PHP to HTML?

Falkencreative: it's http://sitename.co.uk   no mention of localhost.

Wickham: when I select localhost it opens http://localhost/  at the Server Configuration page.

I must try to clarify the situation - I didn't create the www/folder in this site, the web designer did that. If you look again at the folder configuration in my post 6 (repeated in post 28), you will see it is the bottom folder shown in Your Project. The web designer has placed all the current 'live' folders and files within www/.

Winamp has still got it's www folder and the whole downloaded site is in there. I cannot find a way of getting winamp server/Your Projects to display all the individual folders and files that are within the www/ folder.

It would appear that, unless a way can be found to get winamp to show the complete file/folder structure (as it appears in Dreamweaver), I am not going to be able to work on this site at all through winamp?

Re: PHP to HTML?

PS.  I have tried taking all the folders that reside within the www/ site folder out by copying them and pasting them individually into the Winamp www folder. They now appear in localhost/Your Projects but still the indes of files doesn't appear when I select a folder.

It either opens one file from that folder in localhost or (in the case of the main folder which contains index.php) I get a 'server error'.

I am bemused why this software is having such problems displaying the full site directory, when Dreamweaver shows it perfectly?

Re: PHP to HTML?

If the index doesn't show, you should be able to open a file manually.

Get the browser open showing http://localhost, then open windows explorer and look in C:\wamp\www for the file that you want, make a note of the filename and type it after http://localhost  like http://localhost/filename.php and it should open, or http://localhost/your-sub-folder/filename.php if you have created a sub-folder in www.

Re: PHP to HTML?

Tried that - ie; http://localhost/C:/wamp/www/new/index1.php, also tried it without the C:/ then without the wamp/ - nothing works. It says  'the web page cannot be found.

Is there another way round this as, it seems winamp just isn't going to work? Is there some way of telling Dreamweaver to use localhost for viewing changed/added files?

Re: PHP to HTML?

You must be very nearly succeeding; I said
http://localhost/your-sub-folder/filename.php

but you used
http://localhost/C:/wamp/www/new/index1.php

but it should be
http://localhost/new/index1.php

provided that you are using the browser which opened using WampServer and localhost.

Last edited by Wickham (2009-07-29 08:54:44)

Re: PHP to HTML?

Sorry, should have said that I'd tried that as well - gets this:

"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log."

Re: PHP to HTML?

Hi,

I don't if you seen this video on server side vs client side programming languages, but it may help.

Oops, you should also watch this video on your first PHP script - I do the examples in Dreamweaver.

Stefan

Re: PHP to HTML?

Hi Stefan,

thanks for the response. I had seen the first video but not the second. They are/will be useful but I have to overcome the problem with getting wamp to display the file/folder structure first.

I have tried so many variables of how I load the downloaded site into wamp (www folder) but none of them work and I am completely stuck.

The site file/folder structure looks fine in Dreamweaver and if it would display the same in wamp, I might start to get somewhere.

Re: PHP to HTML?

You often mention Dreamweaver, is that the default browser being opened by WampServer? I think that could be causing a problem.

If so I suggest that you download Firefox, close Dreamweaver, reinstal WampServer and when you get the option to choose a default browser (just for WampServer's use), choose Firefox. Don't open Dreamweaver before or during using WampServer.

Re: PHP to HTML?

Dreamweaver is just the editing/design program I have. I do have Firefox as well as IE on that PC and will try what you suggest.

Re: PHP to HTML?

Oh dear!  did all that - uninstalled wamp (again). To be sure I went into windows explorer and removed the wamp folder after using Add/Remove Programs for the uninstall. Then used CCleaner to clear any wamp Registry entries.

The re-installed wamp - selected Firefox as the default browser. Went back into windows explorer and copied the website folder and pasted it (as a 'master folder' in which all the site structure resides) into wamp www directory.

Opened wamp in localhost (in Firefox)and there was the website folder in Your Projects. Clicked on it and the same index appeared as I have previously shown here, with the www/ folder - clicked on that and ...

Same as before, instead of expanding the www/ folder to show all the other folders and files, it opens the web homepage live on the internet not in localhost.

Back to square one - going mad - on the point of giving up!

Re: PHP to HTML?

Have you looked at the PHP code on the home page, by any chance? Perhaps it has some sort of redirect script that redirects to the live website when it is first opened?

Alternatively, if you zip the files up and send them to me (ben [at] falkencreative.com) I can put them in WAMP and see if I can sort the problem out for you.

Re: PHP to HTML?

Falkencreative - that's extremely kind of you. Do you mean zip the whole site to send to you, as that's 458mb, even when zipped??

Re: PHP to HTML?

Er. That's a bit much. Perhaps you can take a look through the files and see if there is anything specific that I won't need that is causing the ZIP file to be so large? (Design related files, super large image, etc?)

Alternatively, how did you download the site in the first place? Could you provide me with instructions on how you went about that (via private message, so the details aren't on view for anyone to look at)? What were you using? FTP?