Search Results

Showing results 1 to 22 of 22
Search took 0.01 seconds.
Search: Posts Made By: R0bb0b ; Forum: PHP and child forums
Forum: PHP Oct 14th, 2008
Replies: 4
Views: 584
Posted By R0bb0b
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,154
Posted By R0bb0b
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,154
Posted By R0bb0b
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: PHP Aug 29th, 2008
Replies: 28
Views: 1,947
Posted By R0bb0b
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
Posted By R0bb0b
How I would do it

<?
$stringlen = 15;
$randvarray = str_split("abcdefghijklmnopqrstuvwxyz0123456789");
$stringid = "";

for($i = 0; $i < $stringlen; $i++)
{
$value = rand(0,...
Forum: PHP Aug 18th, 2008
Replies: 19
Views: 1,950
Posted By R0bb0b
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
Posted By R0bb0b
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: PHP Jul 24th, 2008
Replies: 111
Views: 6,246
Posted By R0bb0b
:sweat: :sweat: :sweat: :sweat: :sweat: :sweat:
cool
Forum: PHP Jul 21st, 2008
Replies: 111
Views: 6,246
Posted By R0bb0b
I never include them. You could also try an if(isset($_POST['varname'])) statement
Forum: PHP Jul 15th, 2008
Replies: 16
Views: 1,322
Posted By R0bb0b
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
Posted By R0bb0b
Still rollin an hour later. Wheeeeeeeeew
Forum: PHP Jul 10th, 2008
Replies: 12
Views: 726
Posted By R0bb0b
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: PHP Jun 23rd, 2008
Replies: 5
Views: 2,211
Posted By R0bb0b
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,901
Posted By R0bb0b
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,380
Posted By R0bb0b
you could try:

str_replace(" ", "\t" $string);
Forum: PHP Jun 20th, 2008
Replies: 8
Solved: Divide time
Views: 947
Posted By R0bb0b
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,851
Posted By R0bb0b
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,679
Posted By R0bb0b
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,679
Posted By R0bb0b
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
Posted By R0bb0b
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: 565
Posted By R0bb0b
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,670
Posted By R0bb0b
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...
Showing results 1 to 22 of 22

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC