0

This is my code below, it works when I run it on my localhost, but since I have uploaded it to my site via CPanel, it just loads the url www.wordle.net/advanced and shows a blank screen, any ideas would be greatly appreciated!!

$text =  array_values($text[0]);
$text2 = implode(",", $text); 
$finalText = strip_tags($text2);
    ?>


<form action="http://www.wordle.net/advanced" method="POST">
<textarea name="text" style="display:none">
<?php echo $finalText ?>
</textarea>
<input type="submit" name="submit" value="Submit"/></form>


</body>
</html>
JCAnthony
  • 1
  • 1
  • blank screen = something blew up and you have all debug options turned off. go into php.ini and enable `display_errors` and `error_reporting`, and try again. – Marc B Apr 09 '15 at 18:56
  • And what should it display? – Rizier123 Apr 09 '15 at 18:56
  • rather new to PHP, what is php.ini @MarcB – JCAnthony Apr 09 '15 at 18:58
  • php's master settings file. – Marc B Apr 09 '15 at 18:59
  • whats var_dump($text); display if its okay Also your missing ';' on this line should be – lukesUbuntu Apr 09 '15 at 19:00
  • 1
    @LukeHardiman Doesn't makes a difference if there is a semicolon or not! [The closing tag implies it!](http://stackoverflow.com/a/29284131/3933332) – Rizier123 Apr 09 '15 at 19:01
  • How do i view the php.ini file so that I can change it? added phpinfo(); ?> to my code which displays the php.ini file but i cannot edit it? – JCAnthony Apr 09 '15 at 19:04
  • 1
    @Rizier123 thanks for that learnt something new, didn't realise it was optional – lukesUbuntu Apr 09 '15 at 19:06
  • Just checked the php.ini file and both of those things are enabled @MarcB – JCAnthony Apr 09 '15 at 19:09
  • @JCAnthony: then possibly the errors are being redirect to a log file. check the server's error log, or if it's logging php stuff elsewhere – Marc B Apr 09 '15 at 19:10
  • @MarcB checked that and there are no errors! thanks for the help anyway! The site I'm working on for a project is www.fastfilm.co.uk, if you search for a film, and then pick the one out of the drop down on the next screen, then press submit on the next screen, it should send the movies reviews to wordle but just loads nothing instead! by all means give it a go yourself! Excuse the awful UI at the moment! – JCAnthony Apr 09 '15 at 19:18

0 Answers0