PHP Classes

Online demo

Recommend this page to a friend!

      Smart PHP SEO Tools  >  All threads  >  Online demo  >  (Un) Subscribe thread alerts  
Subject:Online demo
Summary:Online demo
Messages:4
Author:RichardS
Date:2013-12-31 11:34:14
Update:2014-01-02 11:20:30
 

  1. Online demo   Reply   Report abuse  
Picture of RichardS RichardS - 2013-12-31 11:34:14
Please provide an online demo, because i can't get it to work.
$tekst and $html are always empty, with any site i type in.

  2. Re: Online demo   Reply   Report abuse  
Picture of Trev Tune Trev Tune - 2014-01-01 07:40:45 - In reply to message 1 from RichardS
Have you tried the example provided?When you insert the url,make sure you insert everything,e.g,http://example.com and not just example.com.
If you still can't get it to work,echo the error property.e.g.,

$seo=new phpMySEO('http://phpmyseo.tk');
WORK WITH THE CLASS HERE...
echo $seo->error;

You can also try var_dump(new phpMySEO('url here'));

  3. Re: Online demo   Reply   Report abuse  
Picture of RichardS RichardS - 2014-01-01 12:13:45 - In reply to message 2 from Trev Tune
Trev Tune,

Thanks for your reply.
In example.php i changed the $seo=new ..... and added the echo $seo->error.
I also changed phpMySEO into smartSEO.

This is the result:
------------------------------------------------------
You need to specify the html before you can clean it
Warning: Division by zero in .../public_html/smartSEO.php on line 152
-0.483458 seconds.

Statistics for phpmyseo.tk
---------------------------------------------

When i try var_dump, this is the result:
-------------------------------------------
object(smartSEO)#2 (6) { ["page":protected]=> bool(false) ["rankInfo"]=> NULL ["rankDetails"]=> NULL ["ok":protected]=> bool(true) ["url":protected]=> string(18) "http://phpmyseo.tk" ["error"]=> string(52) "You need to specify the html before you can clean it" }
-------------------------------------------

Maybe i do something wrong, but can't figure out what.
Thx again.

(Sorry for my Englisch, it isn't my first language)

  4. Re: Online demo   Reply   Report abuse  
Picture of RichardS RichardS - 2014-01-02 11:20:30 - In reply to message 3 from RichardS
Can it be the difference in PHP version?
You state it as php 4.0, my server uses php 5.3.10