Jump to content

SFB

Members
  • Posts

    282
  • Joined

  • Last visited

Everything posted by SFB

  1. SFB

    Spam protection script

    so could i go like $spam = array();$spam[] = "blah";
  2. SFB

    Spam protection script

    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.
  3. SFB

    dynamic var.

    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.
  4. SFB

    Form Errors

    Could you post the whole code? It may help with finding the error if you havent alredy.
  5. SFB

    Sitemaps

    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.
  6. 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.
  7. SFB

    multiple php.ini

    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.
  8. SFB

    A menu feature problem

    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 />");}?>
  9. SFB

    multiple php.ini

    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.
  10. SFB

    multiple php.ini

    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
  11. SFB

    multiple php.ini

    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?
  12. SFB

    multiple php.ini

    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.
  13. SFB

    multiple php.ini

    i think the server has the latest versions of fedora, apache, php,... installed on it. how and where would an enviorment variable be created
  14. SFB

    multiple php.ini

    that link just confused me more. so can I have my own php.ini?
  15. if you got the html of a php file then yes your files should be safe.
  16. 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
  17. 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.
  18. SFB

    multiple php.ini

    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.
  19. here is just a simple gif i put toghether in flash just to show that it is possible.
  20. in flash you can create a .gif. create it just like a normal flash movie with frames then go file -> export -> export movie... then change save as type to animated gif
  21. what type of tools?do you want php itself?try php.net
  22. SFB

    problems with sessions

    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!
  23. SFB

    problems with sessions

    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.
  24. SFB

    problems with sessions

    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.
  25. SFB

    problems with sessions

    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...