Traveller29 Posted October 13, 2009 Share Posted October 13, 2009 New to PHP so please be gentle! I code in HTML and run these locally in my browser to check their progress (can't seem to get any of the servers to work btw?! - another day maybe?) Anyhow I send the HTML files to my webspace and my ftp client will automatically change them to PHP. Good so far! Now, this is where my problem starts - in the HTML there are links to other HTML but they will not call from the webspace as they have been re-named PHP; with me so far?! Is there a trick to overcoming this or is it a handball job - I also have external page links which are HTML so a 'global' change is not practical. Any advice please would be much appreciated :-) Quote Link to comment https://forums.phpfreaks.com/topic/177518-html-vs-php/ Share on other sites More sharing options...
Mchl Posted October 13, 2009 Share Posted October 13, 2009 I send the HTML files to my webspace and my ftp client will automatically change them to PHP. Good so far! Uh.. no good at all? If thee are pure HTML files, why change extension to PHP? Quote Link to comment https://forums.phpfreaks.com/topic/177518-html-vs-php/#findComment-935964 Share on other sites More sharing options...
Traveller29 Posted October 13, 2009 Author Share Posted October 13, 2009 Cos I want to use some PHP inserts (for dynamic menus etc.) and they don't run when the file is named as an HTML? Quote Link to comment https://forums.phpfreaks.com/topic/177518-html-vs-php/#findComment-935966 Share on other sites More sharing options...
Traveller29 Posted October 13, 2009 Author Share Posted October 13, 2009 (can't seem to get any of the servers to work btw?! - another day maybe?) Ah ha - pleased to say that I have just got EasyPHP to work so I can now view my PHP locally! Would still welcome any help/comment about my original question please? MTIA, Quote Link to comment https://forums.phpfreaks.com/topic/177518-html-vs-php/#findComment-936015 Share on other sites More sharing options...
trq Posted October 13, 2009 Share Posted October 13, 2009 Ah ha - pleased to say that I have just got EasyPHP to work so I can now view my PHP locally! Ya, because php is so hard to install.... Your original question makes little sense. If you want your links to be valid they need t point to valid uri's, full stop. An ftp client is renaming your files? Why? Quote Link to comment https://forums.phpfreaks.com/topic/177518-html-vs-php/#findComment-936019 Share on other sites More sharing options...
Traveller29 Posted October 13, 2009 Author Share Posted October 13, 2009 When I wrote my original question I couldn't get PHP files to display locally; now I can You answered just before I was about to answer my own question as I have now the ability to name everything PHP and see the fruits of my efforts directly on my PC So thanks to everyones input - must try to explain myself better in the future though btw, I can cope with sarcasm when it is required - not sure it was here seeing as I said I was new to this; we all have to learn and I have Quote Link to comment https://forums.phpfreaks.com/topic/177518-html-vs-php/#findComment-936028 Share on other sites More sharing options...
trq Posted October 13, 2009 Share Posted October 13, 2009 btw, I can cope with sarcasm when it is required Hang around here long enough and you'll come to learn that its all part of the fun. Hope you do stick around. Quote Link to comment https://forums.phpfreaks.com/topic/177518-html-vs-php/#findComment-936032 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.