php site errors!

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
liico
-


Joined: 21 Aug 2008
Posts: 2
Location: Sweden

PostPosted: Thu Aug 21, 2008 1:43 pm    Post subject: php site errors! Reply with quote

Hello

I recently installed AWS on my Vista machine and I've got my php sites to show up after some php.ini problems and AWS config errors, but.. there still remains one big problem.

When I'm looking at my "news" page the site will echo out some of the code for getting information from the database. for an example:

I can have
Code:
while($rad=mysql_fetch_array($asd)){
   echo '<p class="news">'.$rad['asd'].' (posted by: <a href="profile.php?show='.$rad['asd'].'">'.$rad['asd'].'</a> @ '.$rad['date'].')</p>
         <p class="maintext">
         '.$rad['asd'].'
         </p><br>';
   }

and then he will echo out
Code:
'.$rad['asd'].' (posted by: '.$rad['asd'].' @ '.$rad['asd'].')

'.$rad['asd'].'

'; } ?>

insteed of the news :S I got the same script on my original host (freetzi) but I'm done with them and will host my site on my own comp for a futher move to a better host. Anyone knows if there could be a php.ini problem or anything? (Remember, this is just a test script to get php to work correctly.)
Back to top View user's profile Send private message Visit poster's website MSN Messenger ICQ Number
swissboney3
-


Joined: 02 Jul 2005
Posts: 31

PostPosted: Fri Aug 22, 2008 3:12 am    Post subject: Reply with quote

hmm its like the php tag is being closed off early...never come across that bug before.
Back to top View user's profile Send private message Send e-mail MSN Messenger
liico
-


Joined: 21 Aug 2008
Posts: 2
Location: Sweden

PostPosted: Fri Aug 22, 2008 12:54 pm    Post subject: Reply with quote

Me neither untill last night when I've installed AWS on my comp.

Don't really know how to fix this problem either, if it could be a comfiguration in the php.ini or the config in AWS since it's not the scripts. their working on my host as I said so there has to be something else. =/
Back to top View user's profile Send private message Visit poster's website MSN Messenger ICQ Number
swissboney3
-


Joined: 02 Jul 2005
Posts: 31

PostPosted: Fri Aug 22, 2008 1:10 pm    Post subject: Reply with quote

hmmm ye its strange...check ur PM's liico
Back to top View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group