Hello all,
I make an AJAX POST request to a PHP script on my server. That script in turn makes a GET request to a php script on an external server to check the contents of a text file. However, it takes a very long time to come back with a result. Why is the case?
AJAX Post Request to Script on my server
session_start();
$fileName = $...
Below is the mysqli query that is being performed, anyone know what I get such error:
$sql = mysqli_query($db, "INSERT INTO `tbl_bugzilla`
(`id`, `by`, `title`, `content`, `date`, `application`,`priority`, `assigned`, `status`)
VALUES (NULL, '".$_SESSION['exp_user']['username']."', '"
.$_SESSION['exp_user']['username']...
Today I noticed that a few Google advertisements in an adsence block on one of my pages were trying to display a file called "/pagead/badge/checkout_999999.gif" from my server. I did a bit of investigating and found out that the companies behind these adverts use Google Checkout and "checkout_999999.gif" is supposed to be a tiny shopping...
How can I write a real time chat using XAJAX and PHP?
In other words, is there a way to send xajax responses from the server to multiple clients?
Or is the only possibility to check for new messages every few seconds on client side?
...
I have a personal web site that crawls and collects MP3s from my favorite music blogs for later listening...
The way it works is a CRON job runs a .php scrip once every minute that crawls the next blog in the DB. The results are put into the DB and then a second .php script crawls the collected links.
The scripts only crawl two levels...
I have a web application (L/WAMP)
It is hosted using the domain abc.com
Clients use the application from company 123.com which means their email address is something like [email protected] or [email protected].
The application will sometimes send out an email to [email protected] telling him that Bob has does something like approved or rejected his ...
I've got a fairly general purpose PHP library which I'd like to use for a couple of different sites. The library serves up some content, but also detects error conditions, which is where my problems start. Trying to avoid redundant configuration, I've been attempting to get the server (or actually, been searching for documentation..) to ...
Hi,
I've recently setup PHP 5.2.9-2 on IIS 7 on Windows Server 2008 SP2. Most everything seems to be working fine -- PHP is running great, just about all PHP code runs perfectly... EXCEPT for default pages. Any default document (index.php) is not interpreted by PHP and the page merely displays the underlying PHP code in the browser.
Be...
I'm setting what I think are the correct HTTP Headers for caching from PHP and am getting a 500 error on every second request.
Can anyone point me in the right direction?
The code doing the caching is:
<?php
header('Content-Type: text/css');
$content = file_get_contents('test.css');
header('Content-Length: '. strlen($content ));
$e...
Hello all,
I make an AJAX request to a PHP script which returns a number from a text file that changes. This AJAX request should happen every 3 seconds. However, an AJAX request is made once and it doesn't return anything and firebug shows the AJAX GET request is still being made. After a few minutes it returns and produces a number. It...
What is the best way to implement server push for more than one thing.
Lets say I want to just update user status, so I can periodicaly poll the server for status in like 1000ms and update the page.
The other way I can found is that server waits for like 30 sec, while it checks if there was any change and if one is found, server push...
After 2 hours now I couldn't get it right.
The Kohana installation is accessible directly under my domain, i.e. "http://something.org/"
Instead of http://something.org/index.php/welcomde/index I want to have URLs like http://something.org/welcome/index
My .htaccess is messed up completely. It's actually the standard example.htaccess ...
Hi, this is a simple question.
With PHP and MySQL, I'm trying to build a bug reporting application.
Currently, the user can post bugs and a list of bugs is portrayed to the technician/administrator.
How do I make it so that many technician or administrators can reply to the report (thread?)
As in both mysql table layout and PHP codi...
I've been writing a plugin for Joomla that automatically processes HTML comments eg. {dropcap}B{/dropcap} and creates a drop cap style.
I needed a way to pass on parameters to the plugin so therefore decided the best way would be: {dropcap}B|FF00FF|00FF00{/dropcap}.
I created a function:
if (preg_match_all('/{dropcap}(.+?){\/dropcap}/...
I want to make an web application (platform) that does pretty straightforward stuff: Users can register, get an account, and therefore login on to the platform. I've installed Kohana. It would be cool to have a lightweight demo-project that makes use of these things in order to see how it's done.
Are there any good ones available?
...
EDIT:
I have managed to get this class working and I have updated the correct code.
I would love not to use the [0] at the end of the value. Any way I can improve this code?
This class retrieves all custom keys for a specific post. Currently I use it for relating images and I have defined thre keys in my post: 'related_image', 'related_...
Hello
I have an existing PHP/MySQL application that I want to convert over to CakePHP.
Unfortuaintly I can not change the column names and they do not follow the CakePHP standard.
For example:
One of the table names is called "user" and its not plural. The primary key is called "user_id" instead of "id". The creation date is called ...
I have two dedicated servers, one of which is configured for sending email out (SPF, DKIM, other domain whitelisting methods, etc). I need to send email from both servers, but I want to send mail from both servers through the server that's been set up for it.
It doesn't look like I can explicitly set an SMTP server directly in the mail ...
I don't get this:
http://localhost/index.php/articles/edit/1/my-first-article
This URL is mentioned as an example in the Kohana framework documentation. I poked around in the files of my installation, and there is no .htaccess besides my own one that has nothing to do with that.
So, how can it be that an index.php is called but then,...
I've tried to create a login widget that can be included at will in any action that is outside the content of the application that requires login. My thought here was that I wanted a DRY-approach for rendering the login box with any error messages from a previous login attempt. To enable this I utilized the FlashMessenger for saving the ...