php

Learning Management System using php codeigniter?

Is there any open source Learning Management Softwares that is developed using php codeigniter? a Web based software for delivering,tracking and managing training/education that focuses mainly on Class/session scheduling, Class enrollment/registration, Teachers/Trainers,Students and Lessons/Courses/Categories/Evaluation I'm a BSIT stu...

PHP: dynamically find key position in multidimensional array

I have already posted a similiar question to this one some time ago, but now it's different, so please don't close this as a duplicate. I have a multi-dimensional array. I want a function that finds the position of the given array key (all my array keys are strings) and then returns the position of the key in the array, AS an array. He...

php variable session variables

Can i set session variables based on the variable input into the function. Such as: function check($value){ $_SESSION['$value']; //session checks } ...

PHP system() help no simple commands work

I am trying to run a shell from one of my controllers in a PHP codeigniter applications, I am trying to run the file /x/sh/xpay4.sh however I just get 127 returned to the screen, I can even use basic commands like ls or pwd can any suggest why this would be, I thought it might be safe_mode when I ini_get('safe_mode') it returns 1 ...

Define module layout in application.ini

I am trying to set up modules without my Zend Framework application and am wondering how to configure the module to use its own layout script. I am hoping to define it within my application.ini file, but am not sure what to do... I have tried: resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers" resources.fr...

How to copyright the source?

It is in an area, about which I don't now anything, but it's very important, I think. Just now, I'm finishing the script of big portal. But how can I be sure that the client will not use my script in other sites? Are there any script hash algorithms? Please help me to understand how can I protect me, and my script... ...

How do I load custom configuration files with codeigniter?

Hey all, I've just started to use codeigniter and I have a question. I am using arrays for defining certain values like: $gender = array ('male','female'); Or: $maritalStatus = array ('married', 'single', 'divorced'); I am using these kind of arrays in different views. My question is, is there a chance to put all of these arra...

Facebook api needed for Video Upload from my site Using Php

Hai I Created fan page. I want users to upload videos to my fan page and to display it in my fan page. And i want to track all the user profile. Is there any API avaliable? Can any one give me the reference? ...

Allowing the creation of custom forms and storing the data

I'm building a site and need to allow users to be able to create custom forms. The part I'm having trouble with is how to store the data from these forms. Since they are user created fields, there will be no corresponding field in the database. What would be the best way of going about this? I assume modifying the table is the incorr...

problem in toggle function of jquery

hey i have a section in my website that needs to be toggled by clicking on the title . now i wrote this code to toggle when clicking on title $(document).ready(function(){ $(".toggle_container").hide(); $("h4.trigger").click(function(){ $(this).toggleClass("active").next().slideToggle("slow"); }); }); html part : <h4 class="tri...

Are there any problems with this browser-cache system?

I have a app-type web site with a couple of long list pages (such as a list of companies grouped by country) that take a few seconds to build, but don't change very often. I use APC & Memcache to some extent, but I also thought "why have it hit the server at all" so I devised this: ob_start(); require_once '../bootstrap.inc.php'; reque...

How to handle slashes in strings in arrays for serialize function in php?

I think the title says it, as well...but of course some more explanation assume i have an array containig strings. if one of my strings contains slashes, like "red/blue/green" there will be troubles when i use the serialize/unserialize function of php and storing/loading the value in a session-variable. if you have nested large arrays ...

Store information in RAM

Hi, I have a php script and i want to store some information in RAM. The information should be accessible ONLY from my script and stored all time. What is best way to do that? What about globals arrays? I want to do it for security reasons. No one can to get access to the information. For example If somebody hacks one of the my scripts...

call c programm from php

yes how call please c programm from php, i have tryed with system exec or shell _exec, programm c i have writed, please help :-) ...

Does php5 function parameters pass as ponter or as copies?

Hi, Does php function parameters pass as ponter to object or as copy of object? Its very clear in C++ but in php5 I don't know. Example: <?php $dom=new MyDocumentHTMLDom(); myFun($dom); ?> parameter $dom pass as pointer or as copy? Thanks ...

Unable to load dynamic library Error showing up with phpbb forum?

i've a forum and i've installed phpbb3 and i happened to see my forum is not showing anything.. I've uploaded a test file and phpinfo() function and all is working fine but all others are not working.. the error log shows PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/http.so' - ...

Build a new Drupal site using D7

Hi there! I'm planning to rebuild a site I've got, from self-hacked to Drupal. I'm planning to dive in to Drupal and later on work as a freelancer (using Drupal). And here's my question. After spending some time reading about, and testing, Drupal I really got that feeling, "WOW", with Drupal7! I know that D7 isn't really "out" yet but ...

What sort algorithm does PHP use?

Internally speaking, which algorithm(s) does PHP use to implement the various sort functions it offers? It seems like the usort variants might use a different algorithm than the built in sorts, but I wanted to know. Where would I even find this information? Thanks! ...

write a text file using PHP to a specific URL of the same server

hello folks, I have a php script that writes a text file to the same directory where the script is. Now the problem is, the script gets a URL from some other script. Now the new text file is supposed to be written to this provided location from the last step. The provided location is in URL format: "www.example.com/main/foo/" Is there a...

prematch for replace html tags

...