php

How to compile an iPhone application source code on server using command line in Windows?

I have an application in which I change the data on web and then download the files then I compile my iPhone app with data. I just want to create ad-hoc distribution so I have already added devices. So is there a way that anytime I change data on web then I compile my iPhone app over the server using PHP and some command-line script so...

[PHP] query-generated tables with many-to-many data fields, best practice?

You have two hypothetical tables: TABLE 1 [id] [item] [amount] [cost] 1 hat 20 10 2 shoe 7 45 3 belt 2 25 TABLE 2 (many to many) [item] [color] hat blue hat red hat yellow shoe black shoe white etc. etc. and when you run a query, you want to output a list ...

How to use php NuSOAP and PEAR::SOAP together?

Hi, I have a store based on osCommerce. I am using two modules to add few functionality to the store. one uses PEAR::SOAP library and another uses NuSOAP library. Now that merchants want to use together. the issue here is both libraries implement the same functionality with the same class name , methods and objects etc. what is the ri...

Sending Mail using PHP on IIS 7 - Windows 2008 Server

Hi, I'm having trouble sending mail using PHP mail() on IIS 7 using Windows 2008 Server. The server is dedicated, thus I have full control over my machine. php.ini looks fine - ([mail function] is configured) I don't get any error from mail() (with the right parameters of course) btw - I got ASP and ASP.NET sending mails without any pro...

code igniter captcha not working

Hi code igniter captcha is not working in my page.My php gd library enabled but no change result ...

Is this a valid statement in php?

I am setting up a Pandora FMS server and console on Solaris 10u8 on a v65x. Everything hasn't exactly been going smoothly but I managed to get MySQL, PHP and the various pandora components installed. However, when I try to go to the website (myserver/pandora/index.php) it is just a gray background with a white box. I hit "View Page Sourc...

How to write a php Function GetUniqueOnes, which accepts a signle argument. the arguments is an array of integers and the function should return the unique integers separaged by commas.

Eg: GetUniqueOnes($arr) $arrr = array(34,54,68,141,151,54,151,54) should return 34,54,68,141,151,161 ...

is it bad practice to require php files rather than link to js and css?

I want to put snippets like these inside of a few php files and then require them in my main page, instead of using "pure" css and js files. I mean, I already do essentially this for my HTML DOM. this: <script type='text/javascript'> var foo = <?php echo $bar; ?>; </script> or this: <style type='text/css'> .foo{ background-image:url...

PHP file not successfully receiving AJAX variable

Here is what I have going on in my AJAX: $('#submit-button').click(function(){ var twit = $('input#twittername').val(); var email = $('input#email').val(); if((email == "" || email == "[email protected]") && (twit == "" || twit == "@twittername")){ $('p#empty-error').fadeIn(); return false; } var datastri...

how to write funtion Max($array) which returns the maximum value contained in $array or some array nested within $array

Eg: $array= array(array(141,151,161),2,3,array(101,202,array(303,606))); output :606 ...

PHP print() Arabic string.

When I try and execute this code to print out an Arabic string: print("إضافة"); I get this output: Ø¥Ø¶Ø§ÙØ©. If I utf8_decode() it I'll get ?????. I have "AddLanguage ar" in my apache configuration but it doesn't help. How do i print out this Arabic string? ...

Need to setup cleaner links - currently links too long - Zend framework

Hi guys, I'm using the zend framework for my project - I've tried to set up using clean links - however I've noticed that my links seem to be getting really really long and wonder if at this point there would be a way to incorporate a structure where I could user smaller links. Heres an example my website has a directory controller, whi...

Zend Framework plugins/modules

The symfony framework has a lot of plugins for adding functionalities like a user system (login, registration, authentication, etc..), so users won't have to invent the wheel from scratch, as a user system is a basic need for most applications (for example). I have tried finding an equivalent in Zend Framework, and though there is the c...

[PHP] preg_match_all crashing/bugging?

Okay, so I have this script that has been the same for at least 3 months now. The code hasn't been modified at all. Nor has my server (VPS) been modified either. But now out of nowhere, started about 24 hours ago, a line in the script is causing the page/script to timeout/crash (white page after about 30 seconds). The line of code in qu...

PHP function to return the length of the longest string argument

Eg: GetLogestString("bae","afaaa","aaa") should return 5 GetLogestString("baeedfefe","afaaaa","aaa","bb") should return 9 ...

How to submit checkbox values with PHP post method

<input type="checkbox" class='form' name="checkbox_1" /> <input type="checkbox" class='form' name="checkbox_2" /> <input type="checkbox" class='form' name="checkbox_3" /> ......... <input type="checkbox" class='form' name="checkbox_10" /> The from has been submitted using the "POST" method. identify, which of the check-boxes and wr...

Do multiple BCC's count towards SMTP hourly email limits?

Hi, I'm using the PHPMailer class for sending email updates to opt-in subscribers, and am occasionally hitting our host's hourly email limit. Would grouping identical messages together and adding receiptiants as BCCs address this problem? Obviously this would only be a short term solution until the list grows, but something is better...

How to write declared as function SplitEmailAddress($address).

Whose argument will contain string data consisting of a valid email address. this function will take the email addres as the argument and return an array with two keys: user to the username part and domain for the domain part of the address Example: $arr= SplitEmailAddress('[email protected]') $arr['user'] should contain the ...

SQLError in Syntax. Trying to display table and field names.

What I am trying to do is display the Table name then each of it's field names after it. it seems to work until i get to my character table, it will not display the field names and returns me this error. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ...

find_in_batches

How to implement find_in_batches in cake php model ...