LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-09-2006, 05:29 PM   #1
rh-penguin
Member
 
Registered: Sep 2006
Location: England, London
Distribution: Debian, BT2
Posts: 57

Rep: Reputation: 15
regarding dynamic website


hi,

I've just started learning how to make dynamic websites using PHP and CSS with some html. I use div tags for my images (and other stuff). The problem is, when i save the file and access it via web-browser, i can see the images loading but they never finish.....the page just stays blank. I've got a free webhosting account where i uploaded the same files and they worked (displaying all the stuff thats suppose to be displayed) so this has to be an option i can enable in my php.ini file. Can someone plz tell me what that option is?
thx alot!
 
Old 10-09-2006, 10:20 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
php.ini has nothing to do with images loading or rendering on a website on a webserver. If you post a snippet of the code that deals with the images and or link us, we might be able to provide better support.
 
Old 10-10-2006, 07:59 AM   #3
rh-penguin
Member
 
Registered: Sep 2006
Location: England, London
Distribution: Debian, BT2
Posts: 57

Original Poster
Rep: Reputation: 15
ok, heres one of the divs that i used
PHP Code:
<div id="logo">
<
img src="/images/top_logo.png" width="197" height="49"></div
Could it be the GD Library?
 
Old 10-10-2006, 08:18 AM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
is the /images folder in the / of your webserver location? (/var/www/ or whatever)
i used to have path issues
 
Old 10-10-2006, 08:23 AM   #5
rh-penguin
Member
 
Registered: Sep 2006
Location: England, London
Distribution: Debian, BT2
Posts: 57

Original Poster
Rep: Reputation: 15
My index.php is in MySite(folder)with another folder in it named images(where the images are stored)
Ye its in the server path like /var/www/MySite

Last edited by rh-penguin; 10-10-2006 at 08:24 AM.
 
Old 10-10-2006, 09:31 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by rh-penguin
ok, heres one of the divs that i used
PHP Code:
<div id="logo">
<
img src="/images/top_logo.png" width="197" height="49"></div
Could it be the GD Library?
Has nothing to do with the GD library.. your thinking too hard on a very simple problem. It has nothing to do with anything except you not knowing the concept of paths within your document root directory for your website, the browser on the remote end is what renders the image, not your server.

So if your images directory resides in /var/www/MySite as in /var/www/MySite/images, change your code to look like this instead, taking the / in front of images out:

PHP Code:
<div id="logo">
<
img src="images/top_logo.png" width="197" height="49"></div
 
Old 10-10-2006, 09:48 AM   #7
rh-penguin
Member
 
Registered: Sep 2006
Location: England, London
Distribution: Debian, BT2
Posts: 57

Original Poster
Rep: Reputation: 15
wow, what a stupid mistake. It all works now. Thanks ever so much!!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Dynamic IP eponymous Linux - Networking 5 10-09-2004 06:08 PM
Dynamic name resolution for dynamic IP merlin740 Linux - Software 2 10-04-2004 05:56 PM
Dynamic IP? Gerardoj Linux - Networking 5 05-27-2003 02:20 PM
dynamic IP........ anoop_chandran Linux - General 4 11-25-2001 01:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration