Jump to content

SFB

Members
  • Posts

    282
  • Joined

  • Last visited

Posts posted by SFB

  1. i just got a spam message on my message board. I am adding a script that will look in a list of words that a spammer might use but a normal poster probably wouldnt. i will also add ip addresses and usernames to the list. I am having troubles making the list into an array. i could go like

    $spam[0] = "blah";$spam[1] = "blah";$spam[2] = "blah";$spam[3] = "blah";

    but i would rather just have a list like$spam = "blah";$spam = "blah";$spam = "blah";where i do not have to change the numbers in the brackets. this seeems like it would be posilbe but i am just confused as to how i would do it.

  2. I bet he is working on his search engine. there is probably an easier way to do it but knowing dcole... one time he had to use 4 different types of quotes.

  3. i too have a question, why is the need for a XML sitemap, is it really necessary

    You do not have to have a site map... You also do not need to have an xml sitemap. A sitemap in html is also helpfull to search engines. I think google just choose to do their sitemaps in XML because the information they were looking for fit easily into XML format. The XML version does allow you to add things like priority and last modification that google may not understand from an html sitemap. so to shorten it up you can make a sitemap in whatever language you want but that doesnt mean that google will understand it.
  4. one time i had a mac. it took me a day to get familiar with... my windows computer took 2 weeks. I wish google was 2,000 people looking at webpages. mabey my site would get a better rank. I think google deleted my site from the index. they nolonger have a cache or any informaiton about me. this is odd because i was only down for less than a month. i find sites in google that have been down for more than two or three months and google still keeps them in its index. I resubmitted my site and i hope to see it back in google soon.

  5. If you think about it it would cost of electricity for a server is almost the same as the cost of a cheep host. I have a good deal currently. cost to me is nothing but yet I do run into some problems but then thats what makes programing fun.

  6. this can be done with php. just use php to check what page you are on and if that matches the link then make it bold

    <?php$location = $_SERVER['PHP_SELF'];if($location == '/index.php'){ echo ("<b>Home</b>");}else{echo ("<a href='/index.php'>Home</a><br />");}?>

  7. i do not have direct access to the server but i do have a lot of power on the programing side. the dcole server is really a good deal but there are lots of little problems that pop up. after all dcole and I are still in highschool and anything we have learned we have taught ourselves. I could get my own server but then i would have to fix the problems myself.

  8. well my testing posiblities end at apache. i do not have Fedora. dcole does. I have googled this for hours but havent came up with anything. one interesting thing i found is that people seem to say you can put things from php.ini in the .htaccess is this true?o well .htaccess doesnt work on the dcole server anyways. i should really get that old computer/server from mitch (mogaard.ath.cx) and set it up to try to set up with fedor so i can help dan. i should get my own server but my family doesnt like to leave things turned on for ever so there is a problem with that

  9. If you can determine how to create an environment variable, you can put php.ini anywhere you want, as long as you point the environment variable to the right place.

    Ok so I will admit this mabey just a few times... I dont know everything about php espessialy when it comes to installing and changin setting and things. so where should i start with creating an environment variable. like what file. not necessarly a location but a file name would be good enough for me. lets say this wasnt Linux. what would you do?
  10. when i googled it, i got a bunch of results saying there are multiple php.ini files and where peope are asking what one to use. i never really go something that said this is how to create another php.ini file. i also found some hosts that said you had your own php.ini file. ini_set is currently blocked by the dcole server but dcole said he would allow a php.ini file if i could figure this out.

  11. Look into creating an environment variable to point to the location of your php.ini or something like that.  I'm not sure what server you are running on, so your host might have to help you with that.

    i think the server has the latest versions of fedora, apache, php,... installed on it. how and where would an enviorment variable be created
  12. you could check and see if your files are safe by setting up a second host and trying to open your files from your first. if you have to pay for that, i would just send your host an email asking them if your files are safe. they will probably tell you

  13. fopen() would only get the actual php if it were to open a file on the same server. if you went like fopen("http://snowforts.ath.cx/index.php" "r"); you would only get the html from my site (assuming that url fopen is on). your files should be safe unless someone else has the abilities to create a php file on your server and knows the location of your files on the server. if you are hosted by somone, they usually make sure that you cannot open files from somone else that is being hosted by them too.

  14. as many people know, I am hosted by dcole. when he had a windows server somehow i was able to have my own php.ini. it affected my folder and only my folder. now when dan has fedora core 5 with apache, my php.ini does nothing. is there a way to have a php.ini for my folder. if i figure this out dcole said he would let me have one.

  15. i told dcole to just leave that blank and it would work for all domains. he said that that probably wasnt the reason my sessions are not working. i tryied the folowing code but it didnt work.

    <?phpini_set ("session.cookie_domain", "snowforts.ath.cx");?>

    edit: my changes did not save for some reason. i have to go and fix themi will try this again a bit laterEdit#2: the problem with the dcole server has been fixed! my sessions work again!

  16. well that didnt work. I found that the phpsessid cookie is not being set. I do not know what is causing this. sessions work for dcole but they are not working for me. its the same server, i must be doing something wrong.

  17. ok here is the real problem. session.cookie_domain is set to dcole.ath.cx I dont have my own php.ini anymore so could i somehow chage this with php?i think its like ini_set() but i'm not sure how to do this.

  18. ok here is some more info. dcole.ath.cx uses sessions in his site so they should work for me. the sessions that i have in my script work on xampp. i temporarily use xampp as a server sometimes. it is like apache on windows. i am still working on setting up apache and php and those things as a service on my own. but anyways i am thinking there must be a mistake or something in my code. strange things always happen to me...

×
×
  • Create New...