Click to See Complete Forum and Search --> : [PHP] or [php] what is the display question?


\\.\
07-13-2007, 03:57 AM
Just made a post and then ent back to edit it...

I inserted PHP code tags [php] which didnt highlight or format, so I reedited the post so that the tags were [PHP] instead yet it still displayed [php] unformatted and upon editing further showed the tags as [PHP] but wouldnt highlight or format the code between.

Several edit attempts and IM here...

[PHP]<?php
// get the CGI paramaters
$file = $_GET['file'];
$size = $_GET['size'];
// get a record of the directory
$ver = phpversion();
$directory_current = getcwd();

...
...

}
// either an error or the item is currently being uploaded.
header("Location: index.php");
?>[PHP] like here, I used PHP and not php as it is currently displaying the code.

\\.\
07-13-2007, 04:04 AM
Even this post is doing it...

WTF is going on here?

Mr Ferter
07-13-2007, 09:09 AM
I clicked the PHP tag wrapping thing...
<?php
// get the CGI paramaters
$file = $_GET['file'];
$size = $_GET['size'];
// get a record of the directory
$ver = phpversion();
$directory_current = getcwd();

...
...

}
// either an error or the item is currently being uploaded.
header("Location: index.php");
?>on your code which I copied from the above post...

\\.\
07-13-2007, 09:11 AM
OK, thats what I did and have just done...

So its now working.

NogDog
07-13-2007, 11:21 PM
In case you haven't figured it out yet, the closing tag needs a slash: [/php] (just as closing tags in HTML do).

\\.\
07-14-2007, 01:51 AM
Thats what I did, Highlighted the whole lot and clicked on the PHP bitton and it wrapped it in those tags...

Trying to edit it only resulted in the PHP being changed into php.

I think next time IM going to hand code them.