Hey everyone.
Here is my code.
<table border="1" style="width:800px">
<?php $schedule_db = mysql_query("SELECT * FROM schedule WHERE '00:00' is not null and '01:00' is not null and '02:00' is not null and '03:00' is not null and '04:00' is not null and '05:00' is not null and '06:00' is not null and '07:00' is not null a...
Hi, i'm new related to creating php class's and objects...
I'm trying to make a class to comunicate with our company api.
When i'm calling a function to a variable, php hangs with error:
Parse error: syntax error, unexpected T_VARIABLE in /var/www/(...)/microdualapi.class.php on line 168
Can anybody give me a light? :)
The code is a...
Hi Guys,
I have a problem.
I have 2 php scripts, one which sends xml data using curl and one which is supposed to read the posted data.
The problem is the reciever script is not getting any of the elements in the xml.
Any help would be appriciated.
SENDER SCRIPT:
<?php
$xml = '
<SMS xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta...
Hi,
I need to validate a signature for a callback from ankoder.com who provide the following description:
It is the URL-escaped string of Base64-encoded HMAC-SHA1 digest of your private key and the URL-unescaped message.
$passkey = urlencode(base64_encode(hash_hmac('sha1', urldecode($str), $private_key, true)));
They provide the fol...
I've got an array that uses UNIX timestamps for array keys. The array will typically hold data for anywhere from 15 minutes to maybe an hours worth of time, however there are only entries for seconds that have data.
Most of the data will be spread out, there will be occasional spans of data for consecutive seconds though. What I'd like ...
I have two arrays: Array ( [0] => 2 [1] => 3 ) and Array ( [0] => 2 ). I want to get the value, which is not in second array. So I have used the array_diff function but my result will get Array ( [1] => 3 )
Actually this is the result. But a small problem here, its position is (key) 1. I want the result in to a new array starts from ...
<div id="left-body-part-innerpage">
<h1 class="mainheading">Contact Us</h1>
<div id="contactus-right-div" class="content">
<?php session_start();
if( isset($_POST['button2']))
{
if( $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) )
...
Hi there,
In the last step of installing FFmpeg-PHP, I had to type sudo make install.
At this I get the following error,
sudo make install
Installing shared extensions: /usr/lib/php5/20060613/
cp: cannot stat `modules/*': No such file or directory
make: *** [install-modules] Error 1
Now my extension directory is at /usr/local/...
Hi,
Here's the deal. I've got a "tree" or a "subtree" that I want to navigate and delete every element in. Each "node" may contain links to other nodes below it (no problem) OR may contain links OUTSIDE that particular "tree"/"subtree". How can I build a function that only deletes "within" the specified tree?
...
I have urls like /story.php?id=31
I want to show it as /31.html
How?
...
Hi there here is my xml file: (thefile)
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://nts-de-osm1-pxc/webservices/">
<Item xmlns:q1="http://systinet.com/wsdl/com/osm/webservices/service/" xsi:type="q1:Document">
...
I'm struggling with some looping logic where I need to generate charts which plot a member's change in height against the average height for other members at the same age. The data is structured as follows:
A member can have many visits.
Each visit belongs to a member (ref member_id).
A visit can have more than one height entry
Heights ...
I am getting two different responses from different Magento installations. They considered to be the same and both should work but second response can’t be parsed by my Axis Java client app. And I don’t know if certain newer version of Axis can parse both.
The question is: From the SOAP format form of view should these both responses pa...
For anybody who has seen / used Magento, can you please tell me where can I find the following 3 function's definitions of the Catalog Product's save action's Event Observer class:-
setBundleOptionsData()
setBundleSelectionsData()
setCanSaveBundleSelections()
Please pardon me, for asking such a silly question, but I am really helples...
Hi, basicly I've got an array and want to call the same function for each element. Which way is it faster?
foreach($elemeents as $element){
callFunction($element);
}
OR
function callFunction($leements){
foreach($elements as $element){
//do something
}
}
thanx in advance, im just a beginner
...
Currently, PHP would trigger (and log if logging is enabled) E_NOTICE 'errors' when accessing undefined variables and array indexes. Is there a way to make it abort on these, so that I know I don't miss any. Frankly, IMO, far too often a script SHOULD abort on such condition anyway, as it will inevitably break something farther down the ...
I am uploading a file to soundcloud.com from my own server with using an API in PHP:
if (isset($mime)) {
$tmp_file = $tmp_path . $_FILES['file']['name'];
// Store the track temporary.
if (move_uploaded_file($_FILES['file']['tmp_name'], $tmp_file)) {
$post_data = array(
'track[title]' ...
How any concurrent users can a Apache + PHP solution support? Please don’t be bogged down by Mysql constraints – we are using LAP without M as we are storing around 2-8 PB at the back end.
...
hi there,
i need a reg exp (to do a preg_replace) to find all <font> tags with a style="..." attribute...
the problem is that i need to match ONLY the <font> with a style attribute AND a value of
"height: 0;overflow: hidden;width: 0; position: absolute;"...
another problem, the style attribute may be in different positions;
ex.
<...
Hi,
how can I make this not return an error of:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
.
$day[$i++] = "<tr><?php if(isset($schedule['00:00'])) { ?><td style=\"width:32px\"><?php echo $schedule['00:00'] ?></td><?php } if(isset($schedule['02:00'])) { ?><td style...