php

how to echo/access the 'get' index of the given array in PHP syntax

I have the array variable say $value, and it has the below given array [navigation] => navigationHistory Object ( [path] => Array ( [0] => Array ( [page] => order_form.php [mode] => NONSSL ...

Is Zend Certification "needed" before starting with the Zend Framework?

Hi, We're starting a new project using the Zend Framework, because the ideas and expandability speaks to us. But now I'm wondering, should we first get some form of Zend Certification before starting with the Zend Framework? Will we miss fundamental yet basic groundrules if we just start "hacking away" using the Zend Framework? I don...

How do I convert this cURL command to PHP (libcurl)?

In continuation off of this question, what are the PHP statements I need to accomplish this: curl -is -F 'J:A-login=BTDT::Action::Login' -F 'J:A:F-address-login=EMAILADDRESS' -F 'J:A:F-password-login=PASSWORD' http://hiveminder.com/splash | grep -o 'JIFTY_SID_HIVEMINDER=[0-9a-f]\+' The flags and fields are still mysterious, and I've n...

How to deny ajax PHP files from browser

There is AJAX script on my WS. Is there a method to deny straight access to ajax php backend? And to access to it only if it is run from my ajax code ...

Why would ftp_connect() return false on production server if it works elsewhere for connecting to the same FTP server?

I have a script that uses ftp_connect() among other FTP PHP functions for uploading a file. ftp_connect() works when executed on my local development server for connecting to a remote FTP server. The same script, when executed on the remote server does not work for connecting to the exact same FTP server. Could somebody please point me...

parsing xml with php, children

Hello I successfully created my parser Everything is working great except one thing since my xml is formated a little different and I am totally lost on how to assign variable to the children of <photos>. ...

Get South Africa Standard Time In Php.

$today = time () ; this function is used to get current time of my system, i want to get South Africa time, so plz guide me. ...

How to add multiple condition cases inside Switch method?

Is there a way to include multiple cases inside a switch method in php? ...

Display archive posts in Wordpress

I am looking to display archives pages as a normal posts page... So, a posts page with a secondary navigation showing: LATEST POSTS / LAST MONTH / LAST YEAR / OLDER On each of those pages, I would like to display a summary of each post just like the standard latest news page. When you click through you get to the full post. For ea...

how to implement ws-security 1.1 in php5

I'm trying to call a webservice with Soap in PHP5, for this, I need to use WS-Security 1.1. (In java and .NET this is all generated automatically.) Are there any frameworks available to generate the security headers easily in PHP? Or do I have to add the entire header myself ? Specifications of WS-Security 1.1: http://oasis-open.org...

What does "->" do or mean in PHP?

I have seen this at a lot of place but have never understood it's meaning or working... for example: // Registry $registry = new Registry(); // Loader $loader = new Loader($registry); $registry->set('load', $loader); If someone can elaborate this, I will be very greatful... thanks in advance... ...

Publish git repository to remote http server

I work on a git repository where we build an php community but i need to show it somewhere so I am looking for a way to automatic upload my files to a remote http server when i push to the repository. Thanks /Victor ...

PHP Recursive Function

In my database I have a hierarchical flat table that returns data ordered by ParentID, ObjectID asc I am having a bit of an issue getting this recursive function to work properly. I get the first Parent>Child>Child but after that I get nothing else. Any help with this is greatly appreciated. Here is my testing code: $objectArr = arra...

Problem in uploded website?

I built a static web site in urdu font via uni code, it is not working well, it is only open in IE8, firefox, not in safari and not in Google Chrome, In IE8, firefox not supporting to Font, it is working well at localhost. address is: http://jamia-siddiquia .org/ *WARNING: linked site is blocked by google due to supposed malware distri...

problem with enable/disable button using javascript

Im am trying to add a check box that will enable/disable the edit button. Im retrieving a price list and displaying it inside a table. When i add the javascript into the php code it doesn't work. Below is my code <table border="1"> <tr> <td width="100">Fee % </td> <td width="100">Price</td> <td width="100">Total</td> ...

Set two classes from array

I want to change the classes on every third output from a query: <?php $style_classes = array('box','box','box no_right_margin'); $style_index = 0; ?> I set this on the div: <div <?php $k = $style_index%4; echo "class=$style_classes[$k]"; $style_index++; ?>> On the third div I want the class to look like this: <div class="box ...

Days since 1900

I'm using data from Excel2007 as parsed by PHPExcel, and dates come out as days since 1900. How can I convert to string of 'YYYY-MM-DD' (or anything similar)? ...

Wordpress Login & Registeration System Like http://www.damnlag.com/

I came across http://www.damnlag.com/ yesterday and I have no idea how they have managed to build that kind of user sign up system using wordpress. how have they integrated the login form in the main website and how have they changed the look and fields of the registration form. Is it some plugin i'm not aware of? or have they messed ar...

Problem to generate nested ul lists using PHP

Hi all: I am working on a front-end web app where a nested unordered list would be used for the jQuery plugin mcdropdown. Here is the data structure from PHP: a nested array of arrays : Array ( [0] => Array ( [fullpath] => ../foil/alphanumeric/ [depth] => 0 ) [1] => Array ( ...

how do i use MySql ENUM type? (and is it right for a news feed)

I'm creating a table called news_feed, this will log all the actions a user performs. Lets say I want to store user1234 deleted article412 at midday I then need a table like so timestamp | user_id | subject_type | subject_id | method . there would be 5 potential methods to log, methods = add/edit/delete/update/report and l...