Jump to content

Zane

Administrators
  • Posts

    4,362
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zane

  1. Zane

    Ubuntu 7.04

    OH yeah....nevermind Ubuntu doesn't have a root user you have to use the sudo command...like I mentioned for anything having to do with root permissions EDIT and you have to use that password
  2. Zane

    Ubuntu 7.04

    well hopefully you haven't lost your root password or you're doomed (as far as your current installation experience goes) but if you know it...either log on as root or look into the sudo command google it... sudo
  3. Most likely yes. care to elaborate
  4. VirtualHost http://httpd.apache.org/docs/1.3/mod/core.html#virtualhost http://apptools.com/phptools/virtualhost.php
  5. You can only submit one form at a time. You maybe able to rig something up in AJAX to send the data of all your forms to one page, but you'd also need to implement that page to receive all these forms' variables at once.
  6. So........you're trying to put an array into an array? what's wrong with doing this $allProfits[] = $Profit[0]; $allProfits[] = $Profit[1]; $allProfits[] = $Profit[2]; $allProfits[] = $Profit[3];
  7. unlike other programming languages..in PHP you don't have to declare an array's length before using it if that's what you're really asking. but usually to populate an array with the results of a mysql result it looks like this $row = null; //Row begins as nothing //Also, you don't have to declare this either I just put it for demonstration while($row = mysql_fetch_array()) { echo $row['name']; } //Now row is an array of....I really don't know what size prints the Names of all that are in the results
  8. Is Javascript enabled in Firefox?
  9. you might have a rough time with that one. If you don't want the song to restart on refresh then the song is going to have to NOT autoplay. Everytime the page loads...if you have music to load...and it's set to autoplay...it's going to autoplay, most likely from the beginning. The only options I can think of are too complex to really go too in depth on. But you would have to control every event on your page using Javascript. Also you would somehow need to record the time in the current song, when the event occurred, store it in a Session, write a function to fade the volume up or down depending on if you're entering the page or leaving, and continue the song at the last time. Unless you can get the user to install some kind of software on their computer that runs only when your website is up then I doubt you'll have any lucky with a fully musically streamlined website.
  10. replace this xmlHttp = new XMLHttpRequest(); with this try { xmlHttp = new XMLHttpRequest();} catch(e) { try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");} catch(e) { try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { alert("Something's wrong"); return false;} } }
  11. I always set mine to uft8_unicode_ci I try to stay away from a swedish collation..I don't know why that'd be a default
  12. Got code?
  13. $auth_aircraft_info= mysql_fetch_array($auth_aircraft); // echo " </pre> <table align='\"center\"'> Type Registration Location "; While ($auth_aircraft_info) { //</ like so while ($auth_aircraft_info= mysql_fetch_array($auth_aircraft)) {
  14. the error is in the db include file
  15. look at the shell_exec() function
  16. why would it have a class main? and 2: yes if you were to actually space it out in a "proper" format then it would be easier to read *{ padding:0; margin:0; } body{ padding:0; margin:0; text-align:center; vertical-align:top; background:url(images/tall.gif) repeat-x top #414141; font-family:Arial, Helvetica, sans-serif; font-size:12px; line-height:14px; color:#333333; } and technically you don't need these body{ padding:0; margin:0; ..... ..... .... since you already have this * { padding:0; margin:0; }
  17. well your closing b tag is backwards Hello the World! ... should be Hello the World! and then maybe you could do #echo\"Hello the World!\"#
  18. Remove the stuff in red
  19. if you need to have this as a live time update type of thing then you'll need to setup a cron job to: SELECT all the the staff from the timetable....like you have already set the cron job script to check each and every row....to see if the start time is the same or less than the current time... if it is (less than) then check the end time and see if it's greater....if it is.. take the staffid and set his status accordingly although you would have you order the timetable by the start time so you don't overwrite the status. I'm sure that's no ALL you have to do ...but a cron job is the general area where you need to go..and the two PHP scripts you have already grab more fields than you need..all you need is the start time, end time, and staff id, and day
  20. if(preg_match("/[a-zA-Z]/", "546s6")) echo "There's a letter"; else echo "There ain't one"; EDIT: is_numeric() may be quicker though
  21. you have already started a topic on this....and you marked it solved don't double post...mark the other unsolved and continue. http://www.phpfreaks.com/forums/index.php/topic,220650.msg1012401.html#msg1012401 topic closed
  22. Well as far as I know the glob function uses the POSIX engine but I'm not entirely sure.
  23. foreach(glob("*/[^\(\)].*") as $file) not positive that will work, but give it a shot EDIT: if not that then maybe just this foreach(glob("[^\(\)].*") as $file)
  24. h2 { font-size: 12px; font-color: #fff; font-weight: normal; padding: 0px; margin: 0px; }
  25. you want to exclude file with parentheses in them? am I correct
×
×
  • 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.