George
|
Posted: 10/17/2002, 5:37 PM |
|
Hi all,
Probably a simple one, but I can't figure it out.
When I upload my project (PHP & Mysql) to the remote server and open the php
file in the browser I get the php text file?!? It is not translated to HTML.
How can that be? Hope somebody can help. Thanks in advance.
George
|
|
|
David Payer
|
Posted: 10/17/2002, 8:00 PM |
|
>
> When I upload my project (PHP & Mysql) to the remote server and open the
php
> file in the browser I get the php text file?!? It is not translated to
HTML.
> George
1) does your server have php installed properly?
2) is the folder/file marked executable?
What kind of webserver is it?
David Payer
www.iowalink.com
|
|
|
George
|
Posted: 10/18/2002, 1:18 AM |
|
Hi David,
-Other php files on the same server work, so PHP is probably installed ok
-The folder is not marked executable, and when I do try to change it with
chmod it does not change.
When I look at other files and folders on the server that contains php
files, I see that they are not marked executable either. And they work fine
It is a server that runs linux, don't know the webserver software. Can I see
that somewhere.
Kind regards
George
"David Payer" <david.payer.no.spam.please!@ia-omni.com> schreef in bericht
news:aontfm$vi2$1@news.codecharge.com...
> >
> > When I upload my project (PHP & Mysql) to the remote server and open the
> php
> > file in the browser I get the php text file?!? It is not translated to
> HTML.
> > George
>
>
> 1) does your server have php installed properly?
> 2) is the folder/file marked executable?
>
> What kind of webserver is it?
>
> David Payer
> www.iowalink.com
>
>
|
|
|
Steven Dowd
|
Posted: 10/18/2002, 1:38 AM |
|
Did you upload php+templates , if this is the case you may have a problem
like i suffer with my host, who server their files in the order
..asp
..html
..php
in which case you may have a situation where your filenames are
Default.php
Default.html
and the webserver could be setup to server the .html 'same' named file
befor the same name .php file
if you do not have access to the webserver config you can edit the html
filename ref: in the top of the .php file to say 'Default1.html' , then
rename
the .html file to match your edit
Default.php
Default1.html
this should make the php file get served first, you shouldnt need to edit
any other than the opening page, because once the site is open , the
code knows what pages are what after that
also consider whether you upload your files as index.php or default.php
this also depends of the web server setup.
Hope this helps
Steven Dowd
"George" <g.vdlee@wxs.nl> wrote in message
news:aoog44$1nk$1@news.codecharge.com...
> Hi David,
>
> -Other php files on the same server work, so PHP is probably installed ok
>
> -The folder is not marked executable, and when I do try to change it with
> chmod it does not change.
> When I look at other files and folders on the server that contains php
> files, I see that they are not marked executable either. And they work
fine
>
> It is a server that runs linux, don't know the webserver software. Can I
see
> that somewhere.
> Kind regards
> George
>
>
>
> "David Payer" <david.payer.no.spam.please!@ia-omni.com> schreef in bericht
>news:aontfm$vi2$1@news.codecharge.com...
> > >
> > > When I upload my project (PHP & Mysql) to the remote server and open
the
> > php
> > > file in the browser I get the php text file?!? It is not translated to
> > HTML.
> > > George
> >
> >
> > 1) does your server have php installed properly?
> > 2) is the folder/file marked executable?
> >
> > What kind of webserver is it?
> >
> > David Payer
> > www.iowalink.com
> >
> >
>
>
|
|
|
Sixto Luis Santos
|
Posted: 10/18/2002, 7:42 AM |
|
Hello George,
First, are you posting to the correct newsgroup? Because, i've seen this
problem in CodeCharge Studio, but not CodeCharge2. Anyway, if you are using
CCS, check the opening <?php tag. In code view check the very first line of
code and make sure it is <?php.
Otherwise, check if you can execute any php at all in that folder. Manually
create a simple php file there, and try navigating to it. Something like:
<?php
phpinfo();
?>
If you are still getting the PHP code, your problem must be server side. On
the other hand, if you get the normal PHP info screen, your problem is in
the code generated by CC.
Good luck,
Sixto
"George" <g.vdlee@wxs.nl> wrote in message
news:aoog44$1nk$1@news.codecharge.com...
> Hi David,
>
> -Other php files on the same server work, so PHP is probably installed ok
>
> -The folder is not marked executable, and when I do try to change it with
> chmod it does not change.
> When I look at other files and folders on the server that contains php
> files, I see that they are not marked executable either. And they work
fine
>
> It is a server that runs linux, don't know the webserver software. Can I
see
> that somewhere.
> Kind regards
> George
>
>
>
> "David Payer" <david.payer.no.spam.please!@ia-omni.com> schreef in bericht
>news:aontfm$vi2$1@news.codecharge.com...
> > >
> > > When I upload my project (PHP & Mysql) to the remote server and open
the
> > php
> > > file in the browser I get the php text file?!? It is not translated to
> > HTML.
> > > George
> >
> >
> > 1) does your server have php installed properly?
> > 2) is the folder/file marked executable?
> >
> > What kind of webserver is it?
> >
> > David Payer
> > www.iowalink.com
> >
> >
>
>
|
|
|
|