-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|430|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-




Afr0

Proms

5th April 2011

The proms isn't at school, it's in the Royal Albert Hall!


Afr0

Proms

5th April 2011

Have you been to the proms? Are you thinking of going this year? I am thinking of going this year, so I was just wondering.


Afr0

Debugging PHP

31st March 2011

Nevermind. I fixed it. For some reason it didn't like me using local names, so I had to use a full URL.
[code]<?php
$Magazine = $_GET['Magazine'];
echo("<html>");
echo("<!-- Created on:03/17/2011 02:34:19 pm-->");
echo("<head>");
echo(" <meta http-e*snip*


Afr0

Debugging PHP

31st March 2011

Can anyone see any problems with this Javascript code, or the way I'm embedding it?
[code]$Magazine = $_GET['Magazine'];
echo("<html>");
echo("<!-- Created on:03/17/2011 02:34:19 pm-->");
echo("<head>");
echo(" <meta http-equiv=\\"Content-Type\\" conte*snip*


Afr0

Debugging PHP

30th March 2011

Nevermind.
I found out I could pass the name of the current magazinefolder to another script using a querystring.


Afr0

Debugging PHP

30th March 2011

[quote]There also shouldn't be any unzipping needed.[/quote]
Yes. The alternative would be to unzip when I'm done uploading, but that would increase the length of the uploading code. I'm also trying to keep folders clean and neat. I think I'm going to cle*snip*


Afr0

Debugging PHP

30th March 2011

Yeah, it will.
I'm creating a dynamic page that will update itself based on which magazines are available (uploaded).
It used to be quite fast, but is now slower, because my boss insists on using flash to display magazines, meaning for every page request*snip*


Afr0

Debugging PHP

30th March 2011

[code]
//Lists all files of a specified type in a directory.
function GetDirectoryList ($directory, $extension)
{
// create an array to hold directory list
$results = array();
// create a handler for the directory
$handler = opendir($d*snip*


Afr0

Debugging PHP

28th March 2011

I fixed it! :)
I will post the full code at work tomorrow


Afr0

Debugging PHP

28th March 2011

When I change the loop to:
[code]for($j = 0; $j <= ($JPGFiles); $j += 2)[/code]
It starts pumping out thousands of temp files! *sigh*


Afr0

Debugging PHP

28th March 2011

Yes, I'm assuming that the number of JPGFiles and PDFFiles will be the same. I'm trying to loop across two files at once!


Afr0

Debugging PHP

28th March 2011

I have the following code;
[code]
//Lists all files of a specified type in a directory.
function GetDirectoryList ($directory, $extension)
{
// create an array to hold directory list
$results = array();
// create a handler for the director*snip*


Afr0

PHP security

23rd March 2011

Thanks guys, I'm now using mysql_real_escape_string for all my queries. :)
Diablos: I've already locked down admins. When uploading magazines, you can only upload *.pdf and *.jpg files. I still need to implement a filesize limit though...


Afr0

What's (wrong?) with Charlie Sheen?

23rd March 2011

Hahaha I think it is hilarious :)


Afr0

What's (wrong?) with Charlie Sheen?

22nd March 2011

Something tells me that Jay will like this song:


Afr0

PHP security

22nd March 2011

Thanks guys!
As far as user input goes, there's no need for me to sanitize it, at least not yet. You have to log on in order to submit anything at all to the DB, and there really isn't any need for me to have a system whereby people can create their own u*snip*


Afr0

PHP security

21st March 2011

Thanks!


Afr0

PHP security

21st March 2011

PHP files can be downloaded, right? Or, no?
Is it safe to store the DB password and username in plaintext in PHP files? If not, what's the common way to do it?
What are some other security concerns that are common?


Afr0

What's (wrong?) with Charlie Sheen?

18th March 2011

Is he deranged, is he bi-polar, or is he simply the most winning man in the history of winners?
Why does everyone think he's suffering from a midlife crisis when he thinks that his life is totally epically winning?
Isn't that a bit ironic?
(Image.jpg)


Afr0

Pop! Poppety-pop!

16th March 2011

[quote]This is a job, you Absolutely MUST do it properly.[/quote]
As long as the site displays well in all browsers including but not limited to Netscape and IE6, that's a job well done as far as I'm concerned.
Chances are that this site won't be activel*snip*


Afr0

Pop! Poppety-pop!

16th March 2011

Thanks! Looks much better now! :)
(Image.jpg)
Only problem is I couldn't figure out how to do it with lists and CSS so I ended up using tables. ^^,


Afr0

Pop! Poppety-pop!

15th March 2011

The orange was changed to blue, because the client liked it better.
The test images are what I think will be the approximate size of the magasine's frontpages. 'Boligmagasinet' is, as the name suggests, a magazine, and you're supposed to be able to downlo*snip*


Afr0

Pop! Poppety-pop!

15th March 2011

I've come up with a website design that works, in HTML and CSS.
(Image.jpg)
(Image.jpg)
This just works. There is enough space, and nothing is out of order. But it looks really quite boring and bland.
I feel like I need something to make the desig*snip*


Afr0

Sizing div?

15th March 2011

What's wrong with tables?


Afr0

Sizing div?

15th March 2011

Is there any way to make a div be the size of another div in CSS? Without using PHP, that is.
Right now I've hardcoded the height of my left-hand div:
[code]div.menu
{
width: 150px;
height: 1630px;
border-style: solid solid solid solid;
bor*snip*

Newer Posts More - Older Posts