473,320 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

PHP portability

I have PHP 4 running as a module on windows XP, I also have MySQL and Apache
2 running on windows XP.

If I write a big website on my computer that has XP and I use PHP, MySQL and
Apache 2, and HTML and Javascript to write my web site, how hard will
it be to transfere my whole website from my home computer to a hosting
company that I find on the web.

Does anybody know how hard the portability issue would be? Are there a lot
of hosting companies that I can find on the web that would be good for this?

Thanks a million for information, I don't know what I would do without
Usenet.
Jul 17 '05 #1
5 3677
Attempting to reach the Kolinahr, Nick Mudge wrote:
I have PHP 4 running as a module on windows XP, I also have MySQL and
Apache 2 running on windows XP.

If I write a big website on my computer that has XP and I use PHP, MySQL
and Apache 2, and HTML and Javascript to write my web site, how hard
will it be to transfere my whole website from my home computer to a
hosting company that I find on the web.

Does anybody know how hard the portability issue would be? Are there a
lot of hosting companies that I can find on the web that would be good for
this?

Thanks a million for information, I don't know what I would do without
Usenet.


It is my firm belief, you should reverse the process to a certain degree.
Due to some ISP sticking with some version of especially PHP and users
trying to always run the latest, you might encounter problems when using
newer features of PHP that the ISP can't support.
Same goes for MySQL.
Last, Linux, Apache, MySQL and PHP, that's the way to do things, as that
is a native system, not on windows.

Yes, you can do the coding, build that site entirely, but not considering
these facts I stated when looking for a decent ISP then you are doomed for
trouble.

It's not crucial now, but to prevent problems you have to bear it in mind.

HTH,

/Andreas

--
#Peace and long life ...
Registeret Linux user #292411
Jul 17 '05 #2
I develop my PHP code using Windows XP, and the same code runs on my web
host which uses Linux. So yes, PHP code is completely portable.

The only problem that you might find is that while you may have the latest
releases of PHP and MySQL on your PC, some hosting companies may be two or
even three steps behind.

--
Tony Marston

http://www.tonymarston.net

"Nick Mudge" <ma******@hotmail.com> wrote in message
news:PHSkc.5886$Ia6.661726@attbi_s03...
I have PHP 4 running as a module on windows XP, I also have MySQL and Apache 2 running on windows XP.

If I write a big website on my computer that has XP and I use PHP, MySQL and Apache 2, and HTML and Javascript to write my web site, how hard will
it be to transfere my whole website from my home computer to a hosting
company that I find on the web.

Does anybody know how hard the portability issue would be? Are there a lot of hosting companies that I can find on the web that would be good for this?
Thanks a million for information, I don't know what I would do without
Usenet.

Jul 17 '05 #3
"Nick Mudge" <ma******@hotmail.com> wrote in message news:<PHSkc.5886$Ia6.661726@attbi_s03>...
I have PHP 4 running as a module on windows XP, I also have MySQL and Apache
2 running on windows XP.

If I write a big website on my computer that has XP and I use PHP, MySQL and
Apache 2, and HTML and Javascript to write my web site, how hard will
it be to transfere my whole website from my home computer to a hosting
company that I find on the web.


It depends how you code.

-If you "hard-code" the include file path, then it will result in
problem.
eg. include("d:\foo\foo.php");
-Some modules are not available for Windows. So, you should find
the "workaround" when dealing with such kind of functions.
eg. getmxrr() <http://in.php.net/getmxxr>

And if you consider, all these factors, then it is perfectly
portable.

--
http://www.sendmetoindia.com - Send Me to India!
Email: rrjanbiah-at-Y!com
Jul 17 '05 #4
>I have PHP 4 running as a module on windows XP, I also have MySQL and Apache
2 running on windows XP.

If I write a big website on my computer that has XP and I use PHP, MySQL and
Apache 2, and HTML and Javascript to write my web site, how hard will
it be to transfere my whole website from my home computer to a hosting
company that I find on the web.

Does anybody know how hard the portability issue would be? Are there a lot
of hosting companies that I can find on the web that would be good for this?


There are a number of portability problems you may encounter with PHP that
don't depend on differences between the OS it's running on.

- You may find it difficult or at least very awkward to write PHP that works on
BOTH an older version that doesn't support the $_GET, etc. superglobals, AND
one which has register_globals turned off and you are administratively
prohibited from turning it on. Granted, there was a fairly long period of
overlap when the superglobals were supported and register_globals defaulted
to on, but some web hosts don't update their software very often.
Check their PHP version and policies before signing up.

- Don't use new features if you want it to run on versions of PHP before that
feature was added.

- PHP is built with or without a number of modules (e.g. MySQL
client, CURL, etc.): the more of these that are necessary for your page
to work, the more likely it is you will discover that your web host doesn't
and won't include one or more of them.

- Running in "safe mode" is rather different from running with "safe mode" off.
Some web hosts require "safe mode". I don't know if there are any hosts
out there that refuse to let you turn it *ON*.

- Values passed from the web server may vary with the type and version of
web server running (Apache vs. IIS, Apache 1.3 vs. Apache 2.0, Apache +
one of various add-ons to do SSL vs. a different add-on to do SSL, etc.)

- Things like hardcoded path names are potential trouble even with the same
OS, PHP version, web server version, and same machine, but different virtual
hosts.

Gordon L. Burditt
Jul 17 '05 #5
"Nick Mudge" <ma******@hotmail.com> wrote in message
news:<PHSkc.5886$Ia6.661726@attbi_s03>...

I have PHP 4 running as a module on windows XP, I also have MySQL
and Apache 2 running on windows XP.

If I write a big website on my computer that has XP and I use PHP,
MySQL and Apache 2, and HTML and Javascript to write my web site,
how hard will it be to transfere my whole website from my home
computer to a hosting company that I find on the web.


The majority of Web hosting companies run PHP on either Linux or BSD;
also, Apache 2 is still believed by many to be insufficiently stable
for production environments. Consequently, major incompatibility can
arise from using either Windows-specific extensions (such as COM or
Printer) or relying on functionalities specific to Apache 2 and not
supported by Apache 1.3. As long as you are doing neither, you
should be fine.

In addition, be sure your MySQL queries are backward compatible with
MySQL 3.23. There were a lot of changes between MySQL 3.23 and 4.0,
but many hosting companies out there still have 3.23.

Also, remember that Linux and BSD require forward slashes in paths
(in Windows, you can get by with backward slashes) and have case-
sensitive filename system.

Cheers,
NC
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
by: Tim Tyler | last post by:
I just ported one of the apps I wrote using PHP 5 under Windows to PHP 4 under unix. I knew I wanted to deploy in this environment - and wrote my code in anticipation of running in the other...
7
by: fabio de francesco | last post by:
Hi, I'm not a professional programmer, but I've been writing C/C++ and Ada programs for a few years on GNU/Linux without ever concerning on standards and portability to other OSs. I've always...
21
by: asm | last post by:
Hi All, Like typdef, does C have further support for portability? Thanks, ASM
93
by: roman ziak | last post by:
I just read couple articles on this group and it keeps amazing me how the portability is used as strong argument for language cleanliness. In my opinion, porting the program (so you just take the...
93
by: jacob navia | last post by:
In this group there is a bunch of people that call themselves 'regulars' that insist in something called "portability". Portability for them means the least common denominator. Write your code...
239
by: Eigenvector | last post by:
My question is more generic, but it involves what I consider ANSI standard C and portability. I happen to be a system admin for multiple platforms and as such a lot of the applications that my...
10
by: Lionel B | last post by:
Greetings, I have some code that is to read unformatted data from disc and interpret it as blocks of unsigned integers. In an attempt to achieve efficiency (it is pretty essential for my...
18
by: jacob navia | last post by:
One of the holy cows here is this "portability" stuff. In practice, portability means: 1) Use the least common denominator of all the supported systems. 2) Between usability / good user...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.