Jump to content


Maq

Member Since 15 Aug 2008
Offline Last Active Yesterday, 05:19 PM

#1479374 how to read this php script.

Posted by Maq on 13 May 2014 - 02: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 - 03: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 - 05:12 PM

welcome




#1451126 jQuery - Event that works all the time

Posted by Maq on 24 September 2013 - 05: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 - 05: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 - 10:01 AM

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 - 11:57 AM

Missing a ;




#1435986 Trying to get the hang of php classes

Posted by Maq on 14 June 2013 - 11:02 AM

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 - 05: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 - 11:34 AM

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




#1411174 New Guru: Christian F.

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

Congrats!


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

Posted by Maq on 17 January 2013 - 01: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 - 11:10 AM

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.

Try:

<?php

// Report all PHP errors
error_reporting(E_ALL);
error_reporting(-1);

$husdjur = new DOMDocument();
$husdjur->loadHTMLFile("test.html");
$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 - 02:51 PM

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

OOP
- powerful
- very clean and well organized
- neat result

Procedural
- 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.


#1393589 I've Lost Faith In Humanity

Posted by Maq on 19 November 2012 - 11:41 AM

Hold on, downloading now...




Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com