Jump to content


Member Since 15 Aug 2008
Offline Last Active Yesterday, 02:53 PM

#1518111 agree/disagree versus like

Posted by Maq on 05 August 2015 - 08:57 PM

I disagree.

#1479374 how to read this php script.

Posted by Maq on 13 May 2014 - 07:48 PM

As Jacques1 mentioned, it's obfuscated so they obviously don't want you using this code.


You can try going to their website and contacting them otherwise, I would forget about this script.

#1476873 plz help with squid on debian 6

Posted by Maq on 21 April 2014 - 08:44 PM

It's pretty straight forward and there are plenty of examples. Try to figure it out and come back with a specific question or some code.

#1452112 New Guru: AbraCadaver

Posted by Maq on 01 October 2013 - 10:12 PM


#1451126 jQuery - Event that works all the time

Posted by Maq on 24 September 2013 - 10:24 PM

What exactly are you trying to do? In jQuery you can bind events/methods.

#1443747 Wow i could be a millionaire!

Posted by Maq on 06 August 2013 - 10:15 PM

Hmmm, the one I filled out required my social security number and credit card credentials to get my $1M prize.

#1442812 Application - Multiple Developers

Posted by Maq on 31 July 2013 - 03:01 PM

Why don't you use some sort of version control such as Git or SVN?

#1440185 Parse error: syntax error, unexpected T_VARIABLE

Posted by Maq on 10 July 2013 - 04:57 PM

Missing a ;

#1435986 Trying to get the hang of php classes

Posted by Maq on 14 June 2013 - 04:02 PM

Thanks cyberRobot...

Got that and changed it to public instead :)

I'm pretty sure when you don't specify a property the class will infer public. If you're not accessing your variables outside of the class then you want them private.

#1422343 How To Get Into Web Development?

Posted by Maq on 01 April 2013 - 10:03 PM

Ask friends and family, even if it's for free.

Do some research of local businesses, see if they need a site or need their current one updated.

Checkout freelance sites, we have a section here: http://forums.phpfre...hp-freelancing/

#1420941 What's this $variable. =

Posted by Maq on 25 March 2013 - 04:34 PM

Yes, from the manual - http://php.net/manua...tors.string.php

#1411174 New Guru: Christian F.

Posted by Maq on 08 February 2013 - 11:24 PM


#1406490 1062 - Duplicate entry '1' for key 1

Posted by Maq on 17 January 2013 - 06:58 PM

This is my table, I didn't make report_id 'unique' or 'primary', so what gives?

Yes you did:
PRIMARY KEY  (`report_id`)

#1397213 Parse Html With Xpath

Posted by Maq on 03 December 2012 - 04:10 PM

After looking at your code I noticed a few things:

1) You should be using the method loadHTMLFile() not loadHTML(). The former method loads HTML from a FILE, the method you were using thought "test.html" was literally the HTML.
2) Turn on error reporting when you are debugging.
3) You should be declaring your namespace, in this case it's xmlns.



// Report all PHP errors

$husdjur = new DOMDocument();
$xpath = new DOMXPath($husdjur);
$xpath->registerNamespace("xmlns", "http://www.w3.org/1999/xhtml");
$tableRows = $xpath->query('/html/body/table/tbody/tr[1]/td[1]');

foreach($tableRows as $result)
echo $result->nodeValue;
echo "\n";


#1393642 Object Oriented Programming Or Traditional Coding?

Posted by Maq on 19 November 2012 - 07:51 PM

Take a step back and read the comments you made about each paradigm:

- powerful
- very clean and well organized
- neat result

- Easier

Given the description of the components & features of your website, it doesn't seem like a trivial task and most likely you will be updating & adding to it. I think you can figure out which one suits your situation.