Hello everyone, I'm trying to basically get a cmd variable to pass into commands.getstatusoutput. The problem is that the command has a lot of single and double quotes in it and I can't seem to get it to store as a variable. When I print the cmd it comes out as I want it to (since I tried \ escaping one of the single quotes.. here is an example of what I'm trying to do: cmd1 = "convert -pointsize %i -fill %s -draw " % (pointsize, fill) cmd2 = ''text %d,%d "%s Hour: %i"' %s %s_cap.jpg' % (half_image, up_buff, out_month, …

Member Avatar
Member Avatar
+0 forum 5

Hello guys, today when I was try to install Joomla on my server it prevents me from continue because of Magic Quotes GPC = ON , so I red about this and saw many sites and PHP iteself recommended to shut this feature, my question is in my projects I use function I've created to filter the $_POST variables <?php function filter($text) { $text = trim($text); $text = strip_tags($text); $text = str_ireplace("select","",$text); $text = str_ireplace("union", "", $text); $text = str_ireplace("update","",$text); $text = str_ireplace("insert","",$text); $text = str_ireplace("join","",$text); $text = str_ireplace("'", "", $text); $text = str_ireplace(";", "", $text); $text = str_ireplace("$", "", …

Member Avatar
Member Avatar
+0 forum 2

'"No, thanks, Mom," I said, "I don't know how long it will take."'

Member Avatar
Member Avatar
+0 forum 1

just completed my sister's website and am having issues with the Quotes on the intro paragraph. Am I missing something in the script? http://www.dynamicfxfitness.com any help would be great!

Member Avatar
Member Avatar
+0 forum 1

I'm currently building a website for my friends and me, and I've decided to have the homepage use a news system. I have the page working with PHP to load articles from my MySQL Database, and that's working fine. My real issue is with the page that adds items to the MySQL database. I am using the normal query system ("INSERT INTO table VALUES ('', '', '', '', '')") but I'm using variables inside the query. The variables pull their values from a POST method on the same page, and it seems to run fine; except for the <textblock> part …

Member Avatar
Member Avatar
+0 forum 6

i have this code in a page called process.php to create a page dynamically. [CODE]$_SESSION['z']=$post; $string = '<?php $p='.$_SESSION['z'].'; ?> '; $fp = fopen("$post.php", "w"); fwrite($fp, $string); fclose($fp); [/CODE] if $post=big then it creates a page big.php with this code [CODE] <?php $p=big; ?> [/CODE] but i want to write $p='big' instead of $p=big on the big.php page ..so how can i do it ??

Member Avatar
Member Avatar
+0 forum 2

Hi, in this news you will see how in the past few years there has been some controversy over a bug or more commonly known as a feature which appears it may be removed as of php 5.4.0. According to the features list of php 5.4.0 beta there is the following quote. [QUOTE] - Removed features: . Removed magic_quotes_gpc, magic_quotes_runtime and magic_quotes_sybase ini options. get_magic_quotes_gpc, get_magic_quotes_runtime are kept but always return false, set_magic_quotes_runtime raises an E_CORE_ERROR. (Pierrick, Pierre) [/QUOTE] Now some users will have a good idea what this is but most won’t have a clue as most don’t dig …

Member Avatar
Member Avatar
+4 forum 2

The End.