Has anyone worked on something like this before?
We have a closed web application coded in php/javascript, the usual. This application supports plugins to provide different features in the front-end. Kind of like widgets I guess.
We want to open this up to users so they can add plugins for...
How to set this location in the nginx site config file
2 possible paths:
/en/Content/fileX.xxx
/en/Content/fileY.yyy
/Content/fileX.xxx
/Content/fileY.yyy
both of these paths have files in the root as well as in multiple subdirectories.
fileX.xxx does not exist as a real file, there is a...
Trying to achieve the following:
1. A parent container positioned absolute, because of reasons.
2. child elements that should be next to each other horizontally and push the parent width out. The number of child elements is dynamic but will not change after initial page load.
3. the above...
Is this possible?
function parent_function(){
$data = 'middle';
echo 'start';
child_function($data);
echo 'end';
}
function child_function($data){
parent::return $data;
}
the result i want when parent_function() is called is that only 'start' is echo'd, but that the child function...
What i am trying to do is the following:
i have a class A which instantiates another class then calls a function in that class with a param for the processing function.
This second class runs a complicated script that calls the passed processing function a few times.
the processing function in...
i have a function that can take a path or string data as an attribute. Just wondering if there is a "right" way to do this (and why).
Similar functions in php seem to take the 2 function route
set_data_with_path($path)
set_data_with_string($string)
but this seems a little cumbersome for a...
Just wondering if there would be anything against using a trait to store configuration settings for an application?
trait CONFIG{
private $db_login = 'mylogin';
private $db_pasw = 'mypasw';
public function get_db_auth(){
return array($db_login,$db_pasw);
}
}
class DB{
use...
How do i instantiate AWS inside of a class? All the examples seem to be procedural.
For example, i was thinking something like this:
<?PHP
date_default_timezone_set('myTimezone');
// load aws using composer
require_once dirname(__FILE__).'/vendor/autoload.php';
class MyLoader{
use...
I am building an application that is 2 parts.
1. a chromeless browser application that opens a local html/js file
2. an external website where the user must login, this is stored in a cookie and session.
the external website is opened in an iframe in the local file.
in the local file is a...
Is it possible to deny access to a subdirectory from a htaccess file in the root?
The exact structure is like this:
/root/.htaccess
/root/subdirs/sub1/noaccess
/root/subdirs/sub1/access
/root/subdirs/sub2/noaccess
/root/subdirs/sub2/access
the .htaccess on the root should disable access to...
I am at a bit of a loss with iptables.
the main application running on this server requires certain settings in iptables but there are so many settings im not sure what is what.
it generally works fine though the only problem at the moment seems to be that it is blocking the server from...
any definitive answer on which is better for SEO ?
nicely formatted XHTML with a decent seo friendly structure (limited JavaScript, content near the top, much internal linking, etc.)
OR
XML page with all content, including the main menus with urls to underlying pages. The XML would load an...
Hi
Need some help with a regex and having difficulty finding it in searches.
i have a large body of text that contains several links. The extensions of some of the links needs to be replaced.
Examples:
In these links the ".pdf" needs to become .html
<a href="/Page/File.pdf">File</a>
<a...
Not sure if this is the right forum for this but this one came up when i searched for outlook...
On the calendar view we can create a new meeting request.
in the meeting request window we have a field for "location"
i want to add a button next to this field that when clicked would open an...
Hi
So the situation is as follows:
I have a linux based NAS drive (WD Sharespace). Recently i tried to update the Firmware through the built in updater which for some reason failed and broke the NAS. Customer support has been less than useful so far so i am hoping someone here might have some...
I am trying to make a site work nice in IE, impossible i know, but doing my best here :)
The current issue is in the filter:rotate combined with browser zoom. As far as i can tell this is a ie8 and ie9 issue. ie7 seems to be ok.
When the rotate filter is applied to an element to rotate it 90...
Hi
I am trying to put together a menu but it is proving difficult.
The situation is as follows:
I have a fixed space for the menu: 960pixels wide.
The number of menus is dynamic
The contents (menu titles) are dynamic
The menus have a graphic left and right, a content section and a pull-down...
Hi
To further educate myself I am putting together a new MVC framework in PHP from scratch. It is my first real big project using classes this way and i am a bit confused at some of the results.
This is a simplified version of what I have, any feedback in general would be greatly appreciated...
Hi
Anyone run into this before?
$xml= "<content><span>this is some</span> xml test</content>";
$tidy_options = array(
'input-xml' => true,
'output-xml' => true,
'indent' => true,
'wrap' => false,
'show-body-only' => true...
For those of you who may run into the same issue... this is something that was annoying me for the last hour.
I have a small web app that depends heavily on jquery, jquery ui and a few jquery plugins.
The app worked fine on the computer and fine in android on the default browser. For some...
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.