Search found 21 matches

by windwaker
Thu Mar 10, 2005 11:51 pm
Forum: PHP - Code
Topic: Using variables that act like directories.
Replies: 1
Views: 645

Using variables that act like directories.

This is seen in blogs alot, where the URL looks like:

site.com/blog/year/month/day
i.e.: site.com/blog/2005/3/10
Yet, there aren't real directories like this, are there? Is there a way to do this that's done through PHP?
by windwaker
Mon Feb 28, 2005 10:11 pm
Forum: PHP - Code
Topic: Highlighting for our PHP in BB code here! [Available now]
Replies: 33
Views: 3559

Looks very familiar to the one in the PHP manual.
by windwaker
Sun Feb 27, 2005 4:33 pm
Forum: PHP - Code
Topic: Having PHP code run when no one's looking at your site
Replies: 3
Views: 732

Having PHP code run when no one's looking at your site

Is it possible to have a php script run every day, or like set it to run at a certain time, or even have it always running?
by windwaker
Fri Feb 25, 2005 10:58 pm
Forum: PHPDN Suggestions
Topic: blue you
Replies: 18
Views: 14760

This is awesome! I'd never use u or ur but I hate it when people do. :D
by windwaker
Fri Feb 25, 2005 10:53 pm
Forum: PHP - Code
Topic: Selecting specific things from a variable.
Replies: 2
Views: 487

Selecting specific things from a variable.

So, let's say I have a variable, $var, and:

Code: Select all

$var = 'useless text and їtestyeah]';
I want to select the value between [ and ] and put it in another variable. Is there any way to do this?
by windwaker
Thu Feb 24, 2005 7:21 pm
Forum: PHP - Code
Topic: Issue connecting to a database.
Replies: 3
Views: 486

Issue connecting to a database.

I keep getting the error "Access denied to x, Using password: NO"... Does anyone know what's wrong with this? o_O A password was input.

Edit: misspelled a variable. I had checked for this, too. :(
by windwaker
Tue Feb 22, 2005 11:27 pm
Forum: PHPDN Suggestions
Topic: PHP syntax highlighting?
Replies: 5
Views: 5483

Oh, so that's why I see weird "[php247320asdf:43]" everywhere.
by windwaker
Tue Feb 22, 2005 1:25 pm
Forum: PHPDN Suggestions
Topic: PHP syntax highlighting?
Replies: 5
Views: 5483

PHP syntax highlighting?

It's built into the language. Perhaps there could be a tag [phpcode] that highlights php.

This is the PHP DN, after all. ;D
by windwaker
Tue Feb 22, 2005 1:18 pm
Forum: UI Design/Usability
Topic: Please critique my portfolio (Updated - Please look again!)
Replies: 13
Views: 14208

I already have a scrollbar at the right. :(

The design is quite good, but yeah, implimenting a block layout (as seen in just about every site that doesn't have an iframe/div scrollbar) would be great.
by windwaker
Sat Feb 19, 2005 11:39 pm
Forum: PHP - Code
Topic: Variable question...
Replies: 2
Views: 636

Language operators, eh?

Thanks man.
by windwaker
Sat Feb 19, 2005 11:17 pm
Forum: PHP - Code
Topic: Variable question...
Replies: 2
Views: 636

Variable question...

What's the difference between $var and &$var? What does an ampersand do in that situation?

Also, what's the difference between @mysql_fetch_array() and mysql_fetch_array(), and other places where @ is used?
by windwaker
Tue Feb 15, 2005 11:03 pm
Forum: PHP - Code
Topic: As much as you've probably heard this question...
Replies: 11
Views: 2015

Yes, from the C I've done, I know what it does, I was just wondering if that was the only purpose. Which it appears that is the only purpose.
by windwaker
Tue Feb 15, 2005 10:20 am
Forum: PHP - Code
Topic: As much as you've probably heard this question...
Replies: 11
Views: 2015

Why can't you simply use one of the functions? include 'class.php'; $user = new users(); if ($user->checklogin()) { //do stuff } can still be used outside of the class Hope that is what you meant Yeah, LPS got it. In your example, you'd have to extract code for checklogin() to get...
by windwaker
Mon Feb 14, 2005 9:02 pm
Forum: PHP - Code
Topic: As much as you've probably heard this question...
Replies: 11
Views: 2015

Well, since classes sometimes share functions like that, you can't just extract one function, you have to either use the class, or extract all the necessary functions, which takes time.
by windwaker
Mon Feb 14, 2005 6:20 pm
Forum: PHP - Code
Topic: As much as you've probably heard this question...
Replies: 11
Views: 2015

Classes are useful when creating and passing objects to serve multiple purposes an example would be class users { function checklogin() { return isset($_SESSIONї'logged']); } function editprofile() { if ($this->checklogin()) { //do stuff &#...