[PHP] Syntax Highlighting variables not appearing

2005-02-28 Thread Tom Whitbread
Can anyone explain why this is happening. I am using the following code For giving code examples on my website with syntax highlighting $text = ''; $body = preg_replace('/<(.*?)>/es', 'highlight_string(

[PHP] Setting cookie on first visit

2005-03-02 Thread Tom Whitbread
I am using a cookie to detect what skin a user wants to display. The problem is if a user visits the site for the first time the cookie is not being set. I am detecting if its being set or not with if(!isset($_COOKIE['skin'])){ ... } It's not setting the cookie untill a user refreshes the page o

[PHP] Why wont apache parse my php on wamp set up?

2005-04-25 Thread Tom Whitbread
Hey, This is the strangest problem I have had in a long time. I have tried using apache 2 with php 4 as a module and CGI and on both PHP will not be parsed, I have also tried php 5 and had exactly the same problem. I am now trying apache 1.3 and php 5 as a module and it doesn't parse the php and al