Pages: 12Next
Current Page: 1 of 2
PHP script's don't parse'ing
Posted by: Marcin (---.neoplus.adsl.tpnet.pl)
Date: January 24, 2006 04:16PM

Hello.

Sorry for my english, I from Poland smiling smiley

I download and install WAMPSERVER - Cool! But, I upload all my scripts to "www" folder's. And my script's doesn't work - in 'see source' i see my PHP script's - my php script's doesn't parse'ing sad smiley But phpMyAdmin and Index site (http://localhost) working..

Help me, please.

Options: ReplyQuote
Re: PHP script's don't parse'ing
Posted by: Romain Bourdon (---.fbx.proxad.net)
Date: January 24, 2006 10:13PM

Hi, this is a short_open_tags issue.

Romain

Options: ReplyQuote
Re: PHP script's don't parse'ing
Posted by: Marcin (---.neoplus.adsl.tpnet.pl)
Date: January 24, 2006 10:46PM

No, no.
I use <?php and I know what is 'short_open_tags'.
Help me sad smiley
P.S I install add-on php4 - it doesn't work the same as php5 :/
I look on Apache and PHP log's - nothing interesting :/

Options: ReplyQuote
Re: PHP script's don't parse'ing
Posted by: mr.chew (---.hsd1.ma.comcast.net)
Date: January 26, 2006 06:26PM

I'm having the same problem...

I ran a simple script such as...

<?
echo "hello";
?>

and it send me to a blank page on localhost and i click to view the source and it shows me my php code...

Options: ReplyQuote
Re: PHP script's don't parse'ing
Posted by: Marcin (---.neoplus.adsl.tpnet.pl)
Date: January 26, 2006 06:36PM

Yes.. help us..

Options: ReplyQuote
Re: PHP script's don't parse'ing
Posted by: Brent (---.qld.bigpond.net.au.150.164.58.in-addr.arpa)
Date: January 28, 2006 09:36AM

I am also having the same problem.
Fresh System Just reloaded.

Cheers

Options: ReplyQuote
Re: PHP script's don't parse'ing
Posted by: method (---.upc-i.chello.nl)
Date: January 28, 2006 05:34PM

I have same problem . could any one tell me how to fix it ?Thanks

Options: ReplyQuote
Re: PHP script's don't parse'ing
Posted by: Brent (---.qld.bigpond.net.au)
Date: January 29, 2006 01:54AM

Hi Guys

I Found the solution to my dilemmas which was once again the short tag issue.

instead of

<?
?>

it has to be

<?php
?>


Cheers

Options: ReplyQuote
Re: PHP script's don't parse'ing
Posted by: RealNubSlayer (---.hsd1.ma.comcast.net)
Date: February 26, 2006 12:03AM

... Okay guys check your configurations for your server, thats all i can say. I have never been in this situation, so i can't exactly say.. But reinstall maybe and put in settings that you will remember perfectly, then double checked you are using the right directory.. Also the only thing i can think of is you have a defective php sevrer, your computer is infected and blocking the php source files, or your apache is offline..

Options: ReplyQuote
Re: PHP script's don't parse'ing
Posted by: Gau (---.thenet.ph)
Date: February 26, 2006 08:34AM

just check the format in which you save the php files. It should not be in unicode

Options: ReplyQuote
Re: PHP script's don't parse'ing
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: February 27, 2006 08:54AM

damn spammers

Options: ReplyQuote
Re: PHP script's don't parse'ing
Posted by: prolaznik (87.116.168.---)
Date: March 05, 2006 08:36AM

RealNubSlayer wrote:

> blocking the php source files, or your apache is offline..

I have the same problem and I'm sure that my apache isn't offline. Also, the probability of infection is extremely small since XP is reinstalled few days ago.

I have wampserver 5.1.6.1

Did anyone solved that problem? Are there anything new? I'm desperate...


Options: ReplyQuote
Re: PHP script's don't parse'ing
Posted by: pete (---.gtcust.grouptelecom.net)
Date: March 07, 2006 11:19PM

as someone mentioned, it has something to do with the PHP.INI configuration.
I had the same issue.

when you code, if your code starts with <? codehere instead of <?php you need to edit the PHP.INI file.

If you have the wamp spedometer open at the bottom, click on there once and go to config files. Click on the PHP.INI menu option.

Go down to short_open_tag on line 81

If it is set to Off set it to On, save the file and restart the servers ( click on the wamp speedometer, click on restart all services )

Once thats done, your PHP Files should parse fine.

Options: ReplyQuote
Re: PHP script's don't parse'ing
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: March 08, 2006 07:13PM

that works fine if developing locally, but if you are going to upload your scripts to a webhost after you develop them on your WAMP server, you need to make sure you do not use ASP style tags. Most hosts have ASP style tags disabled in their php.ini.

Options: ReplyQuote
Re: PHP script's don't parse'ing
Posted by: rlg0613 (---.dyn.sprint-hsd.net)
Date: March 15, 2006 02:42PM

I've got the same problem - not parsing php files. I'm using the full correct tags <?php ... ?>. Even so I modified my config file to allow short tags. That didn't work either. This problem only cropped up when I upgraded to the latest version 1.6.1. It's got to be a configuration issue, but I'm not sure of what needs to be changed.


Options: ReplyQuote
Re: PHP script's don't parse'ing
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: March 15, 2006 07:39PM

Make sure you are putting your php and html files in the www folder or the php scripts will not be parsed, and not display or work.

Also make any file that has php code in it has php extention, not a html or htm extension, or the php code will not be parsed.

Options: ReplyQuote
Re: PHP script's don't parse'ing
Posted by: yatrikvyas (217.206.22.---)
Date: March 17, 2006 02:05PM

Hi all,

Have you got any luck? I am also having hte same problem.

I have tried both styles <?php ..?> and <?...?>

It opens only blanck page.

I have just written:

<?
phpinfo();
?>

please help.

Thank you



..: Y@trik :..

Options: ReplyQuote
Re: PHP script's don't parse'ing
Posted by: rlg0613 (---.dyn.sprint-hsd.net)
Date: March 17, 2006 05:04PM

In another thread I mentioned that my problem was that I was opening my php file in my browser as a stand alone file and not through the Apache web server.

I've found that an idiot proof (for me) way of testing my php files is to put them in a subfolder to the wamp www folder. That way when I bring up the local host from the tray icon I see my folder under projects.

I click on my project folder and it shows me a list of the files I'm testing. Click on the file and I'm assured that Apache will parse the file.


Options: ReplyQuote
Re: PHP script's don't parse'ing
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: March 17, 2006 05:39PM

make sure you always access your php and html files with your web browser using [localhost] and not c:\wamp\www, or they will not get parced by apache.

Options: ReplyQuote
Re: PHP script's don't parse'ing
Posted by: yatrikvyas (217.206.22.---)
Date: March 17, 2006 06:07PM

Thanks guys!

Actually i have put space betwwen ? and php that was the reason which i found finally.(SOooooo quickly sad smiley)

thanks anyway for help.
take care,



..: Y@trik :..

Options: ReplyQuote
Pages: 12Next
Current Page: 1 of 2


Sorry, only registered users may post in this forum.