Forum: Geeks' Lounge Oct 24th, 2008 |
| Replies: 11 Views: 1,022 According to Google it is somewhere in IL. Just go to google maps and search "Scottland USA". |
Forum: Geeks' Lounge Oct 15th, 2008 |
| Replies: 15 Views: 1,256 Oooh ya. Let me tell you about my wonderful life. I didn't realize how wonderful I had it when I was a bachelor. Went to school for 3 yrs full time while working full time so that my wife could... |
Forum: PHP Oct 14th, 2008 |
| Replies: 4 Views: 583 Close.
Like this
$query="SELECT *FROM rad ";
$result="mysql_query($query)";
while($row=mysql_fetch_array($result)){
$text=$row['text'];
echo wordwrap($text, 14, "<br />\n", true);
} |
Forum: PHP Oct 12th, 2008 |
| Replies: 12 Views: 1,149 You will have to either design it yourself or look for one online: http://www.google.com/search?hl=en&q=php+ftp+online+script&btnG=Search |
Forum: PHP Oct 12th, 2008 |
| Replies: 12 Views: 1,149 You do not include the protocol with the servername when you use ftp_connect so change this line:
$ftp_server = "ftp://MyFtpSite.com";
to this:
$ftp_server = "MyFtpSite.com"; |
Forum: Geeks' Lounge Oct 1st, 2008 |
| Replies: 12 Views: 1,395 Not really,
Drop out of high school:considered a bum
Graduated high school, no college degree:considered a burger flipper
Currently in college:considered a party animal
College degree:considered... |
Forum: Geeks' Lounge Sep 20th, 2008 |
| Replies: 41 Views: 3,337 I'm rich. I have more than most people. I've got a wonderful family made up of the three cutest kids I've ever seen and a wife that just adores me. My family is very healthy, I have a career and a... |
Forum: Geeks' Lounge Sep 17th, 2008 |
| Replies: 42 Views: 3,423 You all state a problem, not a solution.
Have you ever heard the term "I wish I were never born", well some people mean it. I just heard a story today that a 14 yr old girl dumped her new born... |
Forum: PHP Aug 29th, 2008 |
| Replies: 28 Views: 1,942 Not for me, I copied that script, refreshed my page about 7 or 8 times and got this in pets_feed_20080829.txt
ID Category Description
ID Category Description
ID Category Description
ID... |
Forum: PHP Aug 21st, 2008 |
| Replies: 6 Views: 529 How I would do it
<?
$stringlen = 15;
$randvarray = str_split("abcdefghijklmnopqrstuvwxyz0123456789");
$stringid = "";
for($i = 0; $i < $stringlen; $i++)
{
$value = rand(0,... |
Forum: Geeks' Lounge Aug 19th, 2008 |
| Replies: 27 Views: 3,143 All hail joshSCH
http://upload.wikimedia.org/wikipedia/commons/4/45/Mooning.jpg |
Forum: PHP Aug 18th, 2008 |
| Replies: 19 Views: 1,950 Also speaking of session exploitation, if you post any user input directly to the webpage, make sure to use htmlentities() to verify that no javascript is being slipped in. This will also ensure... |
Forum: PHP Aug 15th, 2008 |
| Replies: 13 Views: 770 Yes, this is secure. I actually do this normally to not only verify that the session variable isset but that it isn't empty either:
<?php
if(isset($_SESSION['id']) && trim($_SESSION['id']) !=... |
Forum: Geeks' Lounge Aug 14th, 2008 |
| Replies: 42 Views: 3,077 lol, ya or my house be ripped out of the ground and I'll be cool. |
Forum: Geeks' Lounge Aug 13th, 2008 |
| Replies: 42 Views: 3,077 Actually if you stand by the ocean you can see a slight curve so its actually more like pringle shaped. |
Forum: Geeks' Lounge Aug 13th, 2008 |
| Replies: 42 Views: 3,077 You know, jibber-jabber or not, this is actually pretty funny. http://www.alaska.net/~clund/e_djublonskopf/Flatearthsociety.htm |
Forum: Geeks' Lounge Aug 9th, 2008 |
| Replies: 26 Views: 2,026 This has nothing to do with the thread, I just think that is a great signature. |
Forum: Geeks' Lounge Aug 7th, 2008 |
| Replies: 85 Views: 12,752 Personally, I think relationships and personalities can be represented by throwing 5 billion 300 sided dice on the ground. If one die tries to match itself to every die that it finds it will find... |
Forum: Geeks' Lounge Aug 7th, 2008 |
| Replies: 45 Views: 4,346 So what you are saying is that you have worked in several environments and never have been in a situation where you had to put up with any shit from your boss or any number of your boss' bosses? ... |
Forum: JavaScript / DHTML / AJAX Jul 28th, 2008 |
| Replies: 7 Views: 918 If you can get something to work in firefox, with few exceptions, chances are it will work in most browsers. Once you get it working in firefox, then adjust it for ie. Once that is done then you... |
Forum: PHP Jul 24th, 2008 |
| Replies: 111 Views: 6,235 :sweat: :sweat: :sweat: :sweat: :sweat: :sweat:
cool |
Forum: PHP Jul 21st, 2008 |
| Replies: 111 Views: 6,235 I never include them. You could also try an if(isset($_POST['varname'])) statement |
Forum: PHP Jul 15th, 2008 |
| Replies: 16 Views: 1,322 C++ is probably as fast as you're going to get, you can view the comparison to PHP here, comes out to about 90 times faster:
http://www.janitha.com/archives/38
Even then we're talking about... |
Forum: PHP Jul 15th, 2008 |
| Replies: 16 Views: 1,322 Still rollin an hour later. Wheeeeeeeeew |
Forum: PHP Jul 10th, 2008 |
| Replies: 12 Views: 724 I guess you could also do that in the database too. Have like an faq_activity table that updates every time a user views an faq and then you could just pull the 4 most recent for that user. You'd... |
Forum: JavaScript / DHTML / AJAX Jun 26th, 2008 |
| Replies: 2 Views: 2,210 This will give you the basic functionality:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html... |
Forum: PHP Jun 23rd, 2008 |
| Replies: 5 Views: 2,193 You have to declare it as global in the function, view the last function in the class
<?
$globalTestArray = array('Hello', ' ', 'World', '2');
$objtest = new Test(array('Hello', ' ', 'World'));... |
Forum: PHP Jun 22nd, 2008 |
| Replies: 65 Views: 3,900 OK, so the script works. I think it has something to do with the syntax within the file, let's debug.
replace line 225:
$qry = mysql_query($query,$conn);
with
$qry =... |
Forum: PHP Jun 20th, 2008 |
| Replies: 3 Views: 1,379 you could try:
str_replace(" ", "\t" $string); |
Forum: PHP Jun 20th, 2008 |
| Replies: 8 Views: 946 Actually it does exactly what I was thinking:
27:30
(30 + (27 * 60)) / 5 = 330 minutes |
Forum: PHP Jun 18th, 2008 |
| Replies: 24 Views: 2,838 as long as they are spaced by the " " character, yes.
and if the number of values is unknown, you could also assign them directly to an array like so
$alpha = "11 22 33 44 55 66";
$array =... |
Forum: PHP Jun 18th, 2008 |
| Replies: 6 Views: 1,675 As many studies in OOP as I had through school and even after school, didn't really do me any good either. It wasn't until about 2 yrs into my career that I actually learned the value of inheritance... |
Forum: PHP Jun 17th, 2008 |
| Replies: 6 Views: 1,675 I've never seen it done that way and actually its not done to reference the parenting function but rather $this refers to the parenting class. Here's how it works.
If you know a little about OOP... |
Forum: PHP Jun 13th, 2008 |
| Replies: 24 Views: 3,286 I tried it myself and the javascript works fine for me in IE and FF. Your talking about the date and time up in the top right I assume, yeah it works for me just fine. |
Forum: PHP Jun 12th, 2008 |
| Replies: 2 Views: 564 Declare all of your variables and assign them a value innitially.
use constants if used on included files and such.
validate all user input, leave no open doors.
For one example, I often times use... |
Forum: PHP Jun 12th, 2008 |
| Replies: 29 Views: 2,668 I don't know if it will throw an error but you don't need $this-> if you are not in object context.
Another thing, I don't know if you did already but you may want to check the permissions of that... |