PHP APACHE SAVE AS

PHP APACHE SAVE AS

am 27.11.2009 10:24:42 von Julian Muscat Doublesin

--001517440f9aa6eae9047956dcc2
Content-Type: text/plain; charset=ISO-8859-1

Hello Everyone,

I have installed PHP, Apache and MySQL on a Windows 7 machine :(......... I
would prefer linux or unix :)

These have been setup and working correctly. However when I access a php
page. I get the save as dialog. Has anyone ever experinced such a situation.
Can anyone please advise.

Thank you very much in advance.

Julian

--001517440f9aa6eae9047956dcc2--

Re: PHP APACHE SAVE AS

am 27.11.2009 10:29:44 von Tanveer Chowdhury

--0016e65c8d7ea55df7047956eec9
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

That means its not recognizing the php code and thats why its giving the
download prompt. why not install xampp or wamp.

On Fri, Nov 27, 2009 at 4:24 AM, Julian Muscat Doublesin <
opensourcekb@gmail.com> wrote:

> Hello Everyone,
>
> I have installed PHP, Apache and MySQL on a Windows 7 machine :(.........=
I
> would prefer linux or unix :)
>
> These have been setup and working correctly. However when I access a php
> page. I get the save as dialog. Has anyone ever experinced such a
> situation.
> Can anyone please advise.
>
> Thank you very much in advance.
>
> Julian
>



--=20
- Ŧ₳ᶇṾḛḗÆ=A6

--0016e65c8d7ea55df7047956eec9--

Re: PHP APACHE SAVE AS

am 27.11.2009 10:36:36 von Lester Caine

Julian Muscat Doublesin wrote:
> Hello Everyone,
>
> I have installed PHP, Apache and MySQL on a Windows 7 machine :(......... I
> would prefer linux or unix :)
>
> These have been setup and working correctly. However when I access a php
> page. I get the save as dialog. Has anyone ever experinced such a situation.
> Can anyone please advise.
>
> Thank you very much in advance.

Apache obviously does not know how to handle the .php files, so you need to
update httpd.conf so it can both handle them and load php.

Things get a little tricky depending on WHICH pache and php which you do not
say, but http://uk3.php.net/manual/en/install.windows.apache2.php should point
you in the right direction ...

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP APACHE SAVE AS

am 27.11.2009 13:34:24 von Jonathan Tapicer

You are probably missing something like this in the apache httpd.conf:

LoadModule php5_module "c:/PHP/php5apache2_2.dll"
PHPIniDir "c:/PHP/php.ini"
AddType application/x-httpd-php .php
DirectoryIndex index.php index.html index.html.var

Regards,

Jonathan

On Fri, Nov 27, 2009 at 6:24 AM, Julian Muscat Doublesin
wrote:
> Hello Everyone,
>
> I have installed PHP, Apache and MySQL on a Windows 7 machine :(......... I
> would prefer linux or unix :)
>
> These have been setup and working correctly. However when I access a php
> page. I get the save as dialog. Has anyone ever experinced such a situation.
> Can anyone please advise.
>
> Thank you very much in advance.
>
> Julian
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP APACHE SAVE AS

am 27.11.2009 17:10:40 von Julian Muscat Doublesin

--0023545bd7607c985604795c8895
Content-Type: text/plain; charset=ISO-8859-1

Hi,

Just to update every one. This solution below worked perfectly. Thank you
very much Jonathan. I have one other question though. Can anyone help me on
the folowing. Database Error: Unable to connect to the database:The MySQL
adapter "mysql" is not available.

Thank you

Julian

On Fri, Nov 27, 2009 at 1:34 PM, Jonathan Tapicer wrote:

> You are probably missing something like this in the apache httpd.conf:
>
> LoadModule php5_module "c:/PHP/php5apache2_2.dll"
> PHPIniDir "c:/PHP/php.ini"
> AddType application/x-httpd-php .php
> DirectoryIndex index.php index.html index.html.var
>
> Regards,
>
> Jonathan
>
> On Fri, Nov 27, 2009 at 6:24 AM, Julian Muscat Doublesin
> wrote:
> > Hello Everyone,
> >
> > I have installed PHP, Apache and MySQL on a Windows 7 machine :(.........
> I
> > would prefer linux or unix :)
> >
> > These have been setup and working correctly. However when I access a php
> > page. I get the save as dialog. Has anyone ever experinced such a
> situation.
> > Can anyone please advise.
> >
> > Thank you very much in advance.
> >
> > Julian
> >
>

--0023545bd7607c985604795c8895--

Re: PHP APACHE SAVE AS

am 27.11.2009 17:20:01 von Ashley Sheridan

--=-u7sRskXBamxlqgMS15ym
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Fri, 2009-11-27 at 17:10 +0100, Julian Muscat Doublesin wrote:

> Hi,
>
> Just to update every one. This solution below worked perfectly. Thank you
> very much Jonathan. I have one other question though. Can anyone help me on
> the folowing. Database Error: Unable to connect to the database:The MySQL
> adapter "mysql" is not available.
>
> Thank you
>
> Julian
>
> On Fri, Nov 27, 2009 at 1:34 PM, Jonathan Tapicer wrote:
>
> > You are probably missing something like this in the apache httpd.conf:
> >
> > LoadModule php5_module "c:/PHP/php5apache2_2.dll"
> > PHPIniDir "c:/PHP/php.ini"
> > AddType application/x-httpd-php .php
> > DirectoryIndex index.php index.html index.html.var
> >
> > Regards,
> >
> > Jonathan
> >
> > On Fri, Nov 27, 2009 at 6:24 AM, Julian Muscat Doublesin
> > wrote:
> > > Hello Everyone,
> > >
> > > I have installed PHP, Apache and MySQL on a Windows 7 machine :(.........
> > I
> > > would prefer linux or unix :)
> > >
> > > These have been setup and working correctly. However when I access a php
> > > page. I get the save as dialog. Has anyone ever experinced such a
> > situation.
> > > Can anyone please advise.
> > >
> > > Thank you very much in advance.
> > >
> > > Julian
> > >
> >


It sounds like you've installed both PHP and MySQL, but not the
php-mysql module, which allows PHP to talk to the database. Depending on
how you installed PHP, there could be a variety of ways to fix this.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-u7sRskXBamxlqgMS15ym--

Re: PHP APACHE SAVE AS

am 27.11.2009 22:02:02 von Phpster

On Fri, Nov 27, 2009 at 11:20 AM, Ashley Sheridan
wrote:
> On Fri, 2009-11-27 at 17:10 +0100, Julian Muscat Doublesin wrote:
>
>> Hi,
>>
>> Just to update every one. This solution below worked perfectly. Thank you
>> very much Jonathan. I have one other question though. Can anyone help me on
>> the folowing. Database Error: Unable to connect to the database:The MySQL
>> adapter "mysql" is not available.
>>
>> Thank you
>>
>> Julian
>>
>> On Fri, Nov 27, 2009 at 1:34 PM, Jonathan Tapicer wrote:
>>
>> > You are probably missing something like this in the apache httpd.conf:
>> >
>> > LoadModule php5_module "c:/PHP/php5apache2_2.dll"
>> > PHPIniDir "c:/PHP/php.ini"
>> > AddType application/x-httpd-php .php
>> > DirectoryIndex index.php index.html index.html.var
>> >
>> > Regards,
>> >
>> > Jonathan
>> >
>> > On Fri, Nov 27, 2009 at 6:24 AM, Julian Muscat Doublesin
>> > wrote:
>> > > Hello Everyone,
>> > >
>> > > I have installed PHP, Apache and MySQL on a Windows 7 machine :(.........
>> > I
>> > > would prefer linux or unix :)
>> > >
>> > > These have been setup and working correctly. However when I access a php
>> > > page. I get the save as dialog. Has anyone ever experinced such a
>> > situation.
>> > > Can anyone please advise.
>> > >
>> > > Thank you very much in advance.
>> > >
>> > > Julian
>> > >
>> >
>
>
> It sounds like you've installed both PHP and MySQL, but not the
> php-mysql module, which allows PHP to talk to the database. Depending on
> how you installed PHP, there could be a variety of ways to fix this.
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>

Try opening the php.ini file and uncommenting the line

;extension = php_mysql.dll;

(by uncommenting i mean remove the first semi-colon). save the file
and restart the apache service

--

Bastien

Cat, the other other white meat

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP APACHE SAVE AS

am 28.11.2009 07:04:12 von List Manager

Bastien Koert wrote:
> On Fri, Nov 27, 2009 at 11:20 AM, Ashley Sheridan
> wrote:
>> On Fri, 2009-11-27 at 17:10 +0100, Julian Muscat Doublesin wrote:
>>
>>> Hi,
>>>
>>> Just to update every one. This solution below worked perfectly. Thank you
>>> very much Jonathan. I have one other question though. Can anyone help me on
>>> the folowing. Database Error: Unable to connect to the database:The MySQL
>>> adapter "mysql" is not available.
>>>
>>> Thank you
>>>
>>> Julian
>>>
>>> On Fri, Nov 27, 2009 at 1:34 PM, Jonathan Tapicer wrote:
>>>
>>>> You are probably missing something like this in the apache httpd.conf:
>>>>
>>>> LoadModule php5_module "c:/PHP/php5apache2_2.dll"
>>>> PHPIniDir "c:/PHP/php.ini"
>>>> AddType application/x-httpd-php .php
>>>> DirectoryIndex index.php index.html index.html.var
>>>>
>>>> Regards,
>>>>
>>>> Jonathan
>>>>
>>>> On Fri, Nov 27, 2009 at 6:24 AM, Julian Muscat Doublesin
>>>> wrote:
>>>>> Hello Everyone,
>>>>>
>>>>> I have installed PHP, Apache and MySQL on a Windows 7 machine :(.........
>>>> I
>>>>> would prefer linux or unix :)
>>>>>
>>>>> These have been setup and working correctly. However when I access a php
>>>>> page. I get the save as dialog. Has anyone ever experinced such a
>>>> situation.
>>>>> Can anyone please advise.
>>>>>
>>>>> Thank you very much in advance.
>>>>>
>>>>> Julian
>>>>>
>>
>> It sounds like you've installed both PHP and MySQL, but not the
>> php-mysql module, which allows PHP to talk to the database. Depending on
>> how you installed PHP, there could be a variety of ways to fix this.
>>
>> Thanks,
>> Ash
>> http://www.ashleysheridan.co.uk
>>
>>
>>
>
> Try opening the php.ini file and uncommenting the line
>
> ;extension = php_mysql.dll;
>
> (by uncommenting i mean remove the first semi-colon). save the file
> and restart the apache service
>

My guess is, that since he said that he is getting an error returned from the function call, that
the function is being loaded, so the php_mysql.so is being loaded fine. But the problem, more then
likely, lies with the arguments being passed to the mysql_connect function call itself.

Check the values that you are passing to your function. But first, make sure that mysql is actually
running. You should be able to use phpmyadmin, with the correct DB settings, and have it connect
to the DB. If that doesn't work, try using a command line utility that came with your mysql
installation.

Jim Lucas

--
Jim Lucas

"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
by William Shakespeare

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP APACHE SAVE AS

am 28.11.2009 07:28:16 von kranthi

as jim stated you'll get a "undefined function" error if php_mysql
extension is not loaded.
in this case probably the MySql server is not running, or not running
on the default port (most likely the former)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP APACHE SAVE AS

am 02.12.2009 10:22:30 von Julian Muscat Doublesin

--00151744857cf34eb60479bb697d
Content-Type: text/plain; charset=ISO-8859-1

Hello Everyone,

I solved the mysql issue too. thanks for your help. I had to change the root
the the extnsion directory as it was set to the linux style. Also found out
that for windows it is always best to use C:/ instead of C:\ This works in
some situations and in others it does not.

On Fri, Nov 27, 2009 at 10:02 PM, Bastien Koert wrote:

> On Fri, Nov 27, 2009 at 11:20 AM, Ashley Sheridan
> wrote:
> > On Fri, 2009-11-27 at 17:10 +0100, Julian Muscat Doublesin wrote:
> >
> >> Hi,
> >>
> >> Just to update every one. This solution below worked perfectly. Thank
> you
> >> very much Jonathan. I have one other question though. Can anyone help me
> on
> >> the folowing. Database Error: Unable to connect to the database:The
> MySQL
> >> adapter "mysql" is not available.
> >>
> >> Thank you
> >>
> >> Julian
> >>
> >> On Fri, Nov 27, 2009 at 1:34 PM, Jonathan Tapicer
> wrote:
> >>
> >> > You are probably missing something like this in the apache httpd.conf:
> >> >
> >> > LoadModule php5_module "c:/PHP/php5apache2_2.dll"
> >> > PHPIniDir "c:/PHP/php.ini"
> >> > AddType application/x-httpd-php .php
> >> > DirectoryIndex index.php index.html index.html.var
> >> >
> >> > Regards,
> >> >
> >> > Jonathan
> >> >
> >> > On Fri, Nov 27, 2009 at 6:24 AM, Julian Muscat Doublesin
> >> > wrote:
> >> > > Hello Everyone,
> >> > >
> >> > > I have installed PHP, Apache and MySQL on a Windows 7 machine
> :(.........
> >> > I
> >> > > would prefer linux or unix :)
> >> > >
> >> > > These have been setup and working correctly. However when I access a
> php
> >> > > page. I get the save as dialog. Has anyone ever experinced such a
> >> > situation.
> >> > > Can anyone please advise.
> >> > >
> >> > > Thank you very much in advance.
> >> > >
> >> > > Julian
> >> > >
> >> >
> >
> >
> > It sounds like you've installed both PHP and MySQL, but not the
> > php-mysql module, which allows PHP to talk to the database. Depending on
> > how you installed PHP, there could be a variety of ways to fix this.
> >
> > Thanks,
> > Ash
> > http://www.ashleysheridan.co.uk
> >
> >
> >
>
> Try opening the php.ini file and uncommenting the line
>
> ;extension = php_mysql.dll;
>
> (by uncommenting i mean remove the first semi-colon). save the file
> and restart the apache service
>
> --
>
> Bastien
>
> Cat, the other other white meat
>

--00151744857cf34eb60479bb697d--