![](https://xisto.com/discuss/uploads/set_resources_4/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
mobious
Members-
Content Count
117 -
Joined
-
Last visited
Everything posted by mobious
-
does it have any kind of documentation? try looking for it in it's website.
-
here it is. please do not remove the headers. that is the only part that gives credit to me. Auth.zip
-
that's a really bad way to use cookies. i'd rather use PHP's session functions. relying fully on cookies is really not the right way to go.
-
if you mean is a authentication system, i can make you one.
-
well in single quotes, you also have to escape '. it's just the same as in double quotes you have to escape ". but the advantage of a double quote is that it can escape many special characters such as new lines and line feeds. and about the the single quotes being parsed faster, i really have no idea about it since they are just considered as a single character.
-
Misc Cool Scprits Im looking for some cool scripts
mobious replied to Joshthegreat's topic in Programming
why not add a shoutbox? it's really simple yet makes your site interactive. -
well they may be what you say but it does not matter here because the topic is about php chat not shoutboxes.
-
make sure that you are comparing the id to the md5 checksum of the image. or try changing... $Image_size=filesize("$Dir$Find_Img_name"); to... $Image_size=filesize($Dir . $Find_Img_name);
-
now that you have something to show, how about handling your sessions? have you done it already? if you are not into cookies, for sure you will not have the "remember me" stuff. i suggest make a session class that will support those who still uses cookies so that you can remember them. as well as those who fear cookies.
-
imo it will suck because the script was not made to your liking. why not just hire a professional php programmer and write a script the way you like it?
-
are you sure that the index you used for $userarr is correct? why don't you just fetch the row as an associative array. in that way you can access the index as the name of the column rather than as a number.
-
every language has it's pros and cons. as JSP is favored because of it's OOP style. PHP as well is liked because of it's C style. JSP is not that support by hosts because of it's low demand unlike PHP which has a very high demand. JSP maybe better than PHP or vice versa. I think that it just depends on how a developer uses the language to create great apps. PHP is really good because of it's system and great support communities everywhere and of course very easy to learn.
-
you'll probably find a hard time find an exact same script. this is the only way i can help you, since i cannot find the same script because it is customized. i'll make a php script for you and learn from it instead. if it is ok for you.
-
if you will just store blogs, you can just use flat files but for other stuff that has a high overhead such as login sessions, you better use mysql. but if you start to experience stuff like no read or write permission be of high overhead thats\'s the time you switch to mysql.
-
I Need Help Installing Phpbb Fully Moded PLEASE HELP
mobious replied to eskick's topic in Programming
i think the mysql server of the host is already running. it's just that he has not yet setup the right username or password to access or connect to the mysql server. -
i requested for package 3 and yet i got the alpha package which has only 20mb of storage and 512mb of bandwidth.can you fix it?
-
the hard part in a flash chat is that you have to be good in designing the template. i have seen a lot of them and they sucked at design. which brings page-based chat more desiring to the eyes.
-
the operators are not theat confusing. the operators are just like the one you use for math class. some of them are already self-explanatory.
-
try using phpMyChat. here is the link: phpMyChat
-
i'll share my class. if ever it will be used, please do not remove the heading which shows that i made it. here are the constants used. define('BEGIN_TRANSACTION', 1);define('END_TRANSACTION', 2); the mysql class itself /*************************************************************************** * MySQL Class * ------------------- * Created : Tuesday, Mar 11, 2003 * Copyright : (C) 2003 ENIGMA Designs - PHPBIT * Email : support@3nigma.com * * * * ***************************************************************************/ class db { var $db_connect_id; var $query_result; var $row = array(); var $rowset = array(); var $num_queries = 0; var $in_transaction = 0; function db ($server, $username, $password, $database, $persistence = false) { $this->server = $server; $this->username = $username; $this->password = $password; $this->database = $database; $this->persistence = $persistence; $this->db_connect_id = ($this->persistence) ? mysql_pconnect($server, $username, $password) : mysql_connect($server, $username, $password); if ($this->db_connect_id) { if ($database != "") { mysql_select_db($this->database); } else { return false; } return $this->db_connect_id; } else { return false; } } function close () { if ($this->db_connect_id) { if ($this->in_transaction) { mysql_query("COMMIT", $this->db_connect_id); } return mysql_close($this->db_connect_id); } else { return false; } } function query ($query = "", $transaction = false) { unset($this->query_result); if ($query != "") { $this->num_queries++; if ($transaction == BEGIN_TRANSACTION && !$this->in_transaction) { if (!mysql_query("BEGIN", $this->cb_connect_id)) { return false; } $this->in_transaction = true; } $this->query_result = mysql_query($query, $this->db_connect_id); } else { if ($transaction == END_TRANSACTION && $this->in_transaction) { $this->in_transaction = false; if (!mysql_query("COMMIT", $this->db_connect_id)) { mysql_query("ROLLBACK", $this->db_connect_id); return false; } } } if ($this->query_result) { unset($this->row[$this->query_result]); unset($this->rowset[$this->query_result]); if ($transaction == END_TRANSACTION && $this->in_transaction) { $this->in_transaction = false; if (!mysql_query("COMMIT", $this->db_connect_id)) { mysql_query("ROLLBACK", $this->db_connect_id); return false; } } return $this->query_result; } else { if ($this->in_transaction) { mysql_query("ROLLBACK", $this->db_connect_id); $this->in_transaction = false; } return false; } } function numrows ($query_id = 0) { if (!$query_id) { $query_id = $this->query_result; } return ($query_id) ? mysql_num_rows($query_id) : false; } function affectedrows () { return ($this->db_connect_id) ? mysql_affected_rows($this->db_connect_id) : false; } function numfields ($query_id = 0) { if (!$query_id) { $query_id = $this->query_result; } return ($query_id) ? mysql_num_fields($query_id) : false; } function fieldname ($query_id = 0, $offset) { if (!$query_id) { $query_id = $this->query_result; } return ($query_id) ? mysql_field_name($query_id, $offset) : false; } function fieldtype ($query_id = 0, $offset) { if (!$query_id) { $query_id = $this->query_result; } return ($query_id) ? mysql_field_type($query_id, $offset) : false; } function fetchrow ($query_id = 0) { if (!$query_id) { $query_id = $this->query_result; } if ($query_id) { $this->row[$query_id] = mysql_fetch_array($query_id, MYSQL_ASSOC); return $this->row[$query_id]; } else { return false; } } function fetchrowset ($query_id = 0) { if (!$query_id) { $query_id = $this->query_result; } if ($query_id) { unset($this->rowset[$query_id]); unset($this->row[$query_id]); while($this->rowset[$query_id] = mysql_fetch_array($query_id, MYSQL_ASSOC)) { $result[] = $this->rowset[$query_id]; } return $result; } else { return false; } } function fetchfield ($query_id = 0, $rownum = -1, $field) { if (!$query_id) { $query_id = $this->query_result; } if ($query_id) { if ($rownum > -1) { $result = mysql_result($query_id, $rownum, $field); } else { if (empty($this->row[$query_id]) && empty($this->rowset[$query_id])) { if ($this->fetchrow()) { $result = $this->row[$query_id][$field]; } else { if ($this->rowset[$query_id]) { $result = $this->rowset[$query_id][$field]; } else if ($this->row[$query_id]) { $result = $this->row[$query_id][$field]; } } } } return $result; } else { return false; } } function rowseek ($query_id = 0, $rownum) { if (!$query_id) { $query_id = $this->query_result; } return ($query_id) ? mysql_data_seek($query_id, $rownum) : false; } function nextid () { return ($this->db_connect_id) ? mysql_insert_id($this->db_connect_id) : false; } function freeresult ($query_id = 0) { if (!$query_id) { $query_id = $this->query_result; } if ($query_id) { unset($this->row[$query_id]); unset($this->rowset[$query_id]); mysql_free_result($query_id); return true; } else { return false; } } function error () { $result['message'] = mysql_error($this->db_connect_id); $result['code'] = mysql_errno($this->db_connect_id); return $result; }}
-
i will help you make a script. please elaborate the whole client area. what data willl be included and the like. i need to know so that i can make make you a script. the script will NOT include ANY html. i will make use of a template system. you are the one who will make the design of the client area.
-
i came up with this. it is similar with bjrn's but will sort all folder and files alphabetically. also will be conatined in a multi-dimensional array together with their name and statistics. $directory = "path/to/dir";while (($item = $directory->read()) !== false) { if ($item != "." && $item != "..") { $path = "{$directory->path}/{$item}"; if (is_dir($path)) { $tmp['name'] = $item; $tmp['stats'] = lstat($path); $dirs[$item] = $tmp; unset($tmp); } elseif (is_file($path)) { $tmp['name'] = $item; $tmp['stats'] = lstat($path); $tmp['extension'] = substr($item, strrpos($item, ".")); $files[] = $tmp; unset($tmp); } }}ksort($dirs, SORT_STRING);sort($dirs);ksort($files, SORT_STRING);sort($files);
-
Simple Shoutbox? I only know the echo part of php...
mobious replied to Joshthegreat's topic in Programming
i see that it is intended for phpbb. anyways, good work! you even bother to consider flood control. really creative! nice work! i believe they already have a variety of shoutbox scripts to choose from. -
*looks at the mirror* i'm just 16 with no money either!
-
are you referring to JavaScript or Java Server Pages? I think those to are different and js is the one the can be embeded on php files not JSP. JSP requires technology such as Tomcat from ASF.