SEOPerfectCart Articles

SEOPerfectCart Articles

June 24, 2008

Multiple html form image input submit buttons, IE and PHP

Filed by: alterego @ 1:02 pm PHP Toolbox 101

What is the underscore mean? In PHP code on request variables such as ($_GET and $_POST)?

When submitting a form, it is possible to use an image instead of the standard submit button with a tag like:

Multiple html form image input submit buttons, IE and PHP ... Read More

Filed by: alterego @ 10:58 pm PHP Toolbox 101

Have you lost the ability to display html or javascript or google adsense banners in phpnuke 7.9 3.2 patched?

Change line 1458 in mainfile.php from

1458 $ad_code = filter($row2['ad_code'], "nohtml"); to 1458 $ad_code = $row2['ad_code'];

this will re-enable your banners in 7.9 3.2 patched

Changing Line 227 will allow you to add html in the Content pages

$Default_Theme = filter($row["Default_Theme'], "nohtml"); to $Default_Theme = filter($row['Default_Theme']);

Use these fixes with care I am sure there may be security issues with the fixes

Filed by: alterego @ 5:45 pm PHP Toolbox 101

You are writing php code and find your self trying to access a file outside the directory your current file reside in. How do you access or check for the existance of include files or text files?

You can use a shortcut called loosely an “up level” !

Example: if you had a file called called top.php

in

http://www.intimatesdirect.com/includes directory

and there is a script you needed to access in

http://www.intimatesdirect.com/scripts

you could code

PHP Shortcut using the uplevel ../ ... Read More

Filed by: alterego @ 11:00 pm PHP Toolbox 101

What does the @ symbol do in PHP code?

PHP @ error suppresion symbol and the ! not symbol do in PHP ... Read More


Valid HTML 4.01 Transitional CSS_Validator Feed_Validator