Jump to content

Zane

Administrators
  • Posts

    4,362
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zane

  1. I wonder if this works...try it [code]strtotime("7 hours 30 minutes", strtotime("8:30"));[/code]
  2. I bet the message is parsed before it's added to the database and the PHP parts were just formated beforehand using regex or something, that would explain why the quote tags from way back are different too see check it out [a href=\"http://www.phpfreaks.com/forums/index.php?s=&showtopic=34590&view=findpost&p=126084\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?...ndpost&p=126084[/a]
  3. could you just convert it to UNIX timestamp and do a couple date/time functions [code]date("g:i", strtotime("8:30 + 7 hours 30 minutes"));[/code]
  4. [!--quoteo(post=360123:date=Mar 30 2006, 02:44 PM:name=ober)--][div class=\'quotetop\']QUOTE(ober @ Mar 30 2006, 02:44 PM) [snapback]360123[/snapback][/div][div class=\'quotemain\'][!--quotec--] Please tell me that this is all generated from the same page and you just want to look at the status of a field in a database of all your users. [/quote] I think, no I'm pretty sure that he's trying to phish data from a database he doesn't have access to. [!--quoteo(post=360123:date=Mar 30 2006, 02:44 PM:name=ober)--][div class=\'quotetop\']QUOTE(ober @ Mar 30 2006, 02:44 PM) [snapback]360123[/snapback][/div][div class=\'quotemain\'][!--quotec--]Otherwise, that's gotta be the worst design of a website I've ever heard of. [/quote] These forums are laid out such a way.....for instance, the 'newbies'. 'lurkers', and 'gurus' all have a significant field value on their profile...wouldn't be too hard to just do a loop, but it would take such a long time
  5. you would need to look into these two function ereg() file_get_contents() assuming you know how many users there are, you'd create a loop from 1 to that number using a counter var and have it ereg each page for that gif using the counter var again something like this [code] $parseUrl = "http://www.example.com/member/profile/"; $numUsers = 0; for($i=0; $i<5000; $i++) {    $parsePage = file_get_contents($parseUrl$i);    if(ereg("http://www.example.com/images/powermember.gif", $parsePage))        $numUsers++; } echo "There are " . $numUsers . " power users";[/code] EDIT But using something like that would take FOREVER if there are a lot of pages
  6. if you're wanting to perform it when on hover you should use onMouseOver instead of MouseOut and also on your script [code]function tagHelp(name, usage){     eval("window.document.form."+name+".value = Usage: usage;");      }[/code] usage should be outside the quotes the same as name like so [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]function tagHelp(name, usage){ eval("window.document.form."+name+".value = Usage:[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--][b]"+usage+"[/b][!--colorc--][/span][!--/colorc--];"); }[/quote] and if I'm not mistaken you should have to put single quotes around the new value [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]function tagHelp(name, usage){ eval("window.document.form."+name+".value = [!--coloro:#3366FF--][span style=\"color:#3366FF\"][!--/coloro--]'Usage:"+usage+"'[!--colorc--][/span][!--/colorc--];"); }[/quote]
  7. Zane

    Regex

    if that's the exact format of the email then this may work [code] (v|V)<span.*</span>(i|I)<span.*</span>(a|A)<span.*</span>(g|G)<span.*</span>(r|R)<span.*</span>(a|A)</font>[/code] can't guarentee anything though
  8. [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]I want the user to be able to click on a button located within the form and be took to a seperate page[/quote] are you talking about having two separate submit buttons? I couldn't think of any reason to have a nested form, seems kinda redundant....only reason I could think of is if you wanted to make a certain field mandatory which can be done with a CGI/Javascript anyway.
  9. if you use the key SCRIPT_FILENAME on $_SERVER you'll get just the filename [code]$fname = $_SERVER['SCRIPT_FILENAME'];[/code]
  10. another question Is it possible to popup an htaccess logon box for when someone tries to access a certain port number So if someone tries to access stuff on port 8080 how do I restrict and authorize it and I guess my next problem would be how do I distinguish in Apache which port a folder is part of if I have all my folders in htdocs (the web root) and I want say my images folder on port 8080 would I have to take it out the web root and put it in a folder in the apache root somewhere....what how you see what I'm getting at?
  11. nevermind....I got it
  12. This isn't really IIS but it is Microsoft based and it is a problem I'm having....therefore...this is the right forum ok..I have two computers on a network mine runs xp Pro and the other runs xp HOME I have two drives I want the HOME computer to access instead of mapping two drives.........is it possible to some how put a 'link to the other drive inside the one they've just logged into. Say I only map them to the C Drive and I want them to be able to access the D drive as well....... is there anyway....in my c drive I could put some kind of link to my d drive so I wouldn't have to create a second drive map I know that once a user logs into one mapped drive....if that username is permitted on another, the user doesn't have to log into that one. the reason I ask is because this scenario was toned down from reality...I actually have 4 drives I want to "link" with EDIT: and I've already tried making actual shortcuts and it thinks of the shortcut as local so if I have a shortcut in my c drive for the d drive and they access it it will try to access the d drive that may be on their computer
  13. as far as MD5 goes it's much better to reverse your string MD5 that then reverse the MD5 and MD5 that makes it impossible to hack In reference to this post http://www.phpfreaks.com/forums/index.php?...topic=76708&hl=
  14. you need to get to the mysql console through DOS or your terminal or whatever you are using and use the OLD_PASSWORD algorithm
  15. Zane

    change table name

    It should be Choose the table in particular and choose the Operations tab...it should be there
  16. check this link out http://www.phpfreaks.com/forums/index.php?...hl=libmysql.dll just replace libmysql.dll with libmysql.so
  17. yeah...please elaborate...lol I use Zend Studio and Dreamweaver MX 2004 keep everything in order
  18. My name is Zane Dockery I am from Murphy, NC and I'm 19 years old I go to Southwestern Community College in Sylva, NC I'm a double major in Internet Technologies and Computer Information Systems I started teaching myself PHP around 2-3 years ago and I learn more every time I get on these forums. I also know Mysql, HTML, Javascript and some CSS and JAVA. I hope to learn more as I the years go by.
  19. send an email to dockeryz(AT)gmail(DOT)com and I'll hook you right up
  20. heh....join the club i love that show too that and aqua team,and a bunch of weird-ass cartoons ......So......can anyone figure out where they top quote is from? a gmail invite for the winner....lol like you couldn't just google it out......sorry had to find a way to give em out somehow I guess I can offer one to henster for finding out the origin of the earlier mentioned quote ......want it?
  21. I don't know if anyone noticed ot not...but your slashes are backwards meaning.......they are when they should be if you wanted to escape the quotation marks that could be why the coloring is off
  22. Awesome.......that did exactly what I wanted.. Now I don't have to do a search and replace for the entire site or use "./" to refer to a file within the same directory.. Thank you
  23. I know my question has nothing to do with PHP but this forum is the most active and I go here all the tme for my answers. That being said --------------------------------------------------------- I'm using Dreamweaver MX 2004 to edit a site and I'm uploading it to an IIS 6.0 web server In dreamweaver when you want to link a word to another page you can either type it or you can click the small target button beside the link textbox and drag it to the desired file, thus linking the file automatically. What I don't like about this is that when I try and link lets say Contact to the file contact.htm which is in the same folder it will put "/contact.htm" notice the preceding slash.... This is when I'm in a subdirectory By having that slash there IIS somehow interprets is as.......go to the root directory...so it links more like this "[rootdir]/contact.htm". it doesn't put the domain in the html or anything it just links back to the root. I want it to say "contact.htm" without the slash but that is where my problem and question is. (The odd thing is that when and if I upload it to a apache server the way it is.....then it works fine. Like always the problem is Microsoft) Is there a way to change the way dreamweaver links the files? If you still don't understand what I'm talking about then ask me.
×
×
  • 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.