I had decided to integrate FedEx Shipping Service into one of my online apps.
I downloaded a sample PHP code from the FedEX developer center. But when I tried to work with the ShipGroundDomestic.php5 I am getting error. I modified the file according to my specifications & plugged in the credentials. But I am unable to make it work. I am ...
As far as I can tell you can't add the Developer package to a Pages account - as in I haven't got a Facebook profile.
It's for business purposes and I'd really like to know if you can use the Facebook API to update a Pages status.
Thanks :)
...
I have a PHP file that contains a lot of "if" and "else" statements that determine what content a user sees (let's called this a block). I constantly have to modify this file (let's call it output.php), but it's a bit cumbersome with just a text editor.
What I want to do is use a simple web interface to modify output.php. I was thinking...
Hey all. I've successfully installed the php extension uploadprogress on my 1and1 acct. You can verify at www.mgxvideo.com/info.php. Using code I got from this site, I get the following error:
Fatal error: Call to undefined function uploadprogress_get_info()
Basically, you can view my code at progress.txt and upload.txt. I've spent ...
From : www.example.com/cut/456
To : www.example.com/cut/index.php?tag=456
I try this and it doesn't work
RewriteEngine On
RewriteRule ^([^/]*)$ /cut/index.php?tag=$1 [L]
...
Hmmmm... ok, so I'm trying to do exactly the same thing as in my previous python question, but in php. See my previous (answered) question
So lets say that php script from previous question does something and then runs another php script on the same server, does something and then quits (while second script still continues its work). Ho...
I need to build a simple change log for my application.
I have two tables: Store and Item.
I want to log each time a user updates info on store / item, and each time a user creates / deletes an association between item and store. (A user can associate an item with multiple stores).
The purpose is for the owner of that item, to see who...
Hey everyone,
I am using a RequestBuilder in GWT (1.6) that successfully sends a String (formatted as a date) to a PHP script on my web server. My PHP then uses that String to query a MySQL Database. I am then able to echo a result, which is successfully interpreted by GWT.
My issue is that I don't just want to "echo" back a String. I ...
str_replace('Ê','',$line);
Ain't working. Is there some special string that represents that?
...
I'm using MySQLi with PHP(5.2.4) MySQL(5.0.51a) on Ubuntu 8.04 LAMP.
The relevant Db tables are below:
Questions
+----+------------------------------------------------------------------------------------------------------------+
| id | question ...
How can I define a composite primary key consisting of two fields in SQL?
I am using PHP to create tables and everything. I want to make a table name voting with fields QuestionID, MemeberID, and vote. And the QuestionID and MemberID will be the primary keys.
How should I do this?
...
Drupal employs a custom session handler that changes the familiar...:
$_SESSION['foo'] = 'bar';
echo $_SESSION['foo'];
...behavior. The above session variable of "foo" would not persist from page to page.
Many comments and forum entries at Drupal.com raise the issue that Drupal uses a custom session handler for performance reasons an...
I have this code:
$.getJSON("Featured/getEvents",
function(data){
$.each(data.events, function(i,event){
var title = event.title.substr(0,20);
$("#title-"+i).text("Text");
if ( i == 4 ) return false;
});
});
I am doing this in conjucti...
I work in a very large PHP codebase from a Windows box, and I'm looking for an editor with good code browsing capabilities, and one which will scale to a large codebase.
I've started using Eclipse PDT for a couple days, and while I like the feature set for the most part, I've found it to be unreliable. It randomly hangs for long period...
I've never really done much with parsing text in PHP (or any language). I've got this text:
1 (2) ,Yes,5823,"Some Name
801-555-5555",EXEC,,"Mar 16, 2009",0.00,
1 (3) ,,4821,Somebody Else,MBR,,"Mar 11, 2009",,0.00
2 (1) ,,5634,Another Guy,ASSOC,,"Mar 15, 2009",,0.00
You can see the first line has a break, I need to get it be:
1 (2) ,...
I have an array:
Array
(
[1] => 25
[2] => 50
[3] => 25
)
I would like to make it into:
Array
(
[1] => 50
[2] => 50
)
To do this I split the middle value between 1 and 3. This is the simplest example, where the split is 50,50. I would like to be able to take a 15 element array down to 6 elements.
Any ideas?
Add...
I need to read the output from ffmpeg in order to even try the solution to my question from yesterday. This is a separate issue from my problem there, so I made a new question.
How the heck do I get the output from an ffmpeg -i command in PHP?
This is what I've been trying:
<?PHP
error_reporting(E_ALL);
$src = "/var/videos/vi...
I have a performance intensive routine that is written in PHP that I'd like to port to C++ for a performance increase. Is there any way to write a plugin or extension or something using C++ and interface with it from PHP? WITHOUT manually editing the actual PHP source?
...
I am trying to create an XML file, but the XML file needs to be wrapped in nodes... hence, not easy to use append.
Any help with this would be great!!
My XML consists of 2 different node types:
<entry id="1_0">
<title>This is the title</title>
<description>This is the description...</description>
<subName>Publishers Name<...
Hi,
I have a mysql 'cities' table with data as follows:
id name ascii_name
1 Abilene, Texas Abilene-Texas
2 Akron, Ohio Akron-Ohio
3 Albuquerque, New-Mexico Albuquerque-New-Mexico
4 Alexandria, Virginia ...