NamePros.Com (http://www.namepros.com/)
-   Programming (http://www.namepros.com/programming/)
-   -   ever tried to program a script...... (http://www.namepros.com/programming/15860-ever-tried-to-program-a-script.html)

adam_uk 12-21-2003 03:47 PM

ever tried to program a script......
 
1 Attachment(s)
where u make a mistake but the server doesnt tell you actually what the mistake is?

eg
my server (soon be taking local flying lessons) wont output any errors what so every

ive got this code

<?
print()
?>

thats it no includes no nothing

it should say
error: undefinded call to function print() on line 1 or somthing like that but it doesnt

if i do this
<?
$gonna = "go"
echo "gonna $gonna mad"
?>
it wont tell me that ive missed the ; it will just stop and give me a blackpage

see for yourself
http://adamuk.serveftp.com/123.php

anyone got any ideas?

servers runnin willitwork 2000 server
ive attachted a copy of the php.ini file incase thats any help

deadserious 12-21-2003 05:04 PM

Hmm your phpinfo seems like it's set to show errors. Is it possible for you to provide a direct link to your phpinfo on adamuk.serveftp.com?

Also, you may try adding this at the top of your PHP script to see if it makes a difference:

ini_set('display_errors','1');
error_reporting (E_ALL);

adam_uk 12-22-2003 12:21 PM

i added the error_reporting thingy bob to top of a script and it still did nothing, i guess it is something down to windows maybe because i checked the apache config and that all seemed fine

and i even copied a php.ini file from one of our servers at work and it still didnt do anything

must have been down to a dodgey windows file, darn thing

i tried for about 4 hours last nite to solve the problem and still didnt do anything,

i googled and found some bits but it didnt see to help me, so i took my server into work this morning and put willit work 2003 on and everything seems to work at the moment *touches would*

darn thing...

if anyone reads this and can let me know what went wrong i would like to know thanks :)

Jeanco 12-27-2003 10:36 PM

if the code is not all on one line I believe you need this:

PHP Code:
<?php
print()
?>

I think if you don't use the php it has to be one line...

<? print() ?>

jj2ii3344 12-31-2003 10:49 AM

I got this:

"No input file specified. "


All times are GMT -7. The time now is 11:49 PM.
Site Sponsors
Advertise your business at NamePros

Powered by: vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0