lot of php script wont work on wamp
Posted by: killborn (62.84.19.---)
Date: April 18, 2006 05:12PM

I downloades some php scripts. But there is that situation few scripts run normaly another part has one the same error. Example -> instead of normal script working the browser shows text -> updated<=$month_start){ $sql_query="update stats set month_sgnin='0', month_vis='0', updated='$now'"; sql_execute($sql_query,''); } if($stats->updated<=$week_start){ $sql_query="update stats set week_sgnin='0', week_vis='0', updated='$now'"; sql_execute($sql_query,''); } if($stats->updated<=$day_start){ $sql_query="update stats set day_sgnin='0', day_vis='0', vis='', updated='$now'"; sql_execute($sql_query,''); } $day=24*3600; if($now-$visit>=$day){ $sql_query="update stats set day_vis=day_vis+1,week_vis=week_vis+1,month_vis=month_vis+1, vis=concat(vis,'|$now')"; sql_execute($sql_query,''); SetCookie("visit",$now,time()+60*60*24,"/",$cookie_url); }//if check($mode); ?>

Options: ReplyQuote
Re: lot of php script wont work on wamp
Posted by: roms (---.w193-251.abo.wanadoo.fr)
Date: April 18, 2006 05:13PM

Activate the short_open_tags, or stop using them (better solution).



Romain

Options: ReplyQuote
Re: lot of php script wont work on wamp
Posted by: killborn (62.84.19.---)
Date: April 18, 2006 05:20PM

where can i activate short_open_tags?


Options: ReplyQuote
Re: lot of php script wont work on wamp
Posted by: killborn (62.84.19.---)
Date: April 18, 2006 05:28PM

Thanks i found it! But why i better stop using these scripts?

Options: ReplyQuote
Re: lot of php script wont work on wamp
Posted by: paun05 (86.123.186.---)
Date: April 18, 2006 05:40PM

Can you tell me where you found that short_open_tags? I tried some scripts to and all I got is some lines with error code. Thanks!

Options: ReplyQuote
Re: lot of php script wont work on wamp
Posted by: roms (---.w193-251.abo.wanadoo.fr)
Date: April 18, 2006 05:43PM

Short_open_tags are incompatible with many formats such as xhtml (starts with <?xml...)



Romain

Options: ReplyQuote
Re: lot of php script wont work on wamp
Posted by: killborn (62.84.19.---)
Date: April 18, 2006 05:47PM

that i didnt know! Thanks!

Options: ReplyQuote
Re: lot of php script wont work on wamp
Posted by: killborn (62.84.19.---)
Date: April 18, 2006 05:49PM

open php.ini press Ctrl+F and write in short_open_tag = OFF press find and then change to ON

Options: ReplyQuote
Re: lot of php script wont work on wamp
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: April 19, 2006 12:29AM

make sure you restart apache after you change anything in the php.ini file or the new settings will not take effect.

Options: ReplyQuote


Sorry, only registered users may post in this forum.