How to get numeric key of new pushed item in PHP?
$arr[] = $new_item; Is it possible to get the newly pushed item programmatically? Note that it's not necessary count($arr)-1: $arr[1]=2; $arr[] = $new_item; In the above case,it's 2 ...
$arr[] = $new_item; Is it possible to get the newly pushed item programmatically? Note that it's not necessary count($arr)-1: $arr[1]=2; $arr[] = $new_item; In the above case,it's 2 ...
Hi I am using php Mailing function in my project. i have sent the values in a php variable Like $myvalue="Universal Laser Systems®"; $mailbody="<table><tr><td>".<?=$myvalue?>."</td></tr></table>"; But my email is showing Univer! sal Laser Systems® How i avoid such a special charector........... ...
see this http://stackoverflow.com/questions/2190540/adds-an-empty-directory-in-the-archive i cant use that code function addFolderToZip($dir, $zipArchive, $zipdir = ''){ if (is_dir($dir)) { if ($dh = opendir($dir)) { //Add the directory $zipArchive->addEmptyDir($dir); // Loop through all the files w...
Currently I am adding on to an existing PHP application, and have to add new type of data entities and relationships. I am wondering if there are any lightweight CMS library for PHP - not full fledged framework such as WordPress, Drupal, ExpressionEngine or even framework such as CodeIgniter or Kohana, but just something which Manages ...
hi, I am having apache 2.2.14, php 5.3.1 and mysql 5.1.43 installed on vista. I am trying since 2 days to configure php to have mysql enable on phpinfo(). I modified php.ini to have extension_dir = "c:\php\ext" modified the extension as extension="php_mysql.dll" added "c:\php" to the "PATH" environment variable and restarted the vista...
how can i fill following type array dynamicly in for loop array('items'=>array( array('label'=>'News', 'url'=>array('/site/index')), array('label'=>'News2', 'url'=>array('/site/2')), )); I am new in programming thanks for help ...
The question might prompt some people to say a definitive YES or NO almost immediately, but please read on... I have a simple website where there are 30 php pages (each has some php server side code + HTML/CSS etc...). No complicated hierarchy, nothing. Just 30 pages. I also have a set of purely back-end php files - the ones that have ...
Hi, i am running on php, mysql and using mootools1.2 as my js framework. I want that all broken images should replace with a single error image. How should i do this. Thanks Avinash ...
Guys help me out! I really can't figure this one out, just got a basic upload script but the file wont upload. Form => enctype is set print_r($_FILES['Product_Thumb']) => [Product_Thumb] => Array ( [name] => prototype.js [type] => application/x-javascript [tmp_name] => /tmp/phpXzL6CT [error] => 0 ...
Order Page: On this page, customers can choose to add business card orders with different foreign languages and other options. When the user clicks on a button to add an additional card, javaScript adds a series of form fields and in order to give them unique name attributes, I am simply adding a counter variable at the end of the name ...
Hi, I'm new to PHP. I installed XAMPP and have Apache running. I created helloworld.php in XAMPP's htdocs and got PHP to display in my browser. My question is, why does my PHP script in my HTML file not display in my browser? Ive never installed PHP on its own. Should I also install it? Would it conflict with XAMPP. My code is below. Any...
I have built a CMS system using jQuery and PHP, it has worked consistently for multiple users across different platforms over the past year or so. Today as I was presenting it to a potential customer over the phone he ran into a problem in Internet Explorer 8, for some reason he was not able to log in to the system so I created a dirt...
Hi, one of my PHP script get JSON from an Ajax call. With a depth of 5, all run fine, but if depth is 6, json_decode() fail on Sun box. Under Linux or Windows same scripts and data run fine. Does anyone have an hint for me? Thanks, Cédric ...
Please I would like to know how to implement Single Sign On across subdomains running on a mixture of programming platforms, asp.net and php? ...
Hi , Does any one know of an article's on the element's / structure needed to create a flash , php , MySQL cms ? I failed to mention flash would be the GUI for the CMS ...
I have a database for different products in db and I don't need any cart, just want to get product from one category and need to check out. But the problem is that I have 200 products. I am really dissapointed that what to do with this because how do I manage this kind of project. ...
The site is currently written in PHP. I want to add a new component by doing it in Ruby on Rail and then installing Rails in a sub-folder. If a user logs in the PHP portion of the website, can I customize the content for him/her in the Rails section without requiring a second login? I'm relatively new to Ruby on Rails so that's why I'm...
please check out this site: http://www.awdio.com Does anyone know how i could add a preloader(with fade effect) on an html page? i think google has the same effect. What about the music player? it never stops playing while refreshing the page or navigate through the site. How can this be done and not losing stats(page visits-loads)? A...
Hi Can anyone suggest a quick form script for a php form? I generated the one below from telepro and modified the html and emails a bit, but I get this error for the checkbox Parse error: syntax error, unexpected '=' in /home/inn.co.uk/public/mailer.php on line 14 thanks for your help Regards Judi <form method="POST" action="...
Here is my array: Array ( [0] => Array ( [0] => content here [1] => 2010-02-04 01:25:34 ) [1] => Array ( [0] => content here [1] => 2010-02-04 04:51:37 ) [2] => Array ( [0] => content here [1] => 2010-02-04 04:52:31 ) [3] => Array ( [0] => content here [1] => 2010-02-04 05:50:48 ) [4] => Array ( [0] => content he...