Can you say that associative arrays in PHP are like 2D arrays?
Can you say that associative arrays in PHP are like 2D arrays? ...
Can you say that associative arrays in PHP are like 2D arrays? ...
I am a complete novice at SQL Server and naively thought that there would be a QUARTER() function, alas there is not and some googling didn't come up with anything useful! Basically what I want to achieve is that for all rows in my database I want a count of those rows grouped by Quarter. If possible I would like to keep all calculatio...
I'm trying to find the best way to use cookies for saving some products (wishlist). I want to use it to set the product_id into cookie. What would be the best option to use? jQuery cookie plugin or PHP cookies ? ...
Hi guys I was wondering if anyone could help me with the following: I have two dates entered in two different fields > startDate and endDate. As they are entered I would like to show a warning if: the second one is a date before the first one. So it is wrong. and that between the first one and the second one there a minimum gap of at...
I have a website written in PHP (CakePHP) where certain resource intensive tasks are handled by a background process. This is done through the Beanstalkd message queue. I need some way to retrieve the status of that background process so I can monitor it with Monit. The background process is a CakePHP Shell (just a PHP CLI script) that ...
Hello, I was hoping someone could offer me advice, Im looking to build a website, and was hoping that I could inergrate my last.fm radio station or my spotify account into it so the users can listen to what I am. I know there are API's for each but do any of them support listening to music, nothing seems conclusive in there documentati...
I'm installing a new server with Windows 2008 R2 and now I need to install PHP on it. I can find only x86 versions into http://windows.php.net/download/ I don't know how to compile the sources nor I have the VC compilers :( ...
Hello, I'm building a PHP/MySQL poll system and I was wondering if there's any more secure method than setting a cookie + saving user IP address and checking them later. Thank you. ...
I wanted to know if there is a better way to layout my form without having to create four check-boxes for the user to input 4 quarters as 25+25+25+25 = 1.00 to buy a drink. Currently, I just have one check-box for each denomination(Nickles, Dimes and Quarters) I want to use. I was wondering if there is better way in php and html that I...
I have an input in my form, I wanna find a solution to determine which language is typed in..( is it English, french, arabic, or Hebrew ..)... in PHP script, also I use UTF-8 encode. ...
PHP 6 has APC included in the core distribution, but its off by default. I have compiled from source and tried '--enable-apc' but no luck. I also tried to download and compile the APC module but it fails. How do I turn APC on in PHP 6? ...
Hello, I wrote a simple foreach to filter one array and write it's results to another array. foreach ( $users as $user ) { ... $user_email_list[ ] = $user[ "intranet-id" ][ "value" ]; ... } Problem is that NetBeans is showing me a warning "Variable does not seem to be used in its scope" on $user. If I try to initialize $u...
Hello, i just started using PHP namespaces. I have two models classes in separate files In both files first i declare namespace namespace eu\ed\sixImport\importViewer\models; first class: class Log extends \Doctrine_Record $this->hasMany('eu\ed\sixImport\importViewer\models\DataSource as DataSource', array( 'local' => '...
Is there any way to enable JavaScript on the client machine using PHP? ...
I have a database table with chinese dictionaries (about 300 000 rows) for online dictionary. The data structure looks like this: ID ch_smpl pinyin definition ---------------------------------------- 1 我 wǒ I, me 2 我们 wǒmen we, us etc. I'm not good with php and mysql, so th...
I had a script which sends sms alerts everyday. I want it to send automatically send sms by fetching message from database. Can I do it without cron. Is there any other solution. Plz help ...
I am using Symfony 1.2 with the sfDoctrinePlugin. I couldn't find any command to call the down method on a migration, neither the documentation suggests any related arguments to the existing doctrine migrate command. What would be a way to rollback the migration I just ran successfully? Creating a new migration to undo is an option, but...
Hello! I'm writing an application that that I'm going to provide as a service and also as a standalone application. It's written in Zend Framework and uses MySQL. When providing it as a service I want users to register on my site and have subdomains like customer1.mysite.com, customer2.mysite.com. I want to have everything in one datab...
Dear Gods! I use this script to upload images to serveR: <?php if (($_FILES["image_upload_box"]["type"] == "image/jpeg" || $_FILES["image_upload_box"]["type"] == "image/pjpeg" && ($_FILES["image_upload_box"]["size"] < 2000000)) { $max_upload_width = 450; $max_upload_height = 450; if(isset($_REQUEST['max_width_box...
I run Aptana 2.0 on Win 7. I normally code HMTL/CSS/JS but the other day I started with a PHP project, so I downloaded the PDT plugin to get proper colorization in .PHP files. It works fine, but my problem is that PDT also seems to mess with Javascript editing (applies another colorization scheme that's the same as in PHP files, and cod...