close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Develop on Windows ... then Deploy on Linux

Thread began 3/18/2010 7:36 pm by yogastudents362523 | Last modified 3/18/2010 9:24 pm by yogastudents362523 | 2023 views | 4 replies

yogastudents362523

Develop on Windows ... then Deploy on Linux

Hi,

I can just FEEL that this is a stupid question before I ask it, but I can't quite figure out why. Please don't laugh. I am completely new at this stuff.

I hire a Linux web server located thousands of miles away. I do my development at home. Mine's a PC, theirs is a Linux. Little things like include files don't work properly because of the difference in referencing.

I notice that when I run phpinfo(), one of the things it does is tell you the OS. So ... what I would really like to do is be able to develop on my home Windows-based laptop and get everything working just fine on Windows, include files and all, and then just upload and deploy straight to web, knowing that it will work just fine there as well, because the difference in OS will be detected, and the relevant path used.

I started trying to do this, but it just seemed too simple an idea, so I am suspicious. Is it in fact possible to put some kind of an 'if-else' clause at the beginning of a file so that it can then use one set of path references for includes and so forth if it is in one environment, but use another if it is in another? Would getenv() or $_ENV do this for me?

I don't mind doing the work to learn and get it right if it is doable ... but I also don't want to waste my time if it isn't, and am wondering if one of you gurus out here could give me a heads-up on these possibilities before I go any further.

Thanks.

Bye now.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...