| 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: |
| about the php parser | |
|---|---|
| Tweet Topic Started: May 23 2005, 08:31 AM (246 Views) | |
| solinent | May 23 2005, 08:31 AM Post #1 |
|
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! |
![]() |
|
| Sani | May 23 2005, 09:55 AM Post #2 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
PHP will parse both and although it is recomended to use the first one as the second one (also called shorthand) is being deprecated by the PHP group..
|
![]() |
|
| solinent | May 23 2005, 09:58 AM Post #3 |
|
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) |
![]() |
|
| Rory | May 23 2005, 09:59 AM Post #4 |
|
i;m a mess
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
then use < and > intead of < and > |
![]() |
|
| solinent | May 23 2005, 10:11 AM Post #5 |
|
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 :)) |
![]() |
|
| YopY | Jun 2 2005, 09:16 AM Post #6 |
|
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 -_-. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
12:54 PM Jul 11
|



![]](../../../../0/1/0/p601690/pipright.png)




12:54 PM Jul 11