Is there a way to prevent a specific file from being opcode cached with APC? The use case is as follows:
An application that sits on the cloud, which dynamically resizes itself (spinning up and down servers as required). The config.php script must know of the new IPs as they become available or unavailable.
Since these changes happen f...
Am I allowed to have two or more ob_start(); in my php files if so what is the proper way to end one ob_start(); and start another?
...
How can I add a Oauth provider to a web application using Zend Framework? Zend Framework has support for oauth consumers, but I don't see a provider support. What do you use to implement a Oauth provider in php (with Zend Framework)?
...
When I try to start Apache with
[PHP_APC]
extension = php_apc.dll
[apc]
apc.shm_segments=1
apc.optimization=0
apc.shm_size=128
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1
in php.ini, it fails. I have the php_apc.dll in the ext directory.
Using Apache 2.2.17 and PHP ...
Problem:
I dont know the simplest way to allow a single web viewer to update data in a text file on a server. (ie. only 1 person will be changing the data.)
Objective:
To make a prototype web application just one person needs to input in the start and end dates of new assignments and locations of staff and the whole company can visual...
I already did a lot of research on this topic and have implemented a lot of solutions myself.
Including OpenID, Facebook Connect (using the old Rest api and the new Graph Oauth 2.0 Api), Sign in with twitter (wich has been upgraded to fully qualified Openid by now as far as I know), and so on...
But what I'm still missing is the perfec...
Hey folks, I am trying to import a database (.sql) file using phpmy admin on a clients server.
I get a file too large error even thought I have the option to break the file into pieces etc but I still get the error. The upload size is 50MiB and the file I am trying to import is 90mb (for the db.)
I had the same error in MAM and know I ...
n00b here
Is there some kind of control panel for Sphinx (to make things easier)?
Or is there a way I can use Plesk to handle it?
I already installed (sphinx-0.9.9) on my CentOS, I
just don't know what to do next to index and search
on MySql (with php)
Also, can someone explain about using the daemon, api, etc...
...
I'm wondering which is semantically and technically most optimal of my choices here. I've created a simple object registry class, but the method of object access has me wondering what's best. I'm currently using the first variation:
//the Registry methods can chain, each returning a self reference
$registry = Registry::getInstance()->re...
Is there any alternative checking technique for valid mysql function/keyword in PHP?
...
Is there a way to get mod_geoip working when Apache 2.2 is running in fcgid mode?
I just installed it but get the following php error when I try a test:
Fatal error: Call to undefined function apache_note() in /var/www/abc.com/geoip/index.php on line 4
...
I have been working on trying to teach myself programming and have come stuck on a simple problem ,
the line I am working with is
echo "<td>" . $row['website'] . "</td>";
only in the database {mysql} it is in plain text under the column 'website' , I have been trying to work out how to make the row website clickable for the whole ta...
EDIT @mootinator has done awesome work with this. See his answer below.
Since I wasn't clear in specifying my exact URI, it may still help people who are looking for something similar. My URI is more like: 9/Here-is-some-text/unwatch
...in which case you need mod_rewrite rules that look a little more like this:
RewriteEngine on
Rewrit...
Hey everybody,
Probably someone has already asked this question but I'm not sure what I'm looking for.
I've seen a couple of applications in PHP that are doing this kind of url rewriting "http://site.com/index.php/myaction/avariable"
I've done a similar thing with mod_rewrite where you'd have almost the same link "http://site.com/whate...
Alright, I'm having an issue, as many other people are seeming to have, without fix. The issue is, when I try to use require or require_once, it will work fine if the file to be required is in the same subdirectory, but the moment it sees a file outside of their subdirectory, it quits. Here is basically what the file tree looks like:
mai...
Hi,
I'm executing a simple query and want to get an array back.
Based on the ORM tutorial that comes with the Kohana 3 guide, I thought I could do the following:
ORM::factory('user')->find_all()->as_array();
But that seems to give me an array of model objects (ie array( User_Model1, User_Model2 ...
Looking at the source I see I can e...
i have this file that is on the root folder called sumbit.php
and when i acesss a page like this for exmaple
http://www.example.com/viewtopic.php?topic=14
the new url is
http://www.example.com/topic/14
on firebug its saying its accessing http://www.example.co.uk/topic/submit.php, when its meant to access http://www.example.co.uk/...
Wait you don't need to read the whole thing :) Just scroll down, and see what I've asked.
stdClass Object
(
[friends_count] => 54
[description] => i'TS THE digiTAL vERSiOn 0b devilZ! tECH & mUUsic fReak.
sImpLE buT.......!
[screen_name] => 2020Volt
[profile_sidebar_border_color] => 181A1E
[status] => stdCla...
when should i go for Expat parser rather Dom Parser and vice versa ? What is the difference between these parsers ?
...
I have a two tables.
TABLE 1 has id(PRIMARY)|RANK|WEBSITE |ADDRESS
This is filled with a million websites.
TABLE 2 has id(PRIMARY)|tag1|tag2|tag3 ......|tag30
I am generating the tags by scraping for the meta tags and other attributes.
I have no problems populating the database for the first few thousand websites. After that, I am n...