+ Post New Thread
Results 1 to 11 of 11
Web Development Thread, I'm stumped! in Coding and Web Development; Right, been trying to find a pretty way to display my mates art on his website. Found this nice little ...
  1. #1

    Little-Miss's Avatar
    Join Date
    Oct 2007
    Location
    Birmingham
    Posts
    5,348
    Thank Post
    2,330
    Thanked 622 Times in 418 Posts
    Blog Entries
    2
    Rep Power
    508

    I'm stumped!

    Right, been trying to find a pretty way to display my mates art on his website. Found this nice little gallery called Minishowcase which needs php.

    I cant for the life of me get this to work. From what i can tell the server has PHP 6 on it, plus since i've taken it over the site the index has always been .php. So im guessing its on there.

    I've tried running a test to give me the results of what the server has installed. I've uploaded it and guessed i could just run it like http://www.hoakser.com/test.php but the just throws back a 404!

    but then if i type a direct path to something i get a 404.

    What am i missing!? I havent played with php before...

  2. #2
    Diello's Avatar
    Join Date
    Jun 2005
    Location
    Kent, England
    Posts
    1,063
    Thank Post
    111
    Thanked 228 Times in 128 Posts
    Rep Power
    73
    Index and whole site appears as HTML here, not PHP. Have you checked the hosting account to see if PHP is enabled?

    Try putting the following code into a text editor, saving it as a PHP, then uploading it:

    Code:
    <?php phpinfo(); ?>
    If the web server isn't showing it as existing, then maybe it's a permissions issue?

  3. #3

    Little-Miss's Avatar
    Join Date
    Oct 2007
    Location
    Birmingham
    Posts
    5,348
    Thank Post
    2,330
    Thanked 622 Times in 418 Posts
    Blog Entries
    2
    Rep Power
    508
    Ah, thats what i used to test it and its just came up with the code on the page! I dont get an answer from that at all...

  4. #4

    Little-Miss's Avatar
    Join Date
    Oct 2007
    Location
    Birmingham
    Posts
    5,348
    Thank Post
    2,330
    Thanked 622 Times in 418 Posts
    Blog Entries
    2
    Rep Power
    508
    This is where i got my php info from...

    Site report for www.hoakser.com

  5. #5

    Join Date
    May 2009
    Posts
    11
    Thank Post
    0
    Thanked 5 Times in 5 Posts
    Rep Power
    10
    Hey,

    From the server response headers it says that the server is running PHP 5.2.6.

    I went to the page hoakser.com and that works out, so I would assume php is all good.

    I would probably edit the index.php page to see if I was in the correct directory, and then check the permissions on the test page.

    If you want more help im in the area.

    -Lee-

  6. Thanks to leeneilson from:

    Little-Miss (30th May 2009)

  7. #6
    mossj's Avatar
    Join Date
    Dec 2008
    Location
    Leicester
    Posts
    1,466
    Thank Post
    157
    Thanked 189 Times in 174 Posts
    Rep Power
    51
    When i wanted to embed a slideshow i just mocked one up in serif webplus and then took out the code i didn't need, then pasted what was left into the pages i wanted it. It provides lots of diffrent methods of doing it and above all doesn't watermark it.

    P.S Now that im using joomla I use RSGALLERY2....

  8. #7

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,855
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    181
    It's hosted with B&P on storm, who I also use, so I can tell you for a fact it's PHP 5.2.6 and a choice of MySQL5 or 6.

    If you PM me, I have control panel access and I'll take a look for you now while I'm waiting for something else.

  9. #8
    dwhyte85's Avatar
    Join Date
    Mar 2009
    Location
    Berkshire
    Posts
    1,199
    Thank Post
    149
    Thanked 143 Times in 129 Posts
    Rep Power
    75
    I had a few issues a while back with the .htaccess doing odd things, although, not quite like this - guys above have given sound advice :-)

    The directory sounds like it could be right, nothing silly like it's been uploaded as test.php.txt or anything :P

  10. #9

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,855
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    181
    Solved: files need to be in the htdocs directory to be accessible through the browser.

  11. Thanks to powdarrmonkey from:

    Little-Miss (30th May 2009)

  12. #10
    contink's Avatar
    Join Date
    Jul 2006
    Location
    South Yorkshire
    Posts
    3,790
    Thank Post
    303
    Thanked 327 Times in 233 Posts
    Rep Power
    117
    Quote Originally Posted by powdarrmonkey View Post
    Solved: files need to be in the htdocs directory to be accessible through the browser.
    Ah, yeah... that would help... bit odd to have it there though, the usual standard is public_html or www as the root folder...

  13. #11

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,855
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    181
    Quote Originally Posted by contink View Post
    Ah, yeah... that would help... bit odd to have it there though, the usual standard is public_html or www as the root folder...
    Yeh, storm has always been like that. It's because (I presume) it's a Redhat machine, on which the global root is /var/www/htdocs, or at least used to be. So for consistency, I guess.

  14. Thanks to powdarrmonkey from:

    Little-Miss (30th May 2009)

SHARE:
+ Post New Thread

Similar Threads

  1. Stumped
    By Bestbett in forum Windows
    Replies: 1
    Last Post: 19th September 2008, 09:00 PM
  2. I'm stumped
    By Lee_K_81 in forum Wireless Networks
    Replies: 11
    Last Post: 17th March 2008, 12:33 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •