PHP5 tier based authorization script?
Are there any PHP login scripts around that I can learn from? I want to have a control panel that shows different options to different users depending on level of privilege. ...
Are there any PHP login scripts around that I can learn from? I want to have a control panel that shows different options to different users depending on level of privilege. ...
I am using php soap. I can't get my soap body to include a custom namespace. Here is an example of what I want: <?xml version='1.0' encoding='UTF8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <tns:MyCall xmlns:tns="my.sx"><tns:op>getStuff</tns:op><tns:args /> </tns:MyCall> ...
EDIT: I found the problem with my evaluation not working. All the text being returned from my codeIgniter functions has a space before it, so while I saw "success" it was actually " success". I don't know why it is, but I can certainly work with that. As for the next step - opening a new view - Donny's answer was perfect! I am usin...
I have four tables I want to join and get data from. The tables look something like... Employees (EmployeeID, GroupID[fk], EmployeeName, PhoneNum) Positions (PositionID, PositionName) EmployeePositions (EployeePositionID, EmployeeID[fk], PositionID[fk]) EmployeeGroup (GroupID, GroupName) [fk] = foreign key I want to create a query t...
i have a URL that looks like this ......index.php?option=com_jumi&fileid=8&Itemid=34 i know that i can view the source of the file just by view source from the browser, but since i have FTP permission for the site, i would like to be able to edit the file. but i dont know which file to edit! how do i find out which file is this link...
I'm trying to use simple_html_dom to remove all the spans from a snippet of HTML, and I'm using the following: $body = "<span class='outer' style='background:red'>x<span class='mid' style='background:purple'>y<span class='inner' style='background:orange'>z</span></span></span>"; $HTML = new simple_html_dom; $HTML->load($body); $spans...
I have the following code that works: <script type="text/javascript"> $(document).ready(function() { // Initialise the table $('#table_1').tableDnD({ onDrop: function(table, row) { $.tableDnD.serialize(); location.href="test.php?" + $.tableDnD.serialize(); } }); }); </script> And it sends through a re...
I have an secure FTP Server with the login details and from PHP, am trying to connect to that secure FTP Server using ftp_ssl_connect/ftp_connect and ftp_login function and passing all the parameters properly to the function but I am amazed to see that it does not connect. If I try to connect to that secure FTP Server from command line ...
I've REALLY been wanting to test speeds of regex etc. and on php.net it has this example: $time_start = microtime(true); // Sleep for a while usleep(100); // Or anything for that matter.. $time_end = microtime(true); $time = $time_end - $time_start; echo "Did nothing in $time seconds\n"; EDIT: What I meant was to play a large loop ...
I have a simple javascript function to validate a form (RSform!Pro in Joomla) on submit. Problem is bots are able to submit the form without the validate script running when they have javascript disabled. The only option I can think of to prevent this case from happening is to use php instead of javascript. Could someone help me with thi...
What are pros to use extension-less url? in any terms. like http://yoursite.com/mypage.html http://yoursite.com/mypage.php http://yoursite.com/mypage.aspx to http://yoursite.com/mypage and is it possible to have extension-less url for every page? Update: Is extension less url better for site security? ...
Running an EXPLAIN on some of my query tests have resulted in slow ALL joins even with indexes. How do I make a MYSQL query with the following information more efficient? Tables counter: id (pk), timestamp, user_id (fk) user: id (PK), username, website_id (fk) website: id (pk), sitename SELECT t2.usern...
I am using flash to call a PHP page that needs to do a bit of processing. Is it possible to let PHP continue processing but show a response anyway so flash doesn't stall waiting? ...
Hey guys, how do i write a function in javascript that can get the current url eg: http://www.blahblah.com/apps/category.php?pg=1&catId=3021 and depending on a user selection choice, appends another parameter to the url like: http://localhost/buyamonline/apps/category.php?pg=1&catId=3021&limit=5 but heres the catch: Eve...
Hi guys - I have a freelance project where I have to build a news articles based website. Let me go over it a bit. The site is such that you have a super admin and you have writers - writers join the website by sending in an application along with a sample of their writing skills - if approved the admin approves them and an account is cr...
Greetings, I am writing some code inside a framework for PHP 5.3, and I am trying to catch all errors in a way that will allow me to gracefully crash on client side and add some log entry at the same time. To be sure to also catch parse errors, I am using register_shutdown_function to specifically catch parse errors. Here is the functi...
Given an html/javascript 'widget' which needs to have certain fields customized before use. For example, the css class ids need to be unique as the widget may appear more than once on the same page. Let's say I want to keep the markup (js/html) of the widget stored as a template so that I can fill in the values that need to be customiz...
is there a library for ruby or php that is able to parse html pages and extract unique data by comparing it with other similar pages....should use some sort of text mining to identify which texts are more likely noise and repetivie, while other texts are more unique and useful... ...
i read somewhere that ob_start() should be places top of the page. whereas somewhere i read that session_start() should be placed on the top of the page. somewhere i read header() should be placed on the top of the page. somewhere i read include() or require() should be placed on the top of the page. i m getting confused what shou...
I'm creating an e-commerce site using CodeIgniter. How should I get the query string? I am using a Saferpay payment gateway. The gateway response will be like this: http://www.test.com/registration/success/?DATA=<IDP+MSGTYPE%3D"PayConfirm"+KEYID%3D"1-0"+ID%3D"KI2WSWAn5UG3vAQv80AdAbpplvnb"+TOKEN%3D"(unused)"+VTVERIFY%3D"(obsolete)"+...