Jump to content

yanivkalfa

Members
  • Posts

    89
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

yanivkalfa's Achievements

Member

Member (2/5)

0

Reputation

  1. First the problem is not so much php relate, as i actually doing it in C# however regular expression are same on all of them and i dont know any c# forums as good and active as phpfreaks so I've decided to post it here. My text is: <div class="15ma">text-special character - numbers </div><div class="15ma">text-special character - numbers </div><div class="15ma">text-special character - numbers </div><div class="15ma">text-special character - numbers </div><div class="15ma">text-special character - numbers </div> No spaces between the dives or new lines. I thought of using this pattern: <div class="15ma">(.+)<\/div> However kept looking at it and it just grabs the first <div class="15ma"> and the last </div> since i used (.+) it consider all the other as part of the inside text.. Any help would be highly appreciated. Thanks in advanced.
  2. well, i never thought its DB related, but the dedicated host we had kept going down and the company that provided it always claimed it was heavy DB resources consumption. you are saying its Curl which means using option A will be best. I thank you for your answer.
  3. Well my question is not 100% about MySQL or specific DB, but its very relevant to that and i didn't knew where to post it. So, i have a network of website , 1 of the website control all of the content in those sites, the way i am operating the network now is, i have a script on every one of the sites in the network when this script is being visited by "cronjob" sorta script it connect using Curl to the main website request the data, and then insert it to the DB of that site. I've found that this system is some what heavy on resources when i have around 150/200 websites. My question is. i have several options I've thought of to reduce the resources usage. Option 1.) 2 main DB, DB (A) for the main website, DB(B) for all the other websites - instead of using Curl, the main website will remote connect to the DB(B) and insert or update the data, the only problem i can see with this method is 150-200 website all connection to that same DB every time a user visit them, can create a problem maybe ?. Option 2.) not changing the DB structure, having 1 DB on main website and one DB for each website, but instead of using Curl making the main website remote connect to all the 150-200 website and insert/update the data as needed. problems with this method, well first its not much of a difference between the way i am using now to this so i don't know how much it will improve resources wise, i am pretty sure however that i will be a lot slower then the current system. Option 3.) No use of DB at all, instead use files, and regular expression to extract / insert or update the data, so when one of the scripts are visited it will request the file from the main website, i don't know how this will workout simple because DB are much more accepted and normal and i don't know if anyone uses this kind of method. any kind of help regarding this will be Highly appreciated and i know this aint a common questions. Thanks in advanced.
  4. guys i used to know how to do it but i forgot the line you add to your page that tells your page that if a visitor using IE 7+ the page will use certain CCS file and if a visitor comes with firefox it will use different file of css? i really cant remember what the line was any help would be highly appreciate thanks in advanced.
  5. So basicaly your saying that eatch broswer knows CSS its Own way ?
  6. i have a serius problem .. i have made a site .. very big site i based it all on Firefox 3 .. now people been inside it and told me it has many many bugs on IE7 and opera and chrom and on every browser it has diffrent problem .. the address is http://e-lephant.org/Home.php .. now i am asking .. is there any way of makeing a site to work on all browsers the same way ?? any tips pointers or any help is very welcome please try to visit the site in diffrant browsers and see what i mean..
  7. i have a serius problem .. i have made a site .. very big site i based it all on Firefox 3 .. now people been inside it and told me it has many many bugs on IE7 and opera and chrom and on every browser it has diffrent problem .. the address is http://e-lephant.org/Home.php .. now i am asking .. is there any way of makeing a site to work on all browsers the same way ?? any tips pointers or any help is very welcome please try to visit the site in diffrant browsers and see what i mean..
  8. your right mate. i sould try and i tryed it and its just removed my border fro img and the second try it just removed the border from div its didnt fix my problem mate.
  9. i cant remove the Border .. i am using border its has nothing to do with border .. its just ..that the pic becomes a Link . it have some sort of blue border / frame around it .. indicating that its a link now and i have no idea which property will remove this i know that . when you select normal text and make it as a link .. it automaticaly will have a underline to indicate its a links .. when you do same for a pic .. it will make this pic a border to indicate its a Link as well . thanks for any help.
  10. it should be so simple .. like text-decoration:none; but something that will work on this damn pic .
  11. i thinks this one will do the trick.. But what kinda diffrant aprrouche would you take btw ?
  12. Ok your the closest to the problem i have .. well i have 1 size picture .. but i get it smaller for the slideshow -- or album --- and then when i click on it its supost to jump me into another page that shows the image its self full size . its dynamic change .. couse basicaly what is do i . i have an array that cycles the pics inside it : 7.1 .2.3.4.5.6 --- then when you click next it will cycle again --- 6.7.1.2.3.4.5 ... and so on 5.6.7.1.2.3.4 ... and what i do is document.getElementById('imgdiv0').src=Picsarray[0] document.getElementById('imgdiv1').src=Picsarray[1] document.getElementById('imgdiv2').src=Picsarray[2] like this i change the source of <img .. ... tag . and that how i get my pics to keep changing and my whole album to work .. now i am trying to make it so when you click on one of the showen pics to send the pic's url to another page and in this another page i will just show it fully .. i thought of getElementById(the <a ... > </a> ID ) and change its url to soemthing like ... <a herf="blablabla?image=Picsarray[x]> it might be working couse then on the next page i will have .. in post/get image the pics address and i could maybe use it .. anyone maybe got a better way ?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.