Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ThomasJSmart

    Third party PHP plugins in a closed web application?

    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...
  2. ThomasJSmart

    Nginx location: all REAL files in path

    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...
  3. ThomasJSmart

    absolute parent, children that expand width of parent up to max.

    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...
  4. ThomasJSmart

    Php function to force parent function to return

    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...
  5. ThomasJSmart

    call_user_func and object context

    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...
  6. ThomasJSmart

    either/or function param

    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...
  7. ThomasJSmart

    Config file in Trait?

    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...
  8. ThomasJSmart

    Instantiate amazon AWS inside of a class?

    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...
  9. ThomasJSmart

    share cookies between website and local file

    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...
  10. ThomasJSmart

    htaccess -&gt; deny access to wildcard subdirectories without using rewriterule

    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...
  11. ThomasJSmart

    iptables blocking email to server

    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...
  12. ThomasJSmart

    XHTML or XML for SEO ?

    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...
  13. ThomasJSmart

    preg_replace except if start of string = x

    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...
  14. ThomasJSmart

    Outlook custom button in interface

    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...
  15. ThomasJSmart

    Connect to semi-broken NAS

    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...
  16. ThomasJSmart

    IE8 filter rotate and zooming

    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...
  17. ThomasJSmart

    Menu, fills out in width, equal padding

    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...
  18. ThomasJSmart

    Need some help and feedback with an MVC framework

    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...
  19. ThomasJSmart

    PHP Tidy, space remove after tag.

    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...
  20. ThomasJSmart

    jquery on android firefox

    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...

Part and Inventory Search

Back
Top