Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 40 of 40
Search took 0.01 seconds.
Search: Posts Made By: Styx
Forum: PHP Jun 30th, 2007, 8:37 PM
Replies: 9
Views: 249
Posted By Styx
If it's not highly sensitive information and more...

If it's not highly sensitive information and more along the lines of something personal like a blog, forum, or even just a special little area, md5 (or alternatively sha1) are fine to use. Most...
Forum: PHP Jun 25th, 2007, 8:32 AM
Replies: 3
Views: 118
Posted By Styx
gmdate should return a GMT version, but check the...

gmdate should return a GMT version, but check the documentation (http://php.net/gmdate) for the function, or see the other functions listed on the side for something that might help.
Forum: PHP Jun 25th, 2007, 6:43 AM
Replies: 3
Views: 118
Posted By Styx
With this, you get time(), format it in the...

With this, you get time(), format it in the second line, then reconvert it to time with strtotime, which wont be stored correctly in the database. In fact, your conversion in the second line is...
Forum: PHP Jun 23rd, 2007, 9:03 AM
Replies: 4
Views: 164
Posted By Styx
It probably deals with your include statement....

It probably deals with your include statement. Try your include based on a relative path instead of a url.
Forum: PHP Jun 2nd, 2007, 1:09 AM
Replies: 31
Views: 550
Posted By Styx
There are always bandwidth and server space...

There are always bandwidth and server space restrictions, even if they say there aren't any :rolleyes:

I can see it as a personal challenge, but not as something that's very practical in the real...
Forum: PHP Jun 1st, 2007, 9:03 PM
Replies: 8
Views: 370
Posted By Styx
Kingdom of Loathing...

Kingdom of Loathing (http://www.kingdomofloathing.com) is a PHP-based game. It works on click-based actions.

Kings of Chaos (http://www.kingsofchaos.com) is another one.

Just go to google and look...
Forum: PHP Jun 1st, 2007, 8:41 PM
Replies: 31
Views: 550
Posted By Styx
In almost every implementation of PHP, there's...

In almost every implementation of PHP, there's going to be some form of SQL database available, unless it's a really basic free web host.

And if it is, there are much better solutions for free web...
Forum: PHP May 31st, 2007, 4:26 AM
Replies: 31
Views: 550
Posted By Styx
I know, why is that one of the parameters you are...

I know, why is that one of the parameters you are working with? Are there many bulletin boards that use flat files instead of databases? Is there a purpose why you're not using a database where one...
Forum: PHP May 31st, 2007, 12:07 AM
Replies: 31
Views: 550
Posted By Styx
And why are you doing that?

And why are you doing that?
Forum: PHP May 30th, 2007, 6:22 PM
Replies: 3
Views: 131
Posted By Styx
Well, a site name can't have just any printable...

Well, a site name can't have just any printable character. There are specifications.

It would be easier to put a separator of some kind so you can just explode it or split it or something. But if...
Forum: PHP May 29th, 2007, 8:21 PM
Replies: 31
Views: 550
Posted By Styx
To relate temporary files with unique names, you...

To relate temporary files with unique names, you could create a temporary file with md5 with a common prefix (e.g., tmp_) in the current directory then, to rename, get a list of all files in the...
Forum: PHP May 11th, 2007, 9:44 PM
Replies: 9
Views: 280
Posted By Styx
Oh, was he talking about overriding methods? x_x

Oh, was he talking about overriding methods? x_x
Forum: PHP May 10th, 2007, 5:50 PM
Replies: 9
Views: 280
Posted By Styx
Are you talking about interfaces? Read about php...

Are you talking about interfaces?

Read about php object interfaces here (http://us.php.net/manual/en/language.oop5.interfaces.php)
Forum: PHP Apr 26th, 2007, 3:10 AM
Replies: 18
Views: 354
Posted By Styx
Yes, and doing your example doesn't help that =/...

Yes, and doing your example doesn't help that =/ On the next page, even so it displays the Add to table link, you can still click refresh and resubmit the same info.
Forum: PHP Apr 25th, 2007, 10:33 PM
Replies: 18
Views: 354
Posted By Styx
I'm confused. How does that help? You submit the...

I'm confused. How does that help? You submit the form action to ?foo=1 for initial processing, but you can still refresh and do it all over again.

Though, now that I think of it, you can use a...
Forum: PHP Apr 25th, 2007, 3:00 PM
Replies: 18
Views: 354
Posted By Styx
could you give an example perhaps? Here's what...

could you give an example perhaps?

Here's what I'm thinking based on this:
<?php
if (isset($_POST['test']) && $_POST['test'] == 'false')
{
// process form
// to know the difference between...
Forum: PHP Apr 25th, 2007, 12:06 PM
Replies: 18
Views: 354
Posted By Styx
Not only that, but they could hit the back button...

Not only that, but they could hit the back button and resubmit the form data on the transfer page.
Forum: PHP Apr 25th, 2007, 1:57 AM
Replies: 18
Views: 354
Posted By Styx
That won't work. The hidden variable will be...

That won't work. The hidden variable will be available for the next page, not the page they submitted. Or if you're talking about it being there from the start, that wont work either, as the hidden...
Forum: PHP Apr 23rd, 2007, 10:08 AM
Replies: 5
Views: 196
Posted By Styx
$query = mysql_query("SELECT * FROM table"); for...

$query = mysql_query("SELECT * FROM table");
for ($i = 0; $i < ($var = mysql_fetch_array($query)); $i++)
{
print_r($var);
}
Forum: PHP Apr 17th, 2007, 11:36 PM
Replies: 5
Views: 196
Posted By Styx
<?php $var = $_POST['var']; echo '<select...

<?php
$var = $_POST['var'];

echo '<select name="var">';
for ($i = 0; $i < 10; $i++)
{
$selected = ($var == $i) ? 'selected="selected"' : '';
echo "<option value=\"$i\"...
Forum: Coder's Corner Lounge Apr 6th, 2007, 10:29 PM
Replies: 19
Views: 478
Posted By Styx
I really enjoy php and how easy and flexible it...

I really enjoy php and how easy and flexible it feels. But I'm learning Java in some classes and enjoying it so far.
Forum: PHP Mar 29th, 2007, 11:47 PM
Replies: 6
Views: 144
Posted By Styx
hehe, I was wondering about that x_x sorry, I put...

hehe, I was wondering about that x_x sorry, I put it up kind of quick

but I'm glad it's working now! ;)
Forum: PHP Mar 29th, 2007, 8:05 PM
Replies: 6
Views: 144
Posted By Styx
hm, you can try something like this: SELECT...

hm, you can try something like this:
SELECT g.GameName FROM members m, games g
WHERE m.Username = '$Username'
AND m.Password = '$Password'
AND m.Game1 = g.GameID
AND m.Game2 = g.GameID
AND...
Forum: Other Web Development Languages Mar 23rd, 2007, 6:20 PM
Replies: 13
Views: 710
Posted By Styx
I've always liked them on every post, regardless...

I've always liked them on every post, regardless of content. It lets me be lazy and not have to scroll everywhere to find someone's signature. In forum-based RPGs, too, it can relieve some work. But...
Forum: PHP Mar 21st, 2007, 1:02 AM
Replies: 22
Views: 411
Posted By Styx
on windows, the 3 and 4 overlap o_o

on windows, the 3 and 4 overlap o_o
Forum: Other Web Development Languages Mar 20th, 2007, 8:30 PM
Replies: 21
Views: 615
Posted By Styx
yeah, tested here...

yeah, tested here (http://twilightus.net/other/scripts/scripts/file_num_highlight.php) something with your css x_x
Forum: Other Web Development Languages Mar 20th, 2007, 7:33 PM
Replies: 21
Views: 615
Posted By Styx
That is interesting =D so finally, it can be...

That is interesting =D

so finally, it can be shortened to:
<?php
$file = 'test.php';
echo '<code class="num">', implode(range(1, count(file($file))), '<br />'),...
Forum: PHP Mar 20th, 2007, 6:49 PM
Replies: 22
Views: 411
Posted By Styx
What is the advantage of splitting out the source...

What is the advantage of splitting out the source like that instead of with count(file()) and highlight_file() next to each other, besides the extras? (line wrapping, specific line highlighting, etc)
Forum: PHP Mar 20th, 2007, 6:41 AM
Replies: 22
Views: 411
Posted By Styx
heh, all things considered, you could conceivably...

heh, all things considered, you could conceivably just reduce it to:

<style type="text/css">
.num {
float: left;
color: #777777;
text-align: right;
margin-right: 8px;
padding-right:...
Forum: PHP Mar 19th, 2007, 2:33 PM
Replies: 22
Views: 411
Posted By Styx
ooo, nice improvement ^_^ The first line doesn't...

ooo, nice improvement ^_^

The first line doesn't seem to highlight properly though. <?php tags are black if they're at line 1, and, when it scans your script, <html> turns into <htl>
Forum: PHP Mar 19th, 2007, 3:16 AM
Replies: 22
Views: 411
Posted By Styx
1 <pr> 2 <?php 3 $filename =...

1
<pr>
2 <?php
3 $filename = 'highlighting.php';
4 ob_start();
5 highlight_file($filename);
6 $source = ob_get_contents();
7 ob_end_clean();
8 $source = explode(chr(13), $source);
9 $temp =...
Forum: PHP Mar 18th, 2007, 9:44 PM
Replies: 12
Views: 241
Posted By Styx
I don't believe there is a way. The image needs...

I don't believe there is a way. The image needs its own header information.

Your uploads, do you store them in the database? If so, could you just get them from there?
Forum: PHP Mar 17th, 2007, 4:49 AM
Replies: 22
Views: 411
Posted By Styx
Nice script, very useful =D except when I run it...

Nice script, very useful =D

except when I run it as-is, the first line, <?php, is on the second line uncounted and line 1 is left blank

so I went ahead and made an attempt somewhat based on your...
Forum: PHP Mar 17th, 2007, 12:56 AM
Replies: 12
Views: 241
Posted By Styx
I perfectly understand what you are trying to...

I perfectly understand what you are trying to do.

What I mean is, the if/else block acts as two completely different pages. You cannot mix the two by putting browser output (HTML, etc) outside of...
Forum: PHP Mar 16th, 2007, 3:07 AM
Replies: 12
Views: 241
Posted By Styx
In reference to my example, why don't you put...

In reference to my example, why don't you put your page within the else {} block? In the script, they are acting as two, completely different pages, not like one page within another. That's why both...
Forum: PHP Mar 15th, 2007, 11:38 PM
Replies: 12
Views: 241
Posted By Styx
The $image variable within the condition was an...

The $image variable within the condition was an example used for testing. You would replace that with however you get your image content (temporary file while uploading or from database).

If the GET...
Forum: PHP Mar 15th, 2007, 8:47 PM
Replies: 12
Views: 241
Posted By Styx
Are you wanting to do this with two files then,...

Are you wanting to do this with two files then, or just one?

If you want to keep within the same file, you can do something like this:
<?php
$file = 'image.jpg';
$types = array('jpg', 'jpeg', 'gif',...
Forum: PHP Mar 14th, 2007, 11:56 PM
Replies: 7
Views: 151
Posted By Styx
For this purpose, you could also use: function...

For this purpose, you could also use:
function showObject($object, $params)
{
$string = '';
for ($i = 0; $i < count($params); $i++)
$string .= (($i > 0) ? ', ' : '') . "\$params[$i]";

...
Forum: Other Web Development Languages Mar 6th, 2007, 9:42 AM
Replies: 9
Views: 258
Posted By Styx
As Dameon mentions, using flash is like using...

As Dameon mentions, using flash is like using javascript: they're both client-side. What you're doing is creating a random client-side string, encrypting it, then checking the hash with the input...
Forum: PHP Mar 4th, 2007, 6:24 AM
Replies: 4
Views: 200
Posted By Styx
You'd either have to take out that (<b>) part...

You'd either have to take out that (<b>) part towards the end or put it somewhere around there as (^<b>)
Showing results 1 to 40 of 40

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:22 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC