There is an array of user states stored in the session. This works:
<?php if ($_SESSION['_app_user']['data']['state']['1']) { ?>
<p>User has state 1</p>
<?php } ?>
But, selecting multiple states doesn't:
<?php if ($_SESSION['_app_user']['data']['state']['1,6,10']) { ?>
<p>User has state 1 or 6 or 10</p>
<?php } ?>
How can y...
I'm trying to set up a php page made up of images from 3 different RSS feeds, in 3 columns. The first feed is from a Wordpress blog, the second from an Etsy store, and the third from a Flickr feed.
What I would like to do is grab the link to the images from the first 3 items in each feed.
Relevant information:
The Wordpress feed puts...
Question Updated for Bounty
In Flash I need to load a dynamically generated XML file, which is created using PHP.
I'm using the Bulk-loader library for all my loading.
Currently my Flash can only load a manually created XML file, what I need Flash to do is to load a PHP generated XML File like this:
http://dev.touchstorm.com/ten_hpn_...
Hi Everyone!
I'm about to ask a tough question, and I apologize in advance for the fact that I'm a n00b at javascript!
Basically I am looking to integrate MailChimp list signup into the WP E-Commerce plugin. If I understand correctly, this could be accomplished with Javascript where I send the data to two separate locations.
I fo...
Let's say you were given the arrival date 12/28/10 and a departure date of 1/5/11, in the form of an array ( which is always consistent and can be relied upon ) such as:
$data = array(
0 => array(
'Date' => '12/28/10',
'Price' => 100
),
1 => array(
'Date' => '12/29/10',
'Price' => 100
),
2 => array(
'Date' => '12/30/10',
'Price' => 100
...
I have this snippet and there are 3 images and 3 folders in the directory. It echos the images just fine but it also gives me this error for each of the folders.
Notice: Undefined index: extension in D:\Data\Websites\wamp\www\StephsSite\PHP\manage.php on line 119
What i want to do is have it so if it finds a file with no extension(a ...
I've installed Eclipse 3.5.1 (PDE), which I believe I got from Zend's download site (it was a while ago on my travel laptop). I can't get auto-complete to work for any of my included libraries. I've tried both adding the libraries to the 'include path' and just linking the files to a subdirectory of the project. Neither get's me auto-com...
I have an embedded iframe form which takes a file from a type="file" form field and uploads it using a progress bar:
<form action="sell_upload.php" method="post" id="uploadform" enctype="multipart/form-data">
<input type="hidden" name="UPLOAD_IDENTIFIER" id="progress_key" value="<?= $uuid ?>" />
<input type="hidden" name="uploa...
For example, in foo.php:
<?php echo 'hello'; ?>
And in bar.php, I want to get the output of foo.php (which is hello) and do some formatting before outputting to browser. Is there any way to do this?
Or even further, if the webserver can run both PHP and Python scripts, can a PHP script get the output of a Python script?
Edit:
PHP f...
I have been developing a program that is able to login to AWeber.com, and perform mass imports of data. The script uses the PHP cURL libraries, along with their CookieJar settings to spoof a normal user with a browser.
The script works perfectly, allowing login, and the changing of lists, but when it comes to posting the form data (in t...
I need some suggestions on how to start off with this one. My end goal is to make some visually striking wheel that can revolve a set of pictures and stop randomly at some picture and display some text in the center of the wheel. With the number of AJAX libraries out there, I am pretty sure someone must have done something similar. Does ...
Hi,
I need to use PHP to connect to a URL via a proxy server. I will be grateful if you could point me in the right direction.
Thank you.
...
If you copy and paste the following text in a html page,
انوان
you will the following Arabic text:
انوان
My question is:
What is the name of this type of encoding that include numbers and hash (#) sign, and how decode it in PHP?
...
Hi!
i read the meta tags from a PHP script that read the url convert it to html and then read the tags and title .................for this no problem but the problem is i wants to read only the text from html...............
for Example when you put a link on facebook you can see that i read's your Title and some text from your webpage u...
How subforms created in zend?
Please explain with an example.
...
Hi - I hope someone can advise / direct / shed some light on :
i have a rails application that uses Authlogic for authentication.
i would like to incorporate cometchat into this application - (in reality any chat IM would do - but cometchat seemed to fit nicely because ajax-im does not like windows)
The environment is the following : T...
I asked same question previous day.but becouse of my limited english I cant explain it well
So I decided to explain Step By Step
First
I have php file that gets data and file from HTML form and uploads file to specific directory by $_POST and $_FILES methods..
Second
I have windos aplication (c#).User could drag and drop any file to...
Hai. I was making this simple string class and was wondering if there was a more natural way of doing it.
class Str{
function __construct($str){
$this->value = $str;
$this->length = strlen($str);
..
}
function __toString(){
return $this->value;
}
..
}
so now i have to use it like th...
I read a lot of Restful tutorials for PHP.
(I don't want to go in depth into why I am not using RoR. It is due to the team being more familiar with PHP)
Because we are planning for future expansion into having APIs i read that it is important to implement Restful web services.
I have looked at tutorials such as
http://www.gen-x-des...
Hello,
i have a multi dimension array with sub array having repeated values of 'eduHisRowId' like:
Array
(
[0] => Array
(
[eduHisRowId] => 4
[repOrderId] => 15
)
[1] => Array
(
[eduHisRowId] => 5
[repOrderId] => 16
)
[2] => Array
(
...