ober
-
Posts
5,327 -
Joined
-
Last visited
Posts posted by ober
-
-
You should really let the database handle all of this:
$sql = "SELECT news_data, news_date, etc FROM news WHERE news_date >= DATE_ADD(NOW() - 6 MONTHS)
Handling this through PHP is just inefficient. This should work (I didn't test it) but there are other options as well.
-
Directly meaning someone requested that file versus you including it or something via another file?
It's called hot linking. If you don't want a file to be accessed directly, move it outside of the public area of your webserver:
You probably have files here: /home/TLG/public_html/your_files_here_or_in_some_folder
Move them to: /home/TLG/some_folder/public_html
They cannot link directly to them in that case.
-
<table border="4"> <?php $a = array("this is row 1","this is row 2","this is row 3","this is row 4", "this is row 5","this is row 6","this is row 7","this is row 8"); ?> <?php for($i=0; $i<4; $i++){ ?> <tr> <td> <?php echo $a[$i]; ?> </td> <td> <?php $j = $i + 4; echo $a[$j]; ?> </td> </tr> <?php }?> </table>
-
$x can be used globally within the page, but not across pages. The information needs to be passed via URL or via SESSION variable.
I guess the question is if you are allowing them to go back or only go forward? If they can go back and it seems like they can based on your code, I would do this:
for($i=1;$i<$_GET['page'];$i++) echo "<a href=\"code$i.php\">$i..</a>";
-
Fanboys are annoying regardless of what they're fans of, but people that always bitch about fanboys are more annoying.
ICE BURN, and worth it too.
-
It's something on your computer. It is not the server.
-
I tried all the good free ones lately and here is my take:
AVG - bloated, scans at the worst times, fails to update A LOT, does catch a lot of stuff
Avira - decent, but doesn't catch drive-by stuff on websites. Also will annoy the crap out of you for a few weeks with daily "ads" for the premium version. They eventually stop though.
Avast - no real complaints thus far. Seems to scan at reasonable times and has a lot of options.
I personally think ESET NOD32 is the best, but again, not free.
-
There are plenty of resources in the sticky threads in this board.
Thanks.
-
No... he wanted 25 mil to play the part and the budget isn't that high.
-
Done. Good luck! And I would have gladly answered more questions. Seemed a little brief for the topic.
-
Obviously not.
What a monumental waste of time and effort and database space to house this thread.
-
Ha... vbforums, huh? I came from that place as well. Very little PHP activity, but then again it was centered around MS languages.
Welcome
-
To be honest, the main reason the competitions failed to move forward was more of a lack of judges and prizes. I doubt a weekly competition would work, let alone daily.
I could maybe see monthly, but even that is a long shot. And people are only going to compete at a certain level without prizes.
-
... but you could write that in about 30 minutes to an hour?
-
Different versions of flash interpret HTML differently? Seems pretty logical to me...
-
You could always pass it off to me although I won't work at your wages
-
I work for a software company and we have design meetings where flowcharting is used quite frequently. It is usually done on a whiteboard so it's rarely stored with the source, but requirements around here are usually kept with a diagram of some sort.
-
Guys... stop screwing with the members.
-
I think a few got mangled but probably could be recovered if necessary. Again, they all needed help/updating.
-
That's not true. We still have backups. They were outdated and we felt it was better to replace and rewrite than to restore them. There are currently several in the development stages. Just be patient.
-
Thanks for the comments about my daughter... hell, you guys haven't even seen her face!
And yes, Halloween is on the 31st. And yes, most apple orchards around here grow many other things but still call themselves apple orchards.
-
She's 22 months. And we were at an apple orchard getting pumpkins for halloween.
And I actually just reinstalled Windows over the weekend and Picasa was one of the last things I installed. I hadn't move the shortcut to the quick launch yet. Usually it's completely clean except for the recycle bin.
I actually use PS or Elements for most of my image editing. I just wanted to try out the new version of Picasa.
-
Typically camelCase... got in the habit because of coding practices at work.
-
I like it clean.
Oh, and that's my daughter from about 2 weeks ago.
[attachment deleted by admin]
how file accessed
in PHP Coding Help
Posted
Javascript is client side so it cannot access a file outside of the public area.