Jump to content

yanivkalfa

Members
  • Posts

    89
  • Joined

  • Last visited

    Never

Everything posted by yanivkalfa

  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 ?
  13. Well IMO .. you gonna have to use either JS eith PHP or something like that . since it wont out resize by its self .. well have you tryed putting this into a table and inside this table this div .. so maybe when the table getting bigger the div will also do as well ? . what i did is . i Set a function in PHP to creat my divs .. and i Counted the Content Rows with some function i got so lets say the contnect is 15 lines .. so i set the high + around 70 px more in the div and i get a dynamic div like that ..
  14. i am trying to send an image address to another page . i mean i have slideshow of images .. there is an array in JS contanin all the images and when i click next the next picture is showing ..i made it possible to click on this pic as if it was a Link. now i want that when i click on that link the Address or -- what ever the array contaning in that cell will pass on to the Address that links has .. and in that page i will just display this Info / pic full size .. hope i am understandable . big problem is that the pics allways changing so i dont know how to move it to the address.
  15. no thats not that mate. its not border its .. link's mark
  16. Well i have pic that is in a div and i am trying to make it without the blue frame .. that gave it the Link's look. here is the how its looks : <div id="slide0" class="slides"> <a href="Picpage.php" target="_blank" class="Pinkslinks"><img src="<?php echo $newonepicarray[0]; ?>" name="imgdiv0" width="110" height="100" id="imgdiv0"/></a> </div> ignore the way i defind the CSS. if possible thanks in advanceds
  17. for eg if i want to make a sort of thumbnails window . with a div .. and i want this thumbnails window to fallow the mouse position . so i want to have a link .. with onmouseover . to first find mouse location and then find the div i uses to the thumbnails window .. and then change its Left and top acording to mouse position .. thanks alot for any help.
  18. Thanks a lot i will have a look at that site and i will Send you a mail . meantime anyone else maybe .. BTW my JS level is very low i am better on PHP CSS and HTML
  19. any clue about at least how to start or where to look for ?.. what i am trying to do is found here . i am trying to make something like that exactly or pritty much exactly like it : go here see http://movies.yahoo.com/trailers the scroll for trailers is what i am looking for . thanks in advanced
  20. well trying to make image scroller or Slide show is more likly but dont know how . would love any help possible here is an exable of what i want : http://www.unrealtournament3.com/us/main.html on latest news there are littile battons to scroll the new . i want to make something like that only with pic and not in flash
×
×
  • 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.