introduction screenshots faq forum blog modules components download
Please use the search function and/or read the FAQ first.

Go to Topic: PreviousNext
Go to: Message ListNew TopicSearchLog InPrint View

php code isnt read



Posted by: sickness
December 28, 2009 09:16AM
i dont know if its just because of my computer, but ive had the same problem with, xampp, wamp, and using just straight apache, php, and mysql, the problem i get is that it doesnt read and process the php code on the pages, it either just shows it as a source, shows just the php code, shows some of the html in the page, and all the php up at the top, anyone have any ideas on the matter?
Options: ReplyQuote
Posted by: Amour
December 28, 2009 12:05PM
Can you show your code ?

Do you use short tags ? (depreciated)
Options: ReplyQuote
Posted by: sickness
December 28, 2009 01:47PM
i tried a couple of website scripts that i have on my harddrive, and i tried both <? tags and <?php, the <?php makes it read some of the code, but not all of it, i will post the index page of one of the site scripts


[pastie.org]
Options: ReplyQuote
Posted by: Amour
December 28, 2009 04:58PM
In fact, you must use <?php to open, and ?> to close ;)

How do you run php script ? what do you put into your navigator ?
Options: ReplyQuote
Posted by: sickness
December 28, 2009 09:30PM
ive tried 127.0.0.1 and localhost with the file name after it, and i have tried using the long php tag, only makes it partially work
Options: ReplyQuote
Posted by: Amour
December 29, 2009 02:28PM
Partially ? do you have any example ?
Options: ReplyQuote


Go to: Message ListSearchLog In
Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.