edit .htaccess to load php extension?
I follow this post to enable PHP5 XSL extension on apache server: .htaccess instead of php.ini php_extension xsl.so After added the line above, it show the 500 internal server error. and recommend? ...
I follow this post to enable PHP5 XSL extension on apache server: .htaccess instead of php.ini php_extension xsl.so After added the line above, it show the 500 internal server error. and recommend? ...
Possible Duplicate: PHP - Merge duplicate array keys in a multidimensional array I have have something similar to this, and Arrays go on for over 100 elements. Array ( [0] => Array ([id] => 16 [data] => Array ( [title] => Array ( ...
I want to get the same value from two arrays. Example: a[] = array(a,b,c,d,e,f,g,h); b[] = array(c,d,o,l,p,i,u,y); I want c[]=c,d; ...
My Debian Lenny server was happily sending mails from the php mail() function up until a few days ago. Now, it will return false for certain email addresses I have been using. I pointed php to sendmail in php.ini but that didn't change much. I noticed when I run: sudo /usr/sbin/sendmail -bv [email protected] I get the message: my...
Hi all, I just wrote php daemon for my app and want to implement some output information generated on specified signal (SIGUSR1). I got signal handler in code pcntl_signal(SIGUSR1, array($this, 'signal_status')); and function handler prepared protected function signal_status($signal_number) { printf("blah\n"); } Everything...
How can i generate a select list with the given year till this year? i did this {assign var=thisyear value=$smarty.now|date_format:"%Y"} {if !$firstyear} {assign var=firstyear value="2003"} {/if} {if !$loop}{assign var=loop value=$thisyear}{/if} <select name='{$id|default:year}' id={$id|default:year} style='width:70px;'> {section na...
Hi there, I wonder if there is a simplier way of injecting into a string. so if i have the follow: Guess what you I'de need to inject the following so the string returns: Guess what i know you A way i would do this is to explode all the spaces and attach the strings seperatly via numbers but would there be a quicker more efficent...
now i want send the - i mean Minus one to php but when send it its not sending as a word i cant tell you because i dont understand see in php when write "$var" its return $var value but when write '$var' its returm $var how i can make this in jquery var dataString = 'vote=-1'; $.ajax({ type: "POST", data: dataString, ca...
I'm writing an app that allows you to filter database results based on Location and Category. If someone was to search for Liverpool under the Golf category the URI would be /index.php/search/Liverpool/Golf. Should someone want to search by Location but not category, they would be sent to /index.php/search/Liverpool However, should so...
Hi everyone, I'm trying to select either a class or an id using PHP Simple HTML DOM Parser with absolutely no luck. My example is very simple and seems to comply to the examples given in the manual(http://simplehtmldom.sourceforge.net/manual.htm) but it just wont work, it's driving me up the wall. Other example scripts given with simple ...
hi, I am new to php and i have seen rather Ambiguous function name convention in php and this confuses me as i regularly forget function names. I suppose i should give you an example. If function for encoding is htmlentities then why it's opposite is named html_entitiy_decode rather than something like entitiesdecode or the one which i...
i have this "SELECT SUM( state ) FROM `vote` WHERE id ='5'" now when add it in php how i can do $xx= mysql_fetch_array(mysql_query("SELECT SUM( state ) FROM `vote` WHERE id ='5'")); is i can do it like that echo $xx['SUM( state )']; ...
Hello! I have created a table in DB with name "member" having field "name", "college", "email", "zid" now I have created a class(in php) like class member { private $name,$college,$email,$zid; private function adduser { //function definition } public function autherise($id) { //function definition } } now at index page...
Hello, Now i have a select box. <select multiple size="5" name="interest"> <optgroup label="Sports"> <option value="">Footaball</option> <option value="">Basketball</option> <option value="">Volleyball</option> </optgroup> <optgroup label="Music"> <option value="">Folk Musique</option> <option value="">Pop Musique</option...
Hi, My situation is essentially this: I have a class called Foo which has dependencies A and B, all of which are internal to a library. Instances of Foo will be created by user of the library, and they should not require knowledge of the dependencies. Internally of course I would like Foo to remain decoupled from the concrete implement...
How can I read an Excel file using Zend framework? ...
i have a category drop down combo in my php page which shows categories like math and science. i want to show another subcategory combo box which will show subcategory of selected category, for example if user select math as category then subcategory combo should show subcategories of math like algebra, trigonometry and if user select sc...
Hi, I have an image gallery within a Drupal site that uses the 'Image Gallery' module (funnily enough...). There is a standard 'Views' pagination system that breaks down the gallery pages into manageable chunks, and which at the same time restricts the number of page links shown (indicated by ellipses), e.g.: <<first <previous ... 3 4 ...
Hi all, I have the following categories Car parts (0) Tires (0) Rims (5) Now in the product listing obviously the car parts en tires listing returns 0 products. But for the user this is ankward. Is it possible to show child items if a category is empty? Kind regards ...
Should request: site.ru/index.php?go=23&page=bla alter the form: bla.site.ru/index.php?go=23 That is, the user types in browser bla.site.ru/index.php?go=23 and all information is passed to scripts that request site.ru/index.php?go=23&page=bla It is prohibited to use redirect ...