Jump to content

yanivkalfa

Members
  • Posts

    89
  • Joined

  • Last visited

    Never

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

     

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

     

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

     

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

  6. I'm really not following what you are trying to do. Your question is way to general to provide any specific help. If you were to provide a link to the page you already have with some more specific instructions it would be helpful.

     

    However I will try to parapharase your request into what I think you are asking.

     

    You havea page in which an image is displayed. There is a next button/link on the page that will display the next image in the album. But, you also want the image itself to be a link to open the image full-size.

     

    If that is correct, I would have a question for you. Do you have two versions of each image (small & large) or are you using JavaScript to change the size of the image on-the-fly?

     

    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 .

     

    When you click next and the next picture is showing, is it a different url or is it dynamically changed on the same page?

    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 ?

     

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

     

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

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

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

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