/    Sign up×
Community /Pin to ProfileBookmark

PHP installed – no error messages show up

Hi,

I’ve installed PHP locally and if I am looking at a piece of code I’m working at and something is wrong, no error messages of any kind appear – I am just directed to a completely blank page.
Does anyone know how to turn on the error messages? I’m using a Powerbook with Mac OS X 10.4.2, so I imagine this is going to be some Unix stuff.
Thanks!

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@NogDogSep 15.2005 — Add this line at the start of your PHP code:
[code=php]
error_reporting(E_ALL);
[/code]
Copy linkTweet thisAlerts:
@SheldonSep 15.2005 — have you tried running a basic script to make sure the php activation went well?

Php is already installed on tiger you just have to turn it on.

just try save this as a "test.php" and put it in your users sites folder

[code=php]
<?php

$msg = "If you can read this your php installation was good, but your other page is bad";


print $msg;

?>
[/code]


and your url is

http://127.0.0.1/~username/test.php
Copy linkTweet thisAlerts:
@kendokendokendoauthorSep 16.2005 — yes, PHP has been successfully installed on my computer. no, the code suggested by NogDog had no effect. what i'm trying to get it to do is display things like parser errors if i've made a mistake in my code because right now, if i make a mistake, it just produces a blank page which doesn't help me debug in the least.
×

Success!

Help @kendokendokendo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...