Nic & Josh: Internet Stuff

Search on This Topic:   
[ Go to Home | Select a New Topic ]

Josh's Updates: PHP include_path not working on Windows

Internet StuffI had added some directories to my include_path in php.ini and was still getting failed to open stream or file or directory not found.   It turns out that include_path should NOT have spaces in between the ; separator and the directory.

For example

Wrong:

include_path=".;D:wampbinphpphp5.2.5pear; D:wampbinphpphp5.2.5includes;

Right:

include_path=".;D:wampbinphpphp5.2.5pear;D:wampbinphpphp5.2.5includes;

Hope this helps someone

Posted by josh on Tuesday, November 30 @ 09:55:17 PST (485 reads)
(comments? | Josh's Updates | Score: 0)


Josh's Updates: Prototype "Ajax.Request is not a constructor" Fix

Internet StuffIf you are using Prototype with bsn.Autosuggest, you may receive "Ajax.Request is not a constructor" errors when attempting to post a new Ajax Request.    I encountered this when implementing Starbox while also having bsn.Autosuggest loaded too.

The fix for me was to replace "_bsn.Ajax" with
"_bsn.Ajax2" in the bsn.autosuggest javascript file.   There was a conflict where Starbox was trying to use the Ajax object from autosuggest instead of prototype.

Posted by josh on Tuesday, December 23 @ 18:08:13 PST (704 reads)
(Read More... | 6 comments | Josh's Updates | Score: 0)


Josh's Updates: Available PHP-Nuke Themes suck

Internet StuffWhy are all php-nuke themes that are available ugly as hell?   They ALL are.   Either they look like gamer themes or uber-tech themes that are the worst esthetically.  

Posted by josh on Wednesday, August 06 @ 08:36:32 PDT (822 reads)
(Read More... | 5 comments | Josh's Updates | Score: 0)


Josh's Updates: Mass Deleting Comments from Spammers in Gallery

Internet StuffIn case anyone needs this:

If you had a gallery installation where the comments where open to guests and started getting spammers, you can do this:

delete from g2_Comments where g_comment like '[url=%';

or to do by IP address since they are alike usually:
delete from g2_Comments where g_host like '197.66.55%';

Then when you think you've got the junk out, run cleanup:
delete g2_ChildEntity, g2_Entity from g2_ChildEntity, g2_Entity where g2_ChildEntity.g_id=g2_Entity.g_id and g2_Entity.g_entityType='GalleryComment' and g2_Entity.g_id not in (select g_id from g2_Comment)

Posted by admin on Monday, February 11 @ 23:11:14 PST (853 reads)
(Read More... | 2 comments | Josh's Updates | Score: 0)


Josh's Updates: Dreamhost...sigh

Internet Stuff<rant>
Why in the world does Dreamhost not enable certain libraries I have no idea.   I wanted to try out some new accounting stuff (PHP based) and it doesnt work because the bcmath library is needed.   Yea yea yea, I know I could do a custom installation of PHP but come on...you should enable just about everything unless you have good security reasons not to.  

</rant>

Posted by admin on Tuesday, February 05 @ 23:36:27 PST (933 reads)
(Read More... | 15 comments | Josh's Updates | Score: 0)