Forum: PHP Sep 14th, 2009 |
| Replies: 30 Views: 1,120 I'm sorry, but that's just plain false. It is possible to access other folders on a server (even below/above the root directory if they aren't protected properly). I've done it before, and I've just... |
Forum: JavaScript / DHTML / AJAX Sep 9th, 2009 |
| Replies: 2 Views: 497 Thanks Shawn,
Got it working :) |
Forum: JavaScript / DHTML / AJAX Sep 8th, 2009 |
| Replies: 2 Views: 497 Hi there,
I'm busy trying to build an interface where users can create a sort of collage with images that they upload. I know it is possible to get the position of a DHTML element relative to the... |
Forum: Geeks' Lounge Aug 28th, 2009 |
| Replies: 32 Views: 1,884 Seen on t-shirt:
Front: Only you can prevent forest fires!
Back: Which is great, because I've got other stuff to do. |
Forum: Geeks' Lounge Aug 28th, 2009 |
| Replies: 46 Views: 3,137 My record is 4. But you can only use multiple computers if you have multiple lengthy tasks to do, such as uploading multiple websites using ftp or doing s/w installations. |
Forum: Community Introductions Aug 28th, 2009 |
| Replies: 3 Views: 349 |
Forum: PHP Aug 28th, 2009 |
| Replies: 2 Views: 274 Hi there,
In php.ini, change both "max_execution_time" and "max_input_time" to 0. This removes the limit & lets them run indefinitely. Alternatively you could set them dynamically from inside your... |
Forum: Geeks' Lounge Aug 28th, 2009 |
| Replies: 9 Views: 912 I do pHp in South Africa :) |
Forum: PHP Aug 28th, 2009 |
| Replies: 1 Views: 151 Hi there,
You could try the following function:
imagefill ( resource $image , int $x , int $y , int $color );
Where $x and $y are the top left coordinates where the filling starts, and just... |
Forum: PHP Aug 27th, 2009 |
| Replies: 3 Views: 333 Well, not really. You need to handle the intitial request (the client clicking on the button/link) with a javascript or other client side scripting language. You can not call a php function directly... |
Forum: PHP Aug 27th, 2009 |
| Replies: 3 Views: 333 Hi there,
The problem is that php is pre-processed, ie all of the php code is run before a page is served to the client and therefore, you cannot add interactivity to a page (like with the onXXXX... |
Forum: PHP Aug 26th, 2009 |
| Replies: 5 Views: 318 leviathan is right, this would be easiest to do with a simple javascript function:
function disableCheckBox(checkbox1, checkbox2)
{
if (document.getElementById(checkbox1).checked == true)
{... |
Forum: PHP Aug 26th, 2009 |
| Replies: 2 Views: 192 Hi there,
I think the problem probably lies with your sanitizing methods.
When you insert (or update) the data into the database, make sure that you run the function "addslashes()" on the text from... |
Forum: Posting Games Aug 5th, 2009 |
| Replies: 1,429 Views: 113,220 no
have you ever checked out wolfram alpha? |
Forum: PHP Aug 4th, 2009 |
| Replies: 5 Views: 301 Hi there,
I think the problem might be that you never assign values from the $_POST array into your variables ($login, $passwd, etc.) Unless you do this in your include('../vars.php'). But other... |
Forum: Geeks' Lounge Jul 31st, 2009 |
| Replies: 64 Views: 3,558 I still use Google for all of my own searches (research etc.) but when we do SEO reports for our clients, they like to see their rankings on Google, Bing and Yahoo. So we sort of have to use it from... |
Forum: Geeks' Lounge Jul 29th, 2009 |
| Replies: 3 Views: 431 None that I know of. Pretty much anything that grows in less than a year, will die (and in this case turn into a brown ooze) in less than a year unless you preserve it somehow. |
Forum: Geeks' Lounge Jul 29th, 2009 |
| Replies: 10 Views: 868 I agree with VernonDozier, if you are a perfectly normal and healthy individual, you aren't going to commit suicide over getting you cellphone confiscated/ scolded for taking a call. And if you do, I... |
Forum: PHP Jul 27th, 2009 |
| Replies: 0 Views: 1,473 Hi there peoples,
This is a currency converter, built with a combination of javascript and php, which uses an XML feed from http://www.ecb.int/ to get up to date exchange rates. I know the xml... |
Forum: PHP Jul 27th, 2009 |
| Replies: 2 Views: 310 Hi there,
What you need is a little javascript to make this work, the following is an example:
var value1 =... |
Forum: Posting Games Jul 27th, 2009 |
| Replies: 638 Views: 54,915 lay
play
splay
day
slap
pay
slay
lisp
margarita :) |
Forum: PHP Jul 24th, 2009 |
| Replies: 3 Views: 351 |
Forum: PHP Jul 24th, 2009 |
| Replies: 3 Views: 351 Hi there,
Enclose the phrase post_text in single quotes, like this:
echo $rows['post_text'];
That should sort out your error :) |
Forum: Geeks' Lounge Jul 24th, 2009 |
| Replies: 31 Views: 2,209 Dude, in South Africa, I share a 3 bedroom house with some people from work, rent per month is ZAR 5300 per month (for the entire house, not per person) , which is by todays exchange rate: USD... |
Forum: PHP Jul 24th, 2009 |
| Replies: 5 Views: 1,133 Hi there, in order to set the action of the form in response to a user selecting something from the drop down list, you will need to use javascript, try this :
$sql = "SELECT prodMFG FROM... |
Forum: PHP Jul 24th, 2009 |
| Replies: 10 Views: 594 Just gave it a bash and it worked fine. There are a couple of other little errors in your code that you'll need to clean up though.
Good Luck :) |
Forum: PHP Jul 24th, 2009 |
| Replies: 10 Views: 594 Hi there,
I'm not too experienced with the gd libraries so forgive me if i'm wrong, but I think the problem is that the libraries can not spawn a picture out of nothing (unlike the php functions for... |
Forum: PHP Jul 24th, 2009 |
| Replies: 3 Views: 333 |
Forum: PHP Jul 24th, 2009 |
| Replies: 7 Views: 296 Well, the way your code is structured (in the first snippet), if $_POST['submit'] == 'Login', the user will always be redirected to myaccount.php, if you only want that to happen if the login fails,... |
Forum: PHP Jul 24th, 2009 |
| Replies: 7 Views: 296 Hi there,
The problem is where you are checking your $result against the $md5Pass, what you are doing is running the query and storing the result set in $result, but we aren't done yet, that $result... |
Forum: PHP Jul 24th, 2009 |
| Replies: 3 Views: 333 Hi there, you could use a regular for loop like this:
$max = ceil(count($Forms,$sharedForms);
for ($i = 0; $i < $max; $i++)
{
$outstring1.= "... |
Forum: PHP Jul 23rd, 2009 |
| Replies: 9 Views: 465 Hi there, it can't be done solely with php, you need javascript to pull the actual resolution initially, but after that you can store it in a cookie and use php to access it
Put this script on your... |
Forum: PHP Jul 23rd, 2009 |
| Replies: 5 Views: 293 Um a little skewed.
Heres the breakdown:
You have a number of "SUPER GLOBALS" in php which are superglobals because they can be accessed from anywhere in the scope of your script. The 3 i'm gonna... |
Forum: Geeks' Lounge Jul 22nd, 2009 |
| Replies: 13 Views: 805 Take a look at this (http://www.pagetutor.com/trillion/index.html) |
Forum: Geeks' Lounge Jul 22nd, 2009 |
| Replies: 31 Views: 2,209 I think I know the anger of which you speak, I too get furious over trivial things especially people who don't understand why their e-mail isn't working when their mailbox is full, and many other... |
Forum: PHP Jul 22nd, 2009 |
| Replies: 2 Views: 611 The only way you can do that is with computations, rest easy though, the computer takes care of the actual math for you:
$bytes = $_FILES['my_file']['size']; //Size of file in bytes
$kbytes =... |
Forum: Geeks' Lounge Jul 22nd, 2009 |
| Replies: 9 Views: 551 Dude, do you regularly browse the internet with no other cause except to find something interesting? Much Respect. |
Forum: HTML and CSS Jul 21st, 2009 |
| Replies: 2 Views: 349 Hi there, I'm not sure if what you're asking for is possible. The way I understand it to work is if you take a page (index.html) and reload it, it also reloads all of it's child elements including... |
Forum: Posting Games Jul 21st, 2009 |
| Replies: 1,429 Views: 113,220 Yes (Only a single strip down it's side ... so not really)
Can you juggle? |
Forum: Posting Games Jul 21st, 2009 |
| Replies: 489 Views: 42,610 If thats a vegetarian version of Marmite, then I can think of few things worse... but haven't tried it.
4 cheese (Cheddar, Mozarella, Feta, Haloumi) Pizza |