Search Results

Showing results 1 to 40 of 58
Search took 0.01 seconds.
Search: Posts Made By: Barefootsanders ; Forum: PHP and child forums
Forum: PHP Sep 16th, 2009
Replies: 5
Views: 326
Posted By Barefootsanders
Thanks so much. Thats exactly what I was looking for. I am sorta unfamiliar with PHPs type casting syntax. I'm trying to stress test a script i'm preparing and just thought this would be a cool...
Forum: PHP Sep 2nd, 2009
Replies: 5
Views: 326
Posted By Barefootsanders
Well sorta.. It would basically generate all teh combinations of a set containing 'a' through 'z'. i.e. {a,b,c,...,z}. So it owuldnt just generate aa, bb, cc.. it would go through all the possible...
Forum: PHP Sep 1st, 2009
Replies: 5
Views: 326
Posted By Barefootsanders
Hi all. I'm attempting to output all of the possible combination from "a" to "zzzz" and I'm wondering if theres an easy way of doing that. As an example output would be ...

a
b
c
....
z
aa...
Forum: PHP Jul 10th, 2009
Replies: 10
Views: 990
Posted By Barefootsanders
Wow thanks so much for that. I thought you meant an actual abstract class, i.e:
abstract class foo {...}

One question though.. is there any significance behind the values of the constants or did...
Forum: PHP Jul 9th, 2009
Replies: 10
Views: 990
Posted By Barefootsanders
Abstraction is one thing I'm not too advanced with.. Could you provide an example of what you mean by an abstraction layer using the GET/POST/etc... variables? Any help would be appreciated.
...
Forum: PHP Jul 9th, 2009
Replies: 10
Views: 990
Posted By Barefootsanders
O wow, sorry. I read your previous post wrong.

Thanks!
Forum: PHP Jul 9th, 2009
Replies: 10
Views: 990
Posted By Barefootsanders
Thanks for the response. How can I use them then? I'm going to assume pass them in as parameters? The only problem with that is that my program relies on $_GET and $_POST for program flow. What...
Forum: PHP Jul 9th, 2009
Replies: 10
Views: 990
Posted By Barefootsanders
Hi all. I have a current PHP script which checks a number of GET, POST, and REQUEST variables. These are currently in a top-down PHP file and these variables control the flow of the application. I...
Forum: PHP Jul 3rd, 2009
Replies: 2
Views: 210
Posted By Barefootsanders
Hi all.. .I'm trying to use preg_split but I'm having trouble getting the regular expression I want.

What I have now is a long character string, upwards of 200 characters depending on user...
Forum: PHP Jun 3rd, 2009
Replies: 1
Views: 269
Posted By Barefootsanders
Hi all,

I plan on desining a PHP driven site. I was wondering what people used in terms of a framework (or none at all). I've looked into ones such as Cake PHP but I'm just not sure whats out...
Forum: PHP Dec 18th, 2007
Replies: 4
Views: 1,698
Posted By Barefootsanders
Yea, if you started using IIS and then subsequently started WAMP, your wamp web server probably didnt start, only the mysql server started most likely. If you would like to run both, you can easly...
Forum: PHP Sep 6th, 2007
Replies: 3
Views: 1,010
Posted By Barefootsanders
What do you mean "an enrollment" system? What would this entail/accomplish? Also, what functionality would you be looking for?

Thanks.
Forum: PHP Sep 6th, 2007
Replies: 5
Views: 1,033
Posted By Barefootsanders
At a very high level, it allows you to write one function and use it over and over and over again making your program easier to code, more compact and more efficent.

Again, at a very high level,...
Forum: PHP Sep 6th, 2007
Replies: 5
Views: 1,085
Posted By Barefootsanders
PHP isnt usually installed on an IIS server. IIS servers usually run ASP/.NET. Like matale said, make sure php is acutally installed on your server before you try anything.
Forum: PHP Aug 16th, 2007
Replies: 8
Views: 808
Posted By Barefootsanders
Well php isnt really made for presentation. The standard is to make any style/presentation effects through css. I don't even think you can change the background w/ php, I could be wrong though.
Forum: PHP Aug 15th, 2007
Replies: 8
Views: 808
Posted By Barefootsanders
Hey,

You need to include the connection as a paramater within the mysql_query method. For example,


$connection = mysql_connect(DB_SERVER, DB_USER, DB_PASS) or die(mysql_error());...
Forum: PHP Aug 13th, 2007
Replies: 1
Views: 590
Posted By Barefootsanders
Hey everyone,

I'm trying to populate an array with file information from certain directories. Currently I have an array with all the file names in it. I was wondering if anyone knew a way to get...
Forum: PHP Aug 12th, 2007
Replies: 2
Views: 600
Posted By Barefootsanders
Yea, ive used them before. I wanted to do this myself to learn how to use both apache and php5 better.
Forum: PHP Aug 12th, 2007
Replies: 2
Views: 600
Posted By Barefootsanders
Hey everyone,

I'm attempting to set up my own web server with apache2 and php5. I set up apache fine and it works. My problem is that when i install php5 my apache wont start. I just get an...
Forum: PHP Jun 13th, 2007
Replies: 6
Views: 4,235
Posted By Barefootsanders
UPDATE: What i am doing is takign the html string, performing the php function, addslashes($html); and then inserting that into the database. This works however when I tried to print to the screen...
Forum: PHP Jun 13th, 2007
Replies: 6
Views: 4,235
Posted By Barefootsanders
Thanks for the response. I know it looks dumb but for some reason php echo commands do not work on the server (its not my server, im doing this fo a friend). So I resorted to js commands to print...
Forum: PHP Jun 12th, 2007
Replies: 6
Views: 4,235
Posted By Barefootsanders
Correction, straight HTML works however scripts will not work.
Forum: PHP Jun 12th, 2007
Replies: 6
Views: 4,235
Posted By Barefootsanders
I need to return some HTML code stored as a text data type in my database. Is there a way to return this HTML effiencly through PHP that will execute this code when HTML parses the page? Currently...
Forum: PHP May 29th, 2007
Replies: 13
Views: 3,550
Posted By Barefootsanders
This may or may not have been said already but it seems that you did no install the PHP engine properly. To tell you the truth, the easyist thing to do would be to uninstall everything you have done...
Forum: PHP May 28th, 2007
Replies: 6
Views: 1,522
Posted By Barefootsanders
Usually forms come in two parts, the actual HTML and a server side processing script in PHP. The HTML is how everything is displayed and where the information is input through textboxes, checkboxes,...
Forum: PHP May 28th, 2007
Replies: 13
Views: 3,550
Posted By Barefootsanders
Make sure your PHP engine is installed properly and functional. Create a new file and name it phpinfo.php and insert the following code into it.

<?php

phpinfo();

?>


This will give...
Forum: PHP Apr 19th, 2007
Replies: 11
Views: 3,470
Posted By Barefootsanders
Exactly. Id like to create the same type of system as online poker where a user can "sit in" but in this case you would be fighting and it would be limited to two users.
Forum: PHP Apr 19th, 2007
Replies: 11
Views: 3,470
Posted By Barefootsanders
Thanks!!! How about creating an "table" type system? I dont really know where to start w/ this topic.
Forum: PHP Apr 18th, 2007
Replies: 11
Views: 3,470
Posted By Barefootsanders
I have thought about how to code it with just PHP, which I agree would be easier, but I don't know how to implement the turn based element into the PHP code. Would I just have to have an auto...
Forum: PHP Apr 18th, 2007
Replies: 11
Views: 3,470
Posted By Barefootsanders
Thanks for the help. I understand the basics, like creating a simple form you posted above, but I have scoured the net for advanced topics and found nothing. For example what I would like to do,...
Forum: PHP Apr 17th, 2007
Replies: 11
Views: 3,470
Posted By Barefootsanders
Are there any resources out there that would point me in the right direction? Thanks.
Forum: PHP Apr 17th, 2007
Replies: 11
Views: 3,470
Posted By Barefootsanders
Hey guys. Ive been working on an online game and Im attempting to code the attack arena. Bascialy what i want is people to be able to "sit down" at some sort of "table" (kinda like online poker)...
Forum: PHP Apr 8th, 2007
Replies: 1
Views: 1,222
Posted By Barefootsanders
Hey guys. I have a program that when i button is clicked it should increase an attribute by one and decrease a stat point by one. For some reason it dosent decrease the stat point by one, it sets...
Forum: PHP Apr 8th, 2007
Replies: 2
Views: 1,405
Posted By Barefootsanders
Hey everyone. I'm trying to write code to update a stat field within my database and I'm having some trouble passing the variables from the form page to the process page. Below is my code. I know...
Forum: PHP Apr 5th, 2007
Replies: 2
Views: 1,404
Posted By Barefootsanders
Ahh i figured it out. I had to do this:

$q = "SELECT family_id FROM ".TBL_FAMILIES." WHERE family_name = '$family_name'";
$id = mysql_query($q, $this->connection);
$id =...
Forum: PHP Apr 5th, 2007
Replies: 2
Views: 1,404
Posted By Barefootsanders
Hey everyone. Im trying to make an online RPG where you can join "Families" or clans. I the code below is what I have thus far. It works but for some reason it wont update the creating users...
Forum: PHP Apr 2nd, 2007
Replies: 12
Views: 3,146
Posted By Barefootsanders
Also, now my problem is that another user would not be able to view someone elses page because it always sets the user to yourself. So i'm kinda back to square one. Anyone see a way out of this?...
Forum: PHP Apr 2nd, 2007
Replies: 12
Views: 3,146
Posted By Barefootsanders
UPDATE: SO i figured it out. I moved the statement you told me to put in before the include statement to the top of the userinfo.php :
$req_user = $_GET['username'] = $session->username;

And...
Forum: PHP Apr 2nd, 2007
Replies: 12
Views: 3,146
Posted By Barefootsanders
Ok, still stuck. I changed my include to what you said and I still get the error, " Username not registered.":(
Forum: PHP Apr 2nd, 2007
Replies: 12
Views: 3,146
Posted By Barefootsanders
One last thing, this is the line in my userinfo.php thats causing me problems:


//Requested Username error checking
$req_user = trim($_GET['user']);
if(!$req_user || strlen($req_user) == 0 ||...
Showing results 1 to 40 of 58

 


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

©2003 - 2009 DaniWeb® LLC