Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script not functioning in my HTML page
09-10-2010, 11:29 PM
Post: #1
Script not functioning in my HTML page
Hello and gruss dich!

I have chose KoschtIT instead of many other php galley providers because the finished 'item' looks better than the rest by far and looks easier to incorporate into my own website; thanks admin for all your effort and precious time.

My problem

Very basic really. I believe I have followed the instructions in the readme.txt file that came with the package but nothing is being displayed on my HTML web page.

[Image: no_gallery1.jpg]

My PHP experience
Absolute beginner! I have come over from working with ASP.net and now fancy a change.

Server spec

Browser: IE 8 and Firefox 3.6.8 (occurs in both)
Server: WampServer Version 2.0
PHP protocols: php_gd2 is enabled and php version 5.3.0 functioning

Web page

Location: http://japriority.com/gallery/gallery.html
File/webfolder structure:
[Image: no_gallery2.jpg]

Further details

As you can see if you view the source code for 'gallery.html', it points to the script file in the same webfolder and nominates the default 'sample' gallery folder - but nothing is displayed except from my basic text at the top of the webpage.

I test this website on my local WampServer that runs php 5.3.0 and other php scripts (such as file upload to a nominated folder) work perfectly in the server environment.

What have i done wrong?
Is there a fundamental flaw with my undestanding of what is required to get the script functioning?

Regards,
derv Smile
Find all posts by this user
Quote this message in a reply
09-11-2010, 04:11 AM
Post: #2
RE: Script not functioning in my HTML page
(09-10-2010 11:29 PM)dervbas Wrote:  What have i done wrong?
Is there a fundamental flaw with my undestanding of what is required to get the script functioning?

Wow. That's how every support request should look like! Nice descriptions and you provided all the details, yet the error you made is very simple. Just try to rename your gallery.html to gallery.php . A common mistake for a php-rookie. By default PHP is only executed in files with php file extension.

KoschtIT Image Gallery developer
Visit this user's website Find all posts by this user
Quote this message in a reply
09-12-2010, 12:56 PM
Post: #3
RE: Script not functioning in my HTML page
Thank you for your A1 reply.

(I am a software Technical Author and 2nd line support technician so I am usually the one doing the support and kinda know what makes a good support request Sleepy)

I made the simple change and changed the file extension from .html to .php and it works a gem.

Take a look if you fancy.
http://japriority.com/gallery/gallery.php

Thank you for your script and interest in helping others.

-derv
Find all posts by this user
Quote this message in a reply
03-29-2011, 08:44 PM (This post was last modified: 03-29-2011 08:46 PM by Dan Keller.)
Post: #4
RE: Script not functioning in my HTML page
(09-11-2010 04:11 AM)kkokus Wrote:  Just try to rename your gallery.html to gallery.php . A common mistake for a php-rookie. By default PHP is only executed in files with php file extension.

Perfect, thanks for this hint!! Now it works also on my website :-)
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)