Jump to content

saiko

Members
  • Posts

    37
  • Joined

  • Last visited

    Never

Posts posted by saiko

  1. $as = 'a';

    for ( $counter = 0; $counter< 1000000 ; $counter++) {

     

         echo $counter.'-'.$as.'<br />';

    $as++;

    }

     

     

    lol

    this is funny 177144 - jbag

     

    lol so u see it takes a long time lol but gives the guy the result lol

     

    valtido you say "lol" to much. there is no need for it, its annoying.

     

     

  2. [quote author=ProjectFear link=topic=124595.msg516611#msg516611 date=1170114681]
    well see how you open up your echo with ". if you were to use those again in the echo then php thinks your closing the line. So to stop that you can put a \ in front of the ". Or you could do it like this:

    [code]echo "<tr bgcolor='{$row_color}'><td>";[/code]

    but it all comes down to what you want to do. :)
    [/quote]

    that is spot on PF :)...

    i tend to always use " " instead of using ' ' ..
  3. well i see wat ur sayin as...

    xxx access's restricted.php .. then u have a login form on restricted.php if the session is not set .. but if it is set then it displays the content ?

    or

    xxx access's restricted.php .. then it redirects to a login page if the session is not set .. but if it is set then it displays the content ?
  4. yer i want it so when the user accesses the page it stores the variable to the hidden form etc.

    then it updates the variable so then when the counter goes again it doesnt start from the original value.

    or could i run the timer so it doenst have to do this.

    this is for a game i am making.

    my aim is for the timer to countdown to 0:00 then when it hits that it updates the databse and adds values like gold etc. then it resets to 5:00 and counts back down. i had that bit but when they accessed the page it went back to the original minute and second variable values.

    so could i run this in another file or sumthin *confused*

    note i have seen another site do this.

    if u access it or refresh it, its timer will keep going or be like the rite time. so lets say u refresh and it takes to seconds then the timer will be eg. 14:14 then 14:12.
  5. thanx its like you cleaned my spark plugs and my brain can start again :P

    should of thought of this earlier. thanx.

    ill go see if i can do it

    edit: ive managed to do the updating db but how would i go about making the javascript variable update to the new seconds variable when refreshed?

    would i update the db to the time or a txt file or update some javascript variables?

    how could i get the javascript variable into php?

    if you cant understand me and u have msn add me: saiko@final-designs.com
  6. riteo.

    i have made a javascript countdown timer that resets after 5 minutes.

    now there is a variable seconds for seconds and minutes for minutes which are originally and globally set.

    the thing is that when u refresh the time goes back to the original time i want it to goto the countdown timers last time.

    is there a way to do this in php ? or in javascript?
  7. your sorta on the rite track.

    this is also part of my skining system.

    it gets the file site_head.php now i dont want the admin having to put <?php echo $variable;?> on everthing so i was thinking i could use some other way.

    things i want are things such as the "images path" is stored in the variable "$images_path"

    so if it was set to "skins/1/images" then i want to add that to the start of all there images links

    eg. they have "images_01.jpg" i want it to be changed to "skins/1/images/images/images_01.jpg"

    so wat im trying to say is there a way i can find and replace the code in the file.

    or is there a way i can use another method of echoing the variables other then using the <?php echo $variable; ?>

    like with ipb how they do <% TITLE %> ---- NOTE: i dont have a clue how to do this ------

    hope you can understand :D
  8. yeh the server is runnin on my comp cuz i do all my testing on it!!

    so shuld i upload to my actual server and test it????

    ok thanx to everyone that tried to help its workin when im using the full path!

    ****SOLVED*****
  9. i made a sorta break through!

    i have this when including a file for the skining system.

    on the index page i had include("$scripturl/sources/skin_foot.php");

    i changed it to include("sources/skin_foot.php");

    and now them files work all good and pickup the variables.

    $scripurl = [a href=\"http://127.0.0.1/ms2;\" target=\"_blank\"]http://127.0.0.1/ms2;[/a]


    can someone plz tell me wat is wrong with using the variable that is set to the url in front of /sources/skin_foot.php ??

    i need to use variables in front of the files or else it wont work!! :S

    shuld i use the full path eg. home/user/www/folder/sources/skin_foot.php ??
  10. it aint setting for me because if it is set it will a page with a login form else it will display another page with there details on it and links to usercp etc.!!

    now it is set on the home because i have echoed and done some parseing etc. and i can access usercp etc.
    BUT other pages which i include in the skining system wont pickup the variables as set!!

    plz help!!
  11. *bump* also go here this guy is having the same problem!! [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=88157\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=88157[/a]
×
×
  • 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.