Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
* * * * * 1 votes

Can A Perminant List Or Table Be Displayed On Your Site By Placing It In The Css Stylesheet?


34 replies to this topic

#26 anwiii

    I wont bite...unless you WANT me too

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2,704 posts
  • Gender:Male
  • Location:Chilhowee, MO
  • Interests:watching grass grow....
  • myCENT:62.06
  • Spam Patrol

Posted 25 June 2010 - 06:42 AM

View PostDJM, on 24 June 2010 - 08:12 AM, said:

Hi, thanks very much or taking the time to do that. I just wanted to give up as I didn't want people spending their time doing it for me as it makes me feel bad. I put the files into the folder on my computer where all the files for my site are and it didn't work. I uploaded them to my server on the net and it didn't work also. I get that same message that I said I got prior.

Do I have to put any of the files in their own folder or a separate folder besides the index.html file? When you said it worked for you, was that on your computer? Thanks.

no. all files should be in the same main directory. what web hosting company are you using to host your website? when i tested it, i uploaded the files online and went to the index page. everything worked except the formatting as i don't have your css file but the formating didn't matter. i just wanted to make sure everything else worked.

so now we have to figure out why it's not working for YOU. i don't get any message when i visit your website with or without the "www". so i don't really know what your talking about? where do you get this message and when do you get it? is it an error message of some sort? do you see your site at all? i am not fully understanding what you are meaning. someone mentioned earlier that your webhost may not support php. have you verified that your webhost supports php? if so, what version is it?

#27 web_designer

    "french rose sparkle under moonlight"...do you believe in the magic of moonlight??!!...

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,385 posts
  • Gender:Female
  • Location:US, CA
  • Interests:internet and the web
    reading books
    sport
    watching tv series
    drawings and art
  • myCENT:12.10
  • Spam Patrol

Posted 25 June 2010 - 07:11 AM

Quote


someone mentioned earlier that your webhost may not support php. have you verified that your webhost supports php? if so, what version is it?


yeah DJM, please check if your hosting supports PHP  or not, if you like, just give us the link of your hosting and we will check it for you. and really don't panic. i am sure it is a simple thing you missed there, since anwiii tried the code before and everything worked fine for him. just do your best and things will be fixed eventually.



#28 DJM

    Newbie [Level 2]

  • Kontributors
  • PipPip
  • 25 posts

Posted 25 June 2010 - 07:18 AM

View Postanwiii, on 25 June 2010 - 06:42 AM, said:

no. all files should be in the same main directory. what web hosting company are you using to host your website?

So now we have to figure out why it's not working for YOU. I don't get any message when I visit your website with or without the "www". so I don't really know what your talking about? Where do you get this message and when do you get it? is it an error message of some sort? do you see your site at all? i am not fully understanding what you are meaning. someone mentioned earlier that your webhost may not support php. have you verified that your webhost supports php? if so, what version is it?
Hi, my site is hosted at 50webs.net. That error message won't happen right now because as soon as I saw it didn't work I removed those files from the server and put the original index.html file back in there. I got that message when I uploaded the php and htaccess files plus the new index files and went to the site. Once I changed the site back I got it once again, but like you said I probably just needed to refresh the browser. So basically the message is only displayed when I add the modified index.html file plus the php and htaccess files. I assume 50webs allows php as it has a PHP Settings link, there is lots of setting in there such and choosing PHP 4, PHP 5 or PHP 6 and the following settings, (I have put what the current setting is for each next to the headings).

register_globals (ON)
The register_globals setting controls how you access form, server, and environment variables. By default this variable is set to Off, requiring you to use special arrays to access these variables. When register_globals is set to On, PHP scripts are more vulnerable to attacks.

short_open_tag (ON)
Tells whether the short form (<? ?> ) of the PHP's open tag should be allowed. If you want to use PHP in combination with XML, you can disable this option in order to use <?xml ?> inline. Otherwise, you can print it with PHP, for example: <?php echo '<?xml version="1.0"?>'; ?> . Also if disabled, you must use the long form of the PHP open tag (<?php ?> ).

display_errors (OFF)
These settings define whether PHP should display errors in the browser or be silent. It is recommended that you turn this setting Off during production to avoid any accidental display of sensitive information about your website. This holds true especially for dynamic websites that send usernames and passwords to access a database.

magic_quotes_gpc (OFF)
Magic Quotes represent the process of escaping special characters with a '/' to allow a string to be entered into a database. The process is considered 'magic' because PHP can do this automatically for you if you have magic_quotes_gpc turned on.

file_uploads (ON)
The file_uploads settings allow you specify whether or not to allow HTTP file uploads.

allow_url_fopen (ON)
This option enables the URL-aware fopen wrappers that enable accessing URL object like files.

allow_url_include (OFF)
This option allows the use of URL-aware fopen wrappers with the following functions: include(), include_once(), require(), require_once().

memory_limit
(8M)
This sets the maximum amount of memory in bytes that a script is allowed to allocate. This helps prevent poorly written scripts from eating up all available memory on a server.

post_max_size (8M)
Sets max size of post data allowed. This setting also affects file upload. Note that this value must be larger than upload_max_filesize.

upload_max_filesize (2M)
This setting specifies the maximum size of an uploaded file. Note that the upload_max_filesize value must be smaller than post_max_size. Otherwise the post_max_size value should be used.

max_execution_time (30)
This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser. This helps prevent poorly written scripts from tying up the server.]

zend_optimizer (OFF)
This setting enables Zend Optimizer and Ion Cube for your PHP version. Note that if this setting is enabled, the APC module should be automatically turned off.

apc (OFF)
The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.
If enabled, this setting will automatically turn off the Zend Optimizer and the Ion Cube modules for incompatibility reasons.

#29 web_designer

    "french rose sparkle under moonlight"...do you believe in the magic of moonlight??!!...

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,385 posts
  • Gender:Female
  • Location:US, CA
  • Interests:internet and the web
    reading books
    sport
    watching tv series
    drawings and art
  • myCENT:12.10
  • Spam Patrol

Posted 25 June 2010 - 07:34 AM

unfortunately, your hosting website is blocked from my server and my antivirus, so i couldn't open it. but i remember this site, it supports PHP and MYSQL. anyway, i checked it through the net, and i found it supports CGI, Perl, PHP, MYSQL. so the error then in your files. 

now i don't know why you are insisting that your index file extension to be .html or .htm. just change it to index.php and use the include function and everything will be great. this way you don't have to use .htaccess file.

try it please and inform me the result.



#30 anwiii

    I wont bite...unless you WANT me too

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2,704 posts
  • Gender:Male
  • Location:Chilhowee, MO
  • Interests:watching grass grow....
  • myCENT:62.06
  • Spam Patrol

Posted 25 June 2010 - 07:51 AM

well i tried to sign up at 50webs to see what is going on over there and it wouldn't allow me to sign up. they said i was using a proxy which i am NOT.

you might want to turn on url includes to ON. i really don't know what that is for. maybe for server side includes. it wont hurt to turn it on though if you have the ability to turn off and on your settings.

take a look at the working code here. don't mind the background and stuff. i have my own css file. if you view the source, you wont see the include fuction. it is replaced by the menu itself, but the menu IS in a seperate file, and the fuction IS there. it's just showing the code for the output.

also, you might want to check if a .htaccess file is supported under your current plan. some free webhosts wont allow you to change settings through an .htaccess file. if you find out that this is the problem, then you need to do what web designer said and change your site to php. i don't recommend this way though unless all other options fail. the code would be the same, but you wouldn't need the .htaccess file.

Edited by anwiii, 25 June 2010 - 08:00 AM.


#31 anwiii

    I wont bite...unless you WANT me too

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2,704 posts
  • Gender:Male
  • Location:Chilhowee, MO
  • Interests:watching grass grow....
  • myCENT:62.06
  • Spam Patrol

Posted 25 June 2010 - 08:13 AM

ok. i did a quick search and found this page... 50Webs - Website Hosting News Archive - Htaccess Generator Tool is Available in the Control Panel of the Paid Accounts

evidently, .htaccess is supported if they have a tool to generate the file and the code. i am also thinking maybe you should try to generate the .hataccess file from the generator which would be located in your control panel.

#32 DJM

    Newbie [Level 2]

  • Kontributors
  • PipPip
  • 25 posts

Posted 25 June 2010 - 09:13 AM

I just sent you a PM anwiii with some details for you, thanks.

#33 anwiii

    I wont bite...unless you WANT me too

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2,704 posts
  • Gender:Male
  • Location:Chilhowee, MO
  • Interests:watching grass grow....
  • myCENT:62.06
  • Spam Patrol

Posted 25 June 2010 - 07:46 PM

View PostDJM, on 25 June 2010 - 09:13 AM, said:

I just sent you a PM anwiii with some details for you, thanks.

ok. what seemed to be the problem was the .htaccess file and the code that was put in there so what i did for the webhost 50webs, was i used the .htaccess generator and it created the code
AddType cgi-script .php .htm .html .phtml
which seemed to have done the trick.

everything is working now. if you want to change your menu, you have to change it from the "menu.php" file from now on. i renamed your old index file "indexx.html". it's still there. i didn't delete it.

from now on, i wouldn't suggest giving people your user name and password. you don't know me and i could have destroyed your site.

that box was popping up because whatever was in the .htaccess file, made it so it wanted to download your site to your computer. strange. after deleting the .htaccess file, i had to clear by browsers cache in order to see the site working again.

anyway, it's all set! if you have any more questions, feel free to ask...

#34 DJM

    Newbie [Level 2]

  • Kontributors
  • PipPip
  • 25 posts

Posted 26 June 2010 - 02:11 AM

View Postanwiii, on 25 June 2010 - 07:46 PM, said:

Everything is working now.
Hey, thanks very much for that. Now I'll just go through and add that code to the other pages on the site.

I know I shouldn't give my log-on details to anyone but I just went out on a limb and trusted you. It was funny because I told a few people in the chatroom I did that and they said you can't be trusted and it was a very bad idea, but they were joking and had me worried for a short time lol. So thanks again for that, I appreciate it very much indeed!

#35 web_designer

    "french rose sparkle under moonlight"...do you believe in the magic of moonlight??!!...

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,385 posts
  • Gender:Female
  • Location:US, CA
  • Interests:internet and the web
    reading books
    sport
    watching tv series
    drawings and art
  • myCENT:12.10
  • Spam Patrol

Posted 26 June 2010 - 07:54 AM

Quote


I know I shouldn't give my log-on details to anyone but I just went out on a limb and trusted you. It was funny because I told a few people in the chatroom I did that and they said you can't be trusted and it was a very bad idea, but they were joking and had me worried for a short time lol. So thanks again for that, I appreciate it very much indeed!


yeah i did, i told you DJM, they you "REALLY MADE A WRONG DECISION", because anwiii is the bigger hacker in here,  :P. i am sorry for scaring you but you really should be more careful, next time. you are lucky that anwiii is a trustful person, other one could mess things up.

anyway, i am really happy for you, your site is up again, and you learned something new. as anwiii said, if you have any more questions just post and we will be happy to help, good luck. 






Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users