PDA

View Full Version : main index.php problem


artwalk
05-28-2005, 10:43 AM
hi! i've successfully created pixelpost database, logged in, uploaded an image but when i tried to access my main page, http://www.renriquez.com/pixelpost/index.php , what i'm seeing on my browser is a mix of letters and numbers like these:

"2147483647) $top = $top - 4294967296; //this makes the number signed instead of unsigned if($bottom!=0) $data=$top/$bottom; else if($top==0) $data = 0; else $data=$top."/".$bottom; if(($tag=="011a" || $tag=="011b") && $bottom==1) { //XResolution YResolution $data=$top." dots per ResolutionUnit"; } else if($tag=="829a") { //Exposure Time if($top/10 == 1) $data="1/".round($bottom/10, 0)." sec"; else $data=$top."/".$bottom." sec"; } else if($tag=="829d") { //FNumber $data="f ".$data; } else if($tag=="9204") { //ExposureBiasValue $data=$data." EV"; } else if($tag=="9205" || $tag=="9202") { //ApertureValue and MaxApertureValue //ApertureValue is given in the APEX Mode. Many thanks to Matthieu Froment for this code //The formula is : Aperture = 2*log2(FNumber) <=> FNumber = e((Aperture.ln(2))/2) $data = exp(($data*log(2))/2); $data = round($data, 1);//Focal is given with a... "

I thought I had the installation down pat already but I'm afraid not. Appreciate any help. Thanks!

artwalk
05-28-2005, 10:45 AM
Additional info that anyone might need to decipher my problem:

Pixelpost Version
You are running version 1.4.1 of Pixelpost. Released 24 April 2005.
Latest pixelpost version: Check

Looking for help or want to give feedback, please step into pixelpost forum.
www.pixelpost.org/forum/

Host Information
PHP-version 4.3.11 (Pixelpost's min requirement: PHP version 4.3.0)

MySQL version 4.1.9 (Pixelpost's min requirement: MySQL 3.23.58)

GD-lib bundled (2.0.28 compatible) with JPEG support

Server software Apache

EXIF Pixelpost is using exifer v1.5 for EXIF information.

Paths
Guessed imagepath: /export/home/renriquez.com/public_html/pixelpost/images/

Configured Imagepath /export/home/renriquez.com/public_html/pixelpost/images/

Image Directory: OK - Can we write to the directory? YES.

Thumbnails Directory: OK - Can we write to the directory? YES.

Language Directory: OK

Addons Directory: OK

Includes Directory: OK

Templates Directory: OK

blinking8s
05-28-2005, 11:02 AM
weird...

*stops to think*

*runs to go find someone smarter*

artwalk
05-28-2005, 11:34 AM
I thought I had seen this same problem when I ran Simpleviewer's installation php script the other day. Emailed my host's support team and got an answer that the opening tag <? don't work on their server. It has to be <?php.

I checked out the exifer1_5 php scripts and true enough, those were the culprits.

I'm a happy camper now. Now, on to template hunting... :D

blinking8s
05-28-2005, 11:39 AM
thats weird...

good it works now though, you may have issues in the future with addons you download, many of them the code opens with <? so keep your eyes peeled.

We'll look further into it though to avoid server issues like this one

GeoS
05-28-2005, 11:49 AM
It depends from php.ini configuration. It can additionaly support short tag form or only a long form.

doffer
05-28-2005, 01:38 PM
Try sending a mail to your host and ask if they could modify their php.ini so that both <? and <?php works... Can't see what drawbacks there might be, and it would make it more user friendly for their customers too :)

Regards

artwalk
05-28-2005, 03:38 PM
will do. Thanks for the tip!

doffer
05-28-2005, 04:12 PM
Good luck :)