Given the code
$.ajax({
url: "_apiListCarriers.php",
type: "POST",
data: "a=getList",
success: function(response) {
$('#processProgressBar').css('display','block');
var objs = JSON.parse(response);
var n=getObjectCount(objs);
var count = 0;
while...
After so many years of writing mostly procedural PHP code, I am at a point where I must step out of my comfort zone and write a RESFUL API.
Not a big deal, really, except that for the life of me, the endpoints are kicking my rear-end.
My problem:
if I define my URI to be api.sitename.com...
Can you please tell me why this causes my page to get caught in an infinite loop?
$( "#menu-team" ).click(function() {
$( "#main-container" ).animate({
opacity: 0.25,
left: "+=50",
height: "toggle"
}, 3000, function() {
//...
So, after much reading and suggestions, I am trying to make a move from "procedural" style coding to OOP and instead of using mysqli I am giving PDO a shot.
Thing is, after hours of looking at my code, reading and comparing .... I cannot see what is wrong with it nor why I get no error and yet...
OK, I have this
// Dialog Link
$('#dialog_link2').click(function(){
// Dialog
$('#dialog').dialog({
autoOpen: false,
width: 678,
height: 450,
classes...
I have been playing with this - and for the life of me I cannot get the <div> to ling up two across.
Here is the complete code. Can you spot why am I having this problem?
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible"...
Hello!
I know little to nothing about this - I have never done this but I know of it by having read a couple of articles way way way back in the days.
The problem:
I have a legacy application which runs in Windows. It is currently installed in a win-2k3 32bit server. I need to move out of...
I get a response from soap call and dump to variable like so
$resp = $link->getResponse($dataString);
The content of $resp looks like this
object(getLTLRateEstimateResponse)#20 (1) {
["return":protected]=>
object(myLTLRateResponse)#21 (11) {
["rateEstimate":protected]=>...
I cannot tell you how many times I've done this ... today, like a couple of other things, I cannot get it to work.
I have the following object
[
{
"name":"AAA",
"message":"msg 1",
"days":"5",
"cost":"304.40",
"qnumber":"",
"jnumber":"",
"saveit":""
},
{
"name":"BBB",
"message":"msg 2"...
Working on an API integration where responses are received in XML. There could be any number of sources and each have their own format.
Now, since I am dealing with 45 to 50 different sources, I figure that the best option would be to extract from each whatever I may need for...
OK, working on a project where, I hope, the user base can reach a reasonably high volume.
Each prospective user would have their own data and must be apart from one another (companies can do their billing, project management, etc.).
I have done similar work where every time a company is...
So, I normally just write code but I am concern about what I see in my error.log
[client 146.0.77.100:49621] script '/var/www/html/index2.php' ...
If I google the IP I get Netherland and some references about it having been reported once or twice for abuse ...
What would be the suggested...
So, I am faced with what normally be a simple task in Unix or Linux, to access from CLI a web service ... Say for instance, http://www.myservice.com/foo.php being a script REST or otherwise, it can be easily called using wget or curl from unix/linux box.
This is not as simple, at least not that...
OK - How can I tell if a savvy user is calling my script via curl?
For example:
user #: curl http://www.mydomain.com/index.php
Is there any way PHP can tell the script is been invoked by other than a browser?
--
SouthBeach
http://www.fp2php.com
The good thing about not knowing is the...
The problem:
------
Working on script where a link is provided via email. The script looks at URL for content/values and if URL is that of a email the routine is triggered to automatically log in user.
The log in routine is the same routine one would use if you were to fill in the log in form...
So, my brother has brought to my attention a business he is involved in and most of the vendors he works with have (a) no site, (b) horrible sites, (c) fair sites.
These opportunities for me but I do not want to spend days putting together nice landing pages or sites to position myself as a...
Working on a script to fetch info from a service provider - All is well as far as getting to the provider, sending what needs to be sent ...
My confusion rises when I try to pare the returned XML object:
object(SimpleXMLElement)#2 (22) {
["@attributes"]=>
array(1) {
["Version"]=>...
I have a process that uses file_put_content() to write to disk - I am ending up with files like
--w----r-T 1 www-data www-data 1941640 Aug 14 12:16 job1149_BOL_b6ab74966c.pdf
--w----r-T 1 www-data www-data 1941640 Aug 14 12:14 job1150_BOL_87e880f9c3.pdf
--w----r-T 1 www-data www-data 1941642...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.