
noidtluom
Members-
Posts
51 -
Joined
-
Last visited
Never
About noidtluom
- Birthday 10/02/1992
Contact Methods
- MSN
-
Website URL
http://www.e2-productions.com/
Profile Information
-
Gender
Male
-
Location
Malaysia
noidtluom's Achievements

Member (2/5)
0
Reputation
-
Remove the single quotes around the variables.
-
I don't like PHP Ticks. Not many people use them IMHO. What you might need is a frame which keeps on refreshing every so many seconds in order to increment a value in your MySQL database. Of course, before it increments it, it needs to check how long it has been since it last got incremented, so people can't just force refresh to increment manually,
-
What you have described there and what you wanted to make originally both follow the same principles in terms of programming. The functions are all the same. I suggest you just learn PHP and MySQL. However, unless you've had any other programming experience in other languages, it might take some time until you can start learning OO for PHP. Wes1890 explained that if you want a pet made with flash, eg: can be animated and real-time interactive, then you should learn flash, and javascript/ajax. (You'll probably learn javascript anyway whilst programming HTML - they seem to come hand in hand when developing apps for me...if your aim is to have some cool client-side stuff)
-
[SOLVED] Form variables to Session variables
noidtluom replied to xProteuSx's topic in PHP Coding Help
Make sure on your first page, the one with all the input fields, has this form value: <form method="post"> Pretty self explanatory why you need it there -
This is to .flv right? Well, I would setup a cron job. Probably not the best answer, but it might be something you'd be looking into.
-
Uh. My approach would be to put the information (eg: names such as 1, 2, 3 etc) in an array then use shuffle(). Then use a foreach to check each new array key/value and reset the names.
-
Register globals is basically getting something from the URL and then using it in a script. It's a pretty simple problem. EG: if I visit mypage.php?variable=foo Then I do: echo $variable; It will say "foo". So what I think you are talking about is this section for example: //This checks to see if there is a page number. If not, it will set it to page 1 if (!(isset($pagenum))) { $pagenum = 1; } So, (I might be wrong I've never used a server with globals turned off) I think that with your global settings turned off, just saying $pagenum won't help. You'll have to use $_GET. (Same for $tag) Summary: just use $_GET.
-
Just as a final note: you can't name variables with anything other than numbers, letters and underscores. So $my$v$a$r would not work. Also: don't use $$variables unless you can't avoid it. Not only is it inefficient (makes loads of variables with no categorization at all - that's why they invented arrays ) but it also makes coding harder to understand. Use the 'topic solved' button - it's there for a reason!
-
Edit: http://uploader.polorix.net//files/224/POSE2/newlite2.png (Or should I remove the glow altogether?) As another note: the place that currently says "The Showcase" will not stay there. It is simply a placeholder for an image which will change every month.
-
Just an image for now, I haven't sliced it yet. http://uploader.polorix.net//files/224/POSE2/newlite.png
-
But I'm not going to pay... Oh well, can a moderator come and put this in the right place?
-
Firstly, I would like to apologize if this is in the wrong forum section. I'm not too sure where it should go. Basically, I'm in the process of making a PHP Framework, and I think the "version 1" is ready for release. Don't worry, it's a very simple framework. This is my first time making a framework, so I'm looking for: 1) Somebody familiar with MVC design to comment/improve my framework design. 2) Somebody willing to download and test it out on their server. 3) Somebody who hopefully uses GTalk or MSN Messenger whom I can discuss with. I think a one-to-one discussion would be much better than a "click here to download", and then viewing comments. It'll be easier to understand. If anybody is interesting, send me an email : dionmoult[at]gmail(dot)com or a private message, or just reply with your contact info.
-
Well, first off, look at the code below. It's very easy to understand: <?php class bar { public function anothertest($foo, $bar, $baz) { echo $this->asdf; $num = func_num_args(); echo $num; } } $self = array('a', 'b', 'c', 'd'); print_r($self); $bar = new bar(); $bar->anothertest(); ?> Now, I want to find out how many arguments "anothertest" has before calling it. So if it has three arguments, I will do $bar->anothertest($self['0'], $self['1'], $self['2']); func_num_args can only be called inside the function, so I don't think that will work. How can it be done?
-
[SOLVED] Calling variables in an extended class.
noidtluom replied to noidtluom's topic in PHP Coding Help
Ah yes! Thank you! I'm understanding it a lot better now -
[SOLVED] Calling variables in an extended class.
noidtluom replied to noidtluom's topic in PHP Coding Help
Ok. Thanks. Glad I sorted out those principles. Alright, so how would I get this to work? <?php class foo { protected $asdf; public function test($var) { $this->asdf = $var; } } class bar extends foo { public function anothertest() { echo $this->asdf; } } $foo = new foo(); $foo->test('lol'); $bar = new bar(); $bar->anothertest(); ?> (It's a simplified version of the code I'm working on)