We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
about the php parser
Topic Started: May 23 2005, 08:31 AM (246 Views)
solinent
Member
[ *  *  * ]
ok uhm, if i wanted to make sure that the php parser only parses things that go inside the <?php ?> rather than <? ?> (there is a reason).

If thers a way plz tell me thx!
Offline Profile Quote Post Goto Top
 
Sani
Member Avatar
Member
[ *  *  *  *  * ]
PHP will parse both
Code:
 
<?php ?>
and
Code:
 
<? ?>
although it is recomended to use the first one as the second one (also called shorthand) is being deprecated by the PHP group.. :)
Offline Profile Quote Post Goto Top
 
solinent
Member
[ *  *  * ]
I kno I kno. But I have a code, and I DONT want it to parse the <? ?>(and i won't escape it either...long story)
Offline Profile Quote Post Goto Top
 
Rory
i;m a mess
[ *  *  *  *  *  *  * ]
then use < and > intead of < and >
Offline Profile Quote Post Goto Top
 
solinent
Member
[ *  *  * ]
i told u I don't want it to parse it :o

ok i'll tell u reason, but all me other threads got lockyed :(

Here:
I want it to parse ".png" files. However, my main logo has a <? in it. so it tries to parse it, and it screws up the site. If it only parsed <?php, there would be a much lower chance if it tring to parse an image by mistake.

EDIT: Ok, I got a better Idead! Is there a way to set the parser (in IIS) to only parse things in ONE directory? like if it saw a .png file in the /pictures/ section it wouldnt parse it, but if it saw it in /users/ it would? I think it can be done on apache, however my server is IIS(I do have direct access to it though). thanks for your help!

Another EDIT: Anyone? (I didn't wanna bump as it's against the rules :))
Offline Profile Quote Post Goto Top
 
YopY
Member
[ * ]
Edit your php.ini, there should be an option saying something about quick tags, set it to 0 or false and it will only start PHP when you use the <?php tag.

Or you could simply rename that file -_-.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply