Problem with PHP in Windows Vista!! --- Help Please!!
Posted by: safir_mdp (---.speedy.com.ar)
Date: April 20, 2007 08:06PM

In first place, sorry for my english.
I had installed WAMP5 1.7.0 on my Notebook wich has Windows Vista Ultimate.
When I tried to test Apache, it worked fine, I use a PHP Script wich connect to a database.
The connection worked, but it seems that the HTML code embebed in PHP doesn't work.
For example:
- In the whole PHP Script, there is the following code: (Note the commented code!!)

<?
$rsfotos = @mysql_query ("SELECT * FROM tblvehiculos WHERE ((publicar = 'Si') AND (vendido = 'N') AND (fotos = 'Si')) ORDER BY id_vehiculo DESC LIMIT 0,20"winking smiley;
/*
while ($data = mysql_fetch_array ($rsfotos)){
echo $data["id_vehiculo"]."<br>";
}
*/
if (@mysql_num_rows ($rsfotos) != 8)
$flag = "No se poseen imagenes";
?>

When I run this script, the following line outputs in the screen:
"; }*/ if (@mysql_num_rows ($rsfotos) != 8) $flag = "No se poseen imagenes"; ?>

If I delete de "<br>" from the echo, the line dissapear in the output, so i think that something is going wrong!!!!
I ran the same code on mi desktop computer with WAMP5 1.6 on XP, and it works without a problem!!.

PLEASE HELP ME!!!!!! THANKS A LOT!!! =)

Options: ReplyQuote
Re: Problem with PHP in Windows Vista!! --- Help Please!!
Posted by: CyberSpatium (71.237.217.---)
Date: April 20, 2007 08:18PM

read my manual about "short style php tags"



CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!

Please visit my latest website Clarify Loans:
clarifyloans.com

Options: ReplyQuote
Re: Problem with PHP in Windows Vista!! --- Help Please!!
Posted by: safir_mdp (---.speedy.com.ar)
Date: April 20, 2007 08:48PM

Thanks a lot CyberSpatium for answer my question!! and so quickly!!.

One more for you: Is there any way yo enable PHP short tags in WAMP??, because the scripts I have are so huge and in all cases I'm using short tags sad smiley

Thanks.

Options: ReplyQuote
Re: Problem with PHP in Windows Vista!! --- Help Please!!
Posted by: yfastud (---.mia.bellsouth.net)
Date: April 20, 2007 10:38PM

By default, short_open_tag in php.ini is off. Restart your server after any change.

Have fun,

[www.jlbn.net] (testing WAMPS on Vista)
[test.jlbn.net] (testing codes on Vista)

Options: ReplyQuote
Re: Problem with PHP in Windows Vista!! --- Help Please!!
Posted by: CyberSpatium (71.237.217.---)
Date: April 21, 2007 12:41PM

be warned safir_mdp. if you upload your scripts to a webhost, your script will not work since most webhosts have short_open_tags setting in the php.ini file disabled.


CyberSpatium

WAMP English Forum Admin

--------------------------------------



like my free support? help support me by checking out my new Newbie Webmaster Development Forum dedicated to the newbie webmaster here:

www.WebDevNewbie.com

Options: ReplyQuote
Re: Problem with PHP in Windows Vista!! --- Help Please!!
Posted by: safir_mdp (---.speedy.com.ar)
Date: April 21, 2007 06:00PM

CyberSpatium, thanks a lot for your answers and recomendations!!.

Now my wampserver is running very well.

The only thing I want to now is, has it support for asp?? Is there any plug-in or add-on to run asp or aspx pages??.

As you can see, I'm a newbie using apache.... LOL!

Options: ReplyQuote


Sorry, only registered users may post in this forum.